summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-09-14 11:37:09 +0000
committerRoy Marples <uberlord@gentoo.org>2007-09-14 11:37:09 +0000
commit1135e57dc73938c1765a6ca01ed6f8d8f49ce552 (patch)
tree169ef93f2d4779101de3734f4466a84e3ee13bbd
parentstable x86, security bug 190104; correct version this time (diff)
downloadhistorical-1135e57dc73938c1765a6ca01ed6f8d8f49ce552.tar.gz
historical-1135e57dc73938c1765a6ca01ed6f8d8f49ce552.tar.bz2
historical-1135e57dc73938c1765a6ca01ed6f8d8f49ce552.zip
Add ELT patches so that old install-sh files stand a better chance of working on non Linux Systems so that we don't have to regenerate them on a per ebuild basis.
-rw-r--r--eclass/ELT-patches/install-sh/1.511
-rw-r--r--eclass/ELT-patches/install-sh/1.5.412
2 files changed, 23 insertions, 0 deletions
diff --git a/eclass/ELT-patches/install-sh/1.5 b/eclass/ELT-patches/install-sh/1.5
new file mode 100644
index 000000000000..06d0f1431a18
--- /dev/null
+++ b/eclass/ELT-patches/install-sh/1.5
@@ -0,0 +1,11 @@
+--- install-sh 2007-07-04 14:36:49 +0100
++++ install-sh 2007-09-14 11:00:41 +0100
+@@ -192,7 +192,7 @@
+
+ if [ x"$dir_arg" != x ]
+ then
+- $doit $instcmd $dst &&
++ { test -d $dst || $doit $instcmd $dst; } &&
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
diff --git a/eclass/ELT-patches/install-sh/1.5.4 b/eclass/ELT-patches/install-sh/1.5.4
new file mode 100644
index 000000000000..2bb6af71ef4d
--- /dev/null
+++ b/eclass/ELT-patches/install-sh/1.5.4
@@ -0,0 +1,12 @@
+diff -ur install-sh install-sh
+--- install-sh 2006-03-25 20:04:46 +0000
++++ install-sh 2007-09-14 10:53:29 +0100
+@@ -246,7 +246,7 @@
+ fi
+
+ if test -n "$dir_arg"; then
+- $doit $mkdircmd "$dst" \
++ { test -d "$dst" || $doit $mkdircmd "$dst"; } \
+ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
+ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
+ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \