Try to fix PR pkg/26143 with caution: - Set "CC" to "gcc -isystem /usr/include" during bootstrap. - Add "-isystem /usr/include" to the Darwin specific "CPPFLAGS".diff -r1.119 -r1.120 pkgsrc/bootstrap/bootstrap
(tron)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | #! /bin/sh | 1 | #! /bin/sh | |
2 | 2 | |||
3 | # $NetBSD: bootstrap,v 1.119 2008/01/24 14:48:02 joerg Exp $ | 3 | # $NetBSD: bootstrap,v 1.120 2008/01/30 22:57:31 tron Exp $ | |
4 | # | 4 | # | |
5 | # | 5 | # | |
6 | # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. | 6 | # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. | |
7 | # | 7 | # | |
8 | # Redistribution and use in source and binary forms, with or without | 8 | # Redistribution and use in source and binary forms, with or without | |
9 | # modification, are permitted provided that the following conditions | 9 | # modification, are permitted provided that the following conditions | |
10 | # are met: | 10 | # are met: | |
11 | # 1. Redistributions of source code must retain the above copyright | 11 | # 1. Redistributions of source code must retain the above copyright | |
12 | # notice, this list of conditions and the following disclaimer. | 12 | # notice, this list of conditions and the following disclaimer. | |
13 | # 2. Redistributions in binary form must reproduce the above copyright | 13 | # 2. Redistributions in binary form must reproduce the above copyright | |
14 | # notice, this list of conditions and the following disclaimer in the | 14 | # notice, this list of conditions and the following disclaimer in the | |
15 | # documentation and/or other materials provided with the distribution. | 15 | # documentation and/or other materials provided with the distribution. | |
16 | # 3. All advertising materials mentioning features or use of this software | 16 | # 3. All advertising materials mentioning features or use of this software | |
@@ -432,26 +432,27 @@ root_user=root | @@ -432,26 +432,27 @@ root_user=root | |||
432 | bmakexenv= | 432 | bmakexenv= | |
433 | bmakexargs= | 433 | bmakexargs= | |
434 | tnftpxflags= | 434 | tnftpxflags= | |
435 | need_extras=no | 435 | need_extras=no | |
436 | case "$opsys" in | 436 | case "$opsys" in | |
437 | Darwin) | 437 | Darwin) | |
438 | root_group=wheel | 438 | root_group=wheel | |
439 | need_pax=yes | 439 | need_pax=yes | |
440 | need_bsd_install=no | 440 | need_bsd_install=no | |
441 | need_awk=no | 441 | need_awk=no | |
442 | need_sed=no | 442 | need_sed=no | |
443 | set_opsys=no | 443 | set_opsys=no | |
444 | machine_arch=`uname -p` | 444 | machine_arch=`uname -p` | |
445 | CC="gcc -isystem /usr/include"; export CC | |||
445 | ;; | 446 | ;; | |
446 | DragonFly) | 447 | DragonFly) | |
447 | root_group=wheel | 448 | root_group=wheel | |
448 | need_pax=yes | 449 | need_pax=yes | |
449 | need_bsd_install=no | 450 | need_bsd_install=no | |
450 | need_awk=no | 451 | need_awk=no | |
451 | need_sed=no | 452 | need_sed=no | |
452 | set_opsys=no | 453 | set_opsys=no | |
453 | check_prog tarprog tar | 454 | check_prog tarprog tar | |
454 | machine_arch=`uname -p` | 455 | machine_arch=`uname -p` | |
455 | case `uname -r` in | 456 | case `uname -r` in | |
456 | 1.1[0-9]*) | 457 | 1.1[0-9]*) | |
457 | [ -z "$fetch_cmd" ] && fetch_cmd="/usr/bin/ftp" | 458 | [ -z "$fetch_cmd" ] && fetch_cmd="/usr/bin/ftp" |
@@ -1,40 +1,42 @@ | @@ -1,40 +1,42 @@ | |||
1 | # $NetBSD: Darwin.mk,v 1.28 2007/12/16 12:36:28 tron Exp $ | 1 | # $NetBSD: Darwin.mk,v 1.29 2008/01/30 22:57:42 tron Exp $ | |
2 | # | 2 | # | |
3 | # Variable definitions for the Darwin operating system. | 3 | # Variable definitions for the Darwin operating system. | |
4 | 4 | |||
5 | .if !defined(CPP) || ${CPP} == "cpp" | 5 | .if !defined(CPP) || ${CPP} == "cpp" | |
6 | CPP= ${CC} -E ${CPP_PRECOMP_FLAGS} | 6 | CPP= ${CC} -E ${CPP_PRECOMP_FLAGS} | |
7 | .endif | 7 | .endif | |
8 | .if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*) | 8 | .if empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*) | |
9 | ECHO_N?= /bin/echo -n | 9 | ECHO_N?= /bin/echo -n | |
10 | .else | 10 | .else | |
11 | ECHO_N?= ${ECHO} -n | 11 | ECHO_N?= ${ECHO} -n | |
12 | .endif | 12 | .endif | |
13 | LDD?= /usr/bin/otool -L | 13 | LDD?= /usr/bin/otool -L | |
14 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake | 14 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake | |
15 | PKGLOCALEDIR?= share | 15 | PKGLOCALEDIR?= share | |
16 | PS?= /bin/ps | 16 | PS?= /bin/ps | |
17 | # XXX: default from defaults/mk.conf. Verify/correct for this platform | 17 | # XXX: default from defaults/mk.conf. Verify/correct for this platform | |
18 | # and remove this comment. | 18 | # and remove this comment. | |
19 | SU?= /usr/bin/su | 19 | SU?= /usr/bin/su | |
20 | TYPE?= type # Shell builtin | 20 | TYPE?= type # Shell builtin | |
21 | IMAKEOPTS+= -DBuildHtmlManPages=NO | 21 | IMAKEOPTS+= -DBuildHtmlManPages=NO | |
22 | .if defined(UNPRIVILEGED) && !empty(UNPRIVILEGED:M[Yy][Ee][Ss]) | 22 | .if defined(UNPRIVILEGED) && !empty(UNPRIVILEGED:M[Yy][Ee][Ss]) | |
23 | IMAKEOPTS+= -DInstallFlags=-c # do not set user or group | 23 | IMAKEOPTS+= -DInstallFlags=-c # do not set user or group | |
24 | .endif | 24 | .endif | |
25 | 25 | |||
26 | .if !defined(PKGSRC_COMPILER) || !empty(PKGSRC_COMPILER:Mgcc) | 26 | .if !defined(PKGSRC_COMPILER) || !empty(PKGSRC_COMPILER:Mgcc) | |
27 | CPP_PRECOMP_FLAGS?= -no-cpp-precomp # use the GNU cpp, not the OS X cpp | 27 | # Use the GNU cpp, not the OS X cpp, don't look in "/usr/local/include" | |
28 | # before "/usr/include". | |||
29 | CPP_PRECOMP_FLAGS?= -no-cpp-precomp -isystem /usr/include | |||
28 | .endif | 30 | .endif | |
29 | DEF_UMASK?= 0022 | 31 | DEF_UMASK?= 0022 | |
30 | DEFAULT_SERIAL_DEVICE?= /dev/null | 32 | DEFAULT_SERIAL_DEVICE?= /dev/null | |
31 | EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table | 33 | EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table | |
32 | MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type | 34 | MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type | |
33 | NOLOGIN?= /usr/bin/false | 35 | NOLOGIN?= /usr/bin/false | |
34 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin | 36 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin | |
35 | ROOT_CMD?= /usr/bin/sudo ${SH} -c | 37 | ROOT_CMD?= /usr/bin/sudo ${SH} -c | |
36 | ROOT_GROUP?= wheel | 38 | ROOT_GROUP?= wheel | |
37 | ROOT_USER?= root | 39 | ROOT_USER?= root | |
38 | SERIAL_DEVICES?= /dev/null | 40 | SERIAL_DEVICES?= /dev/null | |
39 | ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` | 41 | ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` | |
40 | ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` | 42 | ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` |