summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch')
-rw-r--r--meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch86
1 files changed, 86 insertions, 0 deletions
diff --git a/meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch b/meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch
new file mode 100644
index 0000000000..b402587615
--- /dev/null
+++ b/meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch
@@ -0,0 +1,86 @@
1From a9f3bd754e9e269099cf7a2c931c632fcc12bd8a Mon Sep 17 00:00:00 2001
2From: Paul Gortmaker <paul.gortmaker@windriver.com>
3Date: Fri, 13 Jun 2014 13:42:12 -0400
4Subject: [PATCH] extension: Add $(DESTDIR) prefix to remaining pkgextensiondir
5 instances
6
7Commit 976f73ab03569bb836aa5c949be1c1cc973b2d2e ["Use $(DESTDIR) in
8extension/Makefile.am when removing .la files."] fixed an issue
9that manifested itself as follows when cross compiling:
10
11make[4]: Entering directory 'gawk/4.1.1-r0/build/extension'
12for i in filefuncs.la fnmatch.la fork.la inplace.la ordchr.la readdir.la readfi
13le.la revoutput.la revtwoway.la rwarray.la testext.la time.la ; do \
14 rm -f /usr/lib/gawk/$i ; \
15done
16rm: cannot remove '/usr/lib/gawk/filefuncs.la': Permission denied
17rm: cannot remove '/usr/lib/gawk/fnmatch.la': Permission denied
18rm: cannot remove '/usr/lib/gawk/fork.la': Permission denied
19rm: cannot remove '/usr/lib/gawk/inplace.la': Permission denied
20rm: cannot remove '/usr/lib/gawk/ordchr.la': Permission denied
21rm: cannot remove '/usr/lib/gawk/readdir.la': Permission denied
22rm: cannot remove '/usr/lib/gawk/readfile.la': Permission denied
23rm: cannot remove '/usr/lib/gawk/revoutput.la': Permission denied
24rm: cannot remove '/usr/lib/gawk/revtwoway.la': Permission denied
25rm: cannot remove '/usr/lib/gawk/rwarray.la': Permission denied
26rm: cannot remove '/usr/lib/gawk/testext.la': Permission denied
27rm: cannot remove '/usr/lib/gawk/time.la': Permission denied
28Makefile:1235: recipe for target 'install-data-hook' failed
29
30The problem only manifests itself on hosts where the above files
31are already present; for if they are absent then the rm -f does
32not fail with -EPERM. The fix in 976f73ab0356 ensured that DESTDIR
33was used for the prefix so that it didn't try to delete host files.
34
35However there still remains less used instances of where it is used
36w/o $(DESTDIR) that may still cause similar breakage in the future.
37Here we apply the same change to them.
38
39Upstream-Status: Submitted [http://lists.gnu.org/archive/html/bug-gawk/2014-06/index.html]
40Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
41---
42
43diff --git a/extension/ChangeLog b/extension/ChangeLog
44index f3a1c7a81e7d..b87ac372edc6 100644
45--- a/extension/ChangeLog
46+++ b/extension/ChangeLog
47@@ -1,3 +1,10 @@
48+2014-06-13 Paul Gortmaker <paul.gortmaker@windriver.com>
49+ * Makefile.am (uninstall-so): Came across below bug while cross
50+ compiling, and changed both install-data-hook and uninstall-so
51+ to use $(DESTDIR) on v4.1.1 before seeing most of the fix in
52+ gawk-4.1.1-3-g976f73ab0356; here we ensure uninstall-so also
53+ uses the $(DESTDIR) prefix on its use of pkgextensiondir.
54+
55 2014-04-11 Arnold D. Robbins <arnold@skeeve.com>
56
57 * Makefile.am (install-data-hook): Use $(DESTDIR) when removing
58diff --git a/extension/Makefile.am b/extension/Makefile.am
59index 11826e2b315e..b6beaee3fb47 100644
60--- a/extension/Makefile.am
61+++ b/extension/Makefile.am
62@@ -105,7 +105,7 @@ install-data-hook:
63
64 # Keep the uninstall check working:
65 uninstall-so:
66- $(RM) $(pkgextensiondir)/*.so
67+ $(RM) $(DESTDIR)$(pkgextensiondir)/*.so
68
69 uninstall-recursive: uninstall-so
70
71diff --git a/extension/Makefile.in b/extension/Makefile.in
72index d81b16960935..294e4f887812 100644
73--- a/extension/Makefile.in
74+++ b/extension/Makefile.in
75@@ -1236,7 +1236,7 @@ install-data-hook:
76
77 # Keep the uninstall check working:
78 uninstall-so:
79- $(RM) $(pkgextensiondir)/*.so
80+ $(RM) $(DESTDIR)$(pkgextensiondir)/*.so
81
82 uninstall-recursive: uninstall-so
83
84--
851.9.1
86