Fix build on NetBSD/amd64. Not MAKE_JOBS_SAFE.diff -r1.19 -r1.20 pkgsrc/devel/elfsh/Makefile
(joerg)
@@ -1,29 +1,30 @@ | @@ -1,29 +1,30 @@ | |||
1 | # $NetBSD: Makefile,v 1.19 2009/05/20 00:58:12 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.20 2010/03/17 15:32:18 joerg Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | VERS= 0.51b3 | 4 | VERS= 0.51b3 | |
5 | DISTNAME= elfsh-${VERS}-portable | 5 | DISTNAME= elfsh-${VERS}-portable | |
6 | PKGNAME= elfsh-${VERS} | 6 | PKGNAME= elfsh-${VERS} | |
7 | PKGREVISION= 3 | 7 | PKGREVISION= 3 | |
8 | CATEGORIES= devel | 8 | CATEGORIES= devel | |
9 | MASTER_SITES= http://elfsh.asgardlabs.org/files/ | 9 | MASTER_SITES= http://elfsh.asgardlabs.org/files/ | |
10 | EXTRACT_SUFX= .tgz | 10 | EXTRACT_SUFX= .tgz | |
11 | 11 | |||
12 | MAINTAINER= pkgsrc-users@NetBSD.org | 12 | MAINTAINER= pkgsrc-users@NetBSD.org | |
13 | HOMEPAGE= http://elfsh.segfault.net/ | 13 | HOMEPAGE= http://elfsh.segfault.net/ | |
14 | COMMENT= ELF format exploration shell | 14 | COMMENT= ELF format exploration shell | |
15 | 15 | |||
16 | PKG_DESTDIR_SUPPORT= user-destdir | 16 | PKG_DESTDIR_SUPPORT= user-destdir | |
17 | MAKE_JOBS_SAFE= no | |||
17 | 18 | |||
18 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | 19 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | |
19 | 20 | |||
20 | USE_GNU_READLINE= yes | 21 | USE_GNU_READLINE= yes | |
21 | 22 | |||
22 | SUBST_CLASSES+= elfsh | 23 | SUBST_CLASSES+= elfsh | |
23 | SUBST_STAGE.elfsh= post-patch | 24 | SUBST_STAGE.elfsh= post-patch | |
24 | SUBST_MESSAGE.elfsh= Filling placeholders. | 25 | SUBST_MESSAGE.elfsh= Filling placeholders. | |
25 | SUBST_FILES.elfsh= vm/include/elfsh.h | 26 | SUBST_FILES.elfsh= vm/include/elfsh.h | |
26 | SUBST_SED.elfsh= -e s,@@SH@@,${SH}, | 27 | SUBST_SED.elfsh= -e s,@@SH@@,${SH}, | |
27 | SUBST_SED.elfsh+= -e s,@@PREFIX@@,${PREFIX}, | 28 | SUBST_SED.elfsh+= -e s,@@PREFIX@@,${PREFIX}, | |
28 | 29 | |||
29 | # XXX This package should be converted to use libtool | 30 | # XXX This package should be converted to use libtool |
@@ -1,8 +1,9 @@ | @@ -1,8 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2005/02/23 22:24:13 agc Exp $ | 1 | $NetBSD: distinfo,v 1.5 2010/03/17 15:32:18 joerg Exp $ | |
2 | 2 | |||
3 | SHA1 (elfsh-0.51b3-portable.tgz) = d8afc99cb2966710aa4b6a781ad9008bf0baaeb9 | 3 | SHA1 (elfsh-0.51b3-portable.tgz) = d8afc99cb2966710aa4b6a781ad9008bf0baaeb9 | |
4 | RMD160 (elfsh-0.51b3-portable.tgz) = 278b2c846335d14953b27fa8946763622acb6303 | 4 | RMD160 (elfsh-0.51b3-portable.tgz) = 278b2c846335d14953b27fa8946763622acb6303 | |
5 | Size (elfsh-0.51b3-portable.tgz) = 136679 bytes | 5 | Size (elfsh-0.51b3-portable.tgz) = 136679 bytes | |
6 | SHA1 (patch-aa) = 0494158b7daf4d1b55984bf98c161bf70e114430 | 6 | SHA1 (patch-aa) = 0494158b7daf4d1b55984bf98c161bf70e114430 | |
7 | SHA1 (patch-ab) = 4db74e87f1505e4bd0334060019944eccd9f5cd3 | 7 | SHA1 (patch-ab) = 4db74e87f1505e4bd0334060019944eccd9f5cd3 | |
8 | SHA1 (patch-ac) = e60e109b4e2664619defc9a56616d1c7b7c3b35a | 8 | SHA1 (patch-ac) = e60e109b4e2664619defc9a56616d1c7b7c3b35a | |
9 | SHA1 (patch-ad) = 4fffefc0cddd6817eba3b0812bcf6935c0fcd438 |
$NetBSD: patch-ad,v 1.1 2010/03/17 15:32:18 joerg Exp $
--- libelfsh/include/libelfsh-compat.h.orig 2010-03-17 15:23:59.000000000 +0000
+++ libelfsh/include/libelfsh-compat.h
@@ -38,6 +38,9 @@
/* Portability Stuffs */
#if defined(__OpenBSD__) || defined(__NetBSD__)
#include <sys/exec_elf.h>
+# if defined(__NetBSD__) && defined(__x86_64__)
+# include <i386/elf_machdep.h>
+# endif
#elif defined(__linux__) || defined(__FreeBSD__) || defined(sun)
#include <elf.h>
#endif