From nobody Tue Sep 09 04:43:48 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cLWgF53vXz66N1J for ; Tue, 09 Sep 2025 04:53:45 +0000 (UTC) (envelope-from freebsd-current-freebsd-org111@ketas.si.pri.ee) Received: from mail.ketas.si.pri.ee (d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee [IPv6:2001:7d0:8437:13e8:21e:bff:fea2:d004]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4cLWgD5rLkz46xS for ; Tue, 09 Sep 2025 04:53:44 +0000 (UTC) (envelope-from freebsd-current-freebsd-org111@ketas.si.pri.ee) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ketas.si.pri.ee header.s=ketas-si-pri-ee-20240416002854-4096 header.b=J7KUTVPj; dmarc=pass (policy=reject) header.from=ketas.si.pri.ee; spf=pass (mx1.freebsd.org: domain of freebsd-current-freebsd-org111@ketas.si.pri.ee designates 2001:7d0:8437:13e8:21e:bff:fea2:d004 as permitted sender) smtp.mailfrom=freebsd-current-freebsd-org111@ketas.si.pri.ee X-Original-To: freebsd-current@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ketas.si.pri.ee; s=ketas-si-pri-ee-20240416002854-4096; t=1757393032; bh=t8jNCk/hcsFBHEqAyupI6gmA+voeGtgUfqEp0teHIsw=; h=Date:From:To:Subject:In-Reply-To:References; b=J7KUTVPjKNBqxHNESouBRhxtMLh7Fo+fPNVLVleplw9iDJ4AT8VFEo0HNycb26mzA fTSBWOetfRzJrjohXpLPOCSxDK/+7YkdetH/wbK8aer0BhS3aVHcDTWZR8r/Z3rdP9 vrxIwxER7lp2TWhVAgXKQBIOKCdnO9N3ZgkNsXkRpluNBETtoy7Hm7bgiPQQVUyLWc Uq/j0TdqpXbWy0pXXY2Cl7jq6jRgtVzqmTD6yONypzpBz4dhSQ8jpl+H1WUbJgM0fT WsVU2jYuzM8EnHoM6UY3v0GqFJurHcIMPvsqTbS2j10jnuhFBzl8Tbbjz6uXfwtN3K rxgzwvU7bzvAv8EeOPQtChIXZV4b8etfcjMtJDI6P13VHoWKiAMCSzpRfXUFga9o1M OCMyPLZC7xRpl2KMYUUU3gSQn8FLLwXD3uWatiRqQrdWaNgUCQws6O9g69gzCBYdwS jwB3va5GSJKK7UMo/hJt9Ks4XbwJdO7OC3iMBv1Xp63fOiQF9IymOsHlA+0D+8jbWa 8Xak2BoRoMpTsPf8dZr0OMiA99dJ8s6Kztyd8s97VDxzdnfRN112/tttsueW/RgHJs PHaaVKxYE5d9hBer7nkwDXsR3E7IPxJ7REYtO4hpngH1tAolEe/MtaJ+GbHMAGWdxR 3THthtu193LRs6Xc4zv3oyPs= Received: from ehlo.thunderbird.net (0115-0000-0000-0000-13c8-8437-07d0-2001.dyn.estpak.ee [IPv6:2001:7d0:8437:13c8::115]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ketas.si.pri.ee (Postfix) with ESMTPSA id 89E2B5C6E12 for ; Tue, 09 Sep 2025 07:43:51 +0300 (EEST) Date: Tue, 09 Sep 2025 07:43:48 +0300 From: Sulev-Madis Silber To: freebsd-current@freebsd.org Subject: Re: make packages, but exclude src and src-sys? User-Agent: K-9 Mail for Android In-Reply-To: <4F20D687-2079-44A2-81A9-528593691B3B@ketas.si.pri.ee> References: <4F20D687-2079-44A2-81A9-528593691B3B@ketas.si.pri.ee> Message-ID: <6FAC113D-6584-4A2F-AE8B-823DE408DA4B@ketas.si.pri.ee> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=----9YLWRAZ429E0MALKWC9KRP82W1MP4K Content-Transfer-Encoding: 7bit X-Spamd-Bar: + X-Spamd-Result: default: False [1.30 / 15.00]; HFILTER_HOSTNAME_5(3.00)[d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee]; MIME_BASE64_TEXT_BOGUS(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[ketas.si.pri.ee,reject]; R_DKIM_ALLOW(-0.20)[ketas.si.pri.ee:s=ketas-si-pri-ee-20240416002854-4096]; R_SPF_ALLOW(-0.20)[+ip6:2001:7d0:8437:1300::/56]; ONCE_RECEIVED(0.20)[]; MIME_BASE64_TEXT(0.10)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; GREYLIST(0.00)[pass,body]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[ketas.si.pri.ee:+]; RCVD_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; HAS_ATTACHMENT(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:3249, ipnet:2001:7d0::/32, country:EE]; MIME_TRACE(0.00)[0:+,1:+,2:+] X-Rspamd-Queue-Id: 4cLWgD5rLkz46xS ------9YLWRAZ429E0MALKWC9KRP82W1MP4K Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable made a patch too (inline and also attached): diff --git a/Makefile=2Einc1 b/Makefile=2Einc1 index 01866f949e49=2E=2Ebb76a36b18e3 100644 --- a/Makefile=2Einc1 +++ b/Makefile=2Einc1 @@ -2121,6 +2121,7 @@ create-packages: =2EPHONY create-packages-world crea= te-packages-kernel create-pack =20 create-source-src-package: _pkgbootstrap =2EPHONY rm -f ${SSTAGEDIR}/src=2Eplist 2>/dev/null || : +=2Eif !defined(WITHOUT_SOURCE_PACKAGES) =2Eif !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/=2Egit) @cd ${SRCDIR}; \ ( echo "@override_prefix /usr/src" ; \ @@ -2144,9 +2145,11 @@ create-source-src-package: _pkgbootstrap =2EPHONY -r ${SRCDIR} \ -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR} =2Eendif +=2Eendif =20 create-source-src-sys-package: _pkgbootstrap =2EPHONY rm -f ${SSTAGEDIR}/src-sys=2Eplist 2>/dev/null || : +=2Eif !defined(WITHOUT_SOURCE_PACKAGES) =2Eif !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/=2Egit) @cd ${SRCDIR}; \ ( echo "@override_prefix /usr/src" ; \ @@ -2170,6 +2173,7 @@ create-source-src-sys-package: _pkgbootstrap =2EPHON= Y -r ${SRCDIR} \ -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR} =2Eendif +=2Eendif =20 create-source-packages: =2EPHONY _pkgbootstrap create-source-src-package = create-source-src-sys-package On September 9, 2025 6:18:27 AM GMT+03:00, Sulev-Madis Silber wrote: >i tried pkgbase for first time > >but how to exclude src/src-sys? > >those took super long time to package on my system somehow > >especially since i had lot of without_* so my build was about hour (min 4= 5min) and packaging took 5m (min 3m)=2E except source added well past hour = to this=2E or close to 2 even maybe > >for now i outright patched it out as i don't use src package(s) anyway=2E= the low power system here didn't help either > >or was it zstd fault i disabled in favor of xz > >should i go ahead and implement it correctly? if so, what to properly cal= l the new option? > >the alternative would be to (unportably) call all those subtargets=2E but= that sounds even more insane > >also, is the any reason packages can't be called inline in one go? make b= uildworld buildkernel packages didn't really work > >or make there should be extra wrapper target there for clean build to pac= kages > >there are already ton of undocumented targets in there anyway already > >anyone working with build system could comment on that low priority issue= in spare time maybe? > >i also noticed weird dependencies (or dependency errors) being created an= d also essentially empty packages=2E that's probably because it's not fully= tested with so minimal build > >no manpages were packaged up tho, somehow=2E but bunch of *-dev ones did > >i also have yp and hyperv but i didn't have them built even > >maybe anyone else doing custom embedded builds can comment on this > >otherwise, packages seem to work as expected=2E could do even more splitt= ing imho, tho > > ------9YLWRAZ429E0MALKWC9KRP82W1MP4K Content-Type: text/plain; name=makefile-inc1-without-source-packages-current-git.diff Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=makefile-inc1-without-source-packages-current-git.diff; size=1182 ZGlmZiAtLWdpdCBhL01ha2VmaWxlLmluYzEgYi9NYWtlZmlsZS5pbmMxCmluZGV4IDAxODY2Zjk0 OWU0OS4uYmI3NmEzNmIxOGUzIDEwMDY0NAotLS0gYS9NYWtlZmlsZS5pbmMxCisrKyBiL01ha2Vm aWxlLmluYzEKQEAgLTIxMjEsNiArMjEyMSw3IEBAIGNyZWF0ZS1wYWNrYWdlczogLlBIT05ZIGNy ZWF0ZS1wYWNrYWdlcy13b3JsZCBjcmVhdGUtcGFja2FnZXMta2VybmVsIGNyZWF0ZS1wYWNrCiAK IGNyZWF0ZS1zb3VyY2Utc3JjLXBhY2thZ2U6IF9wa2dib290c3RyYXAgLlBIT05ZCiAJcm0gLWYg JHtTU1RBR0VESVJ9L3NyYy5wbGlzdCAyPi9kZXYvbnVsbCB8fCA6CisuaWYgIWRlZmluZWQoV0lU SE9VVF9TT1VSQ0VfUEFDS0FHRVMpCiAuaWYgIWVtcHR5KEdJVF9DTUQpICYmIGV4aXN0cygke0dJ VF9DTUR9KSAmJiBleGlzdHMoJHtTUkNESVJ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