help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$(wildcard ) in fakechroot environment


From: Warlich, Christof
Subject: $(wildcard ) in fakechroot environment
Date: Wed, 18 Feb 2015 10:53:19 +0000

Hi,

I'm trying to get my toolchain builds up and running in a chroot environment to 
guarantee defined tools. I'm using fakechroot to avoid root privileges. 
Everything seems to be running fine, except that make's $(wildcard ) function 
does not work as expected:

$ fakechroot chroot rootdir  cat /tmp/Makefile
all:
        @echo "Files in /tmp: $(wildcard /tmp/*)"
        @echo "Files in current directory: $(wildcard *)"


$ fakechroot chroot rootdir/ make -C /tmp
make: Entering directory `/tmp'
Files in /tmp:
Files in current directory: Makefile
make: Leaving directory `/tmp'

Obviously, $(wildcard ) does not find anything when the path is absolute.

On the other hand, everything works fine without fakechroot:

$ sudo chroot rootdir/ make -C /tmp
make: Entering directory `/tmp'
Files in /tmp: /tmp/Makefile
Files in current directory: Makefile
make: Leaving directory `/tmp'

Can anyone guess why make does not play well with fakechroot w.r.t. $(wildcard 
)? Many thanks for any hints,

Chris





reply via email to

[Prev in Thread] Current Thread [Next in Thread]