diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-18 02:43:49 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-18 02:50:10 +0200 |
commit | 51026c10c08d90ed6e8f17d994273aa55538bfd3 (patch) | |
tree | 7884c7cc1b1f5d6f1b7a558982dd7cd7f37be564 /community/openjdk8 | |
parent | 2daed3ee9817e38b4b08d9e7b82993bc18480549 (diff) | |
download | aports-51026c10c08d90ed6e8f17d994273aa55538bfd3.tar.bz2 aports-51026c10c08d90ed6e8f17d994273aa55538bfd3.tar.xz |
community/openjdk8: ensure that pkgver matches source version
Diffstat (limited to 'community/openjdk8')
-rw-r--r-- | community/openjdk8/APKBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/community/openjdk8/APKBUILD b/community/openjdk8/APKBUILD index 62aa8c6d0d..bf3a83262a 100644 --- a/community/openjdk8/APKBUILD +++ b/community/openjdk8/APKBUILD @@ -81,6 +81,11 @@ unpack() { prepare() { cd "$builddir" + local ver_u=$(sed -En 's/^JDK_UPDATE_VERSION\s*=\s*(\S+).*/\1/p' Makefile.am) + local ver_b=$(sed -En 's/^BUILD_VERSION\s*=\s*b(\S+).*/\1/p' Makefile.am) + [ "${pkgver#*.}" = "$ver_u.$ver_b" ] \ + || die "Version mismatch, source is 8.$ver_u.$ver_b, but abuild defines $pkgver!" + # Busybox sha256 does not support longopts. sed -e "s/--check/-c/g" -i Makefile.am |