Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144141373
D25984.id75596.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D25984.id75596.diff
View Options
Index: Makefile
===================================================================
--- Makefile
+++ Makefile
@@ -153,8 +153,8 @@
xdev-links native-xtools native-xtools-install stageworld stagekernel \
stage-packages stage-packages-kernel stage-packages-world \
create-packages-world create-packages-kernel create-packages \
- packages installconfig real-packages sign-packages package-pkg \
- print-dir test-system-compiler test-system-linker
+ update-packages packages installconfig real-packages real-update-packages \
+ sign-packages package-pkg print-dir test-system-compiler test-system-linker
# These targets require a TARGET and TARGET_ARCH be defined.
XTGTS= native-xtools native-xtools-install xdev xdev-build xdev-install \
Index: Makefile.inc1
===================================================================
--- Makefile.inc1
+++ Makefile.inc1
@@ -546,7 +546,7 @@
.endif # !defined(PKG_VERSION)
.if !defined(PKG_TIMESTAMP)
-TIMEEPOCHNOW= %s
+TIMEEPOCHNOW= %s
SOURCE_DATE_EPOCH= ${TIMEEPOCHNOW:gmtime}
.else
SOURCE_DATE_EPOCH= ${PKG_TIMESTAMP}
@@ -1801,9 +1801,22 @@
@env ASSUME_ALWAYS_YES=YES pkg bootstrap
.endif
+.if make(create-world-packages-jobs) || make(create-kernel-packages*) || make(real-update-packages)
+PKG_ABI!=${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI
+.endif
+
+.if !defined(PKG_VERSION_FROM)
+.if defined(PKG_ABI)
+PKG_VERSION_FROM!=/usr/bin/readlink ${REPODIR}/${PKG_ABI}/latest
+.endif
+.endif
+
packages: .PHONY
${_+_}${MAKE} -C ${.CURDIR} PKG_VERSION=${PKG_VERSION} real-packages
+update-packages: .PHONY
+ ${_+_}${MAKE} -C ${.CURDIR} PKG_VERSION=${PKG_VERSION} real-update-packages
+
package-pkg: .PHONY
rm -rf /tmp/ports.${TARGET} || :
env ${WMAKEENV:Q} SRCDIR=${.CURDIR} PORTSDIR=${PORTSDIR} REVISION=${_REVISION} \
@@ -1813,6 +1826,29 @@
real-packages: stage-packages create-packages sign-packages .PHONY
+real-update-packages: stage-packages .PHONY
+ ${_+_}${MAKE} -C ${.CURDIR} create-packages
+# TODO: Replace FreeBSD- by PKG_PREFIX at some point
+ @echo "==> Checking for new packages"
+ @for pkg in ${REPODIR}/${PKG_ABI}/${PKG_VERSION_FROM}/FreeBSD-*; do \
+ pkgname=$$(pkg query -F $${pkg} '%n' | sed 's/FreeBSD-\(.*\)/\1/') ; \
+ newpkgname=FreeBSD-$${pkgname}-${PKG_VERSION}.${PKG_FORMAT} ; \
+ oldsum=$$(pkg query -F $${pkg} '%Fs' | sha256) ; \
+ if [ ! -f ${REPODIR}/${PKG_ABI}/${PKG_VERSION}/$${newpkgname} ]; then \
+ continue; \
+ fi ; \
+ newsum=$$(pkg query -F ${REPODIR}/${PKG_ABI}/${PKG_VERSION}/$${newpkgname} '%Fs' | sha256) ; \
+ if [ "$${oldsum}" == "$${newsum}" ]; then \
+ echo "==> Keeping old FreeBSD-$${pkgname}-${PKG_VERSION_FROM}.${PKG_FORMAT}" ; \
+ rm ${REPODIR}/${PKG_ABI}/${PKG_VERSION}/$${newpkgname} ; \
+ cp $${pkg} ${REPODIR}/${PKG_ABI}/${PKG_VERSION} ; \
+ else \
+ echo "==> New package $${newpkgname}"
+ fi ; \
+ done
+ ${_+_}@cd ${.CURDIR}; \
+ ${MAKE} -f Makefile.inc1 sign-packages
+
stage-packages-world: .PHONY
@mkdir -p ${WSTAGEDIR}
${_+_}@cd ${.CURDIR}; \
@@ -1863,10 +1899,6 @@
.include "${WSTAGEDIR}/packages.mk"
.endif
-.if make(create-world-packages-jobs) || make(create-kernel-packages*)
-PKG_ABI!=${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI
-.endif
-
create-world-packages-jobs: .PHONY
.for pkgname in ${_PKGS}
create-world-packages-jobs: create-world-package-${pkgname}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 6, 10:54 AM (19 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28448069
Default Alt Text
D25984.id75596.diff (3 KB)
Attached To
Mode
D25984: pkgbase: Add incremental package
Attached
Detach File
Event Timeline
Log In to Comment