pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/bochs bochs: fix build on linux



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57caec5ccd6e
branches:  trunk
changeset: 318194:57caec5ccd6e
user:      markd <markd%pkgsrc.org@localhost>
date:      Mon Jan 21 10:04:45 2019 +0000

description:
bochs: fix build on linux

diffstat:

 emulators/bochs/Makefile                                  |   9 ++++++++-
 emulators/bochs/PLIST.Linux                               |   3 +++
 emulators/bochs/distinfo                                  |   4 +++-
 emulators/bochs/patches/patch-configure                   |  15 +++++++++++++++
 emulators/bochs/patches/patch-iodev_network_slirp_slirp.h |  15 +++++++++++++++
 5 files changed, 44 insertions(+), 2 deletions(-)

diffs (87 lines):

diff -r c36964d6da26 -r 57caec5ccd6e emulators/bochs/Makefile
--- a/emulators/bochs/Makefile  Mon Jan 21 10:04:04 2019 +0000
+++ b/emulators/bochs/Makefile  Mon Jan 21 10:04:45 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.93 2019/01/13 11:59:37 ryoon Exp $
+# $NetBSD: Makefile,v 1.94 2019/01/21 10:04:45 markd Exp $
 
 DISTNAME=              bochs-2.6.9
 CATEGORIES=            emulators
@@ -94,6 +94,13 @@
 PLIST.x11=             yes
 .endif
 
+.if ${OPSYS} == "Linux"
+SUBST_CLASSES+=                nobpf
+SUBST_FILES.nobpf=     config.h
+SUBST_SED.nobpf=       -e 's:BX_NETMOD_FBSD 1:BX_NETMOD_FBSD 0:'
+SUBST_STAGE.nobpf=     post-configure
+.endif
+
 OPSYSVARS+=            BOCHSRC_SUBST
 BOCHSRC_SUBST.Linux+=  -e 's,@FLOPPY_BSD@,\#,'
 BOCHSRC_SUBST.Linux+=  -e 's,@FLOPPY_LINUX@,,'
diff -r c36964d6da26 -r 57caec5ccd6e emulators/bochs/PLIST.Linux
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bochs/PLIST.Linux       Mon Jan 21 10:04:45 2019 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2019/01/21 10:04:45 markd Exp $
+lib/bochs/plugins/libbx_eth_linux.la
+lib/bochs/plugins/libbx_pcidev.la
diff -r c36964d6da26 -r 57caec5ccd6e emulators/bochs/distinfo
--- a/emulators/bochs/distinfo  Mon Jan 21 10:04:04 2019 +0000
+++ b/emulators/bochs/distinfo  Mon Jan 21 10:04:45 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2019/01/13 11:59:38 ryoon Exp $
+$NetBSD: distinfo,v 1.33 2019/01/21 10:04:45 markd Exp $
 
 SHA1 (bochs-2.6.9.tar.gz) = 1aec18479c33d9abc7a43c0fbd744eb86199c55d
 RMD160 (bochs-2.6.9.tar.gz) = d437bbaa04b8bb9f3b42a51860459dcc4e308616
@@ -6,7 +6,9 @@
 Size (bochs-2.6.9.tar.gz) = 5169187 bytes
 SHA1 (patch-.bochsrc) = df5b8879ec005fe44bca8bee42c549095012013d
 SHA1 (patch-Makefile.in) = ca8d485a9f4901df15eb3e521105de2ae833cfcb
+SHA1 (patch-configure) = 3c8de4efa55dac9f672ad087e35dd7512ae5db8e
 SHA1 (patch-iodev_network_eth__socket.cc) = 37c4ab50da3f646ffc541001e8a8b7c93a7995c4
 SHA1 (patch-iodev_network_slirp_compat_cc) = a48d112daac6049c0ee8076eb012ab2f44740889
+SHA1 (patch-iodev_network_slirp_slirp.h) = c0920978ca5f004be603950240e4a988bee6d4f9
 SHA1 (patch-iodev_sound_soundosx.cc) = 7dacc7df74e64d3df72a241a291f434f72722cec
 SHA1 (patch-main.cc) = 77296af5e8101c7c9ded37ec77571dbc61f98e4b
diff -r c36964d6da26 -r 57caec5ccd6e emulators/bochs/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bochs/patches/patch-configure   Mon Jan 21 10:04:45 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.6 2019/01/21 10:04:45 markd Exp $
+
+Deal with Linux 4.x
+
+--- configure.orig     2015-05-03 06:37:18.754341000 +0000
++++ configure
+@@ -23311,7 +23311,7 @@ $as_echo "$as_me: Linux detected as host
+               PCIDEV_MODULE_MAKE_ALL="all-kernel24"
+               KERNEL_MODULE_SUFFIX="o"
+               ;;
+-            2.6*|3.*)
++            2.6*|3.*|4.*)
+               PCIDEV_MODULE_MAKE_ALL="all-kernel26"
+               KERNEL_MODULE_SUFFIX="ko"
+               ;;
diff -r c36964d6da26 -r 57caec5ccd6e emulators/bochs/patches/patch-iodev_network_slirp_slirp.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bochs/patches/patch-iodev_network_slirp_slirp.h Mon Jan 21 10:04:45 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-iodev_network_slirp_slirp.h,v 1.1 2019/01/21 10:04:45 markd Exp $
+
+uintptr_t not declared on linux without this
+
+--- iodev/network/slirp/slirp.h.orig   2014-12-25 17:58:26.557466000 +0000
++++ iodev/network/slirp/slirp.h
+@@ -33,7 +33,7 @@ typedef char *caddr_t;
+ #endif
+ 
+ #include <sys/types.h>
+-#if defined(__OpenBSD__)
++#if defined(__OpenBSD__) || defined(__linux__)
+ #include <stdint.h>
+ #include <sys/wait.h>
+ #endif



Home | Main Index | Thread Index | Old Index