Re: CVS commit: src/share/mk

2020-11-09 Thread Rin Okuyama

On 2020/11/10 1:15, Christos Zoulas wrote:

- when we need to run ctfconvert, go through an intermediate ${.TARGET}.o
   file, instead of writing directly to ${.TARGET} and then overwriting
   ${.TARGET} with ctfconvert. This avoids build failures after a build
   got interrupted (the "partially built from C" scourge).


Thanks, I wanted this!

rin


re: CVS commit: src/share/mk

2020-07-13 Thread matthew green
Joerg Sonnenberger writes:
> On Mon, Jul 13, 2020 at 07:22:51AM +, matthew green wrote:
> > Module Name:src
> > Committed By:   mrg
> > Date:   Mon Jul 13 07:22:51 UTC 2020
> > 
> > Modified Files:
> > src/share/mk: bsd.README
> > 
> > Log Message:
> > MKLLVMRT is automatically enabled on x86 and arm64, not mesa18+.
> 
> It is both.

we only use mesa20 in xsrc now so there's no "choice"
about mesa here.  just haven't deleted mesa.old yet..


.mrg.


Re: CVS commit: src/share/mk

2020-07-13 Thread Joerg Sonnenberger
On Mon, Jul 13, 2020 at 07:22:51AM +, matthew green wrote:
> Module Name:  src
> Committed By: mrg
> Date: Mon Jul 13 07:22:51 UTC 2020
> 
> Modified Files:
>   src/share/mk: bsd.README
> 
> Log Message:
> MKLLVMRT is automatically enabled on x86 and arm64, not mesa18+.

It is both.

Joerg


re: CVS commit: src/share/mk

2020-02-08 Thread matthew green
> what sort of testing did you do with this change?  simply removing
> it breaks the build.  and trying to fix it otherwise is hard.  see
> only a month ago:

huh.

my build *did* complete.  so something else has changed in the
last month or so to fix this... 

sorry for the noise.


.mrg.


re: CVS commit: src/share/mk

2020-02-08 Thread matthew green
"Maya Rashish" writes:
> Module Name:  src
> Committed By: maya
> Date: Sat Feb  8 21:16:53 UTC 2020
> 
> Modified Files:
>   src/share/mk: sys.mk
> 
> Log Message:
> Don't special case aarch64 and add -fomit-frame-pointer to builds.
> 
> This behaviour is probably due to a past behaviour of clang, where it
> always emitted frame pointer code.
> This is no longer true for clang on netbsd, and I don't think it was true
> for GCC.
> 
> Meanwhile, this flag bleeds into pkgsrc where it breaks random packages,
> requiring workarounds like lang/ruby*-base/hacks.mk.

what sort of testing did you do with this change?  simply removing
it breaks the build.  and trying to fix it otherwise is hard.  see
only a month ago:

revision 1.142
date: 2020-01-08 14:04:24 -0800;  author: christos;  state: Exp;  lines: +1 -1; 
 commitid: NcvOnC9CgM4A5WRB;
Back out previous. This has no chance to work unless the make variable parsing
is not changed do that instead of scanning for a single character delim ':',
it scans for "?:". This is because !empty(COMPILE.c:M*-pg*) contains a ':'.

revision 1.141
date: 2020-01-07 20:15:45 -0800;  author: christos;  state: Exp;  lines: +2 -2; 
 commitid: U2dp6ScXDBHOaQRB;
tweak the DBG rule that -fomit-frame-pointer for aarch64 when profiling
(because the compiler complains), to use a match with the compile flags
and *pg*, instead of using a match to a target suffix (which is NetBSD
build-specific). Pointed out by phone@.


.mrg.


Re: CVS commit: src/share/mk

2019-12-20 Thread David Holland
On Thu, Dec 19, 2019 at 11:04:25PM -0500, Christos Zoulas wrote:
 > Module Name: src
 > Committed By:christos
 > Date:Fri Dec 20 04:04:25 UTC 2019
 > 
 > Modified Files:
 >  src/share/mk: bsd.sys.mk sys.mk
 > 
 > Log Message:
 > move MV to sys.mk because it is used there. Pointed out by joerg@

Since the original change was apparently in January, does this need to
be in -9?

-- 
David A. Holland
dholl...@netbsd.org


Re: CVS commit: src/share/mk

2019-12-19 Thread Joerg Sonnenberger
On Mon, Jan 21, 2019 at 04:11:55PM -0500, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date: Mon Jan 21 21:11:55 UTC 2019
> 
> Modified Files:
>   src/share/mk: bsd.dep.mk bsd.hostprog.mk bsd.info.mk bsd.kmodule.mk
>   bsd.lib.mk bsd.man.mk bsd.prog.mk bsd.sys.mk bsd.test.mk bsd.x11.mk
>   sys.mk
> 
> Log Message:
> Most of the mv operations are to move temporary files to their final place.
> Some use -f, others don't. This can lead to spurious build failures when
> the user performing the build changes. Centralize, and always use -f.

At least the sys.mk part of this breaks standalone Makefiles, because MV
is not defined.

Joerg


CVS commit: src/share/mk

2019-11-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Nov 21 07:56:58 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch riscv32/64 to GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.1165 -r1.1166 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.1165 src/share/mk/bsd.own.mk:1.1166
--- src/share/mk/bsd.own.mk:1.1165	Mon Nov 18 15:38:07 2019
+++ src/share/mk/bsd.own.mk	Thu Nov 21 07:56:58 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1165 2019/11/18 15:38:07 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1166 2019/11/21 07:56:58 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -70,7 +70,8 @@ TOOLCHAIN_MISSING?=	no
 ${MACHINE} == "sparc" || \
 ${MACHINE} == "sparc64" || \
 ${MACHINE_CPU} == "aarch64" || \
-${MACHINE_CPU} == "arm"
+${MACHINE_CPU} == "arm" || \
+${MACHINE_CPU} == "riscv"
 HAVE_GCC?=	8
 .else
 HAVE_GCC?=	7



CVS commit: src/share/mk

2019-11-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Nov 21 07:56:58 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch riscv32/64 to GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.1165 -r1.1166 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

2019-11-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Nov 18 16:23:28 UTC 2019

Modified Files:
src/share/mk: compare-lib-lists

Log Message:
Compare libraries that the bsd.prog.mk "knows about" vs the ones we actually
install... Yes, pretty bad right now.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/mk/compare-lib-lists

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/mk

2019-11-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Nov 18 16:23:28 UTC 2019

Modified Files:
src/share/mk: compare-lib-lists

Log Message:
Compare libraries that the bsd.prog.mk "knows about" vs the ones we actually
install... Yes, pretty bad right now.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/mk/compare-lib-lists

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/compare-lib-lists
diff -u src/share/mk/compare-lib-lists:1.2 src/share/mk/compare-lib-lists:1.3
--- src/share/mk/compare-lib-lists:1.2	Mon Nov 18 11:09:21 2019
+++ src/share/mk/compare-lib-lists	Mon Nov 18 11:23:28 2019
@@ -1,16 +1,20 @@
 #!/bin/sh
-# $NetBSD: compare-lib-lists,v 1.2 2019/11/18 16:09:21 christos Exp $
+# $NetBSD: compare-lib-lists,v 1.3 2019/11/18 16:23:28 christos Exp $
 #
 # Q+D script to print the library lists for comparison between whats in the
-# bsd.prog.mk file and bsd.README
+# bsd.prog.mk file and bsd.README (this matches)
+#
+# Also compare the list of LIB variables we create against the actually
+# installed archives (this does *not* match -- yet)
 
 prog=$(basename "$0")
 
 RD=/tmp/${prog}.rd.$$
 MK=/tmp/${prog}.mk.$$
 IN=/tmp/${prog}.in.$$
+LB=/tmp/${prog}.lb.$$
 
-trap "rm -f ${MK} ${RD} ${IN}" 0 1 2 3 15
+trap "rm -f ${MK} ${RD} ${IN} ${LB}" 0 1 2 3 15
 
 make -f - all << \EOF > ${MK}
 .include 
@@ -34,9 +38,8 @@ grep '	LIB' bsd.README | \
 paste ${MK} ${RD}
 
 echo "--"
-echo "Not installed"
 
-cat << \EOF | make -f - xall > ${IN}
+cat << \EOF | make -f - xall | sort > ${IN}
 .include 
 
 xall:
@@ -47,8 +50,8 @@ xall:
 	@echo ${DESTDIR}${X11USRLIBDIR}/lib${_lib}.a
 .endfor
 EOF
