pkgsrc-Bugs archive

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

pkg/51688: cwrappers can probably be used for both latest DragonFly and FreeBSD



>Number:         51688
>Category:       pkg
>Synopsis:       cwrappers can probably be used for both latest DragonFly and FreeBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 04 06:40:00 +0000 2016
>Originator:     David Shao
>Release:        current pkgsrc
>Organization:
>Environment:
DragonFly  4.7-DEVELOPMENT DragonFly v4.7.0.945.gcac153-DEVELOPMENT #4: Sat Dec  3 10:39:18 PST 2016     xxxxxx@:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
>Description:
cwrappers can probably be used for latest DragonFly and FreeBSD.  At least I have completely rebuilt pkgsrc git, modular xorg, xfce4, vim-gtk2, and firefox on current development versions of both OSes using cwrappers.

Also on recent DragonFly 4.7-DEVELOPMENT, the linux emulation in /compat/linux no longer exists.


>How-To-Repeat:

>Fix:
diff -Nur mk/platform/DragonFly.mk mk/platform.new/DragonFly.mk
--- mk/platform/DragonFly.mk	2016-10-25 13:00:47.000000000 -0700
+++ mk/platform.new/DragonFly.mk	2016-10-30 16:32:50.000000000 -0700
@@ -25,7 +25,7 @@
 ULIMIT_CMD_memorysize?=	ulimit -m `ulimit -H -m`
 ULIMIT_CMD_cputime?=	ulimit -t `ulimit -H -t`
 
-_OPSYS_EMULDIR.linux=	/compat/linux
+_OPSYS_EMULDIR.linux= # empty
 
 _OPSYS_SYSTEM_RPATH?=		/lib:/usr/lib:/usr/lib/gcc47:/usr/lib/gcc50
 _OPSYS_LIB_DIRS?=		/lib /usr/lib
@@ -52,6 +52,8 @@
 DEFAULT_SERIAL_DEVICE?=	/dev/cuaa0
 SERIAL_DEVICES?=	/dev/cuaa0
 
+_OPSYS_SUPPORTS_CWRAPPERS=	yes
+
 _OPSYS_CAN_CHECK_SHLIBS=	yes # use readelf in check/bsd.check-vars.mk
 
 # check for kqueue(2) support
diff -Nur mk/platform/FreeBSD.mk mk/platform.new/FreeBSD.mk
--- mk/platform/FreeBSD.mk	2016-03-10 08:58:19.000000000 -0800
+++ mk/platform.new/FreeBSD.mk	2016-10-30 16:36:24.000000000 -0700
@@ -63,6 +63,8 @@
 PKG_HAVE_KQUEUE=	# defined
 .endif
 
+_OPSYS_SUPPORTS_CWRAPPERS=	yes
+
 _OPSYS_CAN_CHECK_SHLIBS=	yes # use readelf in check/bsd.check-vars.mk
 
 # check for maximum command line length and set it in configure's environment,



Home | Main Index | Thread Index | Old Index