Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nigel Kukard <nkukard@lbsd.net>
To: buildroot@busybox.net
Subject: [Buildroot] gcc 4.2.2 patch
Date: Fri, 28 Mar 2008 21:03:42 +0000	[thread overview]
Message-ID: <1206738222.3224.78.camel@nigel-x60> (raw)
In-Reply-To: <20080328204136.GN1783@mx.loc>


> >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
> >===================================================================
> >--- package/lvm2/lvm2.mk	(revision 21539)
> >+++ package/lvm2/lvm2.mk	(working copy)
> >@@ -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
> >-	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.

> 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 

  parent reply	other threads:[~2008-03-28 21:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-28 20:22 [Buildroot] gcc 4.2.2 patch Nigel Kukard
2008-03-28 20:41 ` Bernhard Fischer
2008-03-28 20:59   ` Peter Korsgaard
2008-03-28 21:10     ` Bernhard Fischer
2008-03-28 21:16       ` Nigel Kukard
2008-03-28 21:03   ` Nigel Kukard [this message]
2008-03-28 21:13     ` Bernhard Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1206738222.3224.78.camel@nigel-x60 \
    --to=nkukard@lbsd.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox