head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.16 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.14 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.12 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.10 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.8 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.6 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.4 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.2 pkgsrc-2024Q2-base:1.1; locks; strict; comment @# @; 1.1 date 2024.04.19.17.00.47; author chuck; state Exp; branches; next ; commitid sFImd5mFDN6laM6F; desc @@ 1.1 log @Fix MAKEFLAGS handling to work with spaces in UNPRIVILEGED_GROUPS Let environment variables handling passing MFLAGS/MAKEFLAGS to children rather than do it explicitly on the command line. As of 1.24 of mk/unprivileged.mk pkgsrc puts UNPRIVILEGED_GROUPS in MAKEFLAGS. UNPRIVILEGED_GROUPS contains a space-separated list of the groups the current account is a member of. This requires proper quoting in MAKEFLAGS if the current account is a member of more than one group (due to the spaces), and the old version of Makefile does not take that into account. @ text @$NetBSD$ Let environment variables handling passing MFLAGS/MAKEFLAGS to children rather than do it explicitly on the command line. As of 1.24 of mk/unprivileged.mk pkgsrc puts UNPRIVILEGED_GROUPS in MAKEFLAGS. UNPRIVILEGED_GROUPS contains a space-separated list of the groups the current account is a member of. This requires proper quoting in MAKEFLAGS if the current account is a member of more than one group (due to the spaces), and the old version of Makefile does not take that into account. --- ./Makefile.orig 1995-02-24 16:19:28.000000000 -0500 +++ ./Makefile 2024-04-19 11:53:34.256872226 -0400 @@@@ -38,7 +38,7 @@@@ all: $(PREREQS) @@for dir in ${DIRS}; do \ (echo Making in $${dir}; \ - cd $${dir}; sh ./gen ${MFLAGS} -${MAKEFLAGS}); done + cd $${dir}; sh ./gen); done install: $(PREREQS) @@for dir in ${DIRS} ${MANDIRS}; do \ @