On Tuesday 09 December 2008 16:09:06 Bernhard Reutner-Fischer wrote: > On Tue, Dec 09, 2008 at 02:38:52PM -0600, Rob Landley wrote: > >On Tuesday 09 December 2008 03:30:34 Bernhard Reutner-Fischer wrote: > >> On Tue, Dec 09, 2008 at 02:43:44AM -0600, Rob Landley wrote: > >> >If you look at utils/Makefile.in you'll see that despite prepending > >> > PREFIX and RUNTIME_PREFIX, when you install_utils it prepends another > >> > "usr" to the start of the path it installs to. > > > >(Are you implying that the fact buildroot doesn't try this means it's not > >supported?) > > s/supported/implemented/; yes.
Is there any more to "implementing" this than just removing "usr/" from the start of the install paths, ala the attached patch? The one judgement call is that I left $(RUNTIME_PREFIX) on readelf, even though logically since that one didn't have a "usr/" prefix, it shouldn't use $(RUNTIME_PREFIX) either. (But I dunno _why_ that one's not consistent, so I left it. My questions all along have been about intent; I can change this to do what _I_ want it to do fairly trivially...) > It should obviously behave much like the > other install targets to match what install_dev and install_runtime > does. That was the primary point why it was not documented. I think the attached patch covers it? > Perhaps you want to take care of install_hostutils while at it? We haven't got an install_hostutils. I can try to whip something up... Rob
Index: utils/Makefile.in =================================================================== --- a/utils/Makefile.in (revision 24276) +++ b/utils/Makefile.in (working copy) @@ -84,14 +84,14 @@ install-y += utils_install utils_install: utils - #$(Q)$(INSTALL) -D -m 755 $(utils_OUT)/readelf $(PREFIX)$(RUNTIME_PREFIX)usr/bin/readelf + #$(Q)$(INSTALL) -D -m 755 $(utils_OUT)/readelf $(PREFIX)$(RUNTIME_PREFIX)bin/readelf ifeq ($(HAVE_SHARED),y) - $(Q)$(INSTALL) -D -m 755 $(utils_OUT)/ldd $(PREFIX)$(RUNTIME_PREFIX)usr/bin/ldd + $(Q)$(INSTALL) -D -m 755 $(utils_OUT)/ldd $(PREFIX)$(RUNTIME_PREFIX)bin/ldd $(Q)$(INSTALL) -D -m 755 $(utils_OUT)/ldconfig $(PREFIX)$(RUNTIME_PREFIX)sbin/ldconfig endif ifeq ($(UCLIBC_HAS_LOCALE),y) - $(Q)$(INSTALL) -D -m 755 $(utils_OUT)/iconv $(PREFIX)$(RUNTIME_PREFIX)usr/bin/iconv - $(Q)$(INSTALL) -m 755 $(utils_OUT)/locale $(PREFIX)$(RUNTIME_PREFIX)usr/bin/locale + $(Q)$(INSTALL) -D -m 755 $(utils_OUT)/iconv $(PREFIX)$(RUNTIME_PREFIX)bin/iconv + $(Q)$(INSTALL) -m 755 $(utils_OUT)/locale $(PREFIX)$(RUNTIME_PREFIX)bin/locale endif objclean-y += utils_clean
_______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
