From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Wed, 23 Mar 2016 18:41:47 +0100 Subject: [Buildroot] [PATCH v7 03/18] core: re-enter make if $(CURDIR) or $(O) are not absolute canonical path In-Reply-To: References: <1457564339-27294-1-git-send-email-s.martin49@gmail.com> <1457564339-27294-4-git-send-email-s.martin49@gmail.com> <20160322220739.GA3441@free.fr> Message-ID: <20160323174147.GA3511@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Matthew, All, On 2016-03-22 18:11 -0500, Matthew Weber spake thusly: > On Tue, Mar 22, 2016 at 5:07 PM, Yann E. MORIN wrote: > > On 2016-03-20 20:45 -0500, Matthew Weber spake thusly: > >> On Sun, Mar 20, 2016 at 8:44 PM, Matthew Weber wrote: > >> > On Wed, Mar 9, 2016 at 4:58 PM, Samuel Martin wrote: > >> >> When $(CURDIR) or $(O) contain symlinks (or mount-bind) in their path, > >> >> they can be resolved differently, depending on each package build-system > >> >> (whether it uses the given paths or get the absolute canonical ones). > >> >> > >> >> Thus, to make easier tracking down host machine paths leaking into the > >> >> host, target or staging trees, the CURDIR and O variables are set to > >> >> their absolute canonical paths. > >> >> > >> >> Note that this change takes care of the makefile wrapper installed in > >> >> $(O) to avoid unneeded make recursion. > >> >> > >> >> Signed-off-by: Samuel Martin [--SNIP--] > >> > I've applied your v7 patches with these changes to the tip of > >> > buildroot and currently run into the following error. I'm still > >> > poking around trying to understand why. > >> > > >> > $ make V=1 qemu_x86_defconfig > >> > umask 0022 && \ > >> > make -C /opt/buildroot --no-print-directory \ > >> > qemu_x86_defconfig O= > > > > Why are you opassing an empty O= option here? > > > > I'm not passing the O= . Damned, I see. It's passed by the sub-make. My bad. Otherwise, I know why it fails: we should not try to canonicalise $(O) if it is not set. That's that simple. Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'