debianutils: change SRC_URI to use snapshot.debian.org
PATCH 1/1 debianutils: change SRC_URI to use snapshot.debian.org
The primary Debian archive only contains tarballs which are currently shipped in a release, so it's easy for a tarball we need to disappear. Instead, point at snapshot.debian.org to ensure the link remains valid.
--- meta/recipes-support/debianutils/debianutils_4.11.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/debianutils/debianutils_4.11.1.bb +1 -1
@@ -3,7 +3,7 @@ SECTION = "base" LICENSE = "GPLv2 & SMAIL_GPL" LIC_FILES_CHKSUM = "file://debian/copyright;md5=9b912cd0cc654134c0ef3424a0705b94" -SRC_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/${BPN}_${PV}.tar.xz" +SRC_URI = "http://snapshot.debian.org/archive/debian/20200525T145753Z/pool/main/d/${BPN}/${BPN}_${PV}.tar.xz" # the package is taken from snapshots.debian.org; that source is static and goes stale # so we check the latest upstream from a directory that does get updated UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/"
Signature · 1 line
2.25.1
This breaks automated upgrades unfortunately (upstream check works, but upgrade itself won't figure out a newer snapshot URI).
Is it possible to convert this to fetch from git instead?
Alex
Quoted 32 lines · Ross Burton
The primary Debian archive only contains tarballs which are currently shipped in a release, so it's easy for a tarball we need to disappear. Instead, point at snapshot.debian.org to ensure the link remains valid.
Signed-off-by Ross Burton <[email protected]>--- meta/recipes-support/debianutils/debianutils_4.11.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-support/debianutils/debianutils_4.11.1.bb +0
-0@@ -3,7 +3,7 @@ SECTION = "base" LICENSE = "GPLv2 & SMAIL_GPL" LIC_FILES_CHKSUM ="file://debian/copyright;md5=9b912cd0cc654134c0ef3424a0705b94"
meta/recipes-support/debianutils/debianutils_4.11.1.bb +1
-1-SRC_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/${BPN}_${PV}.tar.xz" +SRC_URI = "http://snapshot.debian.org/archive/debian/20200525T145753Z/pool/main/d/${BPN}/${BPN}_${PV}.tar.xz
"# the package is taken from snapshots.debian.org; that source is static and goes stale # so we check the latest upstream from a directory that does get updated UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/" -- 2.25.1