testing/java-asmtools: upgrade to 8.0-b09

This commit is contained in:
Simon Frankenberger 2023-10-21 21:38:57 +02:00 committed by omni
parent 2eb05bacc2
commit a8b9f64d57
2 changed files with 26 additions and 5 deletions

View File

@ -1,20 +1,23 @@
# Contributor: Simon Frankenberger <simon-alpine@fraho.eu>
# Maintainer: Simon Frankenberger <simon-alpine@fraho.eu>
pkgname=java-asmtools
_pkgver=7.0-b09
_pkgver=8.0-b09
pkgver=${_pkgver/-b/.}
pkgrel=0
pkgdesc="The AsmTools open source project is used to develop tools for the production of proper and improper Java '.class' files"
url="https://github.com/openjdk/asmtools"
# s390x: ftbfs due to sigfpe
# riscv64: java
arch="noarch !riscv64 !s390x"
# riscv64: no java
# s390x: FTBFS due to SIGFPE (see #12275)
# armhf / armv7 / x86 / ppc64le: requires java 17
arch="noarch !riscv64 !armhf !armv7 !x86 !ppc64le !s390x"
license="GPL-2.0"
makedepends="java-jdk"
options="!check" # this package has no tests
subpackages="$pkgname-doc:_doc"
source="https://github.com/openjdk/asmtools/archive/$_pkgver/asmtools-$_pkgver.tar.gz
https://archive.apache.org/dist/ant/binaries/apache-ant-1.9.13-bin.zip
java-version-check.patch
"
builddir="$srcdir/asmtools-$_pkgver"
@ -48,6 +51,7 @@ _doc() {
}
sha512sums="
027744e2b92719525c8d00cc16c03563dc1ca6c9e7d771145cd39ba841fe35934e3f3d3e2982ca12156466050b98a458f08f204ed44d964b467d37517d7d288a asmtools-7.0-b09.tar.gz
27d4378061d0c703d0220b35b75ce67bcd20dce3f0339cdbd68e8396cf647719ae029720081abac22e186ae9d5ed5c1fb4050adea30f3ef855586eaacba1dca7 asmtools-8.0-b09.tar.gz
873062cf789e1572ec4ef3cdbb15c0d3a57e5a0794068591565367d4cec15b9f9a24f59734a85170d61b23eb9288d6bafd35a9ae2b015b09c7a175e344cb4e1c apache-ant-1.9.13-bin.zip
e6687969df9d1386c9d7e2948f0f08f1c447f14d30281372f29efb47a894a709b1a901429087e5e7cb69daa9f3e935f3613750239e9eb848ddaf736b4affd056 java-version-check.patch
"

View File

@ -0,0 +1,17 @@
Author: Simon Frankenberger <simon-alpine@fraho.eu>
Subject: Fix java version check
The java version check only detects java 17, 18, 19
and does not work with java 20+. This patch fixes the regex.
--- old/build/build.xml
+++ new/build/build.xml
@@ -174,7 +174,7 @@
<target name="-check-java-version?">
<echo></echo>
<condition property="check-java-version.passed">
- <matches pattern="1[789]+.*" string="${ant.java.version}"/>
+ <matches pattern="(1[789]+|2[0-9]+).*" string="${ant.java.version}"/>
</condition>
<fail unless="check-java-version.passed">
.${line.separator}${line.separator}