gcc 4.2.2 patch
Is this patch ok to bump gcc to 4.2.2?
I grep -r'd the buildroot tree and replaced each occurrence manually and removed 4.2.0.
-N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-4.2.2.patch
Type: text/x-patch
Size: 18843 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20080328/5c11163b/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://busybox.net/lists/buildroot/attachments/20080328/5c11163b/attachment.pgp
Quoted 15 lines · Nigel Kukard
Is this patch ok to bump gcc to 4.2.2?
I grep -r'd the buildroot tree and replaced each occurrence manually and removed 4.2.0.
-N
Index:
package/lvm2/lvm2.mk
===================================================================lvm2/lvm2.mk +0
-0@@ -64,7 +64,7 @@$(LVM2_TARGET_SBINS): $(LVM2_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) $(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) install
lvm2/lvm2.mk
Quoted 2 lines
lvm2/lvm2.mk +1
-1- for binary in $(LVM2_SBIN); do echo $$binary; cp -a $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; done + for binary in $(LVM2_SBIN); do echo $$binary; install -m0755 -p $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; done
close.
Correct would have been to use $(INSTALL). Also the for loop doesn't make too much sense, fwiw.
Something like this should do everything that is needed and is not bloated:
$(INSTALL) -D -m0755 $(patsubst %,$(STAGING_DIR)/sbin/%,$(LVM2_SBIN)) $(TARGET_DIR)/sbin/
Remember that this is *make* and not your favourite shell..
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Quoted 7 lines · Nigel Kukard
Quoted 6 lines
Is this patch ok to bump gcc to 4.2.2?
I grep -r'd the buildroot tree and replaced each occurrence manually and removed 4.2.0.
-N
Quoted 10 lines
lvm2/lvm2.mk
Quoted 10 lines
Index:
package/lvm2/lvm2.mk
===================================================================lvm2/lvm2.mk +0
-0@@ -64,7 +64,7 @@$(LVM2_TARGET_SBINS): $(LVM2_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) $(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) installlvm2/lvm2.mk +1
-1- for binary in $(LVM2_SBIN); do echo $$binary; cp -a $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; done + for binary in $(LVM2_SBIN); do echo $$binary; install -m0755 -p $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; done
Bernhard> close.
Bernhard> Correct would have been to use $(INSTALL). Also the for Bernhard> loop doesn't make too much sense, fwiw.
What does this hunk have to do with $SUBJ ?
Signature · 1 line
Bye, Peter Korsgaard
Quoted 25 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Fischer <[email protected]> writes:
Quoted 7 lines · Nigel Kukard
Quoted 6 lines
Is this patch ok to bump gcc to 4.2.2?
I grep -r'd the buildroot tree and replaced each occurrence manually and removed 4.2.0.
-N
Quoted 10 lines
lvm2/lvm2.mk
Quoted 10 lines
Index:
package/lvm2/lvm2.mk
===================================================================lvm2/lvm2.mk +0
-0@@ -64,7 +64,7 @@$(LVM2_TARGET_SBINS): $(LVM2_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) $(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) installlvm2/lvm2.mk +1
-1- for binary in $(LVM2_SBIN); do echo $$binary; cp -a $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; done + for binary in $(LVM2_SBIN); do echo $$binary; install -m0755 -p $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; doneBernhard> close.
Bernhard> Correct would have been to use $(INSTALL). Also the for Bernhard> loop doesn't make too much sense, fwiw.
Quoted 1 line
What does this hunk have to do with $SUBJ ?
No idea, perhaps Nigel would know ;)
It just cought my eye since that's exactly what is just ugly and really, really should be cleaned up. Folks have to graps that we they are writing *makefiles* and not shell-scripts in this context.
whatever. I see Nigel just applied it. Nigel, you should perhaps wait at least a few hours or a day for people to comment, i guess. But then i don't really care.
Quoted 24 lines
Quoted 24 lines
Quoted 7 lines · Nigel Kukard
Quoted 6 lines
Is this patch ok to bump gcc to 4.2.2?
I grep -r'd the buildroot tree and replaced each occurrence manually and removed 4.2.0.
-N
Quoted 10 lines
lvm2/lvm2.mk
Quoted 10 lines
Index:
package/lvm2/lvm2.mk
===================================================================lvm2/lvm2.mk +0
-0@@ -64,7 +64,7 @@$(LVM2_TARGET_SBINS): $(LVM2_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) $(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) installlvm2/lvm2.mk +1
-1- for binary in $(LVM2_SBIN); do echo $$binary; cp -a $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; done + for binary in $(LVM2_SBIN); do echo $$binary; install -m0755 -p $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; doneBernhard> close.
Bernhard> Correct would have been to use $(INSTALL). Also the for Bernhard> loop doesn't make too much sense, fwiw.
Quoted 1 line
Quoted 1 line
What does this hunk have to do with $SUBJ ?
Nothing at all ... I was being a twit again. Just cleaned up and created a nice clean svn repo to apply patches against to commit :)
Quoted 3 lines
I see Nigel just applied it. Nigel, you should perhaps wait at least a few hours or a day for people to comment, i guess. But then i don't really care.
Applied the GCC version change ... just wanted at least one other person to see if it looks ok before committing, went over it a few times and it looked ok, applied it to my svn repo and it got mangled with a lvm2 bugfix I'm busy with. Didn't commit the LVM2 change :)
-N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://busybox.net/lists/buildroot/attachments/20080328/8a06be36/attachment.pgp
Quoted 8 lines
Quoted 7 lines
Is this patch ok to bump gcc to 4.2.2?
I grep -r'd the buildroot tree and replaced each occurrence manually and removed 4.2.0.
-N
Quoted 10 lines
lvm2/lvm2.mk
Quoted 10 lines
Index:
package/lvm2/lvm2.mk
===================================================================lvm2/lvm2.mk +0
-0@@ -64,7 +64,7 @@$(LVM2_TARGET_SBINS): $(LVM2_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) $(MAKE) CC=$(TARGET_CC) -C $(LVM2_DIR) DESTDIR=$(STAGING_DIR) installlvm2/lvm2.mk +1
-1- for binary in $(LVM2_SBIN); do echo $$binary; cp -a $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; done + for binary in $(LVM2_SBIN); do echo $$binary; install -m0755 -p $(STAGING_DIR)/sbin/$$binary $(TARGET_DIR)/sbin; done
Dammit ... I must stop diff'ing multiple changes! or I must stop drinking while diff'ing ;)
I'll commit the gcc bump above.
Quoted 9 lines
close.
Correct would have been to use $(INSTALL). Also the for loop doesn't make too much sense, fwiw.Something like this should do everything that is needed and is not bloated:
$(INSTALL) -D -m0755 $(patsubst %,$(STAGING_DIR)/sbin/%,$(LVM2_SBIN)) $(TARGET_DIR)/sbin/Remember that this is *make* and not your favourite shell..
Thanks, I'll keep that in mind. I've found quite a number of for's in the tree, if I come across them again I'll fix it.
-N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://busybox.net/lists/buildroot/attachments/20080328/0be9b26e/attachment.pgp
Quoted 4 lines · Nigel Kukard
Quoted 4 lines
close.
Correct would have been to use $(INSTALL). Also the for loop doesn't make too much sense, fwiw.
Quoted 8 lines
Quoted 5 lines
Something like this should do everything that is needed and is not bloated:
$(INSTALL) -D -m0755 $(patsubst %,$(STAGING_DIR)/sbin/%,$(LVM2_SBIN)) $(TARGET_DIR)/sbin/Remember that this is *make* and not your favourite shell..
Thanks, I'll keep that in mind. I've found quite a number of for's in the tree, if I come across them again I'll fix it.
Fair enough, but it would be nicer if you would take it upon you to fix them in one sweep and once and for all. Every such occurance should be fixed and no new occurance (or touch thereof) should be accepted into the tree.
Same with all those (="??%?) touch /the/make_target. There is $@ and it should be used for the sake of cleanlyness. I could go on with another handful of such cruft but you get the idea..