Fri Dec 12 00:28:11 2014 UTC ()
Fix build on CentOS 7 when building as root. *gasp*


(rodent)
diff -r1.7 -r1.8 pkgsrc/sysutils/coreutils/Makefile.common

cvs diff -r1.7 -r1.8 pkgsrc/sysutils/coreutils/Makefile.common (expand / switch to unified diff)

--- pkgsrc/sysutils/coreutils/Makefile.common 2014/02/02 07:08:24 1.7
+++ pkgsrc/sysutils/coreutils/Makefile.common 2014/12/12 00:28:10 1.8
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.common,v 1.7 2014/02/02 07:08:24 richard Exp $ 1# $NetBSD: Makefile.common,v 1.8 2014/12/12 00:28:10 rodent Exp $
2# used by sysutils/coreutils/Makefile 2# used by sysutils/coreutils/Makefile
3# used by misc/gnuls/Makefile 3# used by misc/gnuls/Makefile
4 4
5DISTNAME= coreutils-8.22 5DISTNAME= coreutils-8.22
6CATEGORIES= sysutils 6CATEGORIES= sysutils
7MASTER_SITES= ${MASTER_SITE_GNU:=coreutils/} 7MASTER_SITES= ${MASTER_SITE_GNU:=coreutils/}
8EXTRACT_SUFX= .tar.xz 8EXTRACT_SUFX= .tar.xz
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.gnu.org/software/coreutils/ 11HOMEPAGE= http://www.gnu.org/software/coreutils/
12COMMENT= GNU basic file, shell and text manipulation utilities 12COMMENT= GNU basic file, shell and text manipulation utilities
13LICENSE= gnu-gpl-v3 13LICENSE= gnu-gpl-v3
14 14
@@ -23,26 +23,30 @@ USE_PKGLOCALEDIR= YES @@ -23,26 +23,30 @@ USE_PKGLOCALEDIR= YES
23 23
24TEST_TARGET= check 24TEST_TARGET= check
25 25
26.include "../../mk/bsd.prefs.mk" 26.include "../../mk/bsd.prefs.mk"
27 27
28.if ${OPSYS} == "Interix" 28.if ${OPSYS} == "Interix"
29CONFIGURE_ENV+= ac_list_mounted_fs=found 29CONFIGURE_ENV+= ac_list_mounted_fs=found
30.endif 30.endif
31 31
32.if ${OPSYS} == "DragonFly" 32.if ${OPSYS} == "DragonFly"
33CONFIGURE_ENV+= gl_cv_search_pthread_join=-lpthread 33CONFIGURE_ENV+= gl_cv_search_pthread_join=-lpthread
34.endif 34.endif
35 35
 36.if ${OPSYS} == "Linux"
 37CONFIGURE_ENV+= FORCE_UNSAFE_CONFIGURE=1
 38.endif
 39
36.if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*) 40.if !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
37CONFIGURE_ENV+= ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes 41CONFIGURE_ENV+= ac_cv_header_sys_acl_h=no jm_cv_func_svid_putenv=yes
38.endif 42.endif
39 43
40# XXX - this hack is bound to cause fallout on some platform at some point. 44# XXX - this hack is bound to cause fallout on some platform at some point.
41# How can we determine the API version of the builtin gettext? 45# How can we determine the API version of the builtin gettext?
42.if ${OPSYS} != "Linux" 46.if ${OPSYS} != "Linux"
43CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes 47CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes
44.endif 48.endif
45CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q} 49CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q}
46 50
47CONFIGURE_ARGS+= --program-prefix=g 51CONFIGURE_ARGS+= --program-prefix=g
48 52