summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-08-09 17:51:29 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-13 23:06:01 +0100
commitbef0aabeabec03823bbe4e14381ea0f370745b9e (patch)
tree3f8fb045c03e1bc1ca3968cb41f2b0ed851291db /meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch
parent5bac0df20117984cb5c9a47c9934c29fa28e972f (diff)
downloadpoky-bef0aabeabec03823bbe4e14381ea0f370745b9e.tar.gz
rpm: Change references from RPM_VENDOR_POKY to RPM_VENDOR_OE
Change the #define references to match RPM_VENDOR_OE. (From OE-Core rev: a84ecc5ad158a7529a904785de25ebfedf5767a7) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch')
-rw-r--r--meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch22
1 files changed, 11 insertions, 11 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch b/meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch
index 8a9e712acf..f4e42287da 100644
--- a/meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch
+++ b/meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch
@@ -20,7 +20,7 @@ Index: rpm-5.4.9/lib/psm.c
20 int xx; 20 int xx;
21 int i; 21 int i;
22 22
23+#ifdef RPM_VENDOR_POKY 23+#ifdef RPM_VENDOR_OE
24+ const char * scriptletWrapper = rpmExpand("%{?_cross_scriptlet_wrapper}", NULL); 24+ const char * scriptletWrapper = rpmExpand("%{?_cross_scriptlet_wrapper}", NULL);
25+#endif 25+#endif
26+ 26+
@@ -41,7 +41,7 @@ Index: rpm-5.4.9/lib/psm.c
41+ argc = 0; 41+ argc = 0;
42+ } 42+ }
43+ 43+
44+#ifdef RPM_VENDOR_POKY 44+#ifdef RPM_VENDOR_OE
45+ if (scriptletWrapper && *scriptletWrapper) { 45+ if (scriptletWrapper && *scriptletWrapper) {
46+ argv[argc++] = scriptletWrapper; 46+ argv[argc++] = scriptletWrapper;
47+ argv[argc] = rpmtsRootDir(ts); 47+ argv[argc] = rpmtsRootDir(ts);
@@ -69,7 +69,7 @@ Index: rpm-5.4.9/lib/psm.c
69 if (rpmIsDebug() && 69 if (rpmIsDebug() &&
70- (!strcmp(argv[0], "/bin/sh") || !strcmp(argv[0], "/bin/bash"))) 70- (!strcmp(argv[0], "/bin/sh") || !strcmp(argv[0], "/bin/bash")))
71+ (!strcmp(argv[0], "/bin/sh") || !strcmp(argv[0], "/bin/bash")) 71+ (!strcmp(argv[0], "/bin/sh") || !strcmp(argv[0], "/bin/bash"))
72+#ifdef RPM_VENDOR_POKY 72+#ifdef RPM_VENDOR_OE
73+ || (scriptletWrapper && *scriptletWrapper && !strcmp(argv[1], "/bin/sh")) 73+ || (scriptletWrapper && *scriptletWrapper && !strcmp(argv[1], "/bin/sh"))
74+ || (scriptletWrapper && *scriptletWrapper && !strcmp(argv[1], "/bin/bash")) 74+ || (scriptletWrapper && *scriptletWrapper && !strcmp(argv[1], "/bin/bash"))
75+#endif 75+#endif
@@ -81,7 +81,7 @@ Index: rpm-5.4.9/lib/psm.c
81 81
82 { const char * rootDir = rpmtsRootDir(ts); 82 { const char * rootDir = rpmtsRootDir(ts);
83 if (!rpmtsChrootDone(ts) && rootDir != NULL && 83 if (!rpmtsChrootDone(ts) && rootDir != NULL &&
84+#ifdef RPM_VENDOR_POKY 84+#ifdef RPM_VENDOR_OE
85+ !(scriptletWrapper && *scriptletWrapper) && 85+ !(scriptletWrapper && *scriptletWrapper) &&
86+#endif 86+#endif
87 !(rootDir[0] == '/' && rootDir[1] == '\0')) 87 !(rootDir[0] == '/' && rootDir[1] == '\0'))
@@ -90,7 +90,7 @@ Index: rpm-5.4.9/lib/psm.c
90 xx = Chroot(rootDir); 90 xx = Chroot(rootDir);
91 /*@=modobserver@*/ 91 /*@=modobserver@*/
92 } 92 }
93+#ifdef RPM_VENDOR_POKY 93+#ifdef RPM_VENDOR_OE
94+ if (!rpmtsChrootDone(ts) && rootDir != NULL && 94+ if (!rpmtsChrootDone(ts) && rootDir != NULL &&
95+ (scriptletWrapper && *scriptletWrapper) && 95+ (scriptletWrapper && *scriptletWrapper) &&
96+ !(rootDir[0] == '/' && rootDir[1] == '\0')) 96+ !(rootDir[0] == '/' && rootDir[1] == '\0'))
@@ -105,7 +105,7 @@ Index: rpm-5.4.9/lib/psm.c
105 /* XXX running %verifyscript/%sanitycheck doesn't have psm->te */ 105 /* XXX running %verifyscript/%sanitycheck doesn't have psm->te */
106 { rpmtxn _parent = (psm && psm->te ? psm->te->txn : NULL); 106 { rpmtxn _parent = (psm && psm->te ? psm->te->txn : NULL);
107+ 107+
108+#ifdef RPM_VENDOR_POKY 108+#ifdef RPM_VENDOR_OE
109+ const char * scriptletWrapper = rpmExpand("%{?_cross_scriptlet_wrapper}", NULL); 109+ const char * scriptletWrapper = rpmExpand("%{?_cross_scriptlet_wrapper}", NULL);
110+ if (scriptletWrapper && *scriptletWrapper) 110+ if (scriptletWrapper && *scriptletWrapper)
111+ rc = rpmpsmNext(psm, PSM_CHROOT_OUT); 111+ rc = rpmpsmNext(psm, PSM_CHROOT_OUT);
@@ -118,7 +118,7 @@ Index: rpm-5.4.9/lib/psm.c
118 else 118 else
119 xx = rpmtxnCommit(rpmtsGetRdb(ts)->db_txn); 119 xx = rpmtxnCommit(rpmtsGetRdb(ts)->db_txn);
120 rpmtsGetRdb(ts)->db_txn = NULL; 120 rpmtsGetRdb(ts)->db_txn = NULL;
121+#ifdef RPM_VENDOR_POKY 121+#ifdef RPM_VENDOR_OE
122+ if (scriptletWrapper && *scriptletWrapper) 122+ if (scriptletWrapper && *scriptletWrapper)
123+ rc = rpmpsmNext(psm, PSM_CHROOT_IN); 123+ rc = rpmpsmNext(psm, PSM_CHROOT_IN);
124+#endif 124+#endif
@@ -126,13 +126,13 @@ Index: rpm-5.4.9/lib/psm.c
126 case PSM_TRIGGERS: 126 case PSM_TRIGGERS:
127 /* Run triggers in other package(s) this package sets off. */ 127 /* Run triggers in other package(s) this package sets off. */
128 if (rpmtsFlags(ts) & RPMTRANS_FLAG_TEST) break; 128 if (rpmtsFlags(ts) & RPMTRANS_FLAG_TEST) break;
129+#ifdef RPM_VENDOR_POKY 129+#ifdef RPM_VENDOR_OE
130+ const char * scriptletWrapper = rpmExpand("%{?_cross_scriptlet_wrapper}", NULL); 130+ const char * scriptletWrapper = rpmExpand("%{?_cross_scriptlet_wrapper}", NULL);
131+ if (scriptletWrapper && *scriptletWrapper) 131+ if (scriptletWrapper && *scriptletWrapper)
132+ rc = rpmpsmNext(psm, PSM_CHROOT_OUT); 132+ rc = rpmpsmNext(psm, PSM_CHROOT_OUT);
133+#endif 133+#endif
134 rc = runTriggers(psm); 134 rc = runTriggers(psm);
135+#ifdef RPM_VENDOR_POKY 135+#ifdef RPM_VENDOR_OE
136+ if (scriptletWrapper && *scriptletWrapper) 136+ if (scriptletWrapper && *scriptletWrapper)
137+ rc = rpmpsmNext(psm, PSM_CHROOT_IN); 137+ rc = rpmpsmNext(psm, PSM_CHROOT_IN);
138+#endif 138+#endif
@@ -143,14 +143,14 @@ Index: rpm-5.4.9/lib/psm.c
143 F_SET(psm, GOTTRIGGERS); 143 F_SET(psm, GOTTRIGGERS);
144 } 144 }
145 if (psm->triggers != NULL) 145 if (psm->triggers != NULL)
146+#ifdef RPM_VENDOR_POKY 146+#ifdef RPM_VENDOR_OE
147+ { 147+ {
148+ const char * scriptletWrapper = rpmExpand("%{?_cross_scriptlet_wrapper}", NULL); 148+ const char * scriptletWrapper = rpmExpand("%{?_cross_scriptlet_wrapper}", NULL);
149+ if (scriptletWrapper && *scriptletWrapper) 149+ if (scriptletWrapper && *scriptletWrapper)
150+ rc = rpmpsmNext(psm, PSM_CHROOT_OUT); 150+ rc = rpmpsmNext(psm, PSM_CHROOT_OUT);
151+#endif 151+#endif
152 rc = runImmedTriggers(psm); 152 rc = runImmedTriggers(psm);
153+#ifdef RPM_VENDOR_POKY 153+#ifdef RPM_VENDOR_OE
154+ if (scriptletWrapper && *scriptletWrapper) 154+ if (scriptletWrapper && *scriptletWrapper)
155+ rc = rpmpsmNext(psm, PSM_CHROOT_IN); 155+ rc = rpmpsmNext(psm, PSM_CHROOT_IN);
156+ } 156+ }