From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Samuelsson Date: Sat, 12 Jan 2008 13:52:26 +0100 Subject: [Buildroot] svn commit: trunk/buildroot/package References: <20080110092906.BFE9B12C57C@busybox.net> <20080110104222.GA31267@cloud.net.au> <006901c8537a$3994aea0$6103170a@atmel.com> <20080110134511.GA1941@cloud.net.au> Message-ID: <01b701c85520$dc548460$030514ac@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net You should not write to /etc. You should write to the project_build_dir//root/etc Best Regards Ulf Samuelsson ulf at atmel.com Atmel Nordic AB Mail: Box 2033, 174 02 Sundbyberg, Sweden Visit: Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden Phone +46 (8) 441 54 22 Fax +46 (8) 441 54 29 GSM +46 (706) 22 44 57 Technical support when I am not available: AT90 AVR Applications Group: mailto:avr at atmel.com AT91 ARM Applications Group: mailto:at91support at atmel.com AVR32 Applications Group mailto:avr32 at atmel.com http://www.avrfreaks.net/; http://avr32linux.org/ http://www.at91.com/ ; ftp://at91dist:distrib at 81.80.104.162/ ----- Original Message ----- From: "Hamish Moffatt" To: "Ulf Samuelsson" Cc: Sent: Thursday, January 10, 2008 2:45 PM Subject: Re: [Buildroot] svn commit: trunk/buildroot/package > On Thu, Jan 10, 2008 at 12:04:18PM +0100, Ulf Samuelsson wrote: >> > On Thu, Jan 10, 2008 at 01:29:06AM -0800, ulf at uclibc.org wrote: >> >> Log: >> >> Use host ldconfig, if external toolchain is used >> >> >> >> +ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y) >> >> +TARGET_LDCONFIG=/sbin/ldconfig >> >> +else >> >> TARGET_LDCONFIG=$(TARGET_CROSS)ldconfig >> >> +endif >> > >> > How can that be right? What does it fix? >> >> You may be right, it may need more complex logic. >> Is testing CodeSourcery tools, which does not provide ldconfig. >> Running /sbin/ldconfig seems to allow the build to complete. > > On my system, /sbin/ldconfig fails if run as a non-root user (can't > create temporary file /etc/ld.so.cache~). > > Maybe the logic could detect if $(TARGET_CROSS)ldconfig exists and if > not, set TARGET_LDCONFIG=/bin/true? (I don't think there is any need to > ever run /sbin/ldconfig, because the host's ld.so.cache doesn't need > updating.) > > ifeq ($(shell which $(TARGET_CROSS)ldconfig),) > TARGET_LDCONFIG=/bin/true > else > TARGET_LDCONFIG=$(TARGET_CROSS)ldconfig > endif > > ... appears to work here. "type" or "whence" or "command -v" might be > more portable than which, I'm not sure. I don't see any way to do it > without $(shell ..) though. > > > cheers > Hamish > -- > Hamish Moffatt VK3SB >