summaryrefslogtreecommitdiff
path: root/package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch
diff options
context:
space:
mode:
authorYegor Yefremov <yegor_sub1@visionsystems.de>2011-07-22 16:53:12 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-07-27 09:41:44 +0200
commit6378cac4e633600d1e2d6cdcd729049fda090fb3 (patch)
treefe0bb1592e2e7bde3b2fee8b4d00b484c90607dd /package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch
parent04d0689cc419c0181ddf0f6d4089df97699e9ee3 (diff)
util-linux: convert to autotarget and bump to 2.19.1
[Peter: fix deps, restructure, add unshare] Signed-off-by: Chih-Min Chao <cmchao@gmail.com> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch')
-rw-r--r--package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch b/package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch
deleted file mode 100644
index b115c410e..000000000
--- a/package/util-linux/util-linux-2.13-pre17-hardcode-a-out-constants.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-Hardcode a.out related constants
-
-The OMAGIC, NMAGIC and ZMAGIC constants, related to the legacy a.out
-binary format, are no longer available in the headers of all
-architectures, due to this binary format being deprecated. For that
-reason, util-linux fails to build.
-
-We therefore take the approach used in newer versions of
-util-linux-ng: hardcoding those values. See
-http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff;h=e9eb4dad0ece03914f67f6d1ded74cfbbe694ba4
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
- text-utils/more.c | 7 +++----
- 1 file changed, 3 insertions(+), 4 deletions(-)
-
-Index: util-linux-2.13-pre7/text-utils/more.c
-===================================================================
---- util-linux-2.13-pre7.orig/text-utils/more.c
-+++ util-linux-2.13-pre7/text-utils/more.c
-@@ -53,7 +53,6 @@
- #include <sys/stat.h>
- #include <sys/file.h>
- #include <sys/wait.h>
--#include <a.out.h>
- #include <locale.h>
- #include "xstrncpy.h"
- #include "nls.h"
-@@ -504,9 +503,9 @@
-
- if (fread(twobytes, 2, 1, f) == 1) {
- switch(twobytes[0] + (twobytes[1]<<8)) {
-- case OMAGIC: /* 0407 */
-- case NMAGIC: /* 0410 */
-- case ZMAGIC: /* 0413 */
-+ case 0407: /* a.out obj */
-+ case 0410: /* a.out exec */
-+ case 0413: /* a.out demand exec */
- case 0405:
- case 0411:
- case 0177545: