Skip to contentSkip to conversation

iso-codes: update to 3.79 and fix SRC_URI

PATCH Superseded Oleksandr Kravchuk 2 participants 2 messages Jun 5, 2018

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 iso-codes: update to 3.79 and fix SRC_URI

Updated package to version 3.79.

The original FTP server, alioth.debian.org has been permanently taken down by the Debian Project and replaced with salsa.debian.org.

Source: https://wiki.debian.org/Alioth

Also added UPSTREAM_CHECK_URI, HOMEPAGE, and BUGTRACKER.

---
 .../{iso-codes_3.77.bb => iso-codes_3.79.bb}         | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
 rename meta/recipes-support/iso-codes/{iso-codes_3.77.bb => iso-codes_3.79.bb} (50%)
meta/recipes-support/iso-codes/iso-codes_3.79.bb renamed from meta/recipes-support/iso-codes/iso-codes_3.77.bb +9 -3
similarity index 50%
rename from meta/recipes-support/iso-codes/iso-codes_3.77.bb
rename to meta/recipes-support/iso-codes/iso-codes_3.79.bb
index bd613ac573..3fadd459c8 100644
@@ -1,15 +1,21 @@
 SUMMARY = "ISO language, territory, currency, script codes and their translations"
+HOMEPAGE = "https://salsa.debian.org/iso-codes-team/iso-codes"
+BUGTRACKER = "https://salsa.debian.org/iso-codes-team/iso-codes/issues"
+
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
-SRC_URI = "https://pkg-isocodes.alioth.debian.org/downloads/iso-codes-${PV}.tar.xz"
-SRC_URI[md5sum] = "9d0d06cfb4634428b300845edcd7140a"
-SRC_URI[sha256sum] = "21cd73a4c6f95d9474ebfcffd4e065223857720f24858e564f4409b19f7f0d90"
+SRC_URI = "git://[email protected]/iso-codes-team/iso-codes.git;protocol=git"
+SRCREV = "c1d5dd96b33cb815ebc21d2708bc045b1545249d"
 
 # inherit gettext cannot be used, because it adds gettext-native to BASEDEPENDS which
 # are inhibited by allarch
 DEPENDS = "gettext-native"
 
+UPSTREAM_CHECK_URI = "https://salsa.debian.org/iso-codes-team/iso-codes/tags"
+
+S = "${WORKDIR}/git"
+
 inherit allarch autotools
 
 FILES_${PN} += "${datadir}/xml/"
Signature · 1 line
2.17.0
#1 lore raw

2018-06-05 18:48 GMT+03:00 Oleksandr Kravchuk
<[email protected]>:

Quoted 1 line

+UPSTREAM_CHECK_URI = "https://salsa.debian.org/iso-codes-team/iso-codes/tags"

This is needed only when taking source from tarballs, and the contents of the tarball-containing directory cannot be listed due to web server configuration (but the tarballs are referred to from some other webpage). The upstream version checker downloads the webpage, and goes over html links in it to determine which of those links point to the tarball, and of those, which is the latest tarball.

When taking the source from git, the upstream checker lists git tags directly from the repo clone, sorts them and picks the latest.

You can also fine-tune how the latest version is matched against the tarball filenames through UPSTREAM_CHECK_REGEX, or against git tags through UPSTREAM_CHECK_GITTAGREGEX but it's not needed here.

Alex