summaryrefslogtreecommitdiff
path: root/package/system/opkg/patches
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-08-28 22:56:16 +0200
committerJo-Philipp Wich <jo@mein.io>2016-08-28 23:03:13 +0200
commitd0b88b606754cccb39b536dc921af268a1ef3ee8 (patch)
treebd0a01669bc91e9b654845f3b0a579be4167a87f /package/system/opkg/patches
parent2ca0cdb7bfa7f8a416c513c95c4194bde91e7026 (diff)
downloadmtk-20170518-d0b88b606754cccb39b536dc921af268a1ef3ee8.zip
mtk-20170518-d0b88b606754cccb39b536dc921af268a1ef3ee8.tar.gz
mtk-20170518-d0b88b606754cccb39b536dc921af268a1ef3ee8.tar.bz2
Revert "opkg: disable the use of vfork for the host build"
This reverts commit 02e3c718e9ad0c14aa3cf359ba2a4763e81df805. Currently the vfork() code path in opkg is broken and relies on unsupported ftello() / fseeko() operations on pipes - we need to restructure the code before we can reconsider this approach. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/system/opkg/patches')
-rw-r--r--package/system/opkg/patches/280-use-vfork.patch19
1 files changed, 7 insertions, 12 deletions
diff --git a/package/system/opkg/patches/280-use-vfork.patch b/package/system/opkg/patches/280-use-vfork.patch
index fc6058a..1c46f52 100644
--- a/package/system/opkg/patches/280-use-vfork.patch
+++ b/package/system/opkg/patches/280-use-vfork.patch
@@ -1,25 +1,20 @@
--- a/libbb/gz_open.c
+++ b/libbb/gz_open.c
-@@ -29,7 +29,12 @@
+@@ -29,7 +29,7 @@
#include <unistd.h>
#include "libbb.h"
-+#ifdef OPKG_USE_VFORK
-+static const int gz_use_vfork = OPKG_USE_VFORK;
-+#else
- static int gz_use_vfork;
-+#endif
-+
+-static int gz_use_vfork;
++static const int gz_use_vfork = 1;
FILE *
gz_open(FILE *compressed_file, int *pid)
-@@ -38,7 +43,9 @@ gz_open(FILE *compressed_file, int *pid)
+@@ -38,8 +38,6 @@ gz_open(FILE *compressed_file, int *pid)
off_t floc;
int cfile = -1;
-+#ifndef OPKG_USE_VFORK
- gz_use_vfork = (getenv("OPKG_USE_VFORK") != NULL);
-+#endif
-
+- gz_use_vfork = (getenv("OPKG_USE_VFORK") != NULL);
+-
if (gz_use_vfork) {
/* Create a new file descriptor for the input stream
+ * (it *must* be associated with a file), and lseek()