Source-Changes-HG archive

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

[src/trunk]: src/distrib/sets Introduce the "ssp" attribute derived from HAS_...



details:   https://anonhg.NetBSD.org/src/rev/55a484dd1ca9
branches:  trunk
changeset: 760136:55a484dd1ca9
user:      he <he%NetBSD.org@localhost>
date:      Tue Dec 28 09:15:24 2010 +0000

description:
Introduce the "ssp" attribute derived from HAS_SSP from <bsd.sys.mk>.
Use it to flag entries which should only be included if the target platform
supports SSP.  Fixes the build for a bunch of architectures.

diffstat:

 distrib/sets/lists/tests/mi |  74 ++++++++++++++++++++++----------------------
 distrib/sets/mkvars.mk      |   4 +-
 distrib/sets/sets.subr      |   7 +++-
 3 files changed, 45 insertions(+), 40 deletions(-)

diffs (162 lines):

diff -r d90f55b25b88 -r 55a484dd1ca9 distrib/sets/lists/tests/mi
--- a/distrib/sets/lists/tests/mi       Tue Dec 28 06:00:18 2010 +0000
+++ b/distrib/sets/lists/tests/mi       Tue Dec 28 09:15:24 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.194 2010/12/27 19:35:31 pgoyette Exp $
+# $NetBSD: mi,v 1.195 2010/12/28 09:15:24 he Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -327,23 +327,23 @@
 ./usr/libdata/debug/usr/tests/lib/libc/setjmp                          tests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libc/setjmp/t_setjmp.debug           tests-lib-debug         debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/ssp                             tests-lib-debug
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_fgets.debug               tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_getcwd.debug              tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_gets.debug                        tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memcpy.debug              tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memmove.debug             tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memset.debug              tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_raw.debug                 tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_read.debug                        tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_readlink.debug            tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_snprintf.debug            tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_sprintf.debug             tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_strcat.debug              tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_strcpy.debug              tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_strncat.debug             tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_strncpy.debug             tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_vsnprintf.debug           tests-lib-debug         debug,atf
-./usr/libdata/debug/usr/tests/lib/libc/ssp/h_vsprintf.debug            tests-lib-debug         debug,atf
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_fgets.debug               tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_getcwd.debug              tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_gets.debug                        tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memcpy.debug              tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memmove.debug             tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memset.debug              tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_raw.debug                 tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_read.debug                        tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_readlink.debug            tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_snprintf.debug            tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_sprintf.debug             tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_strcat.debug              tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_strcpy.debug              tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_strncat.debug             tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_strncpy.debug             tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_vsnprintf.debug           tests-lib-debug         debug,atf,ssp
+./usr/libdata/debug/usr/tests/lib/libc/ssp/h_vsprintf.debug            tests-lib-debug         debug,atf,ssp
 ./usr/libdata/debug/usr/tests/lib/libc/stdio                           tests-lib-debug
 ./usr/libdata/debug/usr/tests/lib/libc/stdio/t_fmemopen.debug          tests-lib-debug         debug,atf
 ./usr/libdata/debug/usr/tests/lib/libc/stdio/t_format.debug            tests-lib-debug         debug,atf
@@ -1582,25 +1582,25 @@
 ./usr/tests/lib/libc/setjmp/Atffile            tests-lib-tests         atf
 ./usr/tests/lib/libc/setjmp/t_setjmp           tests-lib-tests         atf
 ./usr/tests/lib/libc/ssp                       tests-lib-tests
