svn commit: r331460 - in stable/11: gnu/lib gnu/usr.bin share/man/man5 share/mk tools/build/mk tools/build/options
Ian Lepore
ian at FreeBSD.org
Fri Mar 23 20:20:05 UTC 2018
Author: ian
Date: Fri Mar 23 20:20:04 2018
New Revision: 331460
URL: https://svnweb.freebsd.org/changeset/base/331460
Log:
MFC r307656, r307659, r307674-r307675, r307679, r307683
Support for WITHOUT_GNU_DIFF and WITHOUT_GNU_GREP, plus manually
regenerated src.conf.5, which seems to have picked up a couple changes
beyond what was in this MFC.
r307656:
Put each SUBDIR on a separate line for ease of maintenance
Additional patches to this file are in progress, and having each SUBDIR
entry on a separate line makes it easier to change the order in which
the patches are reviewed, tested, and applied.
r307659:
Switch gnu/usr.bin/Makefile to SUBDIR.${MK_*} optional subdir style
r307674:
Add knobs to make GNU diff and GNU grep optional
This is added to facilitate experiments building FreeBSD without
copyleft software.
If WITHOUT_GNU_DIFF is set no /usr/bin/diff or /usr/bin/diff3 will
be built.
If WITHOUT_GNU_GREP is set then BSD grep will be installed as
/usr/bin/bsdgrep or /usr/bin/grep, depending on the WITH_BSD_GREP
knob.
Reviewed by: brooks (earlier)
Sponsored by: The FreeBSD Foundation
Differential Revision: Differential Revision: https://reviews.freebsd.org/D8288
r307675:
Remove trailing whitespace from r307674
r307679:
Build libgnuregex only if necessary for other components
Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D8298
r307683:
Correct typo in r307679: the variable is MK_GNU_GREP_COMPAT
Added:
stable/11/tools/build/options/WITHOUT_GNU_DIFF
- copied unchanged from r307675, head/tools/build/options/WITHOUT_GNU_DIFF
stable/11/tools/build/options/WITHOUT_GNU_GREP
- copied unchanged from r307675, head/tools/build/options/WITHOUT_GNU_GREP
Modified:
stable/11/gnu/lib/Makefile
stable/11/gnu/usr.bin/Makefile
stable/11/share/man/man5/src.conf.5
stable/11/share/mk/src.opts.mk
stable/11/tools/build/mk/OptionalObsoleteFiles.inc
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/gnu/lib/Makefile
==============================================================================
--- stable/11/gnu/lib/Makefile Fri Mar 23 19:31:52 2018 (r331459)
+++ stable/11/gnu/lib/Makefile Fri Mar 23 20:20:04 2018 (r331460)
@@ -2,7 +2,9 @@
.include <src.opts.mk>
-SUBDIR= csu libgcc libdialog libregex
+SUBDIR= csu
+SUBDIR+= libdialog
+SUBDIR+= libgcc
.if ${MK_GCC} != "no"
SUBDIR+= libgcov libgomp
@@ -18,6 +20,11 @@ SUBDIR+= tests
.if ${MK_BINUTILS} != "no" && ${MK_GDB} != "no"
SUBDIR+= libreadline
+.endif
+
+.if ${MK_GNU_DIFF} != "no" || ${MK_GNU_GREP} != "no" || \
+ ${MK_GNU_GREP_COMPAT} != "no" || ${MK_GDB} != "no"
+SUBDIR+= libregex
.endif
# libsupc++ uses libstdc++ headers, although 'make includes' should
Modified: stable/11/gnu/usr.bin/Makefile
==============================================================================
--- stable/11/gnu/usr.bin/Makefile Fri Mar 23 19:31:52 2018 (r331459)
+++ stable/11/gnu/usr.bin/Makefile Fri Mar 23 20:20:04 2018 (r331460)
@@ -2,53 +2,27 @@
.include <src.opts.mk>
-SUBDIR= ${_binutils} \
- ${_cc} \
- diff \
- diff3 \
- ${_dtc} \
- ${_gdb} \
- ${_gperf} \
- grep \
- ${_groff} \
- ${_rcs} \
- ${_tests}
-
-SUBDIR_DEPEND_gdb= ${_binutils}
-
.if ${MK_CXX} != "no"
-.if ${MK_GCC} != "no"
-_gperf= gperf
+SUBDIR.${MK_GCC}+= gperf
+SUBDIR.${MK_GROFF}+= groff
.endif
-.if ${MK_GROFF} != "no"
-_groff= groff
-.endif
-.endif
-.if ${MK_GPL_DTC} != "no"
-_dtc= dtc
-.endif
+SUBDIR.${MK_BINUTILS}+= binutils
+SUBDIR.${MK_DIALOG}+= dialog
-.if ${MK_RCS} != "no"
-_rcs= rcs
-.endif
-
-.if ${MK_TESTS} != "no"
-_tests= tests
-.endif
-
.if ${MK_BINUTILS} != "no"
-_binutils= binutils
-.if ${MK_GDB} != "no"
-_gdb= gdb
+SUBDIR.${MK_GDB}+= gdb
+SUBDIR_DEPEND_gdb= binutils
.endif
-.endif
-.if ${MK_GCC} != "no"
-_cc= cc
-.endif
+SUBDIR.${MK_GCC}+= cc
+SUBDIR.${MK_GNU_DIFF}+= diff diff3
+SUBDIR.${MK_GNU_GREP}+= grep
+SUBDIR.${MK_GPL_DTC}+= dtc
+SUBDIR.${MK_RCS}+= rcs
+SUBDIR.${MK_TESTS}+= tests
-SUBDIR.${MK_DIALOG}+= dialog
+.info MK_GNU_DIFF=${MK_GNU_DIFF}
SUBDIR_PARALLEL=
Modified: stable/11/share/man/man5/src.conf.5
==============================================================================
--- stable/11/share/man/man5/src.conf.5 Fri Mar 23 19:31:52 2018 (r331459)
+++ stable/11/share/man/man5/src.conf.5 Fri Mar 23 20:20:04 2018 (r331460)
@@ -1,6 +1,6 @@
.\" DO NOT EDIT-- this file is generated by tools/build/options/makeman.
.\" $FreeBSD$
-.Dd January 8, 2018
+.Dd March 23, 2018
.Dt SRC.CONF 5
.Os
.Sh NAME
@@ -392,6 +392,8 @@ When set, it enforces these options:
.Va WITHOUT_ELFTOOLCHAIN_BOOTSTRAP
.It
.Va WITHOUT_GCC_BOOTSTRAP
+.It
+.Va WITHOUT_LLD_BOOTSTRAP
.El
.It Va WITHOUT_CRYPT
Set to not build any crypto code.
@@ -731,6 +733,14 @@ This is the default on platforms where gcc is the syst
.Pp
This is a default setting on
mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, powerpc/powerpc, powerpc/powerpc64 and sparc64/sparc64.
+.It Va WITHOUT_GNU_DIFF
+Set to not build GNU
+.Xr diff 1
+and
+.Xr diff3 1 .
+.It Va WITHOUT_GNU_GREP
+Set to not build GNU
+.Xr grep 1 .
.It Va WITHOUT_GNU_GREP_COMPAT
Set this option to omit the gnu extensions to grep from being included in
BSD grep.
@@ -982,6 +992,11 @@ Set to use LLVM's libunwind stack unwinder (instead of
.Pp
This is a default setting on
arm64/aarch64.
+.It Va WITH_LOADER_FIREWIRE
+Enable firewire support in /boot/loader and /boot/zfsloader on x86.
+This option is a nop on all other platforms.
+.It Va WITHOUT_LOADER_GELI
+Disable inclusion of GELI crypto support in the boot chain binaries.
.It Va WITHOUT_LOCALES
Set to not build localization files; see
.Xr locale 1 .
Modified: stable/11/share/mk/src.opts.mk
==============================================================================
--- stable/11/share/mk/src.opts.mk Fri Mar 23 19:31:52 2018 (r331459)
+++ stable/11/share/mk/src.opts.mk Fri Mar 23 20:20:04 2018 (r331460)
@@ -100,6 +100,8 @@ __DEFAULT_YES_OPTIONS = \
GCOV \
GDB \
GNU \
+ GNU_DIFF \
+ GNU_GREP \
GNU_GREP_COMPAT \
GPIO \
GPL_DTC \
Modified: stable/11/tools/build/mk/OptionalObsoleteFiles.inc
==============================================================================
--- stable/11/tools/build/mk/OptionalObsoleteFiles.inc Fri Mar 23 19:31:52 2018 (r331459)
+++ stable/11/tools/build/mk/OptionalObsoleteFiles.inc Fri Mar 23 20:20:04 2018 (r331460)
@@ -2442,6 +2442,39 @@ OLD_FILES+=usr/share/man/man3/gpio_pin_tristate.3.gz
OLD_FILES+=usr/share/man/man8/gpioctl.8.gz
.endif
+.if ${MK_GNU_DIFF} == no
+OLD_FILES+=usr/bin/diff
+OLD_FILES+=usr/bin/diff3
+OLD_FILES+=usr/share/man/man1/diff.1.gz
+OLD_FILES+=usr/share/man/man1/diff3.1.gz
+OLD_FILES+=usr/share/man/man7/diff.7.gz
+.endif
+
+.if ${MK_GNU_GREP} == no
+OLD_FILES+=usr/bin/gnugrep
+OLD_FILES+=usr/share/man/man1/gnugrep.1.gz
+.if ${MK_BSD_GREP} == no
+OLD_FILES+=usr/bin/bzgrep
+OLD_FILES+=usr/bin/bzegrep
+OLD_FILES+=usr/bin/bzfgrep
+OLD_FILES+=usr/bin/egrep
+OLD_FILES+=usr/bin/fgrep
+OLD_FILES+=usr/bin/grep
+OLD_FILES+=usr/bin/zegrep
+OLD_FILES+=usr/bin/zfgrep
+OLD_FILES+=usr/bin/zgrep
+OLD_FILES+=usr/share/man/man1/bzegrep.1.gz
+OLD_FILES+=usr/share/man/man1/bzfgrep.1.gz
+OLD_FILES+=usr/share/man/man1/bzgrep.1.gz
+OLD_FILES+=usr/share/man/man1/egrep.1.gz
+OLD_FILES+=usr/share/man/man1/fgrep.1.gz
+OLD_FILES+=usr/share/man/man1/grep.1.gz
+OLD_FILES+=usr/share/man/man1/zegrep.1.gz
+OLD_FILES+=usr/share/man/man1/zfgrep.1.gz
+OLD_FILES+=usr/share/man/man1/zgrep.1.gz
+.endif
+.endif
+
# Also includes vgrind(1)
.if ${MK_GROFF} == no
OLD_FILES+=usr/bin/addftinfo
Copied: stable/11/tools/build/options/WITHOUT_GNU_DIFF (from r307675, head/tools/build/options/WITHOUT_GNU_DIFF)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ stable/11/tools/build/options/WITHOUT_GNU_DIFF Fri Mar 23 20:20:04 2018 (r331460, copy of r307675, head/tools/build/options/WITHOUT_GNU_DIFF)
@@ -0,0 +1,5 @@
+.\" $FreeBSD$
+Set to not build GNU
+.Xr diff 1
+and
+.Xr diff3 1 .
Copied: stable/11/tools/build/options/WITHOUT_GNU_GREP (from r307675, head/tools/build/options/WITHOUT_GNU_GREP)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ stable/11/tools/build/options/WITHOUT_GNU_GREP Fri Mar 23 20:20:04 2018 (r331460, copy of r307675, head/tools/build/options/WITHOUT_GNU_GREP)
@@ -0,0 +1,3 @@
+.\" $FreeBSD$
+Set to not build GNU
+.Xr grep 1 .
More information about the svn-src-stable-11
mailing list