pkgbase: make pkg repo reproducible
Add a PKG_WORKERS_THREADS variable set to 1 by default, if as a user you want speed again, then just override it.
This commit is contained in:
+3
-1
@@ -606,6 +606,7 @@ SOURCE_DATE_EPOCH= ${TIMEEPOCHNOW:gmtime}
|
||||
.else
|
||||
SOURCE_DATE_EPOCH= ${PKG_TIMESTAMP}
|
||||
.endif
|
||||
PKG_WORKERS_COUNT?= 1
|
||||
|
||||
PKG_NAME_PREFIX?= FreeBSD
|
||||
PKG_MAINTAINER?= re@FreeBSD.org
|
||||
@@ -2367,7 +2368,8 @@ real-sign-packages: _pkgbootstrap .PHONY
|
||||
.if ${PKG_BIN_VERSION} < 11700
|
||||
printf "packing_format = \"${PKG_FORMAT}\";\n" >> ${WSTAGEDIR}/meta
|
||||
.endif
|
||||
@${PKG_CMD} -o ABI=${PKG_ABI} -o OSVERSION="${SRCRELDATE}" repo \
|
||||
@${PKG_CMD} -o ABI=${PKG_ABI} -o OSVERSION="${SRCRELDATE}" \
|
||||
-o WORKERS_COUNT=${PKG_WORKERS_COUNT} repo \
|
||||
-m ${WSTAGEDIR}/meta \
|
||||
-o ${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
|
||||
${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
|
||||
|
||||
Reference in New Issue
Block a user