-./usr/tests/lib/libc/ssp/Atffile               tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_fgets               tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_getcwd              tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_gets                        tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_memcpy              tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_memmove             tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_memset              tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_raw                 tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_read                        tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_readlink            tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_snprintf            tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_sprintf             tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_strcat              tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_strcpy              tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_strncat             tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_strncpy             tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_vsnprintf           tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/h_vsprintf            tests-lib-tests         atf
-./usr/tests/lib/libc/ssp/t_ssp                 tests-lib-tests         atf
+./usr/tests/lib/libc/ssp/Atffile               tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_fgets               tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_getcwd              tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_gets                        tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_memcpy              tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_memmove             tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_memset              tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_raw                 tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_read                        tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_readlink            tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_snprintf            tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_sprintf             tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_strcat              tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_strcpy              tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_strncat             tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_strncpy             tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_vsnprintf           tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/h_vsprintf            tests-lib-tests         atf,ssp
+./usr/tests/lib/libc/ssp/t_ssp                 tests-lib-tests         atf,ssp
 ./usr/tests/lib/libc/stdio                     tests-lib-tests
 ./usr/tests/lib/libc/stdio/Atffile             tests-lib-tests         atf
 ./usr/tests/lib/libc/stdio/t_fmemopen          tests-lib-tests         atf
diff -r d90f55b25b88 -r 55a484dd1ca9 distrib/sets/mkvars.mk
--- a/distrib/sets/mkvars.mk    Tue Dec 28 06:00:18 2010 +0000
+++ b/distrib/sets/mkvars.mk    Tue Dec 28 09:15:24 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mkvars.mk,v 1.3 2010/03/22 12:03:04 cegger Exp $
+# $NetBSD: mkvars.mk,v 1.4 2010/12/28 09:15:24 he Exp $
 
 MKEXTRAVARS= \
        MACHINE \
@@ -7,6 +7,7 @@
        HAVE_BINUTILS \
        HAVE_GCC \
        HAVE_GDB \
+       HAS_SSP \
        OBJECT_FMT \
        TOOLCHAIN_MISSING \
        EXTSRCS \
@@ -27,6 +28,7 @@
 #####
 
 .include <bsd.own.mk>
+.include <bsd.sys.mk>
 
 .if (${MKMAN} == "no" || empty(MANINSTALL:Mmaninstall))
 MKMANPAGES=no
diff -r d90f55b25b88 -r 55a484dd1ca9 distrib/sets/sets.subr
--- a/distrib/sets/sets.subr    Tue Dec 28 06:00:18 2010 +0000
+++ b/distrib/sets/sets.subr    Tue Dec 28 09:15:24 2010 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: sets.subr,v 1.125 2010/12/08 23:56:01 njoly Exp $
+#      $NetBSD: sets.subr,v 1.126 2010/12/28 09:15:24 he Exp $
 #
 
 #
@@ -19,6 +19,7 @@
 #      HAVE_BINUTILS
 #      HAVE_GCC
 #      HAVE_GDB
+#      HAS_SSP
 #      TOOLCHAIN_MISSING
 #      OBJECT_FMT
 # as well as:
@@ -171,7 +172,7 @@
 # In each file, a record consists of a path and a System Package name,
 # separated by whitespace. E.g.,
 #
-#      # $NetBSD: sets.subr,v 1.125 2010/12/08 23:56:01 njoly Exp $
+#      # $NetBSD: sets.subr,v 1.126 2010/12/28 09:15:24 he Exp $
 #      .                       base-sys-root   [keyword[,...]]
 #      ./altroot               base-sys-root
 #      ./bin                   base-sys-root
@@ -237,6 +238,7 @@
 #      share                   ${MKSHARE} != no
 #      skey                    ${MKSKEY} != no
 #      solaris                 ${MKDTRACE} != no or ${MKZFS} != no
+#      ssp                     ${HAS_SSP} != no
 #      x11                     ${MKX11} != no && ${X11FLAVOUR} != "Xorg"
 #      xorg                    ${MKX11} != no && ${X11FLAVOUR} == "Xorg"
 #      yp                      ${MKYP} != no
@@ -274,6 +276,7 @@
                                nv = needvars[vi]
                                kw = tolower(nv)
                                sub(/^mk/, "", kw)
+                               sub(/^has_/, "", kw)
                                if (ENVIRON[nv] != "no")
                                        wanted[kw] = 1 
                        }



Home | Main Index | Thread Index | Old Index