Skip to contentSkip to conversation

svn commit: trunk/buildroot/package/bzip2

Buildroot ninevoltz at uclibc.org 4 participants 5 messages Mar 6, 2008 – Mar 7, 2008

lore
Share & tools
lore
#0 lore raw

Author: ninevoltz
Date: 2008-03-06 09:56:10 -0800 (Thu, 06 Mar 2008) New Revision: 21184

Log:
makefile cleanup for bzip2

Modified:
trunk/buildroot/package/bzip2/bzip2.mk

Changeset:
Modified: trunk/buildroot/package/bzip2/bzip2.mk
===================================================================

buildroot/package/bzip2/bzip2.mk +6 -6
@@ -29,7 +29,7 @@
 	$(SED) "s:-O2:$(TARGET_CFLAGS):" $(BZIP2_DIR)/Makefile-libbz2_so
 	touch $@
 
-$(STAGING_DIR)/lib/libbz2.so.$(BZIP2_VERSION): $(BZIP2_DIR)/.unpacked
+$(STAGING_DIR)/usr/lib/libbz2.so.$(BZIP2_VERSION): $(BZIP2_DIR)/.unpacked
 	$(TARGET_CONFIGURE_OPTS) \
 	$(MAKE) CC=$(TARGET_CC) RANLIB=$(TARGET_RANLIB) AR=$(TARGET_AR) \
 		-C $(BZIP2_DIR) -f Makefile-libbz2_so
@@ -37,17 +37,17 @@
 	$(MAKE) CC=$(TARGET_CC) RANLIB=$(TARGET_RANLIB) AR=$(TARGET_AR) \
 		-C $(BZIP2_DIR) libbz2.a
 	cp $(BZIP2_DIR)/bzlib.h $(STAGING_DIR)/usr/include/
-	cp $(BZIP2_DIR)/libbz2.so.$(BZIP2_VERSION) $(STAGING_DIR)/lib/
+	cp $(BZIP2_DIR)/libbz2.so.$(BZIP2_VERSION) $(STAGING_DIR)/usr/lib/
 	cp $(BZIP2_DIR)/libbz2.a $(STAGING_DIR)/usr/lib/
 	(cd $(STAGING_DIR)/usr/lib/; \
 		ln -snf ../../lib/libbz2.so.$(BZIP2_VERSION) libbz2.so; \
 	)
