All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RFC/PATCH 1/3] fix buildroot sed handling on Mac OS X
@ 2007-02-23 16:10 Heikki Lindholm
  0 siblings, 0 replies; 6+ messages in thread
From: Heikki Lindholm @ 2007-02-23 16:10 UTC (permalink / raw)
  To: buildroot

Improve the checking of sed by adding some common GNU sed installation 
names (gsed/gnused), checking for a basic OS X sed feature in command 
line option handling, checking the actual result of the sed run against 
the expected result, and placing common code for the check under 
toolchain/dependencies/.

-- Heikki Lindholm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildroot-070223-sed-check.patch
Url: http://busybox.net/lists/buildroot/attachments/20070223/cb11255e/attachment.pot 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [RFC/PATCH 1/3] fix buildroot sed handling on Mac OS X
  2007-03-09  8:35     ` Bernhard Fischer
@ 2007-03-09 19:28       ` Heikki Lindholm
  0 siblings, 0 replies; 6+ messages in thread
From: Heikki Lindholm @ 2007-03-09 19:28 UTC (permalink / raw)
  To: buildroot

Bernhard Fischer kirjoitti:
> On Thu, Mar 08, 2007 at 11:36:22PM +0200, Heikki Lindholm wrote:
> 
>>Bernhard Fischer kirjoitti:
>>
>>>On Sun, Feb 25, 2007 at 01:22:38PM +0200, Heikki Lindholm wrote:
>>>
>>>
>>>>Improve the checking of sed by adding some common GNU sed installation
>>>>names (gsed/gnused), checking for a basic OS X sed feature in command
>>>>line option handling, checking the actual result of the sed run against
>>>>the expected result, and placing common code for the check under
>>>>toolchain/dependencies/.
> 
> 
> Applied. Will most likely be moved from diff to cmp since we already use
> cmp (IIRC, didn't look). Care to verify if cmp is already used and if
> so, use cmp instead?

I found no cmp usage in buildroot. How about just using the shell as in 
the attached patch?

-- Heikki Lindholm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildroot-070309-sed-diff.patch
Url: http://busybox.net/lists/buildroot/attachments/20070309/68d32a7a/attachment.pot 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [RFC/PATCH 1/3] fix buildroot sed handling on Mac OS X
  2007-03-08 21:36   ` Heikki Lindholm
@ 2007-03-09  8:35     ` Bernhard Fischer
  2007-03-09 19:28       ` Heikki Lindholm
  0 siblings, 1 reply; 6+ messages in thread
From: Bernhard Fischer @ 2007-03-09  8:35 UTC (permalink / raw)
  To: buildroot

On Thu, Mar 08, 2007 at 11:36:22PM +0200, Heikki Lindholm wrote:
>Bernhard Fischer kirjoitti:
>>On Sun, Feb 25, 2007 at 01:22:38PM +0200, Heikki Lindholm wrote:
>>
>>>Improve the checking of sed by adding some common GNU sed installation
>>>names (gsed/gnused), checking for a basic OS X sed feature in command
>>>line option handling, checking the actual result of the sed run against
>>>the expected result, and placing common code for the check under
>>>toolchain/dependencies/.

Applied. Will most likely be moved from diff to cmp since we already use
cmp (IIRC, didn't look). Care to verify if cmp is already used and if
so, use cmp instead?

TIA,

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [RFC/PATCH 1/3] fix buildroot sed handling on Mac OS X
  2007-03-08 16:35 ` Bernhard Fischer
@ 2007-03-08 21:36   ` Heikki Lindholm
  2007-03-09  8:35     ` Bernhard Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Heikki Lindholm @ 2007-03-08 21:36 UTC (permalink / raw)
  To: buildroot

Bernhard Fischer kirjoitti:
> On Sun, Feb 25, 2007 at 01:22:38PM +0200, Heikki Lindholm wrote:
> 
>>Improve the checking of sed by adding some common GNU sed installation
>>names (gsed/gnused), checking for a basic OS X sed feature in command
>>line option handling, checking the actual result of the sed run against
>>the expected result, and placing common code for the check under
>>toolchain/dependencies/.
>>
>>-- Heikki Lindholm
>>
> 
> 
>>diff -Nru buildroot/package/sed/sedcheck.sh buildroot-devel/package/sed/sedcheck.sh
>>--- buildroot/package/sed/sedcheck.sh	2007-02-22 10:50:29.000000000 +0200
>>+++ buildroot-devel/package/sed/sedcheck.sh	2007-02-23 17:39:04.000000000 +0200
>>@@ -2,24 +2,10 @@
>>
>># Make sure the host sed supports '-i' (in-place).
>># If it doesn't, we'll build and use our own.
>>+SED=$(toolchain/dependencies/check-host-sed.sh)
>>
>>-if test -x /usr/bin/sed ; then
>>-	SED="/usr/bin/sed"
>>-else
>>-	if test -x /bin/sed ; then
>>-		SED="/bin/sed"
>>-	else
>>-		SED="sed"
>>-	fi
>>-fi
>>-
>>-echo "HELLO" > .sedtest
>>-$SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1
> 
> 
> Why don't you mv check-host-sed.sh here instead and use it in
> dependencies.sh? I'd prefer it this way..

Well. I tossed a coin on the placement. I thought checking the host sed 
would belong better to something build-framework-ish than the sed 
package. I'll do a respin of this if you like.

-- Heikki Lindholm

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [RFC/PATCH 1/3] fix buildroot sed handling on Mac OS X
  2007-02-25 11:22 Heikki Lindholm
@ 2007-03-08 16:35 ` Bernhard Fischer
  2007-03-08 21:36   ` Heikki Lindholm
  0 siblings, 1 reply; 6+ messages in thread
From: Bernhard Fischer @ 2007-03-08 16:35 UTC (permalink / raw)
  To: buildroot

On Sun, Feb 25, 2007 at 01:22:38PM +0200, Heikki Lindholm wrote:
>Improve the checking of sed by adding some common GNU sed installation
>names (gsed/gnused), checking for a basic OS X sed feature in command
>line option handling, checking the actual result of the sed run against
>the expected result, and placing common code for the check under
>toolchain/dependencies/.
>
>-- Heikki Lindholm
>

>diff -Nru buildroot/package/sed/sedcheck.sh buildroot-devel/package/sed/sedcheck.sh
>--- buildroot/package/sed/sedcheck.sh	2007-02-22 10:50:29.000000000 +0200
>+++ buildroot-devel/package/sed/sedcheck.sh	2007-02-23 17:39:04.000000000 +0200
>@@ -2,24 +2,10 @@
> 
> # Make sure the host sed supports '-i' (in-place).
> # If it doesn't, we'll build and use our own.
>+SED=$(toolchain/dependencies/check-host-sed.sh)
> 
>-if test -x /usr/bin/sed ; then
>-	SED="/usr/bin/sed"
>-else
>-	if test -x /bin/sed ; then
>-		SED="/bin/sed"
>-	else
>-		SED="sed"
>-	fi
>-fi
>-
>-echo "HELLO" > .sedtest
>-$SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1

Why don't you mv check-host-sed.sh here instead and use it in
dependencies.sh? I'd prefer it this way..

cheers,

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [RFC/PATCH 1/3] fix buildroot sed handling on Mac OS X
@ 2007-02-25 11:22 Heikki Lindholm
  2007-03-08 16:35 ` Bernhard Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Heikki Lindholm @ 2007-02-25 11:22 UTC (permalink / raw)
  To: buildroot

Improve the checking of sed by adding some common GNU sed installation
names (gsed/gnused), checking for a basic OS X sed feature in command
line option handling, checking the actual result of the sed run against
the expected result, and placing common code for the check under
toolchain/dependencies/.

-- Heikki Lindholm

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildroot-070225-sed-check.patch
Url: http://busybox.net/lists/buildroot/attachments/20070225/a7aa3d03/attachment.pot 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-09 19:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-23 16:10 [Buildroot] [RFC/PATCH 1/3] fix buildroot sed handling on Mac OS X Heikki Lindholm
2007-02-25 11:22 Heikki Lindholm
2007-03-08 16:35 ` Bernhard Fischer
2007-03-08 21:36   ` Heikki Lindholm
2007-03-09  8:35     ` Bernhard Fischer
2007-03-09 19:28       ` Heikki Lindholm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.