Add a WITHOUT_DIALOG src.conf(5) knob
It also turns off dependencies (bsdinstall, bsdconfig, dpv, tzsetup). Reviewed by: dteske Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7969
This commit is contained in:
parent
dc7c777336
commit
f987297fc9
@ -2032,8 +2032,7 @@ _prebuild_libs= ${_kerberos5_lib_libasn1} \
|
|||||||
${_cddl_lib_libctf} \
|
${_cddl_lib_libctf} \
|
||||||
lib/libutil lib/libpjdlog ${_lib_libypclnt} lib/libz lib/msun \
|
lib/libutil lib/libpjdlog ${_lib_libypclnt} lib/libz lib/msun \
|
||||||
${_secure_lib_libcrypto} ${_lib_libldns} \
|
${_secure_lib_libcrypto} ${_lib_libldns} \
|
||||||
${_secure_lib_libssh} ${_secure_lib_libssl} \
|
${_secure_lib_libssh} ${_secure_lib_libssl}
|
||||||
gnu/lib/libdialog
|
|
||||||
|
|
||||||
.if ${MK_GNUCXX} != "no"
|
.if ${MK_GNUCXX} != "no"
|
||||||
_prebuild_libs+= gnu/lib/libstdc++ gnu/lib/libsupc++
|
_prebuild_libs+= gnu/lib/libstdc++ gnu/lib/libsupc++
|
||||||
@ -2041,6 +2040,11 @@ gnu/lib/libstdc++__L: lib/msun__L
|
|||||||
gnu/lib/libsupc++__L: gnu/lib/libstdc++__L
|
gnu/lib/libsupc++__L: gnu/lib/libstdc++__L
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${MK_DIALOG} != "no"
|
||||||
|
_prebuild_libs+= gnu/lib/libdialog
|
||||||
|
gnu/lib/libdialog__L: lib/msun__L lib/ncurses/ncursesw__L
|
||||||
|
.endif
|
||||||
|
|
||||||
.if ${MK_LIBCPLUSPLUS} != "no"
|
.if ${MK_LIBCPLUSPLUS} != "no"
|
||||||
_prebuild_libs+= lib/libc++
|
_prebuild_libs+= lib/libc++
|
||||||
.endif
|
.endif
|
||||||
@ -2190,8 +2194,6 @@ lib/libproc__L: gnu/lib/libsupc++__L
|
|||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
gnu/lib/libdialog__L: lib/msun__L lib/ncurses/ncursesw__L
|
|
||||||
|
|
||||||
.for _lib in ${_prereq_libs}
|
.for _lib in ${_prereq_libs}
|
||||||
${_lib}__PL: .PHONY .MAKE
|
${_lib}__PL: .PHONY .MAKE
|
||||||
.if exists(${.CURDIR}/${_lib})
|
.if exists(${.CURDIR}/${_lib})
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
SUBDIR= ${_binutils} \
|
SUBDIR= ${_binutils} \
|
||||||
${_cc} \
|
${_cc} \
|
||||||
dialog \
|
|
||||||
diff \
|
diff \
|
||||||
diff3 \
|
diff3 \
|
||||||
${_dtc} \
|
${_dtc} \
|
||||||
@ -49,6 +48,8 @@ _gdb= gdb
|
|||||||
_cc= cc
|
_cc= cc
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
SUBDIR.${MK_DIALOG}+= dialog
|
||||||
|
|
||||||
SUBDIR_PARALLEL=
|
SUBDIR_PARALLEL=
|
||||||
|
|
||||||
.include <bsd.subdir.mk>
|
.include <bsd.subdir.mk>
|
||||||
|
@ -46,7 +46,6 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \
|
|||||||
${_libdevdctl} \
|
${_libdevdctl} \
|
||||||
libdevinfo \
|
libdevinfo \
|
||||||
libdevstat \
|
libdevstat \
|
||||||
libdpv \
|
|
||||||
libdwarf \
|
libdwarf \
|
||||||
libedit \
|
libedit \
|
||||||
${_libelftc} \
|
${_libelftc} \
|
||||||
@ -197,6 +196,8 @@ _libelftc= libelftc
|
|||||||
_libpe= libpe
|
_libpe= libpe
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
SUBDIR.${MK_DIALOG}+= libdpv
|
||||||
|
|
||||||
.if ${MK_FILE} != "no"
|
.if ${MK_FILE} != "no"
|
||||||
_libmagic= libmagic
|
_libmagic= libmagic
|
||||||
.endif
|
.endif
|
||||||
|
@ -76,6 +76,7 @@ __DEFAULT_YES_OPTIONS = \
|
|||||||
CTM \
|
CTM \
|
||||||
CUSE \
|
CUSE \
|
||||||
CXX \
|
CXX \
|
||||||
|
DIALOG \
|
||||||
DICT \
|
DICT \
|
||||||
DMAGENT \
|
DMAGENT \
|
||||||
DYNAMICROOT \
|
DYNAMICROOT \
|
||||||
@ -328,6 +329,10 @@ MK_GNUCXX:= no
|
|||||||
MK_TESTS:= no
|
MK_TESTS:= no
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${MK_DIALOG} == "no"
|
||||||
|
MK_BSDINSTALL:= no
|
||||||
|
.endif
|
||||||
|
|
||||||
.if ${MK_MAIL} == "no"
|
.if ${MK_MAIL} == "no"
|
||||||
MK_MAILWRAPPER:= no
|
MK_MAILWRAPPER:= no
|
||||||
MK_SENDMAIL:= no
|
MK_SENDMAIL:= no
|
||||||
|
@ -1340,6 +1340,27 @@ OLD_FILES+=usr/bin/g++
|
|||||||
OLD_FILES+=usr/libexec/cc1plus
|
OLD_FILES+=usr/libexec/cc1plus
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${MK_DIALOG} == no
|
||||||
|
OLD_FILES+=usr/bin/dialog
|
||||||
|
OLD_FILES+=usr/bin/dpv
|
||||||
|
OLD_FILES+=usr/lib/libdialog.a
|
||||||
|
OLD_FILES+=usr/lib/libdialog.so
|
||||||
|
OLD_FILES+=usr/lib/libdialog.so.8
|
||||||
|
OLD_FILES+=usr/lib/libdialog_p.a
|
||||||
|
OLD_FILES+=usr/lib/libdpv.a
|
||||||
|
OLD_FILES+=usr/lib/libdpv.so
|
||||||
|
OLD_FILES+=usr/lib/libdpv.so.1
|
||||||
|
OLD_FILES+=usr/lib/libdpv_p.a
|
||||||
|
OLD_FILES+=usr/sbin/bsdconfig
|
||||||
|
OLD_FILES+=usr/sbin/tzsetup
|
||||||
|
OLD_FILES+=usr/share/man/man1/dialog.1.gz
|
||||||
|
OLD_FILES+=usr/share/man/man1/dpv.1.gz
|
||||||
|
OLD_FILES+=usr/share/man/man3/dialog.3.gz
|
||||||
|
OLD_FILES+=usr/share/man/man3/dpv.3.gz
|
||||||
|
OLD_FILES+=usr/share/man/man8/tzsetup.8.gz
|
||||||
|
OLD_FILES+=usr/share/man/man8/bsdconfig.8.gz
|
||||||
|
.endif
|
||||||
|
|
||||||
.if ${MK_FMTREE} == no
|
.if ${MK_FMTREE} == no
|
||||||
OLD_FILES+=usr/sbin/fmtree
|
OLD_FILES+=usr/sbin/fmtree
|
||||||
OLD_FILES+=usr/share/man/man8/fmtree.8.gz
|
OLD_FILES+=usr/share/man/man8/fmtree.8.gz
|
||||||
|
2
tools/build/options/WITHOUT_DIALOG
Normal file
2
tools/build/options/WITHOUT_DIALOG
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.\" $FreeBSD$
|
||||||
|
Set to not build dialog(1), dialog(1,3), and dpv(1,3).
|
@ -36,7 +36,6 @@ SUBDIR= alias \
|
|||||||
ctlstat \
|
ctlstat \
|
||||||
cut \
|
cut \
|
||||||
dirname \
|
dirname \
|
||||||
dpv \
|
|
||||||
du \
|
du \
|
||||||
elf2aout \
|
elf2aout \
|
||||||
elfdump \
|
elfdump \
|
||||||
@ -200,6 +199,7 @@ SUBDIR.${MK_BLUETOOTH}+= bluetooth
|
|||||||
SUBDIR.${MK_BSD_CPIO}+= cpio
|
SUBDIR.${MK_BSD_CPIO}+= cpio
|
||||||
SUBDIR.${MK_CALENDAR}+= calendar
|
SUBDIR.${MK_CALENDAR}+= calendar
|
||||||
SUBDIR.${MK_CLANG}+= clang
|
SUBDIR.${MK_CLANG}+= clang
|
||||||
|
SUBDIR.${MK_DIALOG}+= dpv
|
||||||
SUBDIR.${MK_EE}+= ee
|
SUBDIR.${MK_EE}+= ee
|
||||||
SUBDIR.${MK_FILE}+= file
|
SUBDIR.${MK_FILE}+= file
|
||||||
SUBDIR.${MK_FINGER}+= finger
|
SUBDIR.${MK_FINGER}+= finger
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
SUBDIR= adduser \
|
SUBDIR= adduser \
|
||||||
arp \
|
arp \
|
||||||
binmiscctl \
|
binmiscctl \
|
||||||
bsdconfig \
|
|
||||||
camdd \
|
camdd \
|
||||||
cdcontrol \
|
cdcontrol \
|
||||||
chkgrp \
|
chkgrp \
|
||||||
@ -89,7 +88,6 @@ SUBDIR= adduser \
|
|||||||
tcpdump \
|
tcpdump \
|
||||||
traceroute \
|
traceroute \
|
||||||
trpt \
|
trpt \
|
||||||
tzsetup \
|
|
||||||
uefisign \
|
uefisign \
|
||||||
ugidfw \
|
ugidfw \
|
||||||
vigr \
|
vigr \
|
||||||
@ -123,6 +121,8 @@ SUBDIR.${MK_BOOTPARAMD}+= bootparamd
|
|||||||
SUBDIR.${MK_BSDINSTALL}+= bsdinstall
|
SUBDIR.${MK_BSDINSTALL}+= bsdinstall
|
||||||
SUBDIR.${MK_BSNMP}+= bsnmpd
|
SUBDIR.${MK_BSNMP}+= bsnmpd
|
||||||
SUBDIR.${MK_CTM}+= ctm
|
SUBDIR.${MK_CTM}+= ctm
|
||||||
|
SUBDIR.${MK_DIALOG}+= tzsetup
|
||||||
|
SUBDIR.${MK_DIALOG}+= bsdconfig
|
||||||
SUBDIR.${MK_FLOPPY}+= fdcontrol
|
SUBDIR.${MK_FLOPPY}+= fdcontrol
|
||||||
SUBDIR.${MK_FLOPPY}+= fdformat
|
SUBDIR.${MK_FLOPPY}+= fdformat
|
||||||
SUBDIR.${MK_FLOPPY}+= fdread
|
SUBDIR.${MK_FLOPPY}+= fdread
|
||||||
|
Loading…
x
Reference in New Issue
Block a user