made a patch too (inline and also attached):

diff --git a/Makefile.inc1 b/Makefile.inc1
index 01866f949e49..bb76a36b18e3 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2121,6 +2121,7 @@ create-packages: .PHONY create-packages-world 
create-packages-kernel create-pack
 
 create-source-src-package: _pkgbootstrap .PHONY
        rm -f ${SSTAGEDIR}/src.plist 2>/dev/null || :
+.if !defined(WITHOUT_SOURCE_PACKAGES)
 .if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
        @cd ${SRCDIR}; \
                ( echo "@override_prefix /usr/src" ;  \
@@ -2144,9 +2145,11 @@ create-source-src-package: _pkgbootstrap .PHONY
                -r ${SRCDIR} \
                -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
 .endif
+.endif
 
 create-source-src-sys-package: _pkgbootstrap .PHONY
        rm -f ${SSTAGEDIR}/src-sys.plist 2>/dev/null || :
+.if !defined(WITHOUT_SOURCE_PACKAGES)
 .if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
        @cd ${SRCDIR}; \
                ( echo "@override_prefix /usr/src" ; \
@@ -2170,6 +2173,7 @@ create-source-src-sys-package: _pkgbootstrap .PHONY
                -r ${SRCDIR} \
                -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
 .endif
+.endif
 
 create-source-packages: .PHONY _pkgbootstrap create-source-src-package 
create-source-src-sys-package



On September 9, 2025 6:18:27 AM GMT+03:00, Sulev-Madis Silber 
<freebsd-current-freebsd-org...@ketas.si.pri.ee> 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 45min) 
>and packaging took 5m (min 3m). except source added well past hour to this. or 
>close to 2 even maybe
>
>for now i outright patched it out as i don't use src package(s) anyway. 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 call the 
>new option?
>
>the alternative would be to (unportably) call all those subtargets. but that 
>sounds even more insane
>
>also, is the any reason packages can't be called inline in one go? make 
>buildworld buildkernel packages didn't really work
>
>or make there should be extra wrapper target there for clean build to packages
>
>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 and 
>also essentially empty packages. that's probably because it's not fully tested 
>with so minimal build
>
>no manpages were packaged up tho, somehow. 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. could do even more splitting 
>imho, tho
>
>
diff --git a/Makefile.inc1 b/Makefile.inc1
index 01866f949e49..bb76a36b18e3 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2121,6 +2121,7 @@ create-packages: .PHONY create-packages-world 
create-packages-kernel create-pack
 
 create-source-src-package: _pkgbootstrap .PHONY
        rm -f ${SSTAGEDIR}/src.plist 2>/dev/null || :
+.if !defined(WITHOUT_SOURCE_PACKAGES)
 .if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
        @cd ${SRCDIR}; \
                ( echo "@override_prefix /usr/src" ;  \
@@ -2144,9 +2145,11 @@ create-source-src-package: _pkgbootstrap .PHONY
                -r ${SRCDIR} \
                -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
 .endif
+.endif
 
 create-source-src-sys-package: _pkgbootstrap .PHONY
        rm -f ${SSTAGEDIR}/src-sys.plist 2>/dev/null || :
+.if !defined(WITHOUT_SOURCE_PACKAGES)
 .if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
        @cd ${SRCDIR}; \
                ( echo "@override_prefix /usr/src" ; \
@@ -2170,6 +2173,7 @@ create-source-src-sys-package: _pkgbootstrap .PHONY
                -r ${SRCDIR} \
                -o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
 .endif
+.endif
 
 create-source-packages: .PHONY _pkgbootstrap create-source-src-package 
create-source-src-sys-package
 

Reply via email to