CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Aug 27 21:52:39 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch everyone to new binutils+gdb To generate a diff of this commit: cvs rdiff -u -r1.1399 -r1.1400 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1399 src/share/mk/bsd.own.mk:1.1400 --- src/share/mk/bsd.own.mk:1.1399 Tue Aug 27 13:12:04 2024 +++ src/share/mk/bsd.own.mk Tue Aug 27 17:52:39 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1399 2024/08/27 17:12:04 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.1400 2024/08/27 21:52:39 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -125,19 +125,7 @@ NOGCCISL= # defined # # What binutils is used? # -.if \ -${MACHINE_CPU} == "aarch64" || \ -${MACHINE_ARCH} == "alpha" || \ -${MACHINE_CPU} == "arm" || \ -${MACHINE_CPU} == "hppa" || \ -${MACHINE_CPU} == "mips" || \ -${MACHINE_CPU} == "riscv" || \ -${MACHINE_CPU} == "sh3" || \ -${MACHINE_ARCH} == "x86_64" HAVE_BINUTILS?= 242 -.else -HAVE_BINUTILS?= 239 -.endif .if ${HAVE_BINUTILS} == 242 EXTERNAL_BINUTILS_SUBDIR= binutils @@ -150,12 +138,7 @@ EXTERNAL_BINUTILS_SUBDIR= /does/not/exis # # What GDB is used? # -.if \ -${MACHINE_CPU} != "powerpc" HAVE_GDB?= 1510 -.else -HAVE_GDB?= 1320 -.endif .if ${HAVE_GDB} == 1510 EXTERNAL_GDB_SUBDIR= gdb
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Aug 27 21:52:39 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch everyone to new binutils+gdb To generate a diff of this commit: cvs rdiff -u -r1.1399 -r1.1400 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Aug 27 17:12:04 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch everyone but powerpc (because sim does not build) to new gdb To generate a diff of this commit: cvs rdiff -u -r1.1398 -r1.1399 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1398 src/share/mk/bsd.own.mk:1.1399 --- src/share/mk/bsd.own.mk:1.1398 Sat Aug 17 23:59:00 2024 +++ src/share/mk/bsd.own.mk Tue Aug 27 13:12:04 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1398 2024/08/18 03:59:00 rin Exp $ +# $NetBSD: bsd.own.mk,v 1.1399 2024/08/27 17:12:04 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -151,7 +151,7 @@ EXTERNAL_BINUTILS_SUBDIR= /does/not/exis # What GDB is used? # .if \ -${MACHINE_ARCH} == "x86_64" +${MACHINE_CPU} != "powerpc" HAVE_GDB?= 1510 .else HAVE_GDB?= 1320
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Aug 27 17:12:04 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch everyone but powerpc (because sim does not build) to new gdb To generate a diff of this commit: cvs rdiff -u -r1.1398 -r1.1399 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Sun Aug 18 03:59:00 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: Introduce MKGDBSERVER To generate a diff of this commit: cvs rdiff -u -r1.1397 -r1.1398 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1397 src/share/mk/bsd.own.mk:1.1398 --- src/share/mk/bsd.own.mk:1.1397 Thu Aug 15 21:53:48 2024 +++ src/share/mk/bsd.own.mk Sun Aug 18 03:59:00 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1397 2024/08/15 21:53:48 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.1398 2024/08/18 03:59:00 rin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -165,6 +165,11 @@ EXTERNAL_GDB_SUBDIR= gdb.old EXTERNAL_GDB_SUBDIR= /does/not/exist .endif +.if ${MACHINE_ARCH} == "x86_64" +MKGDBSERVER?= yes +.endif +MKGDBSERVER?= no + # # What OpenSSL is used? #
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Sun Aug 18 03:59:00 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: Introduce MKGDBSERVER To generate a diff of this commit: cvs rdiff -u -r1.1397 -r1.1398 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Sun Aug 18 03:49:23 UTC 2024 Modified Files: src/share/mk: bsd.info.mk Log Message: bsd.info.mk: Install INFOFILES as is, if TEXINFO is empty This allows us to install pre-generated info files. NFCI otherwise. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/share/mk/bsd.info.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.info.mk diff -u src/share/mk/bsd.info.mk:1.45 src/share/mk/bsd.info.mk:1.46 --- src/share/mk/bsd.info.mk:1.45 Sun Jun 16 21:11:53 2024 +++ src/share/mk/bsd.info.mk Sun Aug 18 03:49:23 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.info.mk,v 1.45 2024/06/16 21:11:53 hgutch Exp $ +# $NetBSD: bsd.info.mk,v 1.46 2024/08/18 03:49:23 rin Exp $ .include @@ -13,6 +13,7 @@ INFOFILES?= # Build rules .if ${MKINFO} != "no" +.if defined(TEXINFO) INFOFILES= ${TEXINFO:C/\.te?xi(nfo)?$/.info/} realall: ${INFOFILES} @@ -23,6 +24,7 @@ realall: ${INFOFILES} .txi.info .texi.info .texinfo.info: ${_MKTARGET_CREATE} ${TOOL_MAKEINFO} ${INFOFLAGS} --no-split --no-version-header -o ${.TARGET} ${.IMPSRC} +.endif # defined(TEXINFO) .endif # ${MKINFO} != "no" @@ -80,7 +82,9 @@ infoinstall:: ${_F} .endif # ${MKINFO} != "no" # Clean rules +.if defined(TEXINFO) CLEANDIRFILES+= ${INFOFILES} +.endif # Pull in related .mk logic .include
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Sun Aug 18 03:49:23 UTC 2024 Modified Files: src/share/mk: bsd.info.mk Log Message: bsd.info.mk: Install INFOFILES as is, if TEXINFO is empty This allows us to install pre-generated info files. NFCI otherwise. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/share/mk/bsd.info.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Thu Aug 15 21:53:48 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch amd64 to gdb 15.1 To generate a diff of this commit: cvs rdiff -u -r1.1396 -r1.1397 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1396 src/share/mk/bsd.own.mk:1.1397 --- src/share/mk/bsd.own.mk:1.1396 Thu Aug 15 02:48:00 2024 +++ src/share/mk/bsd.own.mk Thu Aug 15 17:53:48 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1396 2024/08/15 06:48:00 mrg Exp $ +# $NetBSD: bsd.own.mk,v 1.1397 2024/08/15 21:53:48 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -150,7 +150,12 @@ EXTERNAL_BINUTILS_SUBDIR= /does/not/exis # # What GDB is used? # +.if \ +${MACHINE_ARCH} == "x86_64" +HAVE_GDB?= 1510 +.else HAVE_GDB?= 1320 +.endif .if ${HAVE_GDB} == 1510 EXTERNAL_GDB_SUBDIR= gdb
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Thu Aug 15 21:53:48 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch amd64 to gdb 15.1 To generate a diff of this commit: cvs rdiff -u -r1.1396 -r1.1397 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Thu Aug 15 06:48:00 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: allow HAVE_MESA_VER to be overriden by the environment. To generate a diff of this commit: cvs rdiff -u -r1.1395 -r1.1396 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1395 src/share/mk/bsd.own.mk:1.1396 --- src/share/mk/bsd.own.mk:1.1395 Tue Aug 13 03:08:31 2024 +++ src/share/mk/bsd.own.mk Thu Aug 15 06:48:00 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1395 2024/08/13 03:08:31 rin Exp $ +# $NetBSD: bsd.own.mk,v 1.1396 2024/08/15 06:48:00 mrg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1376,7 +1376,7 @@ HAVE_XORG_SERVER_VER?=120 # Newer Mesa does not build with old X server # VAX build triggers a gcc internal error .if ${HAVE_XORG_SERVER_VER} != "120" || ${MACHINE} == "vax" -HAVE_MESA_VER=19 +HAVE_MESA_VER?=19 .endif HAVE_MESA_VER?= 21
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Thu Aug 15 06:48:00 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: allow HAVE_MESA_VER to be overriden by the environment. To generate a diff of this commit: cvs rdiff -u -r1.1395 -r1.1396 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Tue Aug 13 03:08:31 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: Switch alpha and sh3 to binutils 2.42 No new regression for ATF, and some pkgsrc's successfully build. Bootloaders also work fine, at least: - alpha: bootxx_ffsv2, boot, netboot - landisk: mbr, bootxx_ffsv2, boot To generate a diff of this commit: cvs rdiff -u -r1.1394 -r1.1395 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1394 src/share/mk/bsd.own.mk:1.1395 --- src/share/mk/bsd.own.mk:1.1394 Mon Aug 12 21:30:20 2024 +++ src/share/mk/bsd.own.mk Tue Aug 13 03:08:31 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1394 2024/08/12 21:30:20 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.1395 2024/08/13 03:08:31 rin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -127,10 +127,12 @@ NOGCCISL= # defined # .if \ ${MACHINE_CPU} == "aarch64" || \ +${MACHINE_ARCH} == "alpha" || \ ${MACHINE_CPU} == "arm" || \ ${MACHINE_CPU} == "hppa" || \ ${MACHINE_CPU} == "mips" || \ ${MACHINE_CPU} == "riscv" || \ +${MACHINE_CPU} == "sh3" || \ ${MACHINE_ARCH} == "x86_64" HAVE_BINUTILS?= 242 .else
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Tue Aug 13 03:08:31 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: Switch alpha and sh3 to binutils 2.42 No new regression for ATF, and some pkgsrc's successfully build. Bootloaders also work fine, at least: - alpha: bootxx_ffsv2, boot, netboot - landisk: mbr, bootxx_ffsv2, boot To generate a diff of this commit: cvs rdiff -u -r1.1394 -r1.1395 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Mon Aug 12 21:30:20 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: point gdb to gdb.old To generate a diff of this commit: cvs rdiff -u -r1.1393 -r1.1394 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1393 src/share/mk/bsd.own.mk:1.1394 --- src/share/mk/bsd.own.mk:1.1393 Sat Aug 10 19:49:12 2024 +++ src/share/mk/bsd.own.mk Mon Aug 12 17:30:20 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1393 2024/08/10 23:49:12 mrg Exp $ +# $NetBSD: bsd.own.mk,v 1.1394 2024/08/12 21:30:20 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -150,9 +150,9 @@ EXTERNAL_BINUTILS_SUBDIR= /does/not/exis # HAVE_GDB?= 1320 -.if ${HAVE_GDB} == 1320 +.if ${HAVE_GDB} == 1510 EXTERNAL_GDB_SUBDIR= gdb -.elif ${HAVE_GDB} == 1100 +.elif ${HAVE_GDB} == 1320 EXTERNAL_GDB_SUBDIR= gdb.old .else EXTERNAL_GDB_SUBDIR= /does/not/exist
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Mon Aug 12 21:30:20 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: point gdb to gdb.old To generate a diff of this commit: cvs rdiff -u -r1.1393 -r1.1394 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Tue Jul 16 21:10:16 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch arm to new binutils (2.42) To generate a diff of this commit: cvs rdiff -u -r1.1391 -r1.1392 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Tue Jul 16 21:10:16 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch arm to new binutils (2.42) To generate a diff of this commit: cvs rdiff -u -r1.1391 -r1.1392 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1391 src/share/mk/bsd.own.mk:1.1392 --- src/share/mk/bsd.own.mk:1.1391 Mon Jul 15 08:37:59 2024 +++ src/share/mk/bsd.own.mk Tue Jul 16 21:10:16 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1391 2024/07/15 08:37:59 skrll Exp $ +# $NetBSD: bsd.own.mk,v 1.1392 2024/07/16 21:10:16 skrll Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -119,6 +119,7 @@ MKGCCCMDS?= no # .if \ ${MACHINE_CPU} == "aarch64" || \ +${MACHINE_CPU} == "arm" || \ ${MACHINE_CPU} == "hppa" || \ ${MACHINE_CPU} == "mips" || \ ${MACHINE_CPU} == "riscv" || \
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Mon Jul 15 08:37:59 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch hppa to new binutils (2.42) To generate a diff of this commit: cvs rdiff -u -r1.1390 -r1.1391 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1390 src/share/mk/bsd.own.mk:1.1391 --- src/share/mk/bsd.own.mk:1.1390 Sun Jul 14 09:54:07 2024 +++ src/share/mk/bsd.own.mk Mon Jul 15 08:37:59 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1390 2024/07/14 09:54:07 skrll Exp $ +# $NetBSD: bsd.own.mk,v 1.1391 2024/07/15 08:37:59 skrll Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -119,6 +119,7 @@ MKGCCCMDS?= no # .if \ ${MACHINE_CPU} == "aarch64" || \ +${MACHINE_CPU} == "hppa" || \ ${MACHINE_CPU} == "mips" || \ ${MACHINE_CPU} == "riscv" || \ ${MACHINE_ARCH} == "x86_64"
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Mon Jul 15 08:37:59 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch hppa to new binutils (2.42) To generate a diff of this commit: cvs rdiff -u -r1.1390 -r1.1391 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Sun Jul 14 09:54:07 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch aarch64 (evbarm64) to new binutils (2.42) To generate a diff of this commit: cvs rdiff -u -r1.1389 -r1.1390 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1389 src/share/mk/bsd.own.mk:1.1390 --- src/share/mk/bsd.own.mk:1.1389 Sun Jul 14 06:43:11 2024 +++ src/share/mk/bsd.own.mk Sun Jul 14 09:54:07 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1389 2024/07/14 06:43:11 skrll Exp $ +# $NetBSD: bsd.own.mk,v 1.1390 2024/07/14 09:54:07 skrll Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -118,6 +118,7 @@ MKGCCCMDS?= no # What binutils is used? # .if \ +${MACHINE_CPU} == "aarch64" || \ ${MACHINE_CPU} == "mips" || \ ${MACHINE_CPU} == "riscv" || \ ${MACHINE_ARCH} == "x86_64"
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Sun Jul 14 09:54:07 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch aarch64 (evbarm64) to new binutils (2.42) To generate a diff of this commit: cvs rdiff -u -r1.1389 -r1.1390 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Sun Jul 14 06:43:11 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch RISC-V to new binutils (2.42) To generate a diff of this commit: cvs rdiff -u -r1.1388 -r1.1389 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1388 src/share/mk/bsd.own.mk:1.1389 --- src/share/mk/bsd.own.mk:1.1388 Sat Jul 13 03:38:12 2024 +++ src/share/mk/bsd.own.mk Sun Jul 14 06:43:11 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1388 2024/07/13 03:38:12 rin Exp $ +# $NetBSD: bsd.own.mk,v 1.1389 2024/07/14 06:43:11 skrll Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -119,6 +119,7 @@ MKGCCCMDS?= no # .if \ ${MACHINE_CPU} == "mips" || \ +${MACHINE_CPU} == "riscv" || \ ${MACHINE_ARCH} == "x86_64" HAVE_BINUTILS?= 242 .else
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Sun Jul 14 06:43:11 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch RISC-V to new binutils (2.42) To generate a diff of this commit: cvs rdiff -u -r1.1388 -r1.1389 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Sat Jul 13 03:38:12 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: Switch mips to binutils 2.42 There is no new regression observed for brief tests on OCTEON ({,n}64eb) as well as on MIPSSIM{,64} (all ABI combinations). Let us see what happens for PR toolchain/57241; I've never reproduced this failure locally. It may be precisely host-environment dependent, and therefore very hard to track :( To generate a diff of this commit: cvs rdiff -u -r1.1387 -r1.1388 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1387 src/share/mk/bsd.own.mk:1.1388 --- src/share/mk/bsd.own.mk:1.1387 Wed Jul 10 07:46:16 2024 +++ src/share/mk/bsd.own.mk Sat Jul 13 03:38:12 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1387 2024/07/10 07:46:16 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.1388 2024/07/13 03:38:12 rin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -118,6 +118,7 @@ MKGCCCMDS?= no # What binutils is used? # .if \ +${MACHINE_CPU} == "mips" || \ ${MACHINE_ARCH} == "x86_64" HAVE_BINUTILS?= 242 .else
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Sat Jul 13 03:38:12 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: Switch mips to binutils 2.42 There is no new regression observed for brief tests on OCTEON ({,n}64eb) as well as on MIPSSIM{,64} (all ABI combinations). Let us see what happens for PR toolchain/57241; I've never reproduced this failure locally. It may be precisely host-environment dependent, and therefore very hard to track :( To generate a diff of this commit: cvs rdiff -u -r1.1387 -r1.1388 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Wed Jul 10 07:46:16 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch amd64 to binutils-2.42 To generate a diff of this commit: cvs rdiff -u -r1.1386 -r1.1387 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1386 src/share/mk/bsd.own.mk:1.1387 --- src/share/mk/bsd.own.mk:1.1386 Tue Jul 9 04:20:34 2024 +++ src/share/mk/bsd.own.mk Wed Jul 10 03:46:16 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1386 2024/07/09 08:20:34 rin Exp $ +# $NetBSD: bsd.own.mk,v 1.1387 2024/07/10 07:46:16 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -117,7 +117,12 @@ MKGCCCMDS?= no # # What binutils is used? # +.if \ +${MACHINE_ARCH} == "x86_64" +HAVE_BINUTILS?= 242 +.else HAVE_BINUTILS?= 239 +.endif .if ${HAVE_BINUTILS} == 242 EXTERNAL_BINUTILS_SUBDIR= binutils
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Wed Jul 10 07:46:16 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch amd64 to binutils-2.42 To generate a diff of this commit: cvs rdiff -u -r1.1386 -r1.1387 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Tue Jul 9 08:20:34 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: Fix MKCOMPAT=no build for mipsn64e[bl] To generate a diff of this commit: cvs rdiff -u -r1.1385 -r1.1386 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1385 src/share/mk/bsd.own.mk:1.1386 --- src/share/mk/bsd.own.mk:1.1385 Sun Jun 30 15:56:08 2024 +++ src/share/mk/bsd.own.mk Tue Jul 9 08:20:34 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1385 2024/06/30 15:56:08 christos Exp $ +# $NetBSD: bsd.own.mk,v 1.1386 2024/07/09 08:20:34 rin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1592,7 +1592,7 @@ OBJECT_FMTS= OBJECT_FMTS+= elf32 .endif .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH:M*64*} != "" -. if !(${MKCOMPAT:Uyes} == "no" && ${MACHINE_CPU} == "mips") +. if !(${MKCOMPAT:Uyes} == "no" && ${MACHINE_ARCH:Mmips64*} != "") OBJECT_FMTS+= elf64 . endif .endif
CVS commit: src/share/mk
Module Name:src Committed By: rin Date: Tue Jul 9 08:20:34 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: Fix MKCOMPAT=no build for mipsn64e[bl] To generate a diff of this commit: cvs rdiff -u -r1.1385 -r1.1386 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Thu Jul 4 21:48:19 UTC 2024 Modified Files: src/share/mk: bsd.x11.mk Log Message: bump xorg-server version. To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.158 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.x11.mk diff -u src/share/mk/bsd.x11.mk:1.157 src/share/mk/bsd.x11.mk:1.158 --- src/share/mk/bsd.x11.mk:1.157 Wed Jul 3 09:37:05 2024 +++ src/share/mk/bsd.x11.mk Thu Jul 4 21:48:19 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.x11.mk,v 1.157 2024/07/03 09:37:05 mrg Exp $ +# $NetBSD: bsd.x11.mk,v 1.158 2024/07/04 21:48:19 mrg Exp $ .include @@ -133,7 +133,7 @@ XORG_VERSION_CURRENT="(((${XORG_SERVER_M .else XORG_SERVER_MAJOR= 21 XORG_SERVER_MINOR= 1 -XORG_SERVER_TEENY= 9 +XORG_SERVER_TEENY= 13 XORG_VERSION_CURRENT="((1000) + ((${XORG_SERVER_MAJOR}) * 10) + ((${XORG_SERVER_MINOR}) * 1000) + ${XORG_SERVER_TEENY})" .endif
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Thu Jul 4 21:48:19 UTC 2024 Modified Files: src/share/mk: bsd.x11.mk Log Message: bump xorg-server version. To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.158 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Wed Jul 3 09:37:05 UTC 2024 Modified Files: src/share/mk: bsd.x11.mk Log Message: avoid an error in the previous with unexpected inputs. To generate a diff of this commit: cvs rdiff -u -r1.156 -r1.157 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.x11.mk diff -u src/share/mk/bsd.x11.mk:1.156 src/share/mk/bsd.x11.mk:1.157 --- src/share/mk/bsd.x11.mk:1.156 Wed Jul 3 09:24:04 2024 +++ src/share/mk/bsd.x11.mk Wed Jul 3 09:37:05 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.x11.mk,v 1.156 2024/07/03 09:24:04 mrg Exp $ +# $NetBSD: bsd.x11.mk,v 1.157 2024/07/03 09:37:05 mrg Exp $ .include @@ -451,10 +451,14 @@ _X11MANTRANSFORMS_BOTH=\ XCONFIGFILEMAN 'xorg.conf(5)' \ xlocaledir ${X11LIBDIR}/locale \ xorgversion ${XORGVERSION:C/ /%/gW} \ - PACKAGE_STRING ${PACKAGE_STRING} \ XSERVERNAME Xorg \ xservername Xorg +.if !empty(PACKAGE_STRING) +_X11MANTRANSFORMS_BOTH+=\ + PACKAGE_STRING ${PACKAGE_STRING} +.endif + .for __def__ __value__ in ${_X11MANTRANSFORMS_BOTH} _X11MANTRANSFORM+= \ __${__def__}__ ${__value__} \
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Wed Jul 3 09:37:05 UTC 2024 Modified Files: src/share/mk: bsd.x11.mk Log Message: avoid an error in the previous with unexpected inputs. To generate a diff of this commit: cvs rdiff -u -r1.156 -r1.157 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Wed Jul 3 09:24:04 UTC 2024 Modified Files: src/share/mk: bsd.x11.mk Log Message: add some more transformations for man pages, needed by new appres. To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.x11.mk diff -u src/share/mk/bsd.x11.mk:1.155 src/share/mk/bsd.x11.mk:1.156 --- src/share/mk/bsd.x11.mk:1.155 Thu May 9 06:34:51 2024 +++ src/share/mk/bsd.x11.mk Wed Jul 3 09:24:04 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.x11.mk,v 1.155 2024/05/09 06:34:51 nia Exp $ +# $NetBSD: bsd.x11.mk,v 1.156 2024/07/03 09:24:04 mrg Exp $ .include @@ -149,6 +149,20 @@ PRINT_PACKAGE_VERSION= ${TOOL_AWK} '/^PA version = substr($$1, RSTART, RLENGTH); \ } END { print version }' +_CONFIGURE_PATH= +.if exists(${X11SRCDIR.${PROG}}/configure) +_CONFIGURE_PATH=${X11SRCDIR.${PROG}}/configure +.elif exists(${X11SRCDIR.${LIB}}/configure) +_CONFIGURE_PATH=${X11SRCDIR.${LIB}}/configure +.endif + +.if exists(${_CONFIGURE_PATH}) +_PRINT_PACKAGE_STRING= ${TOOL_AWK} -F= '/^PACKAGE_STRING=/ { print $$2 }' \ + ${_CONFIGURE_PATH} +PACKAGE_STRING!= ${_PRINT_PACKAGE_STRING} +.else +PACKAGE_STRING= "X11 program" +.endif # Commandline to convert 'XCOMM' comments and 'XHASH' to '#', among other # things. Transformed from the "CppSedMagic" macro from "Imake.rules". @@ -412,13 +426,16 @@ _X11MANTRANSFORM= \ _X11MANTRANSFORMS_BOTH=\ ${X11EXTRAMANTRANSFORMS_BOTH} \ appmansuffix 1 \ + APP_MAN_SUFFIX 1 \ LIB_MAN_SUFFIX 3 \ libmansuffix 3 \ oslibmansuffix 3 \ drivermansuffix 4 \ filemansuffix 5 \ + MISC_MAN_SUFFIX 7 \ miscmansuffix 7 \ adminmansuffix 8 \ + XORG_MAN_PAGE "X Version 11" \ logdir /var/log \ sysconfdir /etc \ apploaddir ${X11ROOTDIR}/lib/X11/app-defaults \ @@ -434,6 +451,7 @@ _X11MANTRANSFORMS_BOTH=\ XCONFIGFILEMAN 'xorg.conf(5)' \ xlocaledir ${X11LIBDIR}/locale \ xorgversion ${XORGVERSION:C/ /%/gW} \ + PACKAGE_STRING ${PACKAGE_STRING} \ XSERVERNAME Xorg \ xservername Xorg
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Wed Jul 3 09:24:04 UTC 2024 Modified Files: src/share/mk: bsd.x11.mk Log Message: add some more transformations for man pages, needed by new appres. To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Sun Jun 30 15:56:08 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch everyone to binutils.old To generate a diff of this commit: cvs rdiff -u -r1.1384 -r1.1385 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1384 src/share/mk/bsd.own.mk:1.1385 --- src/share/mk/bsd.own.mk:1.1384 Sat Jun 29 19:25:28 2024 +++ src/share/mk/bsd.own.mk Sun Jun 30 11:56:08 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1384 2024/06/29 23:25:28 mrg Exp $ +# $NetBSD: bsd.own.mk,v 1.1385 2024/06/30 15:56:08 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -119,9 +119,9 @@ MKGCCCMDS?= no # HAVE_BINUTILS?= 239 -.if ${HAVE_BINUTILS} == 239 +.if ${HAVE_BINUTILS} == 242 EXTERNAL_BINUTILS_SUBDIR= binutils -.elif ${HAVE_BINUTILS} == 234 +.elif ${HAVE_BINUTILS} == 239 EXTERNAL_BINUTILS_SUBDIR= binutils.old .else EXTERNAL_BINUTILS_SUBDIR= /does/not/exist
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Sun Jun 30 15:56:08 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch everyone to binutils.old To generate a diff of this commit: cvs rdiff -u -r1.1384 -r1.1385 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sat Jun 29 23:25:29 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch powerpc and mips to GCC 12. To generate a diff of this commit: cvs rdiff -u -r1.1383 -r1.1384 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1383 src/share/mk/bsd.own.mk:1.1384 --- src/share/mk/bsd.own.mk:1.1383 Sat Jun 22 23:26:37 2024 +++ src/share/mk/bsd.own.mk Sat Jun 29 23:25:28 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1383 2024/06/22 23:26:37 mrg Exp $ +# $NetBSD: bsd.own.mk,v 1.1384 2024/06/29 23:25:28 mrg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -78,6 +78,8 @@ TOOLCHAIN_MISSING?= no .if \ ${MACHINE_CPU} == "aarch64" || \ ${MACHINE_CPU} == "arm" || \ +${MACHINE_CPU} == "mips" || \ +${MACHINE_CPU} == "powerpc" || \ ${MACHINE_CPU} == "riscv" || \ ${MACHINE_ARCH} == "x86_64" || \ ${MACHINE_ARCH} == "i386" || \
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sat Jun 29 23:25:29 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch powerpc and mips to GCC 12. To generate a diff of this commit: cvs rdiff -u -r1.1383 -r1.1384 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Fri Jun 28 21:58:24 UTC 2024 Modified Files: src/share/mk: bsd.README bsd.lib.mk Log Message: bsd.lib.mk: Resolve VERSION_MAP like a target prerequisite. Not sure what I did before to make ${${VERSION_MAP}:P} fail to work; can't reproduce it any more! PR lib/58376 To generate a diff of this commit: cvs rdiff -u -r1.448 -r1.449 src/share/mk/bsd.README cvs rdiff -u -r1.406 -r1.407 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.README diff -u src/share/mk/bsd.README:1.448 src/share/mk/bsd.README:1.449 --- src/share/mk/bsd.README:1.448 Fri Jun 28 20:45:26 2024 +++ src/share/mk/bsd.README Fri Jun 28 21:58:24 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.README,v 1.448 2024/06/28 20:45:26 riastradh Exp $ +# $NetBSD: bsd.README,v 1.449 2024/06/28 21:58:24 riastradh Exp $ # @(#)bsd.README 8.2 (Berkeley) 4/2/94 This is the README file for the make "include" files for the NetBSD @@ -1014,11 +1014,8 @@ LIB_EXPSYM File listing all symbols expe from the actual ones with `make update-symbols'. VERSION_MAP Path to an ld version script to use when linking the - library. If a relative path, interpreted relative to - the object directory; use ${.CURDIR}/foo.map if foo.map - is in the source directory. Interpretation of relative - path may be changed later to search .PATH like target - prerequisites. + library. Resolved from .PATH like a target + prerequisite. The include file includes the file named "../Makefile.inc" Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.406 src/share/mk/bsd.lib.mk:1.407 --- src/share/mk/bsd.lib.mk:1.406 Fri Jun 28 20:45:26 2024 +++ src/share/mk/bsd.lib.mk Fri Jun 28 21:58:24 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.406 2024/06/28 20:45:26 riastradh Exp $ +# $NetBSD: bsd.lib.mk,v 1.407 2024/06/28 21:58:24 riastradh Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -615,36 +615,15 @@ LIBCC:= ${CC} # VERSION_MAP # # Path to an ld version script to use when linking the library. -# If a relative path, interpreted relative to the object -# directory; use ${.CURDIR}/foo.map if foo.map is in the source -# directory. Interpretation of relative path may be changed -# later to search .PATH like target prerequisites. +# Resolved from .PATH like a target prerequisite. # -# Implemented by adding -Wl,--version-script=${VERSION_MAP} to -# LDFLAGS. +# Implemented by adding -Wl,--version-script=${${VERSION_MAP}:P} +# to LDFLAGS, and by adding ${VERSION_MAP} to DPADD to make it a +# target prerequisite so :P works. # .if !empty(VERSION_MAP) -# It is tempting to use the make :P modifier here so that you can just -# write -# -# VERSION_MAP= foo.map -# -# instead of -# -# VERSION_MAP= ${.CURDIR}/foo.map -# -# but it appears that :P works _only_ with literal names, not with -# expansions, so while you could write -# -# VERSION_MAP= ${foo.map:P} -# -# in the makefile, we can't set -# -# LDFLAGS+= -Wl,--version-script=${${VERSION_MAP}:P} -# -# here. DPADD+= ${VERSION_MAP} -LDFLAGS+= -Wl,--version-script=${VERSION_MAP} +LDFLAGS+= -Wl,--version-script=${${VERSION_MAP}:P} .endif _LDADD.${_LIB}= ${LDADD} ${LDADD.${_LIB}}
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Fri Jun 28 21:58:24 UTC 2024 Modified Files: src/share/mk: bsd.README bsd.lib.mk Log Message: bsd.lib.mk: Resolve VERSION_MAP like a target prerequisite. Not sure what I did before to make ${${VERSION_MAP}:P} fail to work; can't reproduce it any more! PR lib/58376 To generate a diff of this commit: cvs rdiff -u -r1.448 -r1.449 src/share/mk/bsd.README cvs rdiff -u -r1.406 -r1.407 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Re: CVS commit: src/share/mk
Am 28.06.2024 um 22:45 schrieb Taylor R Campbell: > +# It is tempting to use the make :P modifier here so that you can just > +# write > +# > +#VERSION_MAP=foo.map > +# > +# instead of > +# > +#VERSION_MAP=${.CURDIR}/foo.map > +# > +# but it appears that :P works _only_ with literal names, not with > +# expansions, so while you could write > +# > +#VERSION_MAP=${foo.map:P} > +# > +# in the makefile, we can't set > +# > +#LDFLAGS+= -Wl,--version-script=${${VERSION_MAP}:P} > +# > +# here. The ':P' modifier treats a literal in the same way as an expression, so there's no difference between ${foo.map:P} and ${${:Ufoo.map}:P}, as in both cases the "variable name" is 'foo.map'. If you still remember how you came to that conclusion, I'd be interested in it. In order to make the ':P' modifier work, the "variable name" must be an existing node in the dependency tree, at the point where the ':P' modifier is evaluated. Here's a demonstration: > .MAKEFLAGS: -dv > .PATH: /dev > VERSION_MAP= null > Resolve_via_Path: .PHONY .NOTMAIN ${VERSION_MAP} > LDFLAGS+= -Wl,--version-script=${${VERSION_MAP}:P} > LDFLAGS+= -Wl,--version-script=${null:P} > .info ${LDFLAGS} > .MAKEFLAGS: -dF/dev/null > all: The 'Resolve_via_Path' dependency line adds the VERSION_MAP file to the dependency tree. Instead of 'Resolve_via_Path', you can choose any other name or even leave it empty, making the line start with a "magic colon". Roland
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Fri Jun 28 20:45:26 UTC 2024 Modified Files: src/share/mk: bsd.README bsd.lib.mk Log Message: bsd.lib.mk: New variable VERSION_MAP. This updates LDFLAGS with the right -Wl,--version-script=... argument as well as DPADD so that changing the version script causes the library to be rebuilt. Name chosen to match FreeBSD. PR lib/58376 To generate a diff of this commit: cvs rdiff -u -r1.447 -r1.448 src/share/mk/bsd.README cvs rdiff -u -r1.405 -r1.406 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Fri Jun 28 20:45:26 UTC 2024 Modified Files: src/share/mk: bsd.README bsd.lib.mk Log Message: bsd.lib.mk: New variable VERSION_MAP. This updates LDFLAGS with the right -Wl,--version-script=... argument as well as DPADD so that changing the version script causes the library to be rebuilt. Name chosen to match FreeBSD. PR lib/58376 To generate a diff of this commit: cvs rdiff -u -r1.447 -r1.448 src/share/mk/bsd.README cvs rdiff -u -r1.405 -r1.406 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.README diff -u src/share/mk/bsd.README:1.447 src/share/mk/bsd.README:1.448 --- src/share/mk/bsd.README:1.447 Fri Apr 5 01:16:00 2024 +++ src/share/mk/bsd.README Fri Jun 28 20:45:26 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.README,v 1.447 2024/04/05 01:16:00 christos Exp $ +# $NetBSD: bsd.README,v 1.448 2024/06/28 20:45:26 riastradh Exp $ # @(#)bsd.README 8.2 (Berkeley) 4/2/94 This is the README file for the make "include" files for the NetBSD @@ -1013,6 +1013,13 @@ LIB_EXPSYM File listing all symbols expe During development, you can update the expected symbols from the actual ones with `make update-symbols'. +VERSION_MAP Path to an ld version script to use when linking the + library. If a relative path, interpreted relative to + the object directory; use ${.CURDIR}/foo.map if foo.map + is in the source directory. Interpretation of relative + path may be changed later to search .PATH like target + prerequisites. + The include file includes the file named "../Makefile.inc" if it exists, as well as the include file . Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.405 src/share/mk/bsd.lib.mk:1.406 --- src/share/mk/bsd.lib.mk:1.405 Wed May 8 20:38:55 2024 +++ src/share/mk/bsd.lib.mk Fri Jun 28 20:45:26 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.405 2024/05/08 20:38:55 riastradh Exp $ +# $NetBSD: bsd.lib.mk,v 1.406 2024/06/28 20:45:26 riastradh Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -612,6 +612,41 @@ LIBDPLIBS+= stdc++ ${.CURDIR}/../../ LIBCC:= ${CC} .endif +# VERSION_MAP +# +# Path to an ld version script to use when linking the library. +# If a relative path, interpreted relative to the object +# directory; use ${.CURDIR}/foo.map if foo.map is in the source +# directory. Interpretation of relative path may be changed +# later to search .PATH like target prerequisites. +# +# Implemented by adding -Wl,--version-script=${VERSION_MAP} to +# LDFLAGS. +# +.if !empty(VERSION_MAP) +# It is tempting to use the make :P modifier here so that you can just +# write +# +# VERSION_MAP= foo.map +# +# instead of +# +# VERSION_MAP= ${.CURDIR}/foo.map +# +# but it appears that :P works _only_ with literal names, not with +# expansions, so while you could write +# +# VERSION_MAP= ${foo.map:P} +# +# in the makefile, we can't set +# +# LDFLAGS+= -Wl,--version-script=${${VERSION_MAP}:P} +# +# here. +DPADD+= ${VERSION_MAP} +LDFLAGS+= -Wl,--version-script=${VERSION_MAP} +.endif + _LDADD.${_LIB}= ${LDADD} ${LDADD.${_LIB}} _LDFLAGS.${_LIB}= ${LDFLAGS} ${LDFLAGS.${_LIB}}
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sat Jun 22 23:26:37 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: now that alpha builds with xorg-server 21 again, switch it back. To generate a diff of this commit: cvs rdiff -u -r1.1382 -r1.1383 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sat Jun 22 23:26:37 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: now that alpha builds with xorg-server 21 again, switch it back. To generate a diff of this commit: cvs rdiff -u -r1.1382 -r1.1383 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1382 src/share/mk/bsd.own.mk:1.1383 --- src/share/mk/bsd.own.mk:1.1382 Sun Jun 16 21:48:23 2024 +++ src/share/mk/bsd.own.mk Sat Jun 22 23:26:37 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1382 2024/06/16 21:48:23 skrll Exp $ +# $NetBSD: bsd.own.mk,v 1.1383 2024/06/22 23:26:37 mrg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1345,7 +1345,7 @@ MKDTB.riscv64= yes # During transition from xorg-server 1.10 to 1.20 # XXX sgimips uses XAA which is removed in 1.20, and EXA is hard # XXX to do the same with. -.if ${MACHINE} == "sgimips" || ${MACHINE} == "alpha" +.if ${MACHINE} == "sgimips" HAVE_XORG_SERVER_VER?=110 .else HAVE_XORG_SERVER_VER?=120
CVS commit: src/share/mk
Module Name:src Committed By: pgoyette Date: Sun Jun 16 21:50:23 UTC 2024 Modified Files: src/share/mk: bsd.kmodule.mk Log Message: Import AFLAGS to allow processing of assembler files in modules. Prerequisite for kern/583346. To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/share/mk/bsd.kmodule.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: pgoyette Date: Sun Jun 16 21:50:23 UTC 2024 Modified Files: src/share/mk: bsd.kmodule.mk Log Message: Import AFLAGS to allow processing of assembler files in modules. Prerequisite for kern/583346. To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/share/mk/bsd.kmodule.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.kmodule.mk diff -u src/share/mk/bsd.kmodule.mk:1.85 src/share/mk/bsd.kmodule.mk:1.86 --- src/share/mk/bsd.kmodule.mk:1.85 Mon May 6 08:43:37 2024 +++ src/share/mk/bsd.kmodule.mk Sun Jun 16 21:50:23 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.kmodule.mk,v 1.85 2024/05/06 08:43:37 mrg Exp $ +# $NetBSD: bsd.kmodule.mk,v 1.86 2024/06/16 21:50:23 pgoyette Exp $ # We are not building this with PIE MKPIE=no @@ -31,6 +31,7 @@ CPPFLAGS+= -nostdinc -I. -I${.CURDIR} -i CPPFLAGS+= -isystem ${S}/../common/include CPPFLAGS+= -D_KERNEL -D_MODULE -DSYSCTL_INCLUDE_DESCR CPPFLAGS+= ${${MKDTRACE:Uno} != "no" :? -DKDTRACE_HOOKS :} +AFLAGS+= -D_LOCORE -Wa,--fatal-warnings CWARNFLAGS.clang+= -Wno-error=constant-conversion
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Sun Jun 16 21:48:23 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch hppa to gcc 12 To generate a diff of this commit: cvs rdiff -u -r1.1381 -r1.1382 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1381 src/share/mk/bsd.own.mk:1.1382 --- src/share/mk/bsd.own.mk:1.1381 Sun Jun 16 21:19:55 2024 +++ src/share/mk/bsd.own.mk Sun Jun 16 21:48:23 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1381 2024/06/16 21:19:55 skrll Exp $ +# $NetBSD: bsd.own.mk,v 1.1382 2024/06/16 21:48:23 skrll Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -81,6 +81,7 @@ TOOLCHAIN_MISSING?= no ${MACHINE_CPU} == "riscv" || \ ${MACHINE_ARCH} == "x86_64" || \ ${MACHINE_ARCH} == "i386" || \ +${MACHINE} == "hppa" || \ ${MACHINE} == "sparc" || \ ${MACHINE} == "sparc64" || \ ${MACHINE} == "ia64" || \
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Sun Jun 16 21:48:23 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch hppa to gcc 12 To generate a diff of this commit: cvs rdiff -u -r1.1381 -r1.1382 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Sun Jun 16 21:19:55 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Style and sort MACHINE_CPU entries for GCC version conditional. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.1380 -r1.1381 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1380 src/share/mk/bsd.own.mk:1.1381 --- src/share/mk/bsd.own.mk:1.1380 Sun Jun 16 20:22:29 2024 +++ src/share/mk/bsd.own.mk Sun Jun 16 21:19:55 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1380 2024/06/16 20:22:29 mrg Exp $ +# $NetBSD: bsd.own.mk,v 1.1381 2024/06/16 21:19:55 skrll Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -75,9 +75,10 @@ TOOLCHAIN_MISSING?= no # # What GCC is used? # -.if ${MACHINE_CPU} == "aarch64" || \ -${MACHINE_CPU} == "riscv" || \ +.if \ +${MACHINE_CPU} == "aarch64" || \ ${MACHINE_CPU} == "arm" || \ +${MACHINE_CPU} == "riscv" || \ ${MACHINE_ARCH} == "x86_64" || \ ${MACHINE_ARCH} == "i386" || \ ${MACHINE} == "sparc" || \
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Sun Jun 16 21:19:55 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Style and sort MACHINE_CPU entries for GCC version conditional. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.1380 -r1.1381 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: hgutch Date: Sun Jun 16 21:11:53 UTC 2024 Modified Files: src/share/mk: bsd.info.mk Log Message: Simplify test for 0 byte file size pointed out by kre@ To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/share/mk/bsd.info.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.info.mk diff -u src/share/mk/bsd.info.mk:1.44 src/share/mk/bsd.info.mk:1.45 --- src/share/mk/bsd.info.mk:1.44 Sun Jun 16 00:03:52 2024 +++ src/share/mk/bsd.info.mk Sun Jun 16 21:11:53 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.info.mk,v 1.44 2024/06/16 00:03:52 hgutch Exp $ +# $NetBSD: bsd.info.mk,v 1.45 2024/06/16 21:11:53 hgutch Exp $ .include @@ -45,8 +45,7 @@ __infoinstall: .USE @[ -f ${INFODIRFILE} ] || touch ${INFODIRFILE}; \ while ! ln ${INFODIRFILE} ${INFODIRFILE}.lock 2> /dev/null; \ do sleep 1; done; \ - [ $$(${TOOL_STAT} -qf '%z' ${INFODIRFILE}) -eq 0 ] && \ - rm -f ${INFODIRFILE} || \ + ! [ -s ${INFODIRFILE} ] && rm -f ${INFODIRFILE} || \ ${TOOL_INSTALL_INFO} -d ${INFODIRFILE} -r ${.TARGET} 2> /dev/null; \ ${TOOL_INSTALL_INFO} -d ${INFODIRFILE} ${.TARGET}; \ ${TOOL_SORTINFO} < ${INFODIRFILE} > ${INFODIRFILE}.tmp; \
CVS commit: src/share/mk
Module Name:src Committed By: hgutch Date: Sun Jun 16 21:11:53 UTC 2024 Modified Files: src/share/mk: bsd.info.mk Log Message: Simplify test for 0 byte file size pointed out by kre@ To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/share/mk/bsd.info.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sun Jun 16 20:22:30 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: alpha and xorg-server 1.20 has regressed since i last tested. revert alpha back to 1.10 for now. To generate a diff of this commit: cvs rdiff -u -r1.1379 -r1.1380 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1379 src/share/mk/bsd.own.mk:1.1380 --- src/share/mk/bsd.own.mk:1.1379 Sun Jun 16 19:21:46 2024 +++ src/share/mk/bsd.own.mk Sun Jun 16 20:22:29 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1379 2024/06/16 19:21:46 mrg Exp $ +# $NetBSD: bsd.own.mk,v 1.1380 2024/06/16 20:22:29 mrg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1343,7 +1343,7 @@ MKDTB.riscv64= yes # During transition from xorg-server 1.10 to 1.20 # XXX sgimips uses XAA which is removed in 1.20, and EXA is hard # XXX to do the same with. -.if ${MACHINE} == "sgimips" +.if ${MACHINE} == "sgimips" || ${MACHINE} == "alpha" HAVE_XORG_SERVER_VER?=110 .else HAVE_XORG_SERVER_VER?=120
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sun Jun 16 20:22:30 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: alpha and xorg-server 1.20 has regressed since i last tested. revert alpha back to 1.10 for now. To generate a diff of this commit: cvs rdiff -u -r1.1379 -r1.1380 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sun Jun 16 19:21:46 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: check for MACHINE_ARCH of i386/x86_64 instead of MACHINE i386/amd64. seems to fix weird xen kernel builds where MACHINE=xen, and it would not have the GCC-12 only warning flags present. To generate a diff of this commit: cvs rdiff -u -r1.1378 -r1.1379 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1378 src/share/mk/bsd.own.mk:1.1379 --- src/share/mk/bsd.own.mk:1.1378 Sat Jun 15 20:35:14 2024 +++ src/share/mk/bsd.own.mk Sun Jun 16 19:21:46 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1378 2024/06/15 20:35:14 mrg Exp $ +# $NetBSD: bsd.own.mk,v 1.1379 2024/06/16 19:21:46 mrg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -78,8 +78,8 @@ TOOLCHAIN_MISSING?= no .if ${MACHINE_CPU} == "aarch64" || \ ${MACHINE_CPU} == "riscv" || \ ${MACHINE_CPU} == "arm" || \ -${MACHINE} == "amd64" || \ -${MACHINE} == "i386" || \ +${MACHINE_ARCH} == "x86_64" || \ +${MACHINE_ARCH} == "i386" || \ ${MACHINE} == "sparc" || \ ${MACHINE} == "sparc64" || \ ${MACHINE} == "ia64" || \
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sun Jun 16 19:21:46 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: check for MACHINE_ARCH of i386/x86_64 instead of MACHINE i386/amd64. seems to fix weird xen kernel builds where MACHINE=xen, and it would not have the GCC-12 only warning flags present. To generate a diff of this commit: cvs rdiff -u -r1.1378 -r1.1379 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: hgutch Date: Sun Jun 16 00:03:53 UTC 2024 Modified Files: src/share/mk: bsd.info.mk Log Message: Unbreak generation of share/info/dir install-info refuses to operate on 0 byte files. When __infoinstall is run the first time in a build, an empty ${INFODIRFILE} is created via touch. As install-info leaves this file untouched, we are left with a 0 byte file at the end. For subsequent __infostall runs the only difference is that ${INFODIRFILE} already exists as a 0 byte file, so no new one is created. Fix by deleting ${INFODIRFILE} in the loop (with the lock held) if it is a 0 byte file. In this case also don't bother with calling install-info -r. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/share/mk/bsd.info.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.info.mk diff -u src/share/mk/bsd.info.mk:1.43 src/share/mk/bsd.info.mk:1.44 --- src/share/mk/bsd.info.mk:1.43 Mon May 1 20:22:18 2023 +++ src/share/mk/bsd.info.mk Sun Jun 16 00:03:52 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.info.mk,v 1.43 2023/05/01 20:22:18 christos Exp $ +# $NetBSD: bsd.info.mk,v 1.44 2024/06/16 00:03:52 hgutch Exp $ .include @@ -45,6 +45,8 @@ __infoinstall: .USE @[ -f ${INFODIRFILE} ] || touch ${INFODIRFILE}; \ while ! ln ${INFODIRFILE} ${INFODIRFILE}.lock 2> /dev/null; \ do sleep 1; done; \ + [ $$(${TOOL_STAT} -qf '%z' ${INFODIRFILE}) -eq 0 ] && \ + rm -f ${INFODIRFILE} || \ ${TOOL_INSTALL_INFO} -d ${INFODIRFILE} -r ${.TARGET} 2> /dev/null; \ ${TOOL_INSTALL_INFO} -d ${INFODIRFILE} ${.TARGET}; \ ${TOOL_SORTINFO} < ${INFODIRFILE} > ${INFODIRFILE}.tmp; \
CVS commit: src/share/mk
Module Name:src Committed By: hgutch Date: Sun Jun 16 00:03:53 UTC 2024 Modified Files: src/share/mk: bsd.info.mk Log Message: Unbreak generation of share/info/dir install-info refuses to operate on 0 byte files. When __infoinstall is run the first time in a build, an empty ${INFODIRFILE} is created via touch. As install-info leaves this file untouched, we are left with a 0 byte file at the end. For subsequent __infostall runs the only difference is that ${INFODIRFILE} already exists as a 0 byte file, so no new one is created. Fix by deleting ${INFODIRFILE} in the loop (with the lock held) if it is a 0 byte file. In this case also don't bother with calling install-info -r. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/share/mk/bsd.info.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sat Jun 15 20:35:14 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch several ports over to GCC 12. arm32, arm64, riscv, x86, sparc*, ia64, and alpha. thanks for several folks help testing and fixing things, most espcially rin@. To generate a diff of this commit: cvs rdiff -u -r1.1377 -r1.1378 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1377 src/share/mk/bsd.own.mk:1.1378 --- src/share/mk/bsd.own.mk:1.1377 Sat Jun 15 20:33:05 2024 +++ src/share/mk/bsd.own.mk Sat Jun 15 20:35:14 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1377 2024/06/15 20:33:05 mrg Exp $ +# $NetBSD: bsd.own.mk,v 1.1378 2024/06/15 20:35:14 mrg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -75,6 +75,17 @@ TOOLCHAIN_MISSING?= no # # What GCC is used? # +.if ${MACHINE_CPU} == "aarch64" || \ +${MACHINE_CPU} == "riscv" || \ +${MACHINE_CPU} == "arm" || \ +${MACHINE} == "amd64" || \ +${MACHINE} == "i386" || \ +${MACHINE} == "sparc" || \ +${MACHINE} == "sparc64" || \ +${MACHINE} == "ia64" || \ +${MACHINE} == "alpha" +HAVE_GCC?= 12 +.endif HAVE_GCC?= 10 #
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sat Jun 15 20:35:14 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch several ports over to GCC 12. arm32, arm64, riscv, x86, sparc*, ia64, and alpha. thanks for several folks help testing and fixing things, most espcially rin@. To generate a diff of this commit: cvs rdiff -u -r1.1377 -r1.1378 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sat Jun 15 20:33:06 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch netwinder and alpha over to xorg-server 1.20. the leaves sgimips as the only remaining xorg-server 1.10 consumer, and largely because it has XAA and EXA and the sgimips drivers does not work well. To generate a diff of this commit: cvs rdiff -u -r1.1376 -r1.1377 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1376 src/share/mk/bsd.own.mk:1.1377 --- src/share/mk/bsd.own.mk:1.1376 Sat Jun 8 13:03:41 2024 +++ src/share/mk/bsd.own.mk Sat Jun 15 20:33:05 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1376 2024/06/08 13:03:41 tsutsui Exp $ +# $NetBSD: bsd.own.mk,v 1.1377 2024/06/15 20:33:05 mrg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1330,10 +1330,9 @@ MKDTB.riscv32= yes MKDTB.riscv64= yes # During transition from xorg-server 1.10 to 1.20 -.if \ -${MACHINE} == "alpha" || \ -${MACHINE} == "netwinder" || \ -${MACHINE} == "sgimips" +# XXX sgimips uses XAA which is removed in 1.20, and EXA is hard +# XXX to do the same with. +.if ${MACHINE} == "sgimips" HAVE_XORG_SERVER_VER?=110 .else HAVE_XORG_SERVER_VER?=120
CVS commit: src/share/mk
Module Name:src Committed By: mrg Date: Sat Jun 15 20:33:06 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: switch netwinder and alpha over to xorg-server 1.20. the leaves sgimips as the only remaining xorg-server 1.10 consumer, and largely because it has XAA and EXA and the sgimips drivers does not work well. To generate a diff of this commit: cvs rdiff -u -r1.1376 -r1.1377 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Wed May 8 20:38:55 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: bsd.lib.mk: Use LIBC_MACHINE_ARCH/CPU if set for expected symbols. Otherwise, we get the wrong list of symbols for compat library builds, where MACHINE_ARCH/CPU is different from LIBC_MACHINE_ARCH/CPU, e.g. building compat 32-bit sparc libm on sparc64. XXX This is kinda kludgey -- `libc' seems wrong here. To generate a diff of this commit: cvs rdiff -u -r1.404 -r1.405 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Wed May 8 20:38:55 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: bsd.lib.mk: Use LIBC_MACHINE_ARCH/CPU if set for expected symbols. Otherwise, we get the wrong list of symbols for compat library builds, where MACHINE_ARCH/CPU is different from LIBC_MACHINE_ARCH/CPU, e.g. building compat 32-bit sparc libm on sparc64. XXX This is kinda kludgey -- `libc' seems wrong here. To generate a diff of this commit: cvs rdiff -u -r1.404 -r1.405 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.404 src/share/mk/bsd.lib.mk:1.405 --- src/share/mk/bsd.lib.mk:1.404 Tue May 7 20:56:25 2024 +++ src/share/mk/bsd.lib.mk Wed May 8 20:38:55 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.404 2024/05/07 20:56:25 riastradh Exp $ +# $NetBSD: bsd.lib.mk,v 1.405 2024/05/08 20:38:55 riastradh Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -660,10 +660,10 @@ ${_LIB.so.full}: ${_MAINLIBDEPS} # If there's a file listing expected symbols, fail if the diff from it # to the actual symbols is nonempty, and show the diff in that case. -.if exists(${.CURDIR}/${LIB}.${MACHINE_ARCH}.expsym) -LIB_EXPSYM?= ${LIB}.${MACHINE_ARCH}.expsym -.elif exists(${.CURDIR}/${LIB}.${MACHINE_CPU}.expsym) -LIB_EXPSYM?= ${LIB}.${MACHINE_CPU}.expsym +.if exists(${.CURDIR}/${LIB}.${LIBC_MACHINE_ARCH:U${MACHINE_ARCH}}.expsym) +LIB_EXPSYM?= ${LIB}.${LIBC_MACHINE_ARCH:U${MACHINE_ARCH}}.expsym +.elif exists(${.CURDIR}/${LIB}.${LIBC_MACHINE_CPU:U${MACHINE_CPU}}.expsym) +LIB_EXPSYM?= ${LIB}.${LIBC_MACHINE_CPU:U${MACHINE_CPU}}.expsym .elif exists(${.CURDIR}/${LIB}.expsym) LIB_EXPSYM?= ${LIB}.expsym .endif
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Tue May 7 20:56:25 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: bsd.lib.mk: Allow MACHINE_CPU for default expsym file. To generate a diff of this commit: cvs rdiff -u -r1.403 -r1.404 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.403 src/share/mk/bsd.lib.mk:1.404 --- src/share/mk/bsd.lib.mk:1.403 Mon May 6 08:43:37 2024 +++ src/share/mk/bsd.lib.mk Tue May 7 20:56:25 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.403 2024/05/06 08:43:37 mrg Exp $ +# $NetBSD: bsd.lib.mk,v 1.404 2024/05/07 20:56:25 riastradh Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -662,6 +662,8 @@ ${_LIB.so.full}: ${_MAINLIBDEPS} # to the actual symbols is nonempty, and show the diff in that case. .if exists(${.CURDIR}/${LIB}.${MACHINE_ARCH}.expsym) LIB_EXPSYM?= ${LIB}.${MACHINE_ARCH}.expsym +.elif exists(${.CURDIR}/${LIB}.${MACHINE_CPU}.expsym) +LIB_EXPSYM?= ${LIB}.${MACHINE_CPU}.expsym .elif exists(${.CURDIR}/${LIB}.expsym) LIB_EXPSYM?= ${LIB}.expsym .endif
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Tue May 7 20:56:25 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: bsd.lib.mk: Allow MACHINE_CPU for default expsym file. To generate a diff of this commit: cvs rdiff -u -r1.403 -r1.404 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: nia Date: Sun Apr 28 08:01:04 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Turn off MKAMDGPUFIRMWARE on i386 It's too big for the i386 install media and not useful on either pre-2012 hardware or the kinds of embedded systems where i386 still thrived after 2012. (The build of the kernel parts of amdgpu on i386 is nevertheless useful for finding obscure bugs.) "go for it" riastradh To generate a diff of this commit: cvs rdiff -u -r1.1372 -r1.1373 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1372 src/share/mk/bsd.own.mk:1.1373 --- src/share/mk/bsd.own.mk:1.1372 Wed Apr 24 20:38:24 2024 +++ src/share/mk/bsd.own.mk Sun Apr 28 08:01:04 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1372 2024/04/24 20:38:24 martin Exp $ +# $NetBSD: bsd.own.mk,v 1.1373 2024/04/28 08:01:04 nia Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1301,7 +1301,6 @@ MKRADEONFIRMWARE.x86_64= yes MKRADEONFIRMWARE.i386= yes MKRADEONFIRMWARE.aarch64= yes MKAMDGPUFIRMWARE.x86_64= yes -MKAMDGPUFIRMWARE.i386= yes # Only install the tegra firmware on evbarm. MKTEGRAFIRMWARE.evbarm= yes
CVS commit: src/share/mk
Module Name:src Committed By: nia Date: Sun Apr 28 08:01:04 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Turn off MKAMDGPUFIRMWARE on i386 It's too big for the i386 install media and not useful on either pre-2012 hardware or the kinds of embedded systems where i386 still thrived after 2012. (The build of the kernel parts of amdgpu on i386 is nevertheless useful for finding obscure bugs.) "go for it" riastradh To generate a diff of this commit: cvs rdiff -u -r1.1372 -r1.1373 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: martin Date: Wed Apr 24 20:38:24 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Explicitly exclude VAX from new Mesa due to a gcc internal compiler error To generate a diff of this commit: cvs rdiff -u -r1.1371 -r1.1372 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1371 src/share/mk/bsd.own.mk:1.1372 --- src/share/mk/bsd.own.mk:1.1371 Wed Apr 24 19:14:39 2024 +++ src/share/mk/bsd.own.mk Wed Apr 24 20:38:24 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1371 2024/04/24 19:14:39 martin Exp $ +# $NetBSD: bsd.own.mk,v 1.1372 2024/04/24 20:38:24 martin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1331,7 +1331,8 @@ HAVE_XORG_SERVER_VER?=120 .endif # Newer Mesa does not build with old X server -.if ${HAVE_XORG_SERVER_VER} != "120" +# VAX build triggers a gcc internal error +.if ${HAVE_XORG_SERVER_VER} != "120" || ${MACHINE} == "vax" HAVE_MESA_VER=19 .endif
CVS commit: src/share/mk
Module Name:src Committed By: martin Date: Wed Apr 24 20:38:24 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Explicitly exclude VAX from new Mesa due to a gcc internal compiler error To generate a diff of this commit: cvs rdiff -u -r1.1371 -r1.1372 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: martin Date: Wed Apr 24 19:14:39 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Force old Mesa for all old X server builds To generate a diff of this commit: cvs rdiff -u -r1.1370 -r1.1371 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: martin Date: Wed Apr 24 19:14:39 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Force old Mesa for all old X server builds To generate a diff of this commit: cvs rdiff -u -r1.1370 -r1.1371 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1370 src/share/mk/bsd.own.mk:1.1371 --- src/share/mk/bsd.own.mk:1.1370 Wed Apr 24 07:54:53 2024 +++ src/share/mk/bsd.own.mk Wed Apr 24 19:14:39 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1370 2024/04/24 07:54:53 martin Exp $ +# $NetBSD: bsd.own.mk,v 1.1371 2024/04/24 19:14:39 martin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1320,10 +1320,18 @@ MKDTB.earmv7hfeb= yes MKDTB.riscv32= yes MKDTB.riscv64= yes -# alpha build fails due to missing X include files, -# vax build triggers a gcc bug and dies with an internal compiler error. -# XXX switch both to old Mesa for now. -.if ${MACHINE} == "alpha" || ${MACHINE} == "vax" +# During transition from xorg-server 1.10 to 1.20 +.if \ +${MACHINE} == "alpha" || \ +${MACHINE} == "netwinder" || \ +${MACHINE} == "sgimips" +HAVE_XORG_SERVER_VER?=110 +.else +HAVE_XORG_SERVER_VER?=120 +.endif + +# Newer Mesa does not build with old X server +.if ${HAVE_XORG_SERVER_VER} != "120" HAVE_MESA_VER=19 .endif @@ -1676,16 +1684,6 @@ X11SRCDIR.${_lib}?= ${X11SRCDIRMIT}/lib X11SRCDIR.${_proto}proto?= ${X11SRCDIRMIT}/${_proto}proto/dist .endfor -# During transition from xorg-server 1.10 to 1.20 -.if \ -${MACHINE} == "alpha" || \ -${MACHINE} == "netwinder" || \ -${MACHINE} == "sgimips" -HAVE_XORG_SERVER_VER?=110 -.else -HAVE_XORG_SERVER_VER?=120 -.endif - .if ${HAVE_XORG_SERVER_VER} == "120" XORG_SERVER_SUBDIR?=xorg-server . if ${MACHINE} == "amd64" || ${MACHINE} == "i386" || ${MACHINE} == "evbarm"
CVS commit: src/share/mk
Module Name:src Committed By: martin Date: Wed Apr 24 07:54:53 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch alpha and VAX back to old Mesa for now untill someone fixes those builds with newer Mesa. To generate a diff of this commit: cvs rdiff -u -r1.1369 -r1.1370 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1369 src/share/mk/bsd.own.mk:1.1370 --- src/share/mk/bsd.own.mk:1.1369 Wed Apr 24 05:20:35 2024 +++ src/share/mk/bsd.own.mk Wed Apr 24 07:54:53 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1369 2024/04/24 05:20:35 nia Exp $ +# $NetBSD: bsd.own.mk,v 1.1370 2024/04/24 07:54:53 martin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1320,6 +1320,13 @@ MKDTB.earmv7hfeb= yes MKDTB.riscv32= yes MKDTB.riscv64= yes +# alpha build fails due to missing X include files, +# vax build triggers a gcc bug and dies with an internal compiler error. +# XXX switch both to old Mesa for now. +.if ${MACHINE} == "alpha" || ${MACHINE} == "vax" +HAVE_MESA_VER=19 +.endif + HAVE_MESA_VER?= 21 .if ${HAVE_MESA_VER} == 19 EXTERNAL_MESALIB_DIR?= MesaLib.old
CVS commit: src/share/mk
Module Name:src Committed By: martin Date: Wed Apr 24 07:54:53 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch alpha and VAX back to old Mesa for now untill someone fixes those builds with newer Mesa. To generate a diff of this commit: cvs rdiff -u -r1.1369 -r1.1370 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: nia Date: Wed Apr 24 05:20:35 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: USE_XZ_SETS is no longer needed for sparc64 to fit on a standard CD-ROM To generate a diff of this commit: cvs rdiff -u -r1.1368 -r1.1369 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: nia Date: Wed Apr 24 05:20:35 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: USE_XZ_SETS is no longer needed for sparc64 to fit on a standard CD-ROM To generate a diff of this commit: cvs rdiff -u -r1.1368 -r1.1369 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1368 src/share/mk/bsd.own.mk:1.1369 --- src/share/mk/bsd.own.mk:1.1368 Tue Apr 23 03:25:39 2024 +++ src/share/mk/bsd.own.mk Wed Apr 24 05:20:35 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1368 2024/04/23 03:25:39 maya Exp $ +# $NetBSD: bsd.own.mk,v 1.1369 2024/04/24 05:20:35 nia Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1607,7 +1607,6 @@ ${var}?= no # format if USE_PIGZGZIP is enabled. .if ${USE_PIGZGZIP} == "no" && \ (${MACHINE} == "amd64" || \ - ${MACHINE} == "sparc64" || \ ${MACHINE_ARCH:Maarch64*}) USE_XZ_SETS?= yes .else
CVS commit: src/share/mk
Module Name:src Committed By: jakllsch Date: Fri Apr 12 16:28:43 UTC 2024 Modified Files: src/share/mk: bsd.hostlib.mk Log Message: Filter out -Wp,-iremap,* from CPPFLAGS as is done in hostprog.mk Seems to fix build of libnbcompat in reproducible mode on host toolchains w/o -iremap To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/share/mk/bsd.hostlib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.hostlib.mk diff -u src/share/mk/bsd.hostlib.mk:1.20 src/share/mk/bsd.hostlib.mk:1.21 --- src/share/mk/bsd.hostlib.mk:1.20 Fri May 4 14:50:40 2018 +++ src/share/mk/bsd.hostlib.mk Fri Apr 12 16:28:43 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.hostlib.mk,v 1.20 2018/05/04 14:50:40 christos Exp $ +# $NetBSD: bsd.hostlib.mk,v 1.21 2024/04/12 16:28:43 jakllsch Exp $ .include .include @@ -47,7 +47,7 @@ CLEANFILES+= a.out [Ee]rrs mklog core *. beforedepend: CFLAGS:= ${HOST_CFLAGS} -CPPFLAGS:= ${HOST_CPPFLAGS} +CPPFLAGS:= ${HOST_CPPFLAGS:N-Wp,-iremap,*} # Pull in related .mk logic .include
CVS commit: src/share/mk
Module Name:src Committed By: jakllsch Date: Fri Apr 12 16:28:43 UTC 2024 Modified Files: src/share/mk: bsd.hostlib.mk Log Message: Filter out -Wp,-iremap,* from CPPFLAGS as is done in hostprog.mk Seems to fix build of libnbcompat in reproducible mode on host toolchains w/o -iremap To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/share/mk/bsd.hostlib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Thu Apr 11 19:12:11 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: fix previous. Doing assignmnents of conditionals does not work for being used as conditionals (thanks rillig@) To generate a diff of this commit: cvs rdiff -u -r1.401 -r1.402 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Thu Apr 11 19:12:11 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: fix previous. Doing assignmnents of conditionals does not work for being used as conditionals (thanks rillig@) To generate a diff of this commit: cvs rdiff -u -r1.401 -r1.402 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.401 src/share/mk/bsd.lib.mk:1.402 --- src/share/mk/bsd.lib.mk:1.401 Tue Apr 9 18:37:23 2024 +++ src/share/mk/bsd.lib.mk Thu Apr 11 15:12:11 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.401 2024/04/09 22:37:23 christos Exp $ +# $NetBSD: bsd.lib.mk,v 1.402 2024/04/11 19:12:11 christos Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -425,11 +425,15 @@ _DEST.LINT:=${DESTDIR}${LINTLIBDIR} _DEST.DEBUG:=${DESTDIR}${DEBUGDIR}${LIBDIR} _DEST.ODEBUG:=${DESTDIR}${DEBUGDIR}${_LIBSODIR} -_BUILDSTATICLIB= ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \ +.if ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \ || ${MAKELINKLIB} != "no" || ${MAKESTATICLIB} != "no" +_BUILDSTATICLIB=yes +.else +_BUILDSTATICLIB=no +.endif .if defined(LIB) # { -.if ${_BUILDSTATICLIB} +.if ${_BUILDSTATICLIB} != "no" _LIBS=${_LIB.a} .else _LIBS= @@ -484,7 +488,7 @@ _LIBS+=${_LIB.ln} .endif ALLOBJS= -.if ${_BUILDSTATICLIB} +.if ${_BUILDSTATICLIB} != "no" ALLOBJS+=${STOBJS} .endif ALLOBJS+=${POBJS} ${SOBJS}
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Apr 9 22:37:23 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: Merge two identical if's and fix a logic error in them ( && instead of ||) To generate a diff of this commit: cvs rdiff -u -r1.400 -r1.401 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.400 src/share/mk/bsd.lib.mk:1.401 --- src/share/mk/bsd.lib.mk:1.400 Thu Apr 4 21:16:00 2024 +++ src/share/mk/bsd.lib.mk Tue Apr 9 18:37:23 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.400 2024/04/05 01:16:00 christos Exp $ +# $NetBSD: bsd.lib.mk,v 1.401 2024/04/09 22:37:23 christos Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -425,9 +425,11 @@ _DEST.LINT:=${DESTDIR}${LINTLIBDIR} _DEST.DEBUG:=${DESTDIR}${DEBUGDIR}${LIBDIR} _DEST.ODEBUG:=${DESTDIR}${DEBUGDIR}${_LIBSODIR} +_BUILDSTATICLIB= ${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \ +|| ${MAKELINKLIB} != "no" || ${MAKESTATICLIB} != "no" + .if defined(LIB) # { -.if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \ - || ${MAKELINKLIB} != "no") && ${MAKESTATICLIB} != "no" +.if ${_BUILDSTATICLIB} _LIBS=${_LIB.a} .else _LIBS= @@ -482,8 +484,7 @@ _LIBS+=${_LIB.ln} .endif ALLOBJS= -.if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != "") \ - || ${MAKELINKLIB} != "no") && ${MAKESTATICLIB} != "no" +.if ${_BUILDSTATICLIB} ALLOBJS+=${STOBJS} .endif ALLOBJS+=${POBJS} ${SOBJS}
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Apr 9 22:37:23 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: Merge two identical if's and fix a logic error in them ( && instead of ||) To generate a diff of this commit: cvs rdiff -u -r1.400 -r1.401 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: tsutsui Date: Sun Apr 7 14:40:34 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch vax to HAVE_XORG_SERVER_VER=120. Tested on my VAXstation 3100/m30 with smg(4). Ok'ed by mrg@ on tech-x11@: https://mail-index.netbsd.org/tech-x11/2024/04/thread1.html#002457 To generate a diff of this commit: cvs rdiff -u -r1.1366 -r1.1367 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1366 src/share/mk/bsd.own.mk:1.1367 --- src/share/mk/bsd.own.mk:1.1366 Tue Apr 2 22:41:48 2024 +++ src/share/mk/bsd.own.mk Sun Apr 7 14:40:34 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1366 2024/04/02 22:41:48 riastradh Exp $ +# $NetBSD: bsd.own.mk,v 1.1367 2024/04/07 14:40:34 tsutsui Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1674,8 +1674,7 @@ X11SRCDIR.${_proto}proto?= ${X11SRCDIRM .if \ ${MACHINE} == "alpha" || \ ${MACHINE} == "netwinder" || \ -${MACHINE} == "sgimips" || \ -${MACHINE} == "vax" +${MACHINE} == "sgimips" HAVE_XORG_SERVER_VER?=110 .else HAVE_XORG_SERVER_VER?=120
CVS commit: src/share/mk
Module Name:src Committed By: tsutsui Date: Sun Apr 7 14:40:34 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch vax to HAVE_XORG_SERVER_VER=120. Tested on my VAXstation 3100/m30 with smg(4). Ok'ed by mrg@ on tech-x11@: https://mail-index.netbsd.org/tech-x11/2024/04/thread1.html#002457 To generate a diff of this commit: cvs rdiff -u -r1.1366 -r1.1367 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: tsutsui Date: Sun Apr 7 14:36:23 UTC 2024 Modified Files: src/share/mk: bsd.x11.mk Log Message: Use default X11FLAGS to build Xorg servers on vax. It looks necessary on HAVE_XORG_SERVER_VER=120. To generate a diff of this commit: cvs rdiff -u -r1.152 -r1.153 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: tsutsui Date: Sun Apr 7 14:36:23 UTC 2024 Modified Files: src/share/mk: bsd.x11.mk Log Message: Use default X11FLAGS to build Xorg servers on vax. It looks necessary on HAVE_XORG_SERVER_VER=120. To generate a diff of this commit: cvs rdiff -u -r1.152 -r1.153 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.x11.mk diff -u src/share/mk/bsd.x11.mk:1.152 src/share/mk/bsd.x11.mk:1.153 --- src/share/mk/bsd.x11.mk:1.152 Tue Apr 2 16:17:29 2024 +++ src/share/mk/bsd.x11.mk Sun Apr 7 14:36:23 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.x11.mk,v 1.152 2024/04/02 16:17:29 christos Exp $ +# $NetBSD: bsd.x11.mk,v 1.153 2024/04/07 14:36:23 tsutsui Exp $ .include @@ -83,8 +83,7 @@ X11FLAGS.OS_DEFINES= -DDDXOSINIT -DSERVE .if !(${MACHINE} == "acorn32" || \ ${MACHINE} == "sun3" || \ -${MACHINE} == "x68k" || \ -${MACHINE} == "vax") +${MACHINE} == "x68k") # EXT_DEFINES X11FLAGS.EXTENSION+= -DXF86VIDMODE
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Tue Apr 2 22:41:48 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: No need for MKSLJIT to be set differently from others. - Use ?=, not =, so mk.conf setting wins. - Write out per-architecture tabular settings, not a conditional. - Add comments for the architectures that look like they should have sljit but don't. (XXX Missing comments about powerpc and mips -- not sure why, is this because modules don't yet work on those architectures, or what?) Tidying for PR 58103: bpfjit.kmod is not built on aarch64. To generate a diff of this commit: cvs rdiff -u -r1.1365 -r1.1366 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1365 src/share/mk/bsd.own.mk:1.1366 --- src/share/mk/bsd.own.mk:1.1365 Tue Apr 2 22:37:34 2024 +++ src/share/mk/bsd.own.mk Tue Apr 2 22:41:48 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1365 2024/04/02 22:37:34 riastradh Exp $ +# $NetBSD: bsd.own.mk,v 1.1366 2024/04/02 22:41:48 riastradh Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1336,6 +1336,21 @@ MKLLVMRT.i386= yes MKLLVMRT.aarch64= yes .endif +# Just-in-time compiler for bpf, npf acceleration +MKSLJIT.aarch64= yes +MKSLJIT.i386= yes +MKSLJIT.sparc= yes +#MKSLJIT.sparc64= yes # not suppored in sljit (yet?) +MKSLJIT.x86_64= yes +#MKSLJIT.powerpc= yes # XXX +#MKSLJIT.powerpc64= yes # XXX +#MKSLJIT.mipsel= yes # XXX +#MKSLJIT.mipseb= yes # XXX +#MKSLJIT.mips64el= yes # XXX +#MKSLJIT.mips64eb= yes # XXX +#MKSLJIT.riscv32= yes # not until we update sljit +#MKSLJIT.riscv64= yes # not until we update sljit + # compat with old names MKDEBUGKERNEL?=${MKKDEBUG:Uno} MKDEBUGTOOLS?=${MKTOOLSDEBUG:Uno} @@ -1391,13 +1406,6 @@ _MKVARS.no= \ ${var}?= ${${var}.${MACHINE_ARCH}:U${${var}.${MACHINE}:Uno}} .endfor -.if ${MACHINE_ARCH} == "aarch64" || \ -${MACHINE_ARCH} == "i386"|| \ -${MACHINE_ARCH} == "sparc" || \ -${MACHINE_ARCH} == "x86_64" -MKSLJIT= yes -.endif - # # Which platforms build the xorg-server drivers (as opposed # to just Xnest and Xvfb.)
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Tue Apr 2 22:41:48 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: bsd.own.mk: No need for MKSLJIT to be set differently from others. - Use ?=, not =, so mk.conf setting wins. - Write out per-architecture tabular settings, not a conditional. - Add comments for the architectures that look like they should have sljit but don't. (XXX Missing comments about powerpc and mips -- not sure why, is this because modules don't yet work on those architectures, or what?) Tidying for PR 58103: bpfjit.kmod is not built on aarch64. To generate a diff of this commit: cvs rdiff -u -r1.1365 -r1.1366 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Apr 2 16:18:23 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: Back-out unintented commit. To generate a diff of this commit: cvs rdiff -u -r1.398 -r1.399 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.398 src/share/mk/bsd.lib.mk:1.399 --- src/share/mk/bsd.lib.mk:1.398 Tue Apr 2 12:17:29 2024 +++ src/share/mk/bsd.lib.mk Tue Apr 2 12:18:23 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.398 2024/04/02 16:17:29 christos Exp $ +# $NetBSD: bsd.lib.mk,v 1.399 2024/04/02 16:18:23 christos Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -16,13 +16,9 @@ LIBISCXX?= no .if ${LIBISMODULE} != "no" _LIB_PREFIX?= # empty MKDEBUGLIB:= no -MKPROFILE:= no -.if ${LIBISMODULE} != "pic" MKPICINSTALL:= no -MKLINKLIB:= no +MKPROFILE:= no MKSTATICLIB:= no -.endif -_LINKINSTALL?= no _LINTINSTALL?= no .else _LIB_PREFIX?= lib @@ -30,19 +26,17 @@ _LIB_PREFIX?= lib .if ${LIBISPRIVATE} != "no" MKDEBUGLIB:= no -MKPROFILE:= no MKPICINSTALL:= no . if defined(NOSTATICLIB) && ${MKPICLIB} != "no" MKSTATICLIB:= no . elif ${LIBISPRIVATE} != "pic" MKPIC:= no . endif -_LINKINSTALL?= no +MKPROFILE:= no _LINTINSTALL?= no .endif _LINTINSTALL?= ${MKLINT} -_LINKINSTALL?= ${MKLINKLIB} # Basic targets .PHONY: checkver libinstall @@ -737,7 +731,7 @@ LIBCLEANFILES5+= ${_LIB.ln} ${LOBJS} # Make sure it gets defined, in case MKPIC==no && MKLINKLIB==no libinstall:: -.if ${MKLINKLIB} != "no" && ${MKSTATICLIB} != "no" && ${_LINKINSTALL} != "no" +.if ${MKLINKLIB} != "no" && ${MKSTATICLIB} != "no" libinstall:: ${_DEST.LIB}/${_LIB.a} .PRECIOUS: ${_DEST.LIB}/${_LIB.a} @@ -844,7 +838,7 @@ ${_DEST.OBJ}/${_LIB.so.full}: ${_LIB.so. ${_DEST.LIB}/${_LIB.so.major} .endif .endif -.if ${MKLINKLIB} != "no" && ${_LINKINSTALL} != "no" +.if ${MKLINKLIB} != "no" ${INSTALL_SYMLINK} ${_LIB.so.full} ${_DEST.OBJ}/${_LIB.so} .if ${_LIBSODIR} != ${LIBDIR} ${INSTALL_SYMLINK} -l r ${_DEST.OBJ}/${_LIB.so.full} \
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Apr 2 16:18:23 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: Back-out unintented commit. To generate a diff of this commit: cvs rdiff -u -r1.398 -r1.399 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Apr 2 16:17:29 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk bsd.x11.mk Log Message: PR/58104: Kouichi Hashikawa: Use ${TOOL_AWK} To generate a diff of this commit: cvs rdiff -u -r1.397 -r1.398 src/share/mk/bsd.lib.mk cvs rdiff -u -r1.151 -r1.152 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.397 src/share/mk/bsd.lib.mk:1.398 --- src/share/mk/bsd.lib.mk:1.397 Tue Mar 26 14:38:52 2024 +++ src/share/mk/bsd.lib.mk Tue Apr 2 12:17:29 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.397 2024/03/26 18:38:52 riastradh Exp $ +# $NetBSD: bsd.lib.mk,v 1.398 2024/04/02 16:17:29 christos Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -16,9 +16,13 @@ LIBISCXX?= no .if ${LIBISMODULE} != "no" _LIB_PREFIX?= # empty MKDEBUGLIB:= no -MKPICINSTALL:= no MKPROFILE:= no +.if ${LIBISMODULE} != "pic" +MKPICINSTALL:= no +MKLINKLIB:= no MKSTATICLIB:= no +.endif +_LINKINSTALL?= no _LINTINSTALL?= no .else _LIB_PREFIX?= lib @@ -26,17 +30,19 @@ _LIB_PREFIX?= lib .if ${LIBISPRIVATE} != "no" MKDEBUGLIB:= no +MKPROFILE:= no MKPICINSTALL:= no . if defined(NOSTATICLIB) && ${MKPICLIB} != "no" MKSTATICLIB:= no . elif ${LIBISPRIVATE} != "pic" MKPIC:= no . endif -MKPROFILE:= no +_LINKINSTALL?= no _LINTINSTALL?= no .endif _LINTINSTALL?= ${MKLINT} +_LINKINSTALL?= ${MKLINKLIB} # Basic targets .PHONY: checkver libinstall @@ -731,7 +737,7 @@ LIBCLEANFILES5+= ${_LIB.ln} ${LOBJS} # Make sure it gets defined, in case MKPIC==no && MKLINKLIB==no libinstall:: -.if ${MKLINKLIB} != "no" && ${MKSTATICLIB} != "no" +.if ${MKLINKLIB} != "no" && ${MKSTATICLIB} != "no" && ${_LINKINSTALL} != "no" libinstall:: ${_DEST.LIB}/${_LIB.a} .PRECIOUS: ${_DEST.LIB}/${_LIB.a} @@ -838,7 +844,7 @@ ${_DEST.OBJ}/${_LIB.so.full}: ${_LIB.so. ${_DEST.LIB}/${_LIB.so.major} .endif .endif -.if ${MKLINKLIB} != "no" +.if ${MKLINKLIB} != "no" && ${_LINKINSTALL} != "no" ${INSTALL_SYMLINK} ${_LIB.so.full} ${_DEST.OBJ}/${_LIB.so} .if ${_LIBSODIR} != ${LIBDIR} ${INSTALL_SYMLINK} -l r ${_DEST.OBJ}/${_LIB.so.full} \ Index: src/share/mk/bsd.x11.mk diff -u src/share/mk/bsd.x11.mk:1.151 src/share/mk/bsd.x11.mk:1.152 --- src/share/mk/bsd.x11.mk:1.151 Wed Oct 25 00:37:59 2023 +++ src/share/mk/bsd.x11.mk Tue Apr 2 12:17:29 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.x11.mk,v 1.151 2023/10/25 04:37:59 mrg Exp $ +# $NetBSD: bsd.x11.mk,v 1.152 2024/04/02 16:17:29 christos Exp $ .include @@ -145,7 +145,7 @@ __XKBDEFRULES__= '"xorg"' XLOCALE.DEFINES= -DXLOCALEDIR=\"${X11LIBDIR}/locale\" \ -DXLOCALELIBDIR=\"${X11LIBDIR}/locale\" -PRINT_PACKAGE_VERSION= awk '/^PACKAGE_VERSION=/ { \ +PRINT_PACKAGE_VERSION= ${TOOL_AWK} '/^PACKAGE_VERSION=/ { \ match($$1, "([0-9]+\\.)+[0-9]+"); \ version = substr($$1, RSTART, RLENGTH); \ } END { print version }'
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Apr 2 16:17:29 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk bsd.x11.mk Log Message: PR/58104: Kouichi Hashikawa: Use ${TOOL_AWK} To generate a diff of this commit: cvs rdiff -u -r1.397 -r1.398 src/share/mk/bsd.lib.mk cvs rdiff -u -r1.151 -r1.152 src/share/mk/bsd.x11.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Mon Apr 1 22:23:15 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Use the TOOL_GZIP we built as part of tools if available. To generate a diff of this commit: cvs rdiff -u -r1.1363 -r1.1364 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.1363 src/share/mk/bsd.own.mk:1.1364 --- src/share/mk/bsd.own.mk:1.1363 Sat Jan 20 03:09:13 2024 +++ src/share/mk/bsd.own.mk Mon Apr 1 18:23:14 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.1363 2024/01/20 08:09:13 skrll Exp $ +# $NetBSD: bsd.own.mk,v 1.1364 2024/04/01 22:23:14 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -1612,7 +1612,11 @@ USE_XZ_SETS?= no TOOL_GZIP= ${TOOL_PIGZ} GZIP_N_FLAG?= -nT .else +.if ${USETOOLS} == "yes" +TOOL_GZIP= ${TOOLDIR}/bin/${_TOOL_PREFIX}gzip +.else TOOL_GZIP= gzip +.endif GZIP_N_FLAG?= -n .endif TOOL_GZIP_N= ${TOOL_GZIP} ${GZIP_N_FLAG}
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Mon Apr 1 22:23:15 UTC 2024 Modified Files: src/share/mk: bsd.own.mk Log Message: Use the TOOL_GZIP we built as part of tools if available. To generate a diff of this commit: cvs rdiff -u -r1.1363 -r1.1364 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Tue Mar 26 18:38:52 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: bsd.lib.mk: Avoid symbol check if we're not doing shared libraries. Otherwise this fails on non-shlib builds like sun2. To generate a diff of this commit: cvs rdiff -u -r1.396 -r1.397 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.396 src/share/mk/bsd.lib.mk:1.397 --- src/share/mk/bsd.lib.mk:1.396 Sat Mar 23 21:56:47 2024 +++ src/share/mk/bsd.lib.mk Tue Mar 26 18:38:52 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.396 2024/03/23 21:56:47 riastradh Exp $ +# $NetBSD: bsd.lib.mk,v 1.397 2024/03/26 18:38:52 riastradh Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -656,7 +656,7 @@ LIB_EXPSYM?= ${LIB}.${MACHINE_ARCH}.exps LIB_EXPSYM?= ${LIB}.expsym .endif -.if !empty(LIB_EXPSYM) +.if !empty(LIB_EXPSYM) && ${MKPIC} != "no" realall: ${_LIB.so.full}.diffsym ${_LIB.so.full}.diffsym: ${LIB_EXPSYM} ${_LIB.so.full}.actsym ${_MKTARGET_CREATE}
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Tue Mar 26 18:38:52 UTC 2024 Modified Files: src/share/mk: bsd.lib.mk Log Message: bsd.lib.mk: Avoid symbol check if we're not doing shared libraries. Otherwise this fails on non-shlib builds like sun2. To generate a diff of this commit: cvs rdiff -u -r1.396 -r1.397 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: riastradh Date: Sat Mar 23 21:56:47 UTC 2024 Modified Files: src/share/mk: bsd.README bsd.lib.mk Log Message: bsd.lib.mk: Tidy up expected symbols check a little. Add some documentation in bsd.README. To generate a diff of this commit: cvs rdiff -u -r1.445 -r1.446 src/share/mk/bsd.README cvs rdiff -u -r1.395 -r1.396 src/share/mk/bsd.lib.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.README diff -u src/share/mk/bsd.README:1.445 src/share/mk/bsd.README:1.446 --- src/share/mk/bsd.README:1.445 Sat Jul 22 18:50:31 2023 +++ src/share/mk/bsd.README Sat Mar 23 21:56:47 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.README,v 1.445 2023/07/22 18:50:31 lukem Exp $ +# $NetBSD: bsd.README,v 1.446 2024/03/23 21:56:47 riastradh Exp $ # @(#)bsd.README 8.2 (Berkeley) 4/2/94 This is the README file for the make "include" files for the NetBSD @@ -993,6 +993,20 @@ PROGDPLIBS A list of the tuples: as well as in parent directories to cache common libraries as a build-time optimization. +LIB_EXPSYM File listing all symbols expected to be defined by the + library. Each line has a single symbol. If the symbol + is versioned, it is followed by `@@', if it is the + default version, or `@', if not, and the symbol + version. The lines must be sorted in LANG=C. + + bsd.lib.mk checks to make sure exactly the set of + symbols in this file is defined when the library is + built; if not, the build will fail and print a diff + from the expected symbols to the actual symbols. + During development, you can update the expected symbols + from the actual ones with `make update-symbols'. + + The include file includes the file named "../Makefile.inc" if it exists, as well as the include file . Index: src/share/mk/bsd.lib.mk diff -u src/share/mk/bsd.lib.mk:1.395 src/share/mk/bsd.lib.mk:1.396 --- src/share/mk/bsd.lib.mk:1.395 Wed Mar 20 13:50:37 2024 +++ src/share/mk/bsd.lib.mk Sat Mar 23 21:56:47 2024 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.395 2024/03/20 13:50:37 riastradh Exp $ +# $NetBSD: bsd.lib.mk,v 1.396 2024/03/23 21:56:47 riastradh Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -672,7 +672,7 @@ ${_LIB.so.full}.diffsym: ${LIB_EXPSYM} $ ${_LIB.so.full}.actsym: ${_LIB.so.full} ${_MKTARGET_CREATE} ${NM} --dynamic --extern-only --defined-only --with-symbol-versions \ - ${_LIB.so.full} \ + ${.ALLSRC} \ | cut -d' ' -f3 | LANG=C sort -u >${.TARGET}.tmp ${MV} ${.TARGET}.tmp ${.TARGET} CLEANFILES+= ${_LIB.so.full}.actsym @@ -681,7 +681,7 @@ CLEANFILES+= ${_LIB.so.full}.diffsym CLEANFILES+= ${_LIB.so.full}.diffsym.tmp update-symbols: .PHONY update-symbols: ${_LIB.so.full}.actsym - cp ${_LIB.so.full}.actsym ${.CURDIR}/${LIB}.expsym + cp ${.ALLSRC} ${.CURDIR}/${LIB_EXPSYM} .endif .if !empty(LOBJS) # {