-	(cd $(STAGING_DIR)/lib; \
+	(cd $(STAGING_DIR)/usr/lib; \
 		ln -snf libbz2.so.$(BZIP2_VERSION) libbz2.so.1.0; \
 		ln -snf libbz2.so.$(BZIP2_VERSION) libbz2.so.1; \
 	)
 
-$(BZIP2_BINARY): $(STAGING_DIR)/lib/libbz2.so.$(BZIP2_VERSION)
+$(BZIP2_BINARY): $(STAGING_DIR)/usr/lib/libbz2.so.$(BZIP2_VERSION)
 	$(TARGET_CONFIGURE_OPTS) \
 	$(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) bzip2 bzip2recover
 	touch -c $@
@@ -83,10 +83,10 @@
 	rm -rf $(TARGET_DIR)/share/locale
 	rm -rf $(TARGET_DIR)/usr/share/doc
 
-$(TARGET_DIR)/usr/lib/libbz2.a: $(STAGING_DIR)/lib/libbz2.a
+$(TARGET_DIR)/usr/lib/libbz2.a: $(STAGING_DIR)/usr/lib/libbz2.a
 	mkdir -p $(TARGET_DIR)/usr/include
 	cp $(STAGING_DIR)/usr/include/bzlib.h $(TARGET_DIR)/usr/include/
-	cp $(STAGING_DIR)/lib/libbz2.a $(TARGET_DIR)/usr/lib/
+	cp $(STAGING_DIR)/usr/lib/libbz2.a $(TARGET_DIR)/usr/lib/
 	rm -f $(TARGET_DIR)/lib/libbz2.so
 	(cd $(TARGET_DIR)/usr/lib; \
 		ln -fs /usr/lib/libbz2.so.1.0 libbz2.so; \
#1 lore raw
Quoted 17 lines · ninevoltz at uclibc.org

Author: ninevoltz
Date: 2008-03-06 09:56:10 -0800 (Thu, 06 Mar 2008) New Revision: 21184

Log:
makefile cleanup for bzip2

Modified:
trunk/buildroot/package/bzip2/bzip2.mk

Changeset:
Modified: trunk/buildroot/package/bzip2/bzip2.mk
===================================================================

buildroot/package/bzip2/bzip2.mk line 32

Quoted 5 lines
buildroot/package/bzip2/bzip2.mk +1 -1
@@ -29,7 +29,7 @@
 	$(SED) "s:-O2:$(TARGET_CFLAGS):" $(BZIP2_DIR)/Makefile-libbz2_so
 	touch $@
 
-$(STAGING_DIR)/lib/libbz2.so.$(BZIP2_VERSION): $(BZIP2_DIR)/.unpacked
+$(STAGING_DIR)/usr/lib/libbz2.so.$(BZIP2_VERSION): $(BZIP2_DIR)/.unpacked

Why move libbz2 from /lib to /usr/lib?

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
#2 lore raw

----- Original Message -----
From: "Hamish Moffatt" <[email protected]>
To: <[email protected]>
Sent: Friday, March 07, 2008 12:47 AM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/package/bzip2

Quoted 21 lines · ninevoltz at uclibc.org
Quoted 20 lines

Author: ninevoltz
Date: 2008-03-06 09:56:10 -0800 (Thu, 06 Mar 2008) New Revision: 21184

Log:
makefile cleanup for bzip2

Modified:
trunk/buildroot/package/bzip2/bzip2.mk

Changeset:
Modified: trunk/buildroot/package/bzip2/bzip2.mk
===================================================================

buildroot/package/bzip2/bzip2.mk 2008-03-06 17:56:10 UTC (rev 21184) renamed from buildroot/package/bzip2/bzip2.mk 2008-03-06 17:55:51 UTC (rev 21183) +0 -0
@@ -29,7 +29,7 @@
 $(SED) "s:-O2:$(TARGET_CFLAGS):" $(BZIP2_DIR)/Makefile-libbz2_so
 touch $@
 
Quoted 6 lines

buildroot/package/bzip2/bzip2.mk 2008-03-06 17:56:10 UTC (rev 21184) line 32

Quoted 2 lines
buildroot/package/bzip2/bzip2.mk 2008-03-06 17:56:10 UTC (rev 21184) renamed from buildroot/package/bzip2/bzip2.mk 2008-03-06 17:55:51 UTC (rev 21183) +1 -1
-$(STAGING_DIR)/lib/libbz2.so.$(BZIP2_VERSION): $(BZIP2_DIR)/.unpacked
+$(STAGING_DIR)/usr/lib/libbz2.so.$(BZIP2_VERSION): $(BZIP2_DIR)/.unpacked

Why move libbz2 from /lib to /usr/lib?

I think that this has been the trend for the last year. A lot of packages has had this change.

Best Regards
Ulf Samuelsson

#3 lore raw
Quoted 11 lines · Ulf Samuelsson

----- Original Message -----
From: "Hamish Moffatt" <[email protected]>
To: <[email protected]>
Sent: Friday, March 07, 2008 12:47 AM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/package/bzip2

Quoted 1 line

Why move libbz2 from /lib to /usr/lib?

I think that this has been the trend for the last year. A lot of packages has had this change.

I think some sort of policy document would be useful here. If libbz2 is in /usr/lib, that means no binaries in /bin or /sbin should use it really.

Is /usr really irrelevant on a buildroot-sized system anyway? Should we just put everything in /lib, /bin and /sbin and forget it? (Perhaps even bin and sbin should merge.)

Hamish

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
#4 lore raw
Quoted 10 lines · Hamish Moffatt
Quoted 9 lines · Ulf Samuelsson

----- Original Message -----
From: "Hamish Moffatt" <[email protected]>
To: <[email protected]>
Sent: Friday, March 07, 2008 12:47 AM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/package/bzip2

Quoted 1 line

Why move libbz2 from /lib to /usr/lib?

Quoted 7 lines
Quoted 2 lines

I think that this has been the trend for the last year. A lot of packages has had this change.

I think some sort of policy document would be useful here. If libbz2 is in /usr/lib, that means no binaries in /bin or /sbin should use it really.

Agreed.

Applications in /bin and /sbin which are dynamic linked must find their libraries in /lib.

Quoted 4 lines

Is /usr really irrelevant on a buildroot-sized system anyway? Should we just put everything in /lib, /bin and /sbin and forget it? (Perhaps even bin and sbin should merge.)

No, some embedded systems have multiple flash partitions, and might use one for /usr stuff and another for / stuff.

And please do not merge /bin and /sbin;

1. you must change a whole lot of Makefiles (make install)
2. some systems actually have multiple users ;)

Signature · 2 lines
With kind regards,
Hans-Christian Egtvedt, Applications Engineer