Modify

Opened 4 years ago

Closed 3 years ago

#14697 closed defect (invalid)

"make DUMP=1" yields "/bin/sh: 1: mindepth: not found" in scan.mk, in trunk (a48fc121c)

Reported by: andim Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: make DUMP scan.mk Cc:

Description

Hi,

since I tried to get to grips with owrt's rather mysterious kernel config file content handling (again!), I happened to execute a

make DUMP=1

in openwrt root, to try to get dumpinfo etc.

When on strace -f, this results in:

[pid 11559] execve("/bin/sh", ["/bin/sh", "-c", "mindepth 1 -maxdepth 5 -name Makefile | xargs grep -HE 'call (Build/DefaultTargets|Build(Package|Target)|.+Package)' | sed -e 's#package/##' -e 's#/Makefile:.*##' | uniq > /media/3a19dbe0-5fce-4dec-9691-6c4c8f7c5a9a/src/openwrt-git/tmp/info/.files-packageinfo-11537"], /* 63 vars */) = 0

So very obviously the find binary does not seem to get supplied properly in my case,
as implemented in include/scan.mk:

$(FILELIST):

rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-*
$(call FIND_L, $(SCAN_DIR)) $(SCAN_EXTRA) -mindepth 1 $(if $(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) -name Makefile | xargs grep -HE 'call (Build/DefaultTargets|Build(Package|Target)|.+Package)' | sed -e 's#$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq > $@

These config parts (FIND_L etc.) seem to get set up by include/host.mk, and then stored in tmp/.host.mk. Content currently:

HOST_OS:=Linux
HOST_ARCH:=i686
GNU_HOST_NAME:=i486-linux-gnu
TAR:=/bin/tar
FIND:=/usr/bin/find
BASH:=/bin/bash
FIND_L=/usr/bin/find -L $(1)
PATCH:=/usr/bin/patch
PYTHON:=/usr/bin/python2.7

So the .host.mk config settings look like they might be valid for that find binary invocation, but make DUMP=1 does fail.

Not sure whether this possibly is a local misconfiguration of mine (tried to ask on irc, but no results yet)...

I'm running on an aptosid live system here.

Thanks!

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by nbd

  • Resolution set to invalid
  • Status changed from new to closed

Running make with DUMP=1 is not supported. That variable is not meant for manual use - it is used internally to extract package metadata.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.