[oe-commits] Khem Raj : coreutils-6.0: Make the install utility to honor STRIP environment variable
GIT User account
git at amethyst.openembedded.net
Thu Mar 5 00:16:49 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: c2f21de4041e962705e2e31dc7c50fed7877547a
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c2f21de4041e962705e2e31dc7c50fed7877547a
Author: Khem Raj <raj.khem at gmail.com>
Date: Wed Mar 4 16:14:27 2009 -0800
coreutils-6.0: Make the install utility to honor STRIP environment variable
---
.../coreutils-install-use-STRIP.patch | 29 ++++++++++++++++++++
packages/coreutils/coreutils_6.0.bb | 3 +-
2 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/packages/coreutils/coreutils-6.0/coreutils-install-use-STRIP.patch b/packages/coreutils/coreutils-6.0/coreutils-install-use-STRIP.patch
new file mode 100644
index 0000000..1af9fb9
--- /dev/null
+++ b/packages/coreutils/coreutils-6.0/coreutils-install-use-STRIP.patch
@@ -0,0 +1,29 @@
+Index: coreutils-6.0/src/install.c
+===================================================================
+--- coreutils-6.0.orig/src/install.c 2009-03-04 15:37:45.000000000 -0800
++++ coreutils-6.0/src/install.c 2009-03-04 15:38:57.000000000 -0800
+@@ -526,7 +526,14 @@
+ strip (char const *name)
+ {
+ int status;
+- pid_t pid = fork ();
++ pid_t pid;
++ char *strip_name;
++
++ strip_name = getenv ("STRIP");
++ if (strip_name == NULL)
++ strip_name = "strip";
++
++ pid = fork ();
+
+ switch (pid)
+ {
+@@ -534,7 +541,7 @@
+ error (EXIT_FAILURE, errno, _("fork system call failed"));
+ break;
+ case 0: /* Child. */
+- execlp ("strip", "strip", name, NULL);
++ execlp (strip_name, "strip", name, NULL);
+ error (EXIT_FAILURE, errno, _("cannot run strip"));
+ break;
+ default: /* Parent. */
diff --git a/packages/coreutils/coreutils_6.0.bb b/packages/coreutils/coreutils_6.0.bb
index 4d4c049..d0d082b 100644
--- a/packages/coreutils/coreutils_6.0.bb
+++ b/packages/coreutils/coreutils_6.0.bb
@@ -1,12 +1,13 @@
require coreutils.inc
-PR = "r2"
+PR = "r3"
SRC_URI = "\
ftp://alpha.gnu.org/gnu/coreutils/coreutils-${PV}.tar.bz2 \
file://man.patch;patch=1 \
file://oe-old-tools.patch;patch=1 \
file://futimens.patch;patch=1 \
+ file://coreutils-install-use-STRIP.patch;patch=1 \
file://onceonly.m4 \
"
More information about the Openembedded-commits
mailing list