Remove "-g" from CPPFLAGS and LDFLAGS in curses tests. The debug information contains embedded references to the src directory, which is bad for reproducible builds.diff -r1.6 -r1.7 src/tests/lib/libcurses/director/Makefile
(apb)
--- src/tests/lib/libcurses/director/Makefile 2012/06/03 02:10:46 1.6
+++ src/tests/lib/libcurses/director/Makefile 2014/01/19 21:50:17 1.7
@@ -1,22 +1,21 @@ | @@ -1,22 +1,21 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2012/06/03 02:10:46 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2014/01/19 21:50:17 apb Exp $ | |
2 | # | 2 | # | |
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | 4 | |||
5 | ATFFILE= no | 5 | ATFFILE= no | |
6 | TESTSDIR= ${TESTSBASE}/lib/libcurses | 6 | TESTSDIR= ${TESTSBASE}/lib/libcurses | |
7 | TESTS_C+= director | 7 | TESTS_C+= director | |
8 | 8 | |||
9 | PROG= director | 9 | PROG= director | |
10 | NOMAN= "true" | 10 | NOMAN= "true" | |
11 | #MAN= director.7 | 11 | #MAN= director.7 | |
12 | SRCS= testlang_parse.y testlang_conf.l director.c | 12 | SRCS= testlang_parse.y testlang_conf.l director.c | |
13 | 13 | |||
14 | YHEADER= 1 | 14 | YHEADER= 1 | |
15 | CPPFLAGS+= -O0 -g -I${.CURDIR} -I. | 15 | CPPFLAGS+= -O0 -I${.CURDIR} -I. | |
16 | LDFLAGS+= -g | |||
17 | DPADD+= ${LIBL} | 16 | DPADD+= ${LIBL} | |
18 | LDADD+= -ll -lutil -lc | 17 | LDADD+= -ll -lutil -lc | |
19 | 18 | |||
20 | CWARNFLAGS.clang+= -Wno-format -Wno-conversion | 19 | CWARNFLAGS.clang+= -Wno-format -Wno-conversion | |
21 | 20 | |||
22 | .include <bsd.test.mk> | 21 | .include <bsd.test.mk> |
--- src/tests/lib/libcurses/slave/Makefile 2011/09/08 18:44:38 1.6
+++ src/tests/lib/libcurses/slave/Makefile 2014/01/19 21:50:17 1.7
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2011/09/08 18:44:38 jmmv Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2014/01/19 21:50:17 apb Exp $ | |
2 | # | 2 | # | |
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> | |
4 | 4 | |||
5 | ATFFILE= no | 5 | ATFFILE= no | |
6 | TESTSDIR= ${TESTSBASE}/lib/libcurses | 6 | TESTSDIR= ${TESTSBASE}/lib/libcurses | |
7 | TESTS_C+= slave | 7 | TESTS_C+= slave | |
8 | 8 | |||
9 | PROG= slave | 9 | PROG= slave | |
10 | NOMAN= "true" | 10 | NOMAN= "true" | |
11 | #MAN= slave.7 | 11 | #MAN= slave.7 | |
12 | SRCS= slave.c commands.c curses_commands.c | 12 | SRCS= slave.c commands.c curses_commands.c | |
13 | 13 | |||
14 | CPPFLAGS+= -g -I${.CURDIR} -I. -I${.CURDIR}/../director | 14 | CPPFLAGS+= -I${.CURDIR} -I. -I${.CURDIR}/../director | |
15 | LDADD+= -lcurses -lterminfo -Wl,--no-fatal-warnings | 15 | LDADD+= -lcurses -lterminfo -Wl,--no-fatal-warnings | |
16 | 16 | |||
17 | COPTS.curses_commands.c += -Wno-format-nonliteral | 17 | COPTS.curses_commands.c += -Wno-format-nonliteral | |
18 | CWARNFLAGS.clang+= -Wno-format | 18 | CWARNFLAGS.clang+= -Wno-format | |
19 | 19 | |||
20 | .include <bsd.test.mk> | 20 | .include <bsd.test.mk> |