summaryrefslogtreecommitdiffstats
path: root/patches/ipkg-0.99.163
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2008-03-15 00:02:43 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2008-03-15 00:02:43 +0000
commitae221529d982e8ddd12cbddf5b849ecb9d42fb20 (patch)
tree4e550317aace90c03a99cd3f254614a8bd25b851 /patches/ipkg-0.99.163
parentb309c7e0f72e48a5e3c078a5ca1d5dcd75bfba91 (diff)
downloadptxdist-ae221529d982e8ddd12cbddf5b849ecb9d42fb20.tar.gz
ptxdist-ae221529d982e8ddd12cbddf5b849ecb9d42fb20.tar.xz
* ipkg: backported patch for offlineroot
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7843 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches/ipkg-0.99.163')
-rw-r--r--patches/ipkg-0.99.163/generic/ipkg-0.99.163-scripts-with-offlineroot.diff28
-rw-r--r--patches/ipkg-0.99.163/generic/series2
2 files changed, 30 insertions, 0 deletions
diff --git a/patches/ipkg-0.99.163/generic/ipkg-0.99.163-scripts-with-offlineroot.diff b/patches/ipkg-0.99.163/generic/ipkg-0.99.163-scripts-with-offlineroot.diff
new file mode 100644
index 000000000..09921dfae
--- /dev/null
+++ b/patches/ipkg-0.99.163/generic/ipkg-0.99.163-scripts-with-offlineroot.diff
@@ -0,0 +1,28 @@
+Subject: use scripts with offlineroot
+
+The ipkg offline root mechanism avoids that the pre/post scripts are
+being run. This patch re-enables the scripts; it makes it possible that
+scripts can decide themselfs if they want to do something if DESTDIR is
+set.
+
+Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de
+
+---
+
+Index: pkg.c
+===================================================================
+--- pkg.c.orig
++++ pkg.c
+@@ -1443,12 +1443,6 @@ int pkg_run_script(ipkg_conf_t *conf, pk
+ return 0;
+ }
+
+- if (conf->offline_root) {
+- fprintf(stderr, "(offline root mode: not running %s.%s)\n", pkg->name, script);
+- free(path);
+- return 0;
+- }
+-
+ sprintf_alloc(&cmd, "%s %s", path, args);
+ free(path);
+
diff --git a/patches/ipkg-0.99.163/generic/series b/patches/ipkg-0.99.163/generic/series
new file mode 100644
index 000000000..e44d72abe
--- /dev/null
+++ b/patches/ipkg-0.99.163/generic/series
@@ -0,0 +1,2 @@
+ipkg-0.99.163-scripts-with-offlineroot.diff -p0
+