diff --git a/testing/admesh/APKBUILD b/testing/admesh/APKBUILD index 03735c02471..83163bf18f1 100644 --- a/testing/admesh/APKBUILD +++ b/testing/admesh/APKBUILD @@ -12,6 +12,12 @@ subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/admesh/admesh/releases/download/v$pkgver/admesh-$pkgver.tar.gz" options="!check" # no unit tests +# config.sub is too old to recognize loongarch64-alpine-linux-musl +prepare() { + default_prepare + update_config_sub +} + build() { ./configure \ --build=$CBUILD \ diff --git a/testing/amule/APKBUILD b/testing/amule/APKBUILD index 6fee968f6ee..8ab89105afd 100644 --- a/testing/amule/APKBUILD +++ b/testing/amule/APKBUILD @@ -26,6 +26,12 @@ source="$_pkgname-$pkgver.tar.xz::https://downloads.sourceforge.net/project/amul builddir="$srcdir/$_pkgname-$pkgver" +# config.sub is too old to recognize loongarch64-alpine-linux-musl +prepare() { + default_prepare + update_config_sub +} + build() { export CFLAGS="$CFLAGS -flto=auto -DNDEBUG" export CXXFLAGS="$CXXFLAGS -flto=auto -DNDEBUG" diff --git a/testing/armagetronad/APKBUILD b/testing/armagetronad/APKBUILD index 69d3f1414a1..a89ed835009 100644 --- a/testing/armagetronad/APKBUILD +++ b/testing/armagetronad/APKBUILD @@ -13,6 +13,12 @@ subpackages="$pkgname-doc" options="!check" #the tests are deactivated because the make check has not been declared source="$pkgname-$pkgver.tar.bz2::https://launchpad.net/armagetronad/${pkgver%.*.*}/$pkgver/+download/armagetronad-$pkgver.tbz" +# config.guess is too old to recognize loongarch64-alpine-linux-musl +prepare() { + default_prepare + update_config_guess +} + build() { ./configure \ --prefix=/usr \ diff --git a/testing/chocolate-doom/APKBUILD b/testing/chocolate-doom/APKBUILD index 59244468915..a2d70ae87d2 100644 --- a/testing/chocolate-doom/APKBUILD +++ b/testing/chocolate-doom/APKBUILD @@ -15,6 +15,12 @@ source=" 10-remove-redundant-demoextend-definition.patch " +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { ./configure \ --build=$CBUILD \ diff --git a/testing/cliquer/APKBUILD b/testing/cliquer/APKBUILD index fb53f7b58c9..55ea64578c8 100644 --- a/testing/cliquer/APKBUILD +++ b/testing/cliquer/APKBUILD @@ -15,6 +15,12 @@ subpackages=" $pkgname-dev " +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { export CFLAGS="${CFLAGS/-Os/-O3}" # gotta go fast diff --git a/testing/fdm/APKBUILD b/testing/fdm/APKBUILD index d114265b877..4004440b982 100644 --- a/testing/fdm/APKBUILD +++ b/testing/fdm/APKBUILD @@ -17,6 +17,12 @@ source="https://github.com/nicm/fdm/releases/download/$pkgver/fdm-$pkgver.tar.gz $pkgname-pcre2-fix.patch::https://github.com/nicm/fdm/commit/f1ec1982725d60045c0d871f3e613f2880046c22.patch " +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { CFLAGS="$CFLAGS -flto=auto" \ ./configure \ diff --git a/testing/fflas-ffpack/APKBUILD b/testing/fflas-ffpack/APKBUILD index d6e6c16e199..e5ed6c9fb08 100644 --- a/testing/fflas-ffpack/APKBUILD +++ b/testing/fflas-ffpack/APKBUILD @@ -15,6 +15,12 @@ makedepends=" source="https://github.com/linbox-team/fflas-ffpack/releases/download/v$pkgver/fflas_ffpack-$pkgver.tar.bz2" builddir="$srcdir/fflas_ffpack-$pkgver" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { export CXXFLAGS="${CXXFLAGS/-Os/-O3}" # gotta go fast ./configure \ diff --git a/testing/gloox/APKBUILD b/testing/gloox/APKBUILD index c293f8bcb7a..0de5c0b9c59 100644 --- a/testing/gloox/APKBUILD +++ b/testing/gloox/APKBUILD @@ -10,6 +10,12 @@ makedepends="gnutls-dev" subpackages="$pkgname-dev" source="https://camaya.net/download/gloox-$pkgver.tar.bz2" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { ./configure \ --build=$CBUILD \ diff --git a/testing/gutenprint/APKBUILD b/testing/gutenprint/APKBUILD index a9dbc5d1cfd..d2037241054 100644 --- a/testing/gutenprint/APKBUILD +++ b/testing/gutenprint/APKBUILD @@ -20,6 +20,12 @@ makedepends=" subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs $pkgname-cups $pkgname-samples" source="https://downloads.sourceforge.net/gimp-print/gutenprint-$pkgver.tar.xz" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { ./configure \ --build=$CBUILD \ diff --git a/testing/libbamf/APKBUILD b/testing/libbamf/APKBUILD index 65108da8fbd..8769455e718 100644 --- a/testing/libbamf/APKBUILD +++ b/testing/libbamf/APKBUILD @@ -15,6 +15,12 @@ subpackages="$pkgname-doc $pkgname-dev" source="https://launchpad.net/$_pkgname/$_pkgver/$pkgver/+download/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { ./configure \ --prefix=/usr \ diff --git a/testing/libideviceactivation/APKBUILD b/testing/libideviceactivation/APKBUILD index 1e3b0925e7d..b1f73eeff04 100644 --- a/testing/libideviceactivation/APKBUILD +++ b/testing/libideviceactivation/APKBUILD @@ -11,6 +11,12 @@ makedepends="libimobiledevice-dev curl-dev libxml2-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/libimobiledevice/libideviceactivation/releases/download/$pkgver/libideviceactivation-$pkgver.tar.bz2" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { ./configure \ --build=$CBUILD \ diff --git a/testing/libnfc/APKBUILD b/testing/libnfc/APKBUILD index a7a8dec815f..c89ef947285 100644 --- a/testing/libnfc/APKBUILD +++ b/testing/libnfc/APKBUILD @@ -16,6 +16,12 @@ makedepends=" subpackages="$pkgname-dev $pkgname-tools $pkgname-doc" source="$pkgname-$pkgver.tar.bz2::https://github.com/nfc-tools/libnfc/releases/download/libnfc-$pkgver/libnfc-$pkgver.tar.bz2" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { CFLAGS="$CFLAGS -flto=auto" \ ./configure \ diff --git a/testing/monetdb/APKBUILD b/testing/monetdb/APKBUILD index 8d3261984a4..df596050691 100644 --- a/testing/monetdb/APKBUILD +++ b/testing/monetdb/APKBUILD @@ -16,6 +16,13 @@ source="https://www.monetdb.org/downloads/sources/archive/$_pkgname-$pkgver.tar. fix-definitions-musl.patch" builddir="$srcdir/$_pkgname-$pkgver" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64 system + update_config_guess + update_config_sub +} + build() { ./configure \ --prefix=/usr \ diff --git a/testing/pam-krb5/APKBUILD b/testing/pam-krb5/APKBUILD index 0f90245ebc0..40f6eaa8d8f 100644 --- a/testing/pam-krb5/APKBUILD +++ b/testing/pam-krb5/APKBUILD @@ -14,6 +14,13 @@ source="https://archives.eyrie.org/software/kerberos/pam-krb5-$pkgver.tar.gz " options="!check" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub + update_config_guess +} + build() { ./configure \ --prefix=/usr \ diff --git a/testing/pcsc-tools/APKBUILD b/testing/pcsc-tools/APKBUILD index 4d67d0b096f..dbdf8aa996f 100644 --- a/testing/pcsc-tools/APKBUILD +++ b/testing/pcsc-tools/APKBUILD @@ -12,6 +12,12 @@ makedepends="pcsc-lite-dev" subpackages="$pkgname-doc" source="https://pcsc-tools.apdu.fr/pcsc-tools-$pkgver.tar.bz2" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { ./configure \ --build=$CBUILD \ diff --git a/testing/rankwidth/APKBUILD b/testing/rankwidth/APKBUILD index 85659884e81..9ec6897a98e 100644 --- a/testing/rankwidth/APKBUILD +++ b/testing/rankwidth/APKBUILD @@ -15,6 +15,12 @@ source="https://master.dl.sourceforge.net/project/rankwidth/rw-$pkgver.tar.gz subpackages="$pkgname-static $pkgname-dev $pkgname-libs $pkgname-doc" builddir="$srcdir/rw-$pkgver" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { export CFLAGS="${CFLAGS/-Os/-O3}" # gotta go fast diff --git a/testing/sigrok-cli/APKBUILD b/testing/sigrok-cli/APKBUILD index 83a18d69284..14fbac3f79b 100644 --- a/testing/sigrok-cli/APKBUILD +++ b/testing/sigrok-cli/APKBUILD @@ -10,6 +10,13 @@ license="GPL-3.0-only" source="http://sigrok.org/download/source/$pkgname/$pkgname-$pkgver.tar.gz" subpackages="$pkgname-doc" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub + update_config_guess +} + build() { ./configure --prefix=/usr make diff --git a/testing/starfighter/APKBUILD b/testing/starfighter/APKBUILD index faca351a609..e8d232648b1 100644 --- a/testing/starfighter/APKBUILD +++ b/testing/starfighter/APKBUILD @@ -12,6 +12,12 @@ options="!check" # No testsuite source="https://github.com/pr-starfighter/starfighter/releases/download/v$pkgver/starfighter-$pkgver-src.tar.gz" builddir="$srcdir/starfighter-$pkgver-src" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { ./configure \ --build=$CBUILD \ diff --git a/testing/thunarx-python/APKBUILD b/testing/thunarx-python/APKBUILD index 93f01145d73..0b7064ef103 100644 --- a/testing/thunarx-python/APKBUILD +++ b/testing/thunarx-python/APKBUILD @@ -11,6 +11,12 @@ makedepends="gtk-doc python3-dev py3-gobject3-dev thunar-dev" subpackages="$pkgname-doc" source="https://archive.xfce.org/src/bindings/thunarx-python/${pkgver%.*}/thunarx-python-$pkgver.tar.bz2" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub +} + build() { ./configure \ --build=$CBUILD \ diff --git a/testing/vcdimager/APKBUILD b/testing/vcdimager/APKBUILD index b2617a1a62f..74b31455ffb 100644 --- a/testing/vcdimager/APKBUILD +++ b/testing/vcdimager/APKBUILD @@ -13,6 +13,13 @@ subpackages="$pkgname-dev $pkgname-doc" source="https://ftp.gnu.org/gnu/vcdimager/${pkgname}-${pkgver}.tar.gz" builddir="$srcdir/$pkgname-$pkgver" +prepare() { + default_prepare + # config.sub is too old to recognize loongarch64-alpine-linux-musl + update_config_sub + update_config_guess +} + build() { cd "$builddir" ./configure --prefix=/usr