-for i in ${IN}; do
-	if [ ! -f $i ]; then
-		echo $i
-	fi
-done
+
+ls -1 /usr/lib/*.a /usr/X11R7/lib/*.a | \
+egrep -v '(_p|_pic|_g)\.a' | sort > ${LB}
+
+paste ${IN} ${LB}



CVS commit: src/share/mk

2019-11-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Nov 18 16:09:21 UTC 2019

Modified Files:
src/share/mk: bsd.README bsd.prog.mk compare-lib-lists

Log Message:
Improve the script to check for installed libraries, and fix the wrong
names and obsolete libraries it found.


To generate a diff of this commit:
cvs rdiff -u -r1.395 -r1.396 src/share/mk/bsd.README
cvs rdiff -u -r1.323 -r1.324 src/share/mk/bsd.prog.mk
cvs rdiff -u -r1.1 -r1.2 src/share/mk/compare-lib-lists

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/mk

2019-11-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Nov 18 16:09:21 UTC 2019

Modified Files:
src/share/mk: bsd.README bsd.prog.mk compare-lib-lists

Log Message:
Improve the script to check for installed libraries, and fix the wrong
names and obsolete libraries it found.


To generate a diff of this commit:
cvs rdiff -u -r1.395 -r1.396 src/share/mk/bsd.README
cvs rdiff -u -r1.323 -r1.324 src/share/mk/bsd.prog.mk
cvs rdiff -u -r1.1 -r1.2 src/share/mk/compare-lib-lists

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.395 src/share/mk/bsd.README:1.396
--- src/share/mk/bsd.README:1.395	Thu Oct 31 02:43:19 2019
+++ src/share/mk/bsd.README	Mon Nov 18 11:09:21 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.README,v 1.395 2019/10/31 06:43:19 martin Exp $
+#	$NetBSD: bsd.README,v 1.396 2019/11/18 16:09:21 christos Exp $
 #	@(#)bsd.README	8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -1645,15 +1645,14 @@ DPADD		Additional dependencies for the p
 		LIBBLUETOOTH?=		${DESTDIR}/usr/lib/libbluetooth.a
 		LIBBSDMALLOC?=		${DESTDIR}/usr/lib/libbsdmalloc.a
 		LIBBZ2?=		${DESTDIR}/usr/lib/libbz2.a
-		LIBC_PIC?=		${DESTDIR}/usr/lib/libc_pic.a
 		LIBC?=			${DESTDIR}/usr/lib/libc.a
+		LIBC_PIC?=		${DESTDIR}/usr/lib/libc_pic.a
 		LIBCOMPAT?=		${DESTDIR}/usr/lib/libcompat.a
 		LIBCOM_ERR?=		${DESTDIR}/usr/lib/libcom_err.a
 		LIBCRYPT?=		${DESTDIR}/usr/lib/libcrypt.a
 		LIBCRYPTO?=		${DESTDIR}/usr/lib/libcrypto.a
 		LIBCURSES?=		${DESTDIR}/usr/lib/libcurses.a
-		LIBC_PIC?=		${DESTDIR}/usr/lib/libc_pic.a
-		LIBDBM?=		${DESTDIR}/usr/lib/libdbm.a
+		LIBCXX?=		${DESTDIR}/usr/lib/libc++.a
 		LIBDES?=		${DESTDIR}/usr/lib/libdes.a
 		LIBDNS?=		${DESTDIR}/usr/lib/libdns.a
 		LIBEDIT?=		${DESTDIR}/usr/lib/libedit.a
@@ -1665,7 +1664,6 @@ DPADD		Additional dependencies for the p
 		LIBFETCH?=		${DESTDIR}/usr/lib/libfetch.a
 		LIBFL?=			${DESTDIR}/usr/lib/libfl.a
 		LIBFORM?=		${DESTDIR}/usr/lib/libform.a
-		LIBG2C?=		${DESTDIR}/usr/lib/libg2c.a
 		LIBGCC?=		${DESTDIR}/usr/lib/libgcc.a
 		LIBGNUMALLOC?=		${DESTDIR}/usr/lib/libgnumalloc.a
 		LIBGSSAPI?=		${DESTDIR}/usr/lib/libgssapi.a
@@ -1688,7 +1686,6 @@ DPADD		Additional dependencies for the p
 		LIBLDAP?=		${DESTDIR}/usr/lib/libldap.a
 		LIBLDAP_R?=		${DESTDIR}/usr/lib/libldap_r.a
 		LIBLUA?=		${DESTDIR}/usr/lib/liblua.a
-		LIBLUTOK?=		${DESTDIR}/usr/lib/liblutok.a
 		LIBM?=			${DESTDIR}/usr/lib/libm.a
 		LIBMAGIC?=		${DESTDIR}/usr/lib/libmagic.a
 		LIBMENU?=		${DESTDIR}/usr/lib/libmenu.a
@@ -1712,28 +1709,25 @@ DPADD		Additional dependencies for the p
 		LIBRPCSVC?=		${DESTDIR}/usr/lib/librpcsvc.a
 		LIBRT?=			${DESTDIR}/usr/lib/librt.a
 		LIBRUMP?=		${DESTDIR}/usr/lib/librump.a
-		LIBRUMPFS_CD966	0FS?=	${DESTDIR}/usr/lib/librumpfs_cd9660fs.a
+		LIBRUMPFS_CD9660?=	${DESTDIR}/usr/lib/librumpfs_cd9660.a
 		LIBRUMPFS_EFS?=		${DESTDIR}/usr/lib/librumpfs_efs.a
 		LIBRUMPFS_EXT2FS?=	${DESTDIR}/usr/lib/librumpfs_ext2fs.a
 		LIBRUMPFS_FFS?=		${DESTDIR}/usr/lib/librumpfs_ffs.a
 		LIBRUMPFS_HFS?=		${DESTDIR}/usr/lib/librumpfs_hfs.a
 		LIBRUMPFS_LFS?=		${DESTDIR}/usr/lib/librumpfs_lfs.a
-		LIBRUMPFS_MSDOSFS?=	${DESTDIR}/usr/lib/librumpfs_msdosfs.a
+		LIBRUMPFS_MSDOS?=	${DESTDIR}/usr/lib/librumpfs_msdos.a
 		LIBRUMPFS_NFS?=		${DESTDIR}/usr/lib/librumpfs_nfs.a
 		LIBRUMPFS_NTFS?=	${DESTDIR}/usr/lib/librumpfs_ntfs.a
 		LIBRUMPFS_SYSPUFFS?=	${DESTDIR}/usr/lib/librumpfs_syspuffs.a
 		LIBRUMPFS_TMPFS?=	${DESTDIR}/usr/lib/librumpfs_tmpfs.a
 		LIBRUMPFS_UDF?=		${DESTDIR}/usr/lib/librumpfs_udf.a
-		LIBRUMPFS_UFS?=		${DESTDIR}/usr/lib/librumpfs_ufs.a
 		LIBRUMPUSER?=		${DESTDIR}/usr/lib/librumpuser.a
 		LIBSASLC?=		${DESTDIR}/usr/lib/libsaslc.a
 		LIBSKEY?=		${DESTDIR}/usr/lib/libskey.a
 		LIBSL?=			${DESTDIR}/usr/lib/libsl.a
 		LIBSQLITE3?=		${DESTDIR}/usr/lib/libsqlite3.a
-		LIBSS?=			${DESTDIR}/usr/lib/libss.a
 		LIBSSH?=		${DESTDIR}/usr/lib/libssh.a
 		LIBSSL?=		${DESTDIR}/usr/lib/libssl.a
-		LIBSSP?=		${DESTDIR}/usr/lib/libssp.a
 		LIBSTDCXX?=		${DESTDIR}/usr/lib/libstdc++.a
 		LIBSUPCXX?=		${DESTDIR}/usr/lib/libsupc++.a
 		LIBTERMINFO?=		${DESTDIR}/usr/lib/libterminfo.a

Index: src/share/mk/bsd.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.323 src/share/mk/bsd.prog.mk:1.324
--- src/share/mk/bsd.prog.mk:1.323	Tue Aug 27 18:48:54 2019
+++ src/share/mk/bsd.prog.mk	Mon Nov 18 11:09:21 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.prog.mk,v 1.323 2019/08/27 22:48:54 kamil Exp $
+#	$NetBSD: bsd.prog.mk,v 1.324 2019/11/18 16:09:21 christos Exp $
 #	@(#)bsd.prog.mk	8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -123,7 +123,6 @@ _LIBLIST=\
 	crypto \
 	curses \
 	cxx \
-	dbm \
 	des \
 	dns \
 	edit \
@@ -135,7 +134,6 @@ _LIBLIST=\
 	fetch \
 	fl \
 	form \
-	g2c \
 	gcc \
 	gnumalloc \
 	gssapi \
@@ -158,7 +156,6 @@ _LIBLIST=\
 	ldap \
 	ldap_r \
 	lua \
-	lutok \
 	m \
 	magic \
 	menu \
@@ -182,28 +179,25 @@ 

CVS commit: src/share/mk

2019-11-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Nov 18 15:38:07 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch arm to gcc-8


To generate a diff of this commit:
cvs rdiff -u -r1.1164 -r1.1165 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.1164 src/share/mk/bsd.own.mk:1.1165
--- src/share/mk/bsd.own.mk:1.1164	Sat Nov 16 21:59:25 2019
+++ src/share/mk/bsd.own.mk	Mon Nov 18 10:38:07 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1164 2019/11/17 02:59:25 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1165 2019/11/18 15:38:07 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -69,7 +69,8 @@ TOOLCHAIN_MISSING?=	no
 ${MACHINE} == "powerpc64" || \
 ${MACHINE} == "sparc" || \
 ${MACHINE} == "sparc64" || \
-${MACHINE_CPU} == "aarch64"
+${MACHINE_CPU} == "aarch64" || \
+${MACHINE_CPU} == "arm"
 HAVE_GCC?=	8
 .else
 HAVE_GCC?=	7



CVS commit: src/share/mk

2019-11-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Nov 18 15:38:07 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch arm to gcc-8


To generate a diff of this commit:
cvs rdiff -u -r1.1164 -r1.1165 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

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Nov 17 02:59:25 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch powerpc64 to GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.1163 -r1.1164 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

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Nov 17 02:59:25 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch powerpc64 to GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.1163 -r1.1164 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.1163 src/share/mk/bsd.own.mk:1.1164
--- src/share/mk/bsd.own.mk:1.1163	Sun Nov 17 02:52:18 2019
+++ src/share/mk/bsd.own.mk	Sun Nov 17 02:59:25 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1163 2019/11/17 02:52:18 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1164 2019/11/17 02:59:25 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -66,6 +66,7 @@ TOOLCHAIN_MISSING?=	no
 .if ${MACHINE} == "amd64" || \
 ${MACHINE} == "i386" || \
 ${MACHINE} == "ia64" || \
+${MACHINE} == "powerpc64" || \
 ${MACHINE} == "sparc" || \
 ${MACHINE} == "sparc64" || \
 ${MACHINE_CPU} == "aarch64"



CVS commit: src/share/mk

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Nov 17 02:52:18 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch ia64 to GCC 8.  boots just as far as GCC 7 in ski.


To generate a diff of this commit:
cvs rdiff -u -r1.1162 -r1.1163 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

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Nov 17 02:52:18 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
switch ia64 to GCC 8.  boots just as far as GCC 7 in ski.


To generate a diff of this commit:
cvs rdiff -u -r1.1162 -r1.1163 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.1162 src/share/mk/bsd.own.mk:1.1163
--- src/share/mk/bsd.own.mk:1.1162	Sat Nov 16 10:23:36 2019
+++ src/share/mk/bsd.own.mk	Sun Nov 17 02:52:18 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1162 2019/11/16 10:23:36 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1163 2019/11/17 02:52:18 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -65,6 +65,7 @@ TOOLCHAIN_MISSING?=	no
 #
 .if ${MACHINE} == "amd64" || \
 ${MACHINE} == "i386" || \
+${MACHINE} == "ia64" || \
 ${MACHINE} == "sparc" || \
 ${MACHINE} == "sparc64" || \
 ${MACHINE_CPU} == "aarch64"



CVS commit: src/share/mk

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Nov 16 10:23:36 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
sparc & sparc64 -> GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.1161 -r1.1162 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.1161 src/share/mk/bsd.own.mk:1.1162
--- src/share/mk/bsd.own.mk:1.1161	Sat Nov 16 10:22:20 2019
+++ src/share/mk/bsd.own.mk	Sat Nov 16 10:23:36 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1161 2019/11/16 10:22:20 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1162 2019/11/16 10:23:36 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -65,6 +65,8 @@ TOOLCHAIN_MISSING?=	no
 #
 .if ${MACHINE} == "amd64" || \
 ${MACHINE} == "i386" || \
+${MACHINE} == "sparc" || \
+${MACHINE} == "sparc64" || \
 ${MACHINE_CPU} == "aarch64"
 HAVE_GCC?=	8
 .else



CVS commit: src/share/mk

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Nov 16 10:23:36 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
sparc & sparc64 -> GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.1161 -r1.1162 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

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Nov 16 10:22:20 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
i386 -> GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.1160 -r1.1161 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

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Nov 16 10:22:20 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
i386 -> GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.1160 -r1.1161 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.1160 src/share/mk/bsd.own.mk:1.1161
--- src/share/mk/bsd.own.mk:1.1160	Wed Nov 13 22:32:16 2019
+++ src/share/mk/bsd.own.mk	Sat Nov 16 10:22:20 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1160 2019/11/13 22:32:16 joerg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1161 2019/11/16 10:22:20 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -64,6 +64,7 @@ TOOLCHAIN_MISSING?=	no
 # What GCC is used?
 #
 .if ${MACHINE} == "amd64" || \
+${MACHINE} == "i386" || \
 ${MACHINE_CPU} == "aarch64"
 HAVE_GCC?=	8
 .else



Re: CVS commit: src/share/mk

2019-11-15 Thread Roy Marples

On 15/11/2019 13:41, Greg Troxel wrote:

Me too.


#metoo

Roy


Re: CVS commit: src/share/mk

2019-11-15 Thread Greg Troxel
David Brownlee  writes:

> On Thu, 14 Nov 2019 at 21:05, Christos Zoulas  wrote:
>>
>> The first issue is that I prefer to have tar respect existing
>> symlinks (ones that it did not create by default -- without having
>> to specify extra flags) since to do this (in my opinion) does not
>> pose a security risk. Yes my implementation is Q+D, but it works.
>>
>> https://www.netbsd.org/~christos/track-symlinks.diff
>>
>> The second issue is that the way libarchive-tar overwrites existing
>> files is by removing them first, and writing them directly to the
>> final destination pathname. This creates a significant amount of
>> time where the file is either not available or not completely
>> written. Imagine trying to replace shared libraries or programs
>> frequently used. Pax-as-tar wrote the file to a temporary one first
>> and used rename(2) to atomically replace it. I've written a patch
>> to do the same for libarchive-tar:
>>
>> https://www.netbsd.org/~christos/libarchive-atomic.diff
>>
>> With those two patches we can put libarchive as tar back and we don't
>> need to make any other changes since behavioraly the old pax-as-tar
>> and libarchive-tar behave the same for those two cases that bothered us.
>>
>> I am inclined to just commit them and flip the default again.
>
> I could see an argument for having an option to turn off the
> extract-to-temp-and-rename behaviour (not that I'd use it), but I'd be
> very happy to see both above changes in as defaults and us back onto
> libarchive-tar

Me too.

My sense of the list is that

  most people want unpacking sets over a system to work as well as it
  used to work

  some people really want a tar that handles newer formats, and probably
  everything thinks this would be good

  some concern has been expresseed over performance, but more people
  have expressed the notion that things working correctly (which does
  not have a universal definition) is more important.

so Christos's proposal seems to steer very well to this rough consensus.

> Thanks for working on this!

Seconded!


Re: CVS commit: src/share/mk

2019-11-15 Thread David Brownlee
On Thu, 14 Nov 2019 at 21:05, Christos Zoulas  wrote:
>
> In article <2c05e1ed-8410-fa0f-d786-06ee6e1c4...@marples.name>,
> Roy Marples   wrote:
> >On 14/11/2019 05:47, Martin Husemann wrote:
> >> On Thu, Nov 14, 2019 at 03:53:02PM +1100, matthew green wrote:
> >>> i'm not happy about this change.  i wish that bsdtar was
> >>> fixed to not be unfriendly, because it mostly is a better
> >>> implementation.  just these edge cases are rather ..
> >>> problematic yet these issues are being ignored or
> >>> rejected as being irrelevant.
> >>
> >> Me neither, especially as we now effectively have different command line
> >> args passed from sysinst to tar depending on the tar invocation (and this
> >> is all hard coded). I'll have to make it a define in sysinst depending
> >> on the seleted tar variant :-/.
> >
> >Just for the record, I don't really care about different cmd line args,
> >symlinks and security involved.
> >
> >My expectation is that a modern NetBSD tar can extract a modern tar
> >archive from other sources.
> >
> >If it cannot do this we have failed.
>
> So I am trying to find some time to pursue the two issues I have
> with upstream and understand if they will accept the following two
> changes (or versions thereof):
>
> The first issue is that I prefer to have tar respect existing
> symlinks (ones that it did not create by default -- without having
> to specify extra flags) since to do this (in my opinion) does not
> pose a security risk. Yes my implementation is Q+D, but it works.
>
> https://www.netbsd.org/~christos/track-symlinks.diff
>
> The second issue is that the way libarchive-tar overwrites existing
> files is by removing them first, and writing them directly to the
> final destination pathname. This creates a significant amount of
> time where the file is either not available or not completely
> written. Imagine trying to replace shared libraries or programs
> frequently used. Pax-as-tar wrote the file to a temporary one first
> and used rename(2) to atomically replace it. I've written a patch
> to do the same for libarchive-tar:
>
> https://www.netbsd.org/~christos/libarchive-atomic.diff
>
> With those two patches we can put libarchive as tar back and we don't
> need to make any other changes since behavioraly the old pax-as-tar
> and libarchive-tar behave the same for those two cases that bothered us.
>
> I am inclined to just commit them and flip the default again.

I could see an argument for having an option to turn off the
extract-to-temp-and-rename behaviour (not that I'd use it), but I'd be
very happy to see both above changes in as defaults and us back onto
libarchive-tar

Thanks for working on this!

David


Re: CVS commit: src/share/mk

2019-11-14 Thread Christos Zoulas
In article <2c05e1ed-8410-fa0f-d786-06ee6e1c4...@marples.name>,
Roy Marples   wrote:
>On 14/11/2019 05:47, Martin Husemann wrote:
>> On Thu, Nov 14, 2019 at 03:53:02PM +1100, matthew green wrote:
>>> i'm not happy about this change.  i wish that bsdtar was
>>> fixed to not be unfriendly, because it mostly is a better
>>> implementation.  just these edge cases are rather ..
>>> problematic yet these issues are being ignored or
>>> rejected as being irrelevant.
>> 
>> Me neither, especially as we now effectively have different command line
>> args passed from sysinst to tar depending on the tar invocation (and this
>> is all hard coded). I'll have to make it a define in sysinst depending
>> on the seleted tar variant :-/.
>
>Just for the record, I don't really care about different cmd line args, 
>symlinks and security involved.
>
>My expectation is that a modern NetBSD tar can extract a modern tar 
>archive from other sources.
>
>If it cannot do this we have failed.

So I am trying to find some time to pursue the two issues I have
with upstream and understand if they will accept the following two
changes (or versions thereof):

The first issue is that I prefer to have tar respect existing
symlinks (ones that it did not create by default -- without having
to specify extra flags) since to do this (in my opinion) does not
pose a security risk. Yes my implementation is Q+D, but it works.

https://www.netbsd.org/~christos/track-symlinks.diff

The second issue is that the way libarchive-tar overwrites existing
files is by removing them first, and writing them directly to the
final destination pathname. This creates a significant amount of
time where the file is either not available or not completely
written. Imagine trying to replace shared libraries or programs
frequently used. Pax-as-tar wrote the file to a temporary one first
and used rename(2) to atomically replace it. I've written a patch
to do the same for libarchive-tar:

https://www.netbsd.org/~christos/libarchive-atomic.diff

With those two patches we can put libarchive as tar back and we don't
need to make any other changes since behavioraly the old pax-as-tar
and libarchive-tar behave the same for those two cases that bothered us.

I am inclined to just commit them and flip the default again.

Best,

christos



Re: CVS commit: src/share/mk

2019-11-13 Thread Roy Marples

On 14/11/2019 04:53, matthew green wrote:

TLDR; libarchive has feature parity with NetBSD pax.


i don't know how you can make this claim.  are you simply
ignoring that others have a problem you haven't seen?


How can you make this claim?
Are you ignoring my very simple request that NetBSD tar should be able 
to extract modern archives?


I asked this simple question internally:
"Why does this archive give error on extraction using NetBSD?"

and lo the answer was
"Our tar is too old and not maintained. Does libarchive work?"

And verily I answered
"Yes! It does work? Can we fix the standard tar?"

"N" cameth the answer.

So, I asked the simple question ..
"Can we change the tar from pax to libarchive?"

And verily no-one had any reason to dispute this . until now.


people's upgrades are breaking now in ways they never have
before.  that's not feature parity by a long shot.

instead of ignoring the real issues, perhaps you could
argue that bsdtar should actually match the features of
pax-as-tar, and then we can all benefit from the change.

i'm not happy about this change.  i wish that bsdtar was
fixed to not be unfriendly, because it mostly is a better
implementation.  just these edge cases are rather ..
problematic yet these issues are being ignored or
rejected as being irrelevant.

we can do better.  i like christos' patch.  there's some
nuance with the symlink vs security issue, but there is
only clear additional failure cases with the unlink vs
rename issue.


Please do not be blind to my issues either.

From the conversations internally it's basically revert to pax and fuck 
modern archives or add a warning note to upgraders that chroot symlinks 
wont work on upgrading.


I myself have been bitten by this on my ERLITE router.
Real men have backups!
Actually I didn't (lesson learned here) and rc.d/nsd and unbound refused 
to copy over  so I was able to restore my configs from the chroots.

So here, our rc.d is A WIN FOR UPGRADERS!

Can we not add a note to check links in etc?

Roy


Re: CVS commit: src/share/mk

2019-11-13 Thread Roy Marples

On 14/11/2019 05:47, Martin Husemann wrote:

On Thu, Nov 14, 2019 at 03:53:02PM +1100, matthew green wrote:

i'm not happy about this change.  i wish that bsdtar was
fixed to not be unfriendly, because it mostly is a better
implementation.  just these edge cases are rather ..
problematic yet these issues are being ignored or
rejected as being irrelevant.


Me neither, especially as we now effectively have different command line
args passed from sysinst to tar depending on the tar invocation (and this
is all hard coded). I'll have to make it a define in sysinst depending
on the seleted tar variant :-/.


Just for the record, I don't really care about different cmd line args, 
symlinks and security involved.


My expectation is that a modern NetBSD tar can extract a modern tar 
archive from other sources.


If it cannot do this we have failed.

Roy


Re: CVS commit: src/share/mk

2019-11-13 Thread Martin Husemann
On Thu, Nov 14, 2019 at 03:53:02PM +1100, matthew green wrote:
> i'm not happy about this change.  i wish that bsdtar was
> fixed to not be unfriendly, because it mostly is a better
> implementation.  just these edge cases are rather ..
> problematic yet these issues are being ignored or
> rejected as being irrelevant.

Me neither, especially as we now effectively have different command line
args passed from sysinst to tar depending on the tar invocation (and this
is all hard coded). I'll have to make it a define in sysinst depending
on the seleted tar variant :-/.

Martin


re: CVS commit: src/share/mk

2019-11-13 Thread matthew green
> TLDR; libarchive has feature parity with NetBSD pax.

i don't know how you can make this claim.  are you simply
ignoring that others have a problem you haven't seen?

people's upgrades are breaking now in ways they never have
before.  that's not feature parity by a long shot.

instead of ignoring the real issues, perhaps you could
argue that bsdtar should actually match the features of
pax-as-tar, and then we can all benefit from the change.

i'm not happy about this change.  i wish that bsdtar was
fixed to not be unfriendly, because it mostly is a better
implementation.  just these edge cases are rather ..
problematic yet these issues are being ignored or
rejected as being irrelevant.

we can do better.  i like christos' patch.  there's some
nuance with the symlink vs security issue, but there is
only clear additional failure cases with the unlink vs
rename issue.


.mrg.


Re: CVS commit: src/share/mk

2019-11-13 Thread Kamil Rytarowski
On 14.11.2019 05:11, Kamil Rytarowski wrote:
> On 14.11.2019 04:55, Roy Marples wrote:
>> On 14/11/2019 02:40, Kamil Rytarowski wrote:
>>> On 14.11.2019 03:34, Roy Marples wrote:
 On 13/11/2019 22:32, Joerg Sonnenberger wrote:
> Module Name:    src
> Committed By:    joerg
> Date:    Wed Nov 13 22:32:16 UTC 2019
>
> Modified Files:
>  src/share/mk: bsd.own.mk
>
> Log Message:
> Restore pax-as-tar.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk

 And so we are doomed that we cannot open more modern archives with the
 base system tar  :/
>>>
>>> Nothing is determined here to be doomed.
>>>
>>> Michal prepared a summary of TAR features in his write up:
>>>
>>> https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html
>>
>> TLDR; libarchive has feature parity with NetBSD pax.
>> So why the peanut gallery complaints or is this write missing something
>> or I've missed something.
>>
>> I've had two recent archives that failed to open with NetBSD pax as tar
>> and the internal consensous was to use libarchive instead because NetBSD
>> pax wasn't maintained and thus would never support these.
>>
>> So, to re-iterate, am I doomed never to open these archives w NetBSD
>> base OS or do you have some magic wand of +4 solving Roy's problems I've
>> not seen yet?
>>
>> Roy
> 
> Please file a PR and/or use gtar/bsdtar from pkgsrc as a fallback.
> 

Another fallback option is to set MKBSDTAR=yes when building base OS.



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/share/mk

2019-11-13 Thread Kamil Rytarowski
On 14.11.2019 04:55, Roy Marples wrote:
> On 14/11/2019 02:40, Kamil Rytarowski wrote:
>> On 14.11.2019 03:34, Roy Marples wrote:
>>> On 13/11/2019 22:32, Joerg Sonnenberger wrote:
 Module Name:    src
 Committed By:    joerg
 Date:    Wed Nov 13 22:32:16 UTC 2019

 Modified Files:
  src/share/mk: bsd.own.mk

 Log Message:
 Restore pax-as-tar.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk
>>>
>>> And so we are doomed that we cannot open more modern archives with the
>>> base system tar  :/
>>
>> Nothing is determined here to be doomed.
>>
>> Michal prepared a summary of TAR features in his write up:
>>
>> https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html
> 
> TLDR; libarchive has feature parity with NetBSD pax.
> So why the peanut gallery complaints or is this write missing something
> or I've missed something.
> 
> I've had two recent archives that failed to open with NetBSD pax as tar
> and the internal consensous was to use libarchive instead because NetBSD
> pax wasn't maintained and thus would never support these.
> 
> So, to re-iterate, am I doomed never to open these archives w NetBSD
> base OS or do you have some magic wand of +4 solving Roy's problems I've
> not seen yet?
> 
> Roy

Please file a PR and/or use gtar/bsdtar from pkgsrc as a fallback.



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/share/mk

2019-11-13 Thread Roy Marples

On 14/11/2019 02:40, Kamil Rytarowski wrote:

On 14.11.2019 03:34, Roy Marples wrote:

On 13/11/2019 22:32, Joerg Sonnenberger wrote:

Module Name:    src
Committed By:    joerg
Date:    Wed Nov 13 22:32:16 UTC 2019

Modified Files:
 src/share/mk: bsd.own.mk

Log Message:
Restore pax-as-tar.


To generate a diff of this commit:
cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk


And so we are doomed that we cannot open more modern archives with the
base system tar  :/


Nothing is determined here to be doomed.

Michal prepared a summary of TAR features in his write up:

https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html


TLDR; libarchive has feature parity with NetBSD pax.
So why the peanut gallery complaints or is this write missing something 
or I've missed something.


I've had two recent archives that failed to open with NetBSD pax as tar 
and the internal consensous was to use libarchive instead because NetBSD 
pax wasn't maintained and thus would never support these.


So, to re-iterate, am I doomed never to open these archives w NetBSD 
base OS or do you have some magic wand of +4 solving Roy's problems I've 
not seen yet?


Roy


Re: CVS commit: src/share/mk

2019-11-13 Thread Kamil Rytarowski
On 14.11.2019 03:34, Roy Marples wrote:
> On 13/11/2019 22:32, Joerg Sonnenberger wrote:
>> Module Name:    src
>> Committed By:    joerg
>> Date:    Wed Nov 13 22:32:16 UTC 2019
>>
>> Modified Files:
>> src/share/mk: bsd.own.mk
>>
>> Log Message:
>> Restore pax-as-tar.
>>
>>
>> To generate a diff of this commit:
>> cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk
> 
> And so we are doomed that we cannot open more modern archives with the
> base system tar  :/

Nothing is determined here to be doomed.

Michal prepared a summary of TAR features in his write up:

https://dev.gentoo.org/~mgorny/articles/portability-of-tar-features.html



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/share/mk

2019-11-13 Thread Roy Marples

On 13/11/2019 22:32, Joerg Sonnenberger wrote:

Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:32:16 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Restore pax-as-tar.


To generate a diff of this commit:
cvs rdiff -u -r1.1159 -r1.1160 src/share/mk/bsd.own.mk


And so we are doomed that we cannot open more modern archives with the 
base system tar  :/


CVS commit: src/share/mk

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:32:16 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Restore pax-as-tar.


To generate a diff of this commit:
cvs rdiff -u -r1.1159 -r1.1160 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.1159 src/share/mk/bsd.own.mk:1.1160
--- src/share/mk/bsd.own.mk:1.1159	Thu Oct 31 06:43:19 2019
+++ src/share/mk/bsd.own.mk	Wed Nov 13 22:32:16 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1159 2019/10/31 06:43:19 martin Exp $
+#	$NetBSD: bsd.own.mk,v 1.1160 2019/11/13 22:32:16 joerg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1073,7 +1073,6 @@ MKSTATICPIE?=	no
 _MKVARS.yes= \
 	MKATF \
 	MKBINUTILS \
-	MKBSDTAR \
 	MKCOMPLEX MKCVS MKCXX \
 	MKDOC MKDTC \
 	MKDYNAMICROOT \
@@ -1197,6 +1196,7 @@ _MKVARS.no= \
 	MKARGON2 \
 	MKARZERO \
 	MKBSDGREP \
+	MKBSDTAR \
 	MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCTF \
 	MKDEBUG MKDEBUGLIB MKDTRACE \
 	MKEXTSRC \



CVS commit: src/share/mk

2019-11-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 22:32:16 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Restore pax-as-tar.


To generate a diff of this commit:
cvs rdiff -u -r1.1159 -r1.1160 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

2019-10-31 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Oct 31 06:43:19 UTC 2019

Modified Files:
src/share/mk: bsd.README bsd.own.mk

Log Message:
PR misc/54657: let RELEASEMACHINEDIR default to ${MACHINE}-${MACHINE_ARCH}
for evb{arm,mips,sh3}*.


To generate a diff of this commit:
cvs rdiff -u -r1.394 -r1.395 src/share/mk/bsd.README
cvs rdiff -u -r1.1158 -r1.1159 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.README
diff -u src/share/mk/bsd.README:1.394 src/share/mk/bsd.README:1.395
--- src/share/mk/bsd.README:1.394	Sat Aug 10 12:46:38 2019
+++ src/share/mk/bsd.README	Thu Oct 31 06:43:19 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.README,v 1.394 2019/08/10 12:46:38 christos Exp $
+#	$NetBSD: bsd.README,v 1.395 2019/10/31 06:43:19 martin Exp $
 #	@(#)bsd.README	8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -796,7 +796,8 @@ MAKEDIRTARGET dir target [params]
 
 RELEASEMACHINEDIR
 		Subdirectory used below RELEASEDIR when building
-		a release.  [${MACHINE}]
+		a release.  [${MACHINE},
+		or ${MACHINE}-${MACHINE_ARCH} for evb{arm,mips,sh3}*]
 
 RELEASEMACHINE	Subdirectory or path component used for the following
 		paths:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1158 src/share/mk/bsd.own.mk:1.1159
--- src/share/mk/bsd.own.mk:1.1158	Thu Oct 24 18:46:20 2019
+++ src/share/mk/bsd.own.mk	Thu Oct 31 06:43:19 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1158 2019/10/24 18:46:20 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1159 2019/10/31 06:43:19 martin Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -19,7 +19,12 @@ MACHINE_CPU=	${MACHINE_ARCH:C/mipse[bl]/
 #
 # Subdirectory used below ${RELEASEDIR} when building a release
 #
+.if !empty(MACHINE:Mevbarm) || !empty(MACHINE:Mevbmips) \
+	|| !empty(MACHINE:Mevbsh3)
+RELEASEMACHINEDIR?=	${MACHINE}-${MACHINE_ARCH}
+.else
 RELEASEMACHINEDIR?=	${MACHINE}
+.endif
 
 #
 # Subdirectory or path component used for the following paths:



CVS commit: src/share/mk

2019-10-31 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Oct 31 06:43:19 UTC 2019

Modified Files:
src/share/mk: bsd.README bsd.own.mk

Log Message:
PR misc/54657: let RELEASEMACHINEDIR default to ${MACHINE}-${MACHINE_ARCH}
for evb{arm,mips,sh3}*.


To generate a diff of this commit:
cvs rdiff -u -r1.394 -r1.395 src/share/mk/bsd.README
cvs rdiff -u -r1.1158 -r1.1159 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

2019-10-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 22 13:49:30 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
move a{md,arch}64 to gcc 8


To generate a diff of this commit:
cvs rdiff -u -r1.1156 -r1.1157 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.1156 src/share/mk/bsd.own.mk:1.1157
--- src/share/mk/bsd.own.mk:1.1156	Sun Oct 13 06:12:13 2019
+++ src/share/mk/bsd.own.mk	Tue Oct 22 09:49:30 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1156 2019/10/13 10:12:13 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1157 2019/10/22 13:49:30 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -58,7 +58,12 @@ TOOLCHAIN_MISSING?=	no
 #
 # What GCC is used?
 #
+.if ${MACHINE} == "amd64" || \
+${MACHINE_CPU} == "aarch64"
+HAVE_GCC?=	8
+.else
 HAVE_GCC?=	7
+.endif
 
 #
 # Platforms that can't run a modern GCC natively



CVS commit: src/share/mk

2019-10-22 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 22 13:49:30 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
move a{md,arch}64 to gcc 8


To generate a diff of this commit:
cvs rdiff -u -r1.1156 -r1.1157 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

2019-10-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 15 15:05:00 UTC 2019

Modified Files:
src/share/mk: bsd.sys.mk

Log Message:
Allow individual lex and yacc sources to override/extend LFLAGS and YFLAGS
respectively.


To generate a diff of this commit:
cvs rdiff -u -r1.293 -r1.294 src/share/mk/bsd.sys.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.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.293 src/share/mk/bsd.sys.mk:1.294
--- src/share/mk/bsd.sys.mk:1.293	Sat Oct  5 14:37:39 2019
+++ src/share/mk/bsd.sys.mk	Tue Oct 15 11:05:00 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.293 2019/10/05 18:37:39 uwe Exp $
+#	$NetBSD: bsd.sys.mk,v 1.294 2019/10/15 15:05:00 christos Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -333,7 +333,7 @@ MV?=		mv -f
 
 # Lex
 LFLAGS+=	${LPREFIX.${.IMPSRC:T}:D-P${LPREFIX.${.IMPSRC:T}}}
-LFLAGS+=	${LPREFIX:D-P${LPREFIX}}
+LFLAGS+=	${LPREFIX:D-P${LPREFIX}} ${LFLAGS.${.IMPSRC:T}}
 
 .l.c:
 	${_MKTARGET_LEX}
@@ -341,7 +341,7 @@ LFLAGS+=	${LPREFIX:D-P${LPREFIX}}
 
 # Yacc
 YFLAGS+=	${YPREFIX.${.IMPSRC:T}:D-p${YPREFIX.${.IMPSRC:T}}} ${YHEADER.${.IMPSRC:T}:D-d}
-YFLAGS+=	${YPREFIX:D-p${YPREFIX}} ${YHEADER:D-d}
+YFLAGS+=	${YPREFIX:D-p${YPREFIX}} ${YHEADER:D-d} ${YFLAGS.${.IMPSRC:T}}
 
 .y.c:
 	${_MKTARGET_YACC}



CVS commit: src/share/mk

2019-10-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 15 15:05:00 UTC 2019

Modified Files:
src/share/mk: bsd.sys.mk

Log Message:
Allow individual lex and yacc sources to override/extend LFLAGS and YFLAGS
respectively.


To generate a diff of this commit:
cvs rdiff -u -r1.293 -r1.294 src/share/mk/bsd.sys.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

2019-10-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 13 10:12:14 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
make GCC_NO_STRINGOP_OVERFLOW apply to gcc 7 too.


To generate a diff of this commit:
cvs rdiff -u -r1.1155 -r1.1156 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

2019-10-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 13 10:12:14 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
make GCC_NO_STRINGOP_OVERFLOW apply to gcc 7 too.


To generate a diff of this commit:
cvs rdiff -u -r1.1155 -r1.1156 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.1155 src/share/mk/bsd.own.mk:1.1156
--- src/share/mk/bsd.own.mk:1.1155	Sun Oct 13 07:28:13 2019
+++ src/share/mk/bsd.own.mk	Sun Oct 13 10:12:13 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1155 2019/10/13 07:28:13 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1156 2019/10/13 10:12:13 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -810,8 +810,8 @@ NOPROFILE=	# defined
 # COPTS.foo.c+= ${GCC_NO_STRINGOP_TRUNCATION}.
 #
 GCC_NO_FORMAT_TRUNCATION=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-format-truncation :}
+GCC_NO_STRINGOP_OVERFLOW=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-stringop-overflow :}
 GCC_NO_STRINGOP_TRUNCATION=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-stringop-truncation :}
-GCC_NO_STRINGOP_OVERFLOW=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-stringop-overflow :}
 GCC_NO_CAST_FUNCTION_TYPE=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-cast-function-type :}
 
 #



CVS commit: src/share/mk

2019-10-05 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sat Oct  5 18:37:40 UTC 2019

Modified Files:
src/share/mk: bsd.sys.mk

Log Message:
Don't add -Wabi to CXXFLAGS for gcc 8.  It warns about differences
from the most up-to-date ABI, which in gcc 8 is used by default.
XXX: This needs a better condition.


To generate a diff of this commit:
cvs rdiff -u -r1.292 -r1.293 src/share/mk/bsd.sys.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.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.292 src/share/mk/bsd.sys.mk:1.293
--- src/share/mk/bsd.sys.mk:1.292	Wed May 22 08:31:25 2019
+++ src/share/mk/bsd.sys.mk	Sat Oct  5 18:37:39 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.292 2019/05/22 08:31:25 kamil Exp $
+#	$NetBSD: bsd.sys.mk,v 1.293 2019/10/05 18:37:39 uwe Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -103,7 +103,11 @@ CFLAGS+=	-Wcast-qual -Wwrite-strings
 CFLAGS+=	-Wextra -Wno-unused-parameter
 # Readd -Wno-sign-compare to override -Wextra with clang
 CFLAGS+=	-Wno-sign-compare
+.if "${ACTIVE_CC}" == "gcc" && ${HAVE_GCC} != "8"
+#  XXX: Won't warn about anything.  -Wabi warns about differences from
+#  the most up-to-date ABI, which in g++ 8 is used by default.
 CXXFLAGS+=	-Wabi
+.endif
 CXXFLAGS+=	-Wold-style-cast
 CXXFLAGS+=	-Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder \
 		-Wno-deprecated -Woverloaded-virtual -Wsign-promo -Wsynth



CVS commit: src/share/mk

2019-10-05 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sat Oct  5 18:37:40 UTC 2019

Modified Files:
src/share/mk: bsd.sys.mk

Log Message:
Don't add -Wabi to CXXFLAGS for gcc 8.  It warns about differences
from the most up-to-date ABI, which in gcc 8 is used by default.
XXX: This needs a better condition.


To generate a diff of this commit:
cvs rdiff -u -r1.292 -r1.293 src/share/mk/bsd.sys.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

2019-09-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Sep 29 22:10:55 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
gcc 7 can now be found in gcc.old.


To generate a diff of this commit:
cvs rdiff -u -r1.1152 -r1.1153 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

2019-09-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Sep 29 22:10:55 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
gcc 7 can now be found in gcc.old.


To generate a diff of this commit:
cvs rdiff -u -r1.1152 -r1.1153 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.1152 src/share/mk/bsd.own.mk:1.1153
--- src/share/mk/bsd.own.mk:1.1152	Sun Sep 15 21:17:08 2019
+++ src/share/mk/bsd.own.mk	Sun Sep 29 22:10:55 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1152 2019/09/15 21:17:08 bad Exp $
+#	$NetBSD: bsd.own.mk,v 1.1153 2019/09/29 22:10:55 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -70,9 +70,9 @@ MKGCCCMDS?=	no
 # We import the old gcc as "gcc.old" when upgrading.  EXTERNAL_GCC_SUBDIR is
 # set to the relevant subdirectory in src/external/gpl3 for his HAVE_GCC.
 #
-.if ${HAVE_GCC} == 6
+.if ${HAVE_GCC} == 7
 EXTERNAL_GCC_SUBDIR?=	gcc.old
-.elif ${HAVE_GCC} == 7
+.elif ${HAVE_GCC} == 8
 EXTERNAL_GCC_SUBDIR?=	gcc
 .else
 EXTERNAL_GCC_SUBDIR=?	/does/not/exist



CVS commit: src/share/mk

2019-09-15 Thread Christoph Badura
Module Name:src
Committed By:   bad
Date:   Sun Sep 15 21:17:08 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Also don't add a sysroot at all if a rumpkernel build.


To generate a diff of this commit:
cvs rdiff -u -r1.1151 -r1.1152 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

2019-09-15 Thread Christoph Badura
Module Name:src
Committed By:   bad
Date:   Sun Sep 15 21:17:08 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Also don't add a sysroot at all if a rumpkernel build.


To generate a diff of this commit:
cvs rdiff -u -r1.1151 -r1.1152 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.1151 src/share/mk/bsd.own.mk:1.1152
--- src/share/mk/bsd.own.mk:1.1151	Fri Aug 23 08:17:27 2019
+++ src/share/mk/bsd.own.mk	Sun Sep 15 21:17:08 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1151 2019/08/23 08:17:27 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1152 2019/09/15 21:17:08 bad Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -329,7 +329,8 @@ DESTDIR?=
 # Don't append another copy of sysroot (coming from COMPATCPPFLAGS etc.)
 # because it confuses Coverity. Still we need to cov-configure specially
 # for each specific sysroot argument.
-.if !defined(HOSTPROG) && !defined(HOSTLIB)
+# Also don't add a sysroot at all if a rumpkernel build.
+.if !defined(HOSTPROG) && !defined(HOSTLIB) && !defined(RUMPRUN)
 .  if ${DESTDIR} != ""
 .	if empty(CPPFLAGS:M*--sysroot=*)
 CPPFLAGS+=	--sysroot=${DESTDIR}



CVS commit: src/share/mk

2019-09-13 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Sep 13 10:23:07 UTC 2019

Modified Files:
src/share/mk: bsd.x11.mk

Log Message:
Allow overriding the default man substitutions with X11EXTRAMANTRANSFORMS


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 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

2019-09-13 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Sep 13 10:23:07 UTC 2019

Modified Files:
src/share/mk: bsd.x11.mk

Log Message:
Allow overriding the default man substitutions with X11EXTRAMANTRANSFORMS


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 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.132 src/share/mk/bsd.x11.mk:1.133
--- src/share/mk/bsd.x11.mk:1.132	Wed Jul 10 21:53:35 2019
+++ src/share/mk/bsd.x11.mk	Fri Sep 13 10:23:07 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.x11.mk,v 1.132 2019/07/10 21:53:35 mrg Exp $
+#	$NetBSD: bsd.x11.mk,v 1.133 2019/09/13 10:23:07 maya Exp $
 
 .include 
 
@@ -397,6 +397,7 @@ CLEANDIRFILES+= ${MAN:U${PROG:D${PROG.1}
 .SUFFIXES:	.man .man.pre .1 .3 .4 .5 .7
 
 _X11MANTRANSFORM= \
+	${X11EXTRAMANTRANSFORMS} \
 	__adminmansuffix__	8 \
 	__apploaddir__		${X11ROOTDIR}/lib/X11/app-defaults \
 	__appmansuffix__ 	1 \
@@ -413,8 +414,7 @@ _X11MANTRANSFORM= \
 	__mandir__		${X11MANDIR} \
 	__miscmansuffix__	7 \
 	__oslibmansuffix__	3 \
-	__projectroot__		${X11ROOTDIR} \
-	${X11EXTRAMANTRANSFORMS}
+	__projectroot__		${X11ROOTDIR}
 
 # Note the escaping trick for _X11MANTRANSFORM using % to replace spaces
 XORGVERSION=	'"X Version 11"'



CVS commit: src/share/mk

2019-08-16 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sat Aug 17 00:14:48 UTC 2019

Modified Files:
src/share/mk: bsd.prog.mk

Log Message:
Add PAXCTL_FLAG rules for MKSANITIZER

Add per-program rules to disable ASLR for ASan, TSan and MSan in all
sanitized programs. This flag is not needed for other supported sanitizers.

Without this change, sanitized init(8) dies early on startup.

Approach originally suggested by 


To generate a diff of this commit:
cvs rdiff -u -r1.321 -r1.322 src/share/mk/bsd.prog.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.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.321 src/share/mk/bsd.prog.mk:1.322
--- src/share/mk/bsd.prog.mk:1.321	Thu Aug 15 08:42:59 2019
+++ src/share/mk/bsd.prog.mk	Sat Aug 17 00:14:48 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.prog.mk,v 1.321 2019/08/15 08:42:59 kamil Exp $
+#	$NetBSD: bsd.prog.mk,v 1.322 2019/08/17 00:14:48 kamil Exp $
 #	@(#)bsd.prog.mk	8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -452,10 +452,18 @@ PROGNAME.${_P}?=	${_P}
 _PROGDEBUG.${_P}:=	${PROGNAME.${_P}}.debug
 .endif
 
+# paxctl specific arguments
+
 .if defined(PAXCTL_FLAGS)
 PAXCTL_FLAGS.${_P}?= ${PAXCTL_FLAGS}
 .endif
 
+.if ${MKSANITIZER:Uno} == "yes" && \
+	(${USE_SANITIZER} == "address" || ${USE_SANITIZER} == "thread" || \
+	${USE_SANITIZER} == "memory")
+PAXCTL_FLAGS.${_P}= +a
+.endif
+
 # PROG specific flags.
 
 _DPADD.${_P}=		${DPADD}${DPADD.${_P}}



CVS commit: src/share/mk

2019-08-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Aug 15 08:42:59 UTC 2019

Modified Files:
src/share/mk: bsd.prog.mk

Log Message:
Add SANITIZER_RENAME_CLASSES in bsd.prog.mk

This adds a more flexible version of SANITIZER_RENAME_SYMBOL.

New symbol allows to specify MKSANITIZER specific renames on per-file and
per-symbol basis.


To generate a diff of this commit:
cvs rdiff -u -r1.320 -r1.321 src/share/mk/bsd.prog.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

2019-08-15 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Thu Aug 15 08:42:59 UTC 2019

Modified Files:
src/share/mk: bsd.prog.mk

Log Message:
Add SANITIZER_RENAME_CLASSES in bsd.prog.mk

This adds a more flexible version of SANITIZER_RENAME_SYMBOL.

New symbol allows to specify MKSANITIZER specific renames on per-file and
per-symbol basis.


To generate a diff of this commit:
cvs rdiff -u -r1.320 -r1.321 src/share/mk/bsd.prog.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.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.320 src/share/mk/bsd.prog.mk:1.321
--- src/share/mk/bsd.prog.mk:1.320	Sat Aug 10 12:46:38 2019
+++ src/share/mk/bsd.prog.mk	Thu Aug 15 08:42:59 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.prog.mk,v 1.320 2019/08/10 12:46:38 christos Exp $
+#	$NetBSD: bsd.prog.mk,v 1.321 2019/08/15 08:42:59 kamil Exp $
 #	@(#)bsd.prog.mk	8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -20,6 +20,16 @@ CPPFLAGS+=	-D${_symbol}=__mksanitizer_${
 .	endfor
 .endif
 
+.if ${MKSANITIZER:Uno} == "yes" && defined(SANITIZER_RENAME_CLASSES)
+.	for _class in ${SANITIZER_RENAME_CLASSES}
+.		for _file in ${SANITIZER_RENAME_FILES.${_class}}
+.			for _symbol in ${SANITIZER_RENAME_SYMBOL.${_class}}
+COPTS.${_file}+=	-D${_symbol}=__mksanitizer_${_symbol}
+.			endfor
+.		endfor
+.	endfor
+.endif
+
 #
 # Definitions and targets shared among all programs built by a single
 # Makefile.



re: CVS commit: src/share/mk

2019-08-13 Thread Paul Goyette

So 9.99.7 does not install *_pic.a any longer while earlier versions did.
Shouldn't they be marked as "obsolete" in the set lists?


this would break builds that do want them.

they've been built conditionally for a long time, we just changed
the default value of the condition is all.

i understand where you are coming from -- i have to clean my
destdir for dozens of builds now -- but there's no easy answer
to this besides manual fixing..

(it fortunately does not leave anything in the objdir, as these
files are created as part of creating the shlibs -- the only
difference now is that we don't install them by dfeault.)


Ah, got it!  Thanks for the detailed explanation.



++--+---+
| Paul Goyette   | PGP Key fingerprint: | E-mail addresses: |
| (Retired)  | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org   |
++--+---+


re: CVS commit: src/share/mk

2019-08-13 Thread matthew green
Thomas Klausner writes:
> On Sat, Aug 10, 2019 at 08:20:17AM -0400, Christos Zoulas wrote:
> > Module Name:src
> > Committed By:   christos
> > Date:   Sat Aug 10 12:20:17 UTC 2019
> > 
> > Modified Files:
> > src/share/mk: bsd.own.mk
> > 
> > Log Message:
> > Don't install PIC libraries by default because they are too big since they
> > contain debug symbols. I supplied a patch in PR/54449 to remove the 
> > debugging
> > symbols but folks preferred to not install them at all.
> 
> So 9.99.7 does not install *_pic.a any longer while earlier versions did.
> Shouldn't they be marked as "obsolete" in the set lists?

this would break builds that do want them.

they've been built conditionally for a long time, we just changed
the default value of the condition is all.

i understand where you are coming from -- i have to clean my 
destdir for dozens of builds now -- but there's no easy answer
to this besides manual fixing..

(it fortunately does not leave anything in the objdir, as these
files are created as part of creating the shlibs -- the only
difference now is that we don't install them by dfeault.)


.mrg.


Re: CVS commit: src/share/mk

2019-08-13 Thread Paul Goyette

On Wed, 14 Aug 2019, Thomas Klausner wrote:


On Sat, Aug 10, 2019 at 08:20:17AM -0400, Christos Zoulas wrote:

Module Name:src
Committed By:   christos
Date:   Sat Aug 10 12:20:17 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Don't install PIC libraries by default because they are too big since they
contain debug symbols. I supplied a patch in PR/54449 to remove the debugging
symbols but folks preferred to not install them at all.


So 9.99.7 does not install *_pic.a any longer while earlier versions did.
Shouldn't they be marked as "obsolete" in the set lists?


Yes.  They should be obsolete.


++--+---+
| Paul Goyette   | PGP Key fingerprint: | E-mail addresses: |
| (Retired)  | FA29 0E3B 35AF E8AE 6651 | p...@whooppee.com |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoye...@netbsd.org   |
++--+---+


Re: CVS commit: src/share/mk

2019-08-13 Thread Thomas Klausner
On Sat, Aug 10, 2019 at 08:20:17AM -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date: Sat Aug 10 12:20:17 UTC 2019
> 
> Modified Files:
>   src/share/mk: bsd.own.mk
> 
> Log Message:
> Don't install PIC libraries by default because they are too big since they
> contain debug symbols. I supplied a patch in PR/54449 to remove the debugging
> symbols but folks preferred to not install them at all.

So 9.99.7 does not install *_pic.a any longer while earlier versions did.
Shouldn't they be marked as "obsolete" in the set lists?
 Thomas


CVS commit: src/share/mk

2019-08-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 10 12:50:37 UTC 2019

Added Files:
src/share/mk: compare-lib-lists

Log Message:
Add a script to compare the library lists so we can keep them in sync easier.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/share/mk/compare-lib-lists

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/mk

2019-08-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 10 12:50:37 UTC 2019

Added Files:
src/share/mk: compare-lib-lists

Log Message:
Add a script to compare the library lists so we can keep them in sync easier.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/share/mk/compare-lib-lists

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/share/mk/compare-lib-lists
diff -u /dev/null src/share/mk/compare-lib-lists:1.1
--- /dev/null	Sat Aug 10 08:50:37 2019
+++ src/share/mk/compare-lib-lists	Sat Aug 10 08:50:36 2019
@@ -0,0 +1,33 @@
+#!/bin/sh
+# $NetBSD: compare-lib-lists,v 1.1 2019/08/10 12:50:36 christos Exp $
+#
+# Q+D script to print the library lists for compariston between whats in the
+# bsd.prog.mk file and bsd.README
+
+prog=$(basename "$0")
+
+RD=/tmp/${prog}.rd.$$
+MK=/tmp/${prog}.mk.$$
+
+trap "rm -f ${MK} ${RD}" 0 1 2 3 15
+
+make -f - all << \EOF > ${MK}
+.include 
+
+all:
+.for l in ${_LIBLIST}
+	@echo $l
+.endfor
+.for l in crt0.o crti.o crti.o crtn.o
+	@echo $l
+.endfor
+.for l in ${_X11LIBLIST}
+	@echo $l
+.endfor
+EOF
+
+grep '	LIB' bsd.README | \
+grep DESTDIR | \
+sed -e 's/.*lib\([a-zA-Z0-9_+\-]*\)\.a$/\1/' > ${RD}
+
+paste ${MK} ${RD}



CVS commit: src/share/mk

2019-08-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 10 12:46:39 UTC 2019

Modified Files:
src/share/mk: bsd.README bsd.prog.mk

Log Message:
Make the X11 library lists consistent again.


To generate a diff of this commit:
cvs rdiff -u -r1.393 -r1.394 src/share/mk/bsd.README
cvs rdiff -u -r1.319 -r1.320 src/share/mk/bsd.prog.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

2019-08-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 10 12:46:39 UTC 2019

Modified Files:
src/share/mk: bsd.README bsd.prog.mk

Log Message:
Make the X11 library lists consistent again.


To generate a diff of this commit:
cvs rdiff -u -r1.393 -r1.394 src/share/mk/bsd.README
cvs rdiff -u -r1.319 -r1.320 src/share/mk/bsd.prog.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.393 src/share/mk/bsd.README:1.394
--- src/share/mk/bsd.README:1.393	Wed Jul 24 05:28:29 2019
+++ src/share/mk/bsd.README	Sat Aug 10 08:46:38 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.README,v 1.393 2019/07/24 09:28:29 roy Exp $
+#	$NetBSD: bsd.README,v 1.394 2019/08/10 12:46:38 christos Exp $
 #	@(#)bsd.README	8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -1754,24 +1754,31 @@ DPADD		Additional dependencies for the p
 
 		The following X-Windows libraries are predefined for DPADD:
 
+		LIBDPS?=		${DESTDIR}/usr/X11R7/lib/libdps.a
+		LIBFNTSTUBS?=		${DESTDIR}/usr/X11R7/lib/libfntstubs.a
+		LIBFONTCACHE?=		${DESTDIR}/usr/X11R7/lib/libfontcache.a
+		LIBFONTCONFIG?=		${DESTDIR}/usr/X11R7/lib/libfontconfig.a
+		LIBFONTENC?=		${DESTDIR}/usr/X11R7/lib/libfontenc.a
+		LIBFREETYPE?=		${DESTDIR}/usr/X11R7/lib/libfreetype.a
 		LIBFS?=			${DESTDIR}/usr/X11R7/lib/libFS.a
 		LIBGL?=			${DESTDIR}/usr/X11R7/lib/libGL.a
 		LIBGLU?=		${DESTDIR}/usr/X11R7/lib/libGLU.a
 		LIBICE?=		${DESTDIR}/usr/X11R7/lib/libICE.a
+		LIBLBXUTIL?=		${DESTDIR}/usr/X11R7/lib/liblbxutil.a
 		LIBSM?=			${DESTDIR}/usr/X11R7/lib/libSM.a
 		LIBX11?=		${DESTDIR}/usr/X11R7/lib/libX11.a
 		LIBX11_XCB?=		${DESTDIR}/usr/X11R7/lib/libX11-xcb.a
-		LIBXTRAP?=		${DESTDIR}/usr/X11R7/lib/libXTrap.a
 		LIBXAU?=		${DESTDIR}/usr/X11R7/lib/libXau.a
 		LIBXAW?=		${DESTDIR}/usr/X11R7/lib/libXaw.a
 		LIBXCB?=		${DESTDIR}/usr/X11R7/lib/libxcb.a
 		LIBXDMCP?=		${DESTDIR}/usr/X11R7/lib/libXdmcp.a
 		LIBXEXT?=		${DESTDIR}/usr/X11R7/lib/libXext.a
-		LIBXFONT?=		${DESTDIR}/usr/X11R7/lib/libXfont.a
 		LIBXFONT2?=		${DESTDIR}/usr/X11R7/lib/libXfont2.a
+		LIBXFONT?=		${DESTDIR}/usr/X11R7/lib/libXfont.a
 		LIBXFT?=		${DESTDIR}/usr/X11R7/lib/libXft.a
 		LIBXI?=			${DESTDIR}/usr/X11R7/lib/libXi.a
 		LIBXINERAMA?=		${DESTDIR}/usr/X11R7/lib/libXinerama.a
+		LIBXKBFILE?=		${DESTDIR}/usr/X11R7/lib/libxkbfile.a
 		LIBXMU?=		${DESTDIR}/usr/X11R7/lib/libXmu.a
 		LIBXMUU?=		${DESTDIR}/usr/X11R7/lib/libXmuu.a
 		LIBXPM?=		${DESTDIR}/usr/X11R7/lib/libXpm.a
@@ -1779,18 +1786,12 @@ DPADD		Additional dependencies for the p
 		LIBXRENDER?=		${DESTDIR}/usr/X11R7/lib/libXrender.a
 		LIBXSS?=		${DESTDIR}/usr/X11R7/lib/libXss.a
 		LIBXT?=			${DESTDIR}/usr/X11R7/lib/libXt.a
+		LIBXTRAP?=		${DESTDIR}/usr/X11R7/lib/libXTrap.a
 		LIBXTST?=		${DESTDIR}/usr/X11R7/lib/libXtst.a
 		LIBXV?=			${DESTDIR}/usr/X11R7/lib/libXv.a
 		LIBXXF86DGA?=		${DESTDIR}/usr/X11R7/lib/libXxf86dga.a
 		LIBXXF86MISC?=		${DESTDIR}/usr/X11R7/lib/libXxf86misc.a
 		LIBXXF86VM?=		${DESTDIR}/usr/X11R7/lib/libXxf86vm.a
-		LIBDPS?=		${DESTDIR}/usr/X11R7/lib/libdps.a
-		LIBFNTSTUBS?=		${DESTDIR}/usr/X11R7/lib/libfntstubs.a
-		LIBFONTCONFIG?=		${DESTDIR}/usr/X11R7/lib/libfontconfig.a
-		LIBFONTENC?=		${DESTDIR}/usr/X11R7/lib/libfontenc.a
-		LIBFREETYPE?=		${DESTDIR}/usr/X11R7/lib/libfreetype.a
-		LIBLBXUTIL?=		${DESTDIR}/usr/X11R7/lib/liblbxutil.a
-		LIBXKBFILE?=		${DESTDIR}/usr/X11R7/lib/libxkbfile.a
 
 SHAREDSTRINGS	If defined, a new .c.o rule is used that results in shared
 		strings, using xstr(1). Note that this will not work with

Index: src/share/mk/bsd.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.319 src/share/mk/bsd.prog.mk:1.320
--- src/share/mk/bsd.prog.mk:1.319	Mon Jan 21 16:11:54 2019
+++ src/share/mk/bsd.prog.mk	Sat Aug 10 08:46:38 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.prog.mk,v 1.319 2019/01/21 21:11:54 christos Exp $
+#	$NetBSD: bsd.prog.mk,v 1.320 2019/08/10 12:46:38 christos Exp $
 #	@(#)bsd.prog.mk	8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -267,43 +267,13 @@ PAM_STATIC_DPADD=
 .endif
 
 #	NB:	If you are a library here, add it in bsd.README
-.for _lib in \
-	FS \
-	GL \
-	GLU \
-	ICE \
-	SM \
-	X11 \
-	XTrap \
-	Xau \
-	Xaw \
-	Xdmcp \
-	Xext \
-	Xfont2 \
-	Xfont \
-	Xft \
-	Xi \
-	Xinerama \
-	Xmu \
-	Xmuu \
-	Xpm \
-	Xrandr \
-	Xrender \
-	Xss \
-	Xt \
-	Xtst \
-	Xv \
-	Xxf86dga \
-	Xxf86misc \
-	Xxf86vm \
-	dps \
-	fntstubs \
-	fontcache \
-	fontconfig \
-	fontenc \
-	freetype \
-	lbxutil \
-	xkbfile
+#	This list is sorted with -f so that it matches the order in bsd.README
+_X11LIBLIST= dps fntstubs fontcache fontconfig fontenc freetype FS GL GLU \
+ICE lbxutil SM X11 X11_xcb Xau Xaw xcb Xdmcp Xext Xfont Xfont2 Xft Xi \
+Xinerama xkbfile Xmu Xmuu Xpm Xrandr Xrender Xss Xt XTrap Xtst Xv Xxf86dga \
+Xxf86misc Xxf86vm
+
+.for _lib in ${_X11LIBLIST}
 .ifndef LIB${_lib:tu}
 LIB${_lib:tu}=	

CVS commit: src/share/mk

2019-08-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 10 12:20:17 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Don't install PIC libraries by default because they are too big since they
contain debug symbols. I supplied a patch in PR/54449 to remove the debugging
symbols but folks preferred to not install them at all.


To generate a diff of this commit:
cvs rdiff -u -r1.1149 -r1.1150 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.1149 src/share/mk/bsd.own.mk:1.1150
--- src/share/mk/bsd.own.mk:1.1149	Wed Jul 24 05:28:29 2019
+++ src/share/mk/bsd.own.mk	Sat Aug 10 08:20:17 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1149 2019/07/24 09:28:29 roy Exp $
+#	$NetBSD: bsd.own.mk,v 1.1150 2019/08/10 12:20:17 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1070,7 +1070,7 @@ _MKVARS.yes= \
 	MKNPF \
 	MKOBJ \
 	MKPAM MKPERFUSE \
-	MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \
+	MKPF MKPIC MKPICLIB MKPOSTFIX MKPROFILE \
 	MKRUMP \
 	MKSHARE MKSKEY MKSTATICLIB \
 	MKUNBOUND \
@@ -1186,7 +1186,7 @@ _MKVARS.no= \
 	MKMANZ MKMCLINKER \
 	MKNOUVEAUFIRMWARE MKNSD \
 	MKOBJDIRS \
-	MKPCC MKPIGZGZIP \
+	MKPCC MKPICINSTALL MKPIGZGZIP \
 	MKRADEONFIRMWARE MKREPRO \
 	MKSLJIT MKSOFTFLOAT MKSTRIPIDENT \
 	MKTEGRAFIRMWARE MKTPM \



CVS commit: src/share/mk

2019-08-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 10 12:20:17 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Don't install PIC libraries by default because they are too big since they
contain debug symbols. I supplied a patch in PR/54449 to remove the debugging
symbols but folks preferred to not install them at all.


To generate a diff of this commit:
cvs rdiff -u -r1.1149 -r1.1150 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

2019-07-24 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Jul 24 09:28:29 UTC 2019

Modified Files:
src/share/mk: bsd.README bsd.own.mk

Log Message:
MKBSDTAR now defaults to yes

Starting to see some modern archives not opening, it's time to make them
work!

OK joerg@ agc@


To generate a diff of this commit:
cvs rdiff -u -r1.392 -r1.393 src/share/mk/bsd.README
cvs rdiff -u -r1.1148 -r1.1149 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.README
diff -u src/share/mk/bsd.README:1.392 src/share/mk/bsd.README:1.393
--- src/share/mk/bsd.README:1.392	Sat Jul 20 19:09:23 2019
+++ src/share/mk/bsd.README	Wed Jul 24 09:28:29 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.README,v 1.392 2019/07/20 19:09:23 wiz Exp $
+#	$NetBSD: bsd.README,v 1.393 2019/07/24 09:28:29 roy Exp $
 #	@(#)bsd.README	8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -128,7 +128,7 @@ MKBINUTILS	If "no", don't build binutils
 
 MKBSDTAR	If "yes", use the libarchive based cpio and tar instead of
 		the pax frontends.
-		Default: no
+		Default: yes
 
 MKCATPAGES	If "no", don't build or install the catman pages.
 		Default: no

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1148 src/share/mk/bsd.own.mk:1.1149
--- src/share/mk/bsd.own.mk:1.1148	Sat Jul 20 20:25:35 2019
+++ src/share/mk/bsd.own.mk	Wed Jul 24 09:28:29 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1148 2019/07/20 20:25:35 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1149 2019/07/24 09:28:29 roy Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1053,6 +1053,7 @@ MKSTATICPIE?=	no
 _MKVARS.yes= \
 	MKATF \
 	MKBINUTILS \
+	MKBSDTAR \
 	MKCOMPLEX MKCVS MKCXX \
 	MKDOC MKDTC \
 	MKDYNAMICROOT \
@@ -1174,7 +1175,7 @@ MKLLVMRT.aarch64=	yes
 #
 _MKVARS.no= \
 	MKARZERO \
-	MKBSDGREP MKBSDTAR \
+	MKBSDGREP \
 	MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCTF \
 	MKDEBUG MKDEBUGLIB MKDTRACE \
 	MKEXTSRC \



CVS commit: src/share/mk

2019-07-24 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Jul 24 09:28:29 UTC 2019

Modified Files:
src/share/mk: bsd.README bsd.own.mk

Log Message:
MKBSDTAR now defaults to yes

Starting to see some modern archives not opening, it's time to make them
work!

OK joerg@ agc@


To generate a diff of this commit:
cvs rdiff -u -r1.392 -r1.393 src/share/mk/bsd.README
cvs rdiff -u -r1.1148 -r1.1149 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

2019-07-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jul 20 20:25:35 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
add util-macros src dir.


To generate a diff of this commit:
cvs rdiff -u -r1.1147 -r1.1148 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.1147 src/share/mk/bsd.own.mk:1.1148
--- src/share/mk/bsd.own.mk:1.1147	Sat Jul 20 19:09:23 2019
+++ src/share/mk/bsd.own.mk	Sat Jul 20 20:25:35 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1147 2019/07/20 19:09:23 wiz Exp $
+#	$NetBSD: bsd.own.mk,v 1.1148 2019/07/20 20:25:35 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1495,6 +1495,7 @@ HAVE_XORG_GLAMOR?=	no
 	ico iceauth listres lndir \
 	luit xproxymanagementprotocol mkfontdir oclock proxymngr rgb \
 	rstart setxkbmap showfont smproxy transset twm viewres \
+	util-macros \
 	x11perf xauth xcalc xclipboard \
 	xclock xcmsdb xconsole xditview xdpyinfo xdriinfo xdm \
 	xfd xf86dga xfindproxy xfontsel xfwp xgamma xgc xhost xinit \



CVS commit: src/share/mk

2019-07-20 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jul 20 20:25:35 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
add util-macros src dir.


To generate a diff of this commit:
cvs rdiff -u -r1.1147 -r1.1148 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

2019-07-10 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Jul 10 21:53:35 UTC 2019

Modified Files:
src/share/mk: bsd.x11.mk

Log Message:
break the build if a .pc generation leaves something matching "@.*@".
this is an error in the build that doesn't trigger issues until you
try to integrate with eg, pkgsrc.


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 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

2019-07-10 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Jul 10 21:53:35 UTC 2019

Modified Files:
src/share/mk: bsd.x11.mk

Log Message:
break the build if a .pc generation leaves something matching "@.*@".
this is an error in the build that doesn't trigger issues until you
try to integrate with eg, pkgsrc.


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 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.131 src/share/mk/bsd.x11.mk:1.132
--- src/share/mk/bsd.x11.mk:1.131	Sat Jun  1 06:57:03 2019
+++ src/share/mk/bsd.x11.mk	Wed Jul 10 21:53:35 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.x11.mk,v 1.131 2019/06/01 06:57:03 mrg Exp $
+#	$NetBSD: bsd.x11.mk,v 1.132 2019/07/10 21:53:35 mrg Exp $
 
 .include 
 
@@ -355,8 +355,14 @@ ${_pkg}.pc: ${PKGDIST.${_pkg}}/configure
 		s,@EXPAT_CFLAGS@,,; \
 		s,@FREETYPE_CFLAGS@,-I${X11ROOTDIR}/include/freetype2 -I${X11ROOTDIR}/include,;" \
 		-e '/^Libs:/ s%-L\([^ 	]*\)%-Wl,-rpath,\1 &%g' \
-		< ${.IMPSRC} > ${.TARGET}.tmp && \
-	${MV} ${.TARGET}.tmp ${.TARGET}
+		< ${.IMPSRC} > ${.TARGET}.tmp
+	if ${TOOL_GREP} '@.*@' ${.TARGET}.tmp; then \
+		echo "${.TARGET} matches @.*@, probably missing updates" 1>&2; \
+		false; \
+	else \
+		${MV} ${.TARGET}.tmp ${.TARGET}; \
+	fi
+
 
 CLEANFILES+= ${_PKGCONFIG_FILES} ${_PKGCONFIG_FILES:C/$/.tmp/}
 .endif



CVS commit: src/share/mk

2019-07-05 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Fri Jul  5 08:28:16 UTC 2019

Modified Files:
src/share/mk: bsd.kmodule.mk

Log Message:
When building a module keep symbols if built with "MKCTF" and "COPTS=-g".


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 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.61 src/share/mk/bsd.kmodule.mk:1.62
--- src/share/mk/bsd.kmodule.mk:1.61	Thu May  9 23:34:51 2019
+++ src/share/mk/bsd.kmodule.mk	Fri Jul  5 08:28:16 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.kmodule.mk,v 1.61 2019/05/09 23:34:51 maya Exp $
+#	$NetBSD: bsd.kmodule.mk,v 1.62 2019/07/05 08:28:16 hannken Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -11,6 +11,11 @@ CFLAGS+=	-g
 # Only need symbols for ctf, strip them after converting to CTF
 CTFFLAGS=	-L VERSION
 CTFMFLAGS=	-t -L VERSION
+# Keep symbols if built with "-g"
+.if !empty(COPTS:M*-g*)
+CTFFLAGS+=	-g
+CTFMFLAGS+=	-g
+.endif
 .endif
 
 .include 



CVS commit: src/share/mk

2019-07-05 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Fri Jul  5 08:28:16 UTC 2019

Modified Files:
src/share/mk: bsd.kmodule.mk

Log Message:
When building a module keep symbols if built with "MKCTF" and "COPTS=-g".


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 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.



Re: CVS commit: src/share/mk

2019-06-21 Thread Kamil Rytarowski
On 21.06.2019 18:29, Christos Zoulas wrote:
> On Jun 21,  3:21pm, n...@gmx.com (Kamil Rytarowski) wrote:
> -- Subject: Re: CVS commit: src/share/mk
> 
> | I've started to observe issues with signals in recent GDB as well, a
> | debugger is stopping self and detaching from terminal.
> | 
> | Please tell me whether you want me to fix it. It slows down testing of
> | my kernel changes now. I had to revert my previous change due to GDB
> | misbehavior (I suspect that the problems come from the recent GDB upgrade).=
> 
> Go for it. I think we need more "gdb" atf tests...
> 

Thanks!

I got NetBSD truss to be very reliable with multiple threads, but GDB is
misbehaving.

> | I can spend some more time on fixing local GDB, upstreaming the support
> | and adding support for running the regress test in GDB... this will
> | allow us to get more predictable results with future GDB upgrades, cover
> | kernel code paths with GDB tests and maybe run regression tests on the
> | GDB buildbot.
> 
> Sounds good to me!
> 

I've compared src/ GDB 8.3 and upstream GDB 8.3.

There are a lot of differences and it looks like a lot of our changes
predate gpl2->gpl3 switch in GDB. I have an impression that sometimes we
unintentionally revert to an older GDB code.

I will start with upstreaming small code chunks first and getting
upstream GDB to work on NetBSD/amd64 with its regression tests... It
should be better long term action than mutating local in-tree version.

> Thanks,
> 
> christos
> 




signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/share/mk

2019-06-21 Thread Christos Zoulas
On Jun 21,  3:21pm, n...@gmx.com (Kamil Rytarowski) wrote:
-- Subject: Re: CVS commit: src/share/mk

| I've started to observe issues with signals in recent GDB as well, a
| debugger is stopping self and detaching from terminal.
| 
| Please tell me whether you want me to fix it. It slows down testing of
| my kernel changes now. I had to revert my previous change due to GDB
| misbehavior (I suspect that the problems come from the recent GDB upgrade).=

Go for it. I think we need more "gdb" atf tests...

| I can spend some more time on fixing local GDB, upstreaming the support
| and adding support for running the regress test in GDB... this will
| allow us to get more predictable results with future GDB upgrades, cover
| kernel code paths with GDB tests and maybe run regression tests on the
| GDB buildbot.

Sounds good to me!

Thanks,

christos


Re: CVS commit: src/share/mk

2019-06-21 Thread Christos Zoulas
Both of them should be simple to fix... Let me take a look.

christos

> On Jun 21, 2019, at 7:55 AM, Martin Husemann  wrote:
> 
> On Fri, Jun 21, 2019 at 11:22:18AM +, m...@netbsd.org wrote:
>> On Fri, Jun 21, 2019 at 01:15:18PM +0200, Martin Husemann wrote:
>>> On Fri, Jun 21, 2019 at 11:08:16AM +, m...@netbsd.org wrote:
 Please revert for mips. The debugger is extremely broken, and the old
 version is slightly less broken.
>>> 
>>> Same for sparc64.
>>> 
>>> Martin
>>> 
>> 
>> What's the failure mode for sparc64?
> 
> Various signal handling issues, gdb TSTOPs itself or something when receiving
> events (or so it looks).
> 
> Martin



Re: CVS commit: src/share/mk

2019-06-21 Thread Martin Husemann
On Fri, Jun 21, 2019 at 11:22:18AM +, m...@netbsd.org wrote:
> On Fri, Jun 21, 2019 at 01:15:18PM +0200, Martin Husemann wrote:
> > On Fri, Jun 21, 2019 at 11:08:16AM +, m...@netbsd.org wrote:
> > > Please revert for mips. The debugger is extremely broken, and the old
> > > version is slightly less broken.
> > 
> > Same for sparc64.
> > 
> > Martin
> > 
> 
> What's the failure mode for sparc64?

Various signal handling issues, gdb TSTOPs itself or something when receiving
events (or so it looks).

Martin


Re: CVS commit: src/share/mk

2019-06-21 Thread maya
On Fri, Jun 21, 2019 at 01:15:18PM +0200, Martin Husemann wrote:
> On Fri, Jun 21, 2019 at 11:08:16AM +, m...@netbsd.org wrote:
> > Please revert for mips. The debugger is extremely broken, and the old
> > version is slightly less broken.
> 
> Same for sparc64.
> 
> Martin
> 

What's the failure mode for sparc64?


Re: CVS commit: src/share/mk

2019-06-21 Thread Martin Husemann
On Fri, Jun 21, 2019 at 11:08:16AM +, m...@netbsd.org wrote:
> Please revert for mips. The debugger is extremely broken, and the old
> version is slightly less broken.

Same for sparc64.

Martin



Re: CVS commit: src/share/mk

2019-06-21 Thread maya
On Thu, May 30, 2019 at 05:33:57PM -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date: Thu May 30 21:33:57 UTC 2019
> 
> Modified Files:
>   src/share/mk: bsd.own.mk
> 
> Log Message:
> Everyone is on gdb-8.3 now.

Please revert for mips. The debugger is extremely broken, and the old
version is slightly less broken.

gdb 8.3
"/mnt/sudo.core" is not a core dump: file format not recognized

gdb 8.0.1

# gdb -q /usr/pkg/bin/sudo /sudo.core
Reading symbols from /usr/pkg/bin/sudo...done.
[New process 1]
Core was generated by `sudo'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x78670744 in ?? () from /usr/pkg/lib/sudo/libsudo_util.so.0
(gdb) bt
#0  0x78670744 in ?? () from /usr/pkg/lib/sudo/libsudo_util.so.0
warning: GDB can't find the start of the function at 0x78662e57.

GDB is unable to find the start of the function at 0x78662e57
and thus can't determine the size of that function's stack frame.
This means that GDB may be unable to access that stack frame, or
the frames below it.
This problem is most likely caused by an invalid program counter or
stack pointer.
However, if you think GDB should simply search farther back
from 0x78662e57 for code which looks like the beginning of a
function, you can increase the range of the search using the `set
heuristic-fence-post' command.
#1  0x78662e58 in ?? () from /usr/pkg/lib/sudo/libsudo_util.so.0




CVS commit: src/share/mk

2019-06-10 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jun 11 04:52:44 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
turn on MKLLVMRT for aarch64 X11 builds.

with llvmpipe vs swrast, on pinebook 1080p i see 6x speed up for glxgears,
seamonkey & google maps is significantly faster, and ksudoku is workable.


To generate a diff of this commit:
cvs rdiff -u -r1.1145 -r1.1146 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.1145 src/share/mk/bsd.own.mk:1.1146
--- src/share/mk/bsd.own.mk:1.1145	Sun Jun  2 21:29:13 2019
+++ src/share/mk/bsd.own.mk	Tue Jun 11 04:52:44 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1145 2019/06/02 21:29:13 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1146 2019/06/11 04:52:44 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1156,12 +1156,13 @@ EXTERNAL_MESALIB_DIR?=	MesaLib.old
 EXTERNAL_MESALIB_DIR?=	MesaLib
 .endif
 
-# Default to LLVM run-time if x86 and X11 and Mesa 18
+# Default to LLVM run-time if x86 or aarch64 and X11 and Mesa 18
 # XXX This knows that MKX11=no is default below, but would
 # require splitting the below loop in two parts.
 .if ${MKX11:Uno} != "no" && ${HAVE_MESA_VER} == "18"
 MKLLVMRT.amd64=		yes
 MKLLVMRT.i386=		yes
+MKLLVMRT.aarch64=	yes
 .endif
 
 #



CVS commit: src/share/mk

2019-06-10 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jun 11 04:52:44 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
turn on MKLLVMRT for aarch64 X11 builds.

with llvmpipe vs swrast, on pinebook 1080p i see 6x speed up for glxgears,
seamonkey & google maps is significantly faster, and ksudoku is workable.


To generate a diff of this commit:
cvs rdiff -u -r1.1145 -r1.1146 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

2019-06-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jun  2 21:29:13 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
minor hack fix for the previous:

MKX11 is used before it was defaulted, leading to eg:

... Malformed conditional (${MKX11} != "no" && ${HAVE_MESA_VER} == "18")

gain knowledge that it defaults to "no" immediately below.
could split this list, but seems uglier.


To generate a diff of this commit:
cvs rdiff -u -r1.1144 -r1.1145 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

2019-06-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jun  2 21:29:13 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
minor hack fix for the previous:

MKX11 is used before it was defaulted, leading to eg:

... Malformed conditional (${MKX11} != "no" && ${HAVE_MESA_VER} == "18")

gain knowledge that it defaults to "no" immediately below.
could split this list, but seems uglier.


To generate a diff of this commit:
cvs rdiff -u -r1.1144 -r1.1145 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.1144 src/share/mk/bsd.own.mk:1.1145
--- src/share/mk/bsd.own.mk:1.1144	Sun Jun  2 11:35:55 2019
+++ src/share/mk/bsd.own.mk	Sun Jun  2 21:29:13 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1144 2019/06/02 11:35:55 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1145 2019/06/02 21:29:13 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1157,7 +1157,9 @@ EXTERNAL_MESALIB_DIR?=	MesaLib
 .endif
 
 # Default to LLVM run-time if x86 and X11 and Mesa 18
-.if ${MKX11} != "no" && ${HAVE_MESA_VER} == "18"
+# XXX This knows that MKX11=no is default below, but would
+# require splitting the below loop in two parts.
+.if ${MKX11:Uno} != "no" && ${HAVE_MESA_VER} == "18"
 MKLLVMRT.amd64=		yes
 MKLLVMRT.i386=		yes
 .endif



CVS commit: src/share/mk

2019-06-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jun  1 06:57:03 UTC 2019

Modified Files:
src/share/mk: bsd.x11.mk

Log Message:
xorg-server 1.20.5 is now current.


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 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.130 src/share/mk/bsd.x11.mk:1.131
--- src/share/mk/bsd.x11.mk:1.130	Mon Mar 11 06:25:55 2019
+++ src/share/mk/bsd.x11.mk	Sat Jun  1 06:57:03 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.x11.mk,v 1.130 2019/03/11 06:25:55 mrg Exp $
+#	$NetBSD: bsd.x11.mk,v 1.131 2019/06/01 06:57:03 mrg Exp $
 
 .include 
 
@@ -134,7 +134,7 @@ XORG_SERVER_MINOR=	10
 XORG_SERVER_TEENY=	6
 .else
 XORG_SERVER_MINOR=	20
-XORG_SERVER_TEENY=	4
+XORG_SERVER_TEENY=	5
 .endif
   
 XVENDORNAMESHORT=	'"X.Org"'



CVS commit: src/share/mk

2019-06-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Jun  1 06:57:03 UTC 2019

Modified Files:
src/share/mk: bsd.x11.mk

Log Message:
xorg-server 1.20.5 is now current.


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 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

2019-05-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu May 30 21:33:57 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Everyone is on gdb-8.3 now.


To generate a diff of this commit:
cvs rdiff -u -r1.1142 -r1.1143 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

2019-05-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu May 30 21:33:57 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Everyone is on gdb-8.3 now.


To generate a diff of this commit:
cvs rdiff -u -r1.1142 -r1.1143 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.1142 src/share/mk/bsd.own.mk:1.1143
--- src/share/mk/bsd.own.mk:1.1142	Wed May 29 21:20:41 2019
+++ src/share/mk/bsd.own.mk	Thu May 30 17:33:57 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1142 2019/05/30 01:20:41 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1143 2019/05/30 21:33:57 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -138,15 +138,7 @@ USE_SSP?=	yes
 #
 # What GDB is used?
 #
-.if ${MACHINE} == "amd64" || \
-${MACHINE} == "i386" || \
-${MACHINE} == "sparc" || \
-${MACHINE} == "sparc64" || \
-${MACHINE} == "vax"
 HAVE_GDB?=	830
-.else
-HAVE_GDB?=	801
-.endif
 
 .if ${HAVE_GDB} == 830
 EXTERNAL_GDB_SUBDIR=		gdb



CVS commit: src/share/mk

2019-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu May 30 01:20:41 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
add vax to new gdb


To generate a diff of this commit:
cvs rdiff -u -r1.1141 -r1.1142 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

2019-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu May 30 01:20:41 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
add vax to new gdb


To generate a diff of this commit:
cvs rdiff -u -r1.1141 -r1.1142 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.1141 src/share/mk/bsd.own.mk:1.1142
--- src/share/mk/bsd.own.mk:1.1141	Wed May 29 18:12:16 2019
+++ src/share/mk/bsd.own.mk	Wed May 29 21:20:41 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1141 2019/05/29 22:12:16 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1142 2019/05/30 01:20:41 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -141,7 +141,8 @@ USE_SSP?=	yes
 .if ${MACHINE} == "amd64" || \
 ${MACHINE} == "i386" || \
 ${MACHINE} == "sparc" || \
-${MACHINE} == "sparc64"
+${MACHINE} == "sparc64" || \
+${MACHINE} == "vax"
 HAVE_GDB?=	830
 .else
 HAVE_GDB?=	801



CVS commit: src/share/mk

2019-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 22:12:16 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
move sparc* to new gdb.


To generate a diff of this commit:
cvs rdiff -u -r1.1140 -r1.1141 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

2019-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 22:12:16 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
move sparc* to new gdb.


To generate a diff of this commit:
cvs rdiff -u -r1.1140 -r1.1141 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.1140 src/share/mk/bsd.own.mk:1.1141
--- src/share/mk/bsd.own.mk:1.1140	Wed May 29 14:19:03 2019
+++ src/share/mk/bsd.own.mk	Wed May 29 18:12:16 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1140 2019/05/29 18:19:03 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1141 2019/05/29 22:12:16 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -139,7 +139,9 @@ USE_SSP?=	yes
 # What GDB is used?
 #
 .if ${MACHINE} == "amd64" || \
-${MACHINE} == "i386"
+${MACHINE} == "i386" || \
+${MACHINE} == "sparc" || \
+${MACHINE} == "sparc64"
 HAVE_GDB?=	830
 .else
 HAVE_GDB?=	801



CVS commit: src/share/mk

2019-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 18:19:03 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Add i386


To generate a diff of this commit:
cvs rdiff -u -r1.1139 -r1.1140 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

2019-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 18:19:03 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Add i386


To generate a diff of this commit:
cvs rdiff -u -r1.1139 -r1.1140 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.1139 src/share/mk/bsd.own.mk:1.1140
--- src/share/mk/bsd.own.mk:1.1139	Tue May 28 21:57:59 2019
+++ src/share/mk/bsd.own.mk	Wed May 29 14:19:03 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1139 2019/05/29 01:57:59 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1140 2019/05/29 18:19:03 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -138,7 +138,8 @@ USE_SSP?=	yes
 #
 # What GDB is used?
 #
-.if ${MACHINE} == "amd64"
+.if ${MACHINE} == "amd64" || \
+${MACHINE} == "i386"
 HAVE_GDB?=	830
 .else
 HAVE_GDB?=	801



CVS commit: src/share/mk

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:57:59 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
amd64 switched to gdb-8.3


To generate a diff of this commit:
cvs rdiff -u -r1.1138 -r1.1139 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

2019-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 01:57:59 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
amd64 switched to gdb-8.3


To generate a diff of this commit:
cvs rdiff -u -r1.1138 -r1.1139 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.1138 src/share/mk/bsd.own.mk:1.1139
--- src/share/mk/bsd.own.mk:1.1138	Sun May 26 16:26:43 2019
+++ src/share/mk/bsd.own.mk	Tue May 28 21:57:59 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1138 2019/05/26 20:26:43 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1139 2019/05/29 01:57:59 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -138,7 +138,11 @@ USE_SSP?=	yes
 #
 # What GDB is used?
 #
+.if ${MACHINE} == "amd64"
+HAVE_GDB?=	830
+.else
 HAVE_GDB?=	801
+.endif
 
 .if ${HAVE_GDB} == 830
 EXTERNAL_GDB_SUBDIR=		gdb



CVS commit: src/share/mk

2019-05-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun May 26 20:26:43 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
build gdb from gdb.old


To generate a diff of this commit:
cvs rdiff -u -r1.1137 -r1.1138 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

2019-05-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun May 26 20:26:43 UTC 2019

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
build gdb from gdb.old


To generate a diff of this commit:
cvs rdiff -u -r1.1137 -r1.1138 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.1137 src/share/mk/bsd.own.mk:1.1138
--- src/share/mk/bsd.own.mk:1.1137	Fri May 17 09:51:36 2019
+++ src/share/mk/bsd.own.mk	Sun May 26 16:26:43 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1137 2019/05/17 13:51:36 nakayama Exp $
+#	$NetBSD: bsd.own.mk,v 1.1138 2019/05/26 20:26:43 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -140,9 +140,9 @@ USE_SSP?=	yes
 #
 HAVE_GDB?=	801
 
-.if ${HAVE_GDB} == 801
+.if ${HAVE_GDB} == 830
 EXTERNAL_GDB_SUBDIR=		gdb
-.elif ${HAVE_GDB} == 712
+.elif ${HAVE_GDB} == 801
 EXTERNAL_GDB_SUBDIR=		gdb.old
 .else
 EXTERNAL_GDB_SUBDIR=		/does/not/exist



  1   2   3   >