aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-05-04 18:11:00 +0100
committerLexi Winter <ivy@FreeBSD.org>2025-05-04 18:23:35 +0100
commite9e6ce55a057ce72f26a8176a6d26482ebbd183f (patch)
tree0660264ad929b315853088d447dfa935b2075128
parentd61c8bca8648fa6dfa89bd5c7dc75726a2740c15 (diff)
do not commit - bmake: add a package for bmake and share/mklf/dev/pkgbase-bmake
bmake along with /usr/share/mk seems to meet the criteria for being in its own package: it's self-contained and the majority of users (who are using binary packages) don't need to install it, so it doesn't belong in FreeBSD-utilities. instead, put it in its own package. add a dependency on the new package from: - sendmail (uses make to build its configuration) - NIS (uses make to build the database). but not from examples, because while some of the examples do require make, they are intended as examples rather than something to be used directly. my intent with this diff is to get consensus in favour of this change from the pkgbase side, then upstream this and have the new upstream bmake and the local changes (share/mk/Makefile, generate-ucl.sh) committed at the same time. so, this diff is not intended to be committed as-is.
-rw-r--r--contrib/bmake/bsd.after-import.mk3
-rwxr-xr-xrelease/packages/generate-ucl.sh8
-rw-r--r--share/mk/Makefile1
-rw-r--r--usr.bin/bmake/Makefile1
4 files changed, 12 insertions, 1 deletions
diff --git a/contrib/bmake/bsd.after-import.mk b/contrib/bmake/bsd.after-import.mk
index 74811e98f979..52c893ac84fd 100644
--- a/contrib/bmake/bsd.after-import.mk
+++ b/contrib/bmake/bsd.after-import.mk
@@ -118,7 +118,8 @@ _makefile:
echo 'CFLAGS${.space}+= -I$${.CURDIR}'; echo; \
echo '# for after-import'; \
echo 'CLEANDIRS${.space}+= ${HOST_OS}'; \
- echo 'CLEANFILES${.space}+= bootstrap'; echo; \
+ echo 'CLEANFILES${.space}+= bootstrap'; \
+ echo 'PACKAGE${.space}= bmake'; echo; \
${MAKEFILE_SED} \
${1 2:L:@n@-e '/start-delete$n/,/end-delete$n/d'@} \
${BMAKE_SRC}/Makefile; \
diff --git a/release/packages/generate-ucl.sh b/release/packages/generate-ucl.sh
index b7d6875b3eb1..2798753e7651 100755
--- a/release/packages/generate-ucl.sh
+++ b/release/packages/generate-ucl.sh
@@ -43,6 +43,14 @@ main() {
periodic)
pkgdeps="cron"
;;
+ sendmail)
+ # requires make to rebuild its configuration file
+ pkgdeps="bmake"
+ ;;
+ yp)
+ # requires make to rebuild the NIS database
+ pkgdeps="bmake"
+ ;;
# -dev packages that have no corresponding non-dev package
# as a dependency.
diff --git a/share/mk/Makefile b/share/mk/Makefile
index 29de04f89670..bd4067cd8a14 100644
--- a/share/mk/Makefile
+++ b/share/mk/Makefile
@@ -10,6 +10,7 @@ UPDATE_DEPENDFILE= no
.include <src.opts.mk>
+PACKAGE= bmake
FILES= \
auto.obj.mk \
bsd.README \
diff --git a/usr.bin/bmake/Makefile b/usr.bin/bmake/Makefile
index a8bcdfd9f859..304c78302a1c 100644
--- a/usr.bin/bmake/Makefile
+++ b/usr.bin/bmake/Makefile
@@ -10,6 +10,7 @@ CFLAGS+= -I${.CURDIR}
# for after-import
CLEANDIRS+= FreeBSD
CLEANFILES+= bootstrap
+PACKAGE= bmake
# $Id: Makefile,v 1.133 2025/03/08 20:12:56 sjg Exp $