diff --git a/community/fvwm/APKBUILD b/community/fvwm/APKBUILD index 6d5934d77a8..3f825e62b6c 100644 --- a/community/fvwm/APKBUILD +++ b/community/fvwm/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: ScrumpyJack pkgname=fvwm pkgver=2.7.0 -pkgrel=2 +pkgrel=3 pkgdesc="FVWM is a powerful desktop window manager for the X Window system" url="http://fvwm.org" arch="all" @@ -23,9 +23,19 @@ makedepends=" libxt-dev perl readline-dev + automake + autoconf " subpackages="$pkgname-doc" -source="https://github.com/fvwmorg/fvwm/releases/download/$pkgver/fvwm-$pkgver.tar.gz" +source="https://github.com/fvwmorg/fvwm/releases/download/$pkgver/fvwm-$pkgver.tar.gz + gcc14.patch + " + +prepare() { + default_prepare + + autoreconf -ivf +} build() { ./configure \ @@ -45,4 +55,5 @@ package() { sha512sums=" fc9076c3f07f36b0b2c7c4d2bdf7bb1a711000e39316e327173548bc99dc2b8a29b591e3644e1492f87603b576cd4a3f58ecbdd84a4384d294417b3c56c81808 fvwm-2.7.0.tar.gz +1576add86910496d802244c217e90338c881761ba7e1aad1987490fed986b20d0145463bc353924e0de9c760bfb85b08fa9f48edfebafa3f84759069c655a863 gcc14.patch " diff --git a/community/fvwm/gcc14.patch b/community/fvwm/gcc14.patch new file mode 100644 index 00000000000..c9adb20c315 --- /dev/null +++ b/community/fvwm/gcc14.patch @@ -0,0 +1,23 @@ +ref: https://github.com/fvwmorg/fvwm/pull/106 +diff --git a/configure.ac b/configure.ac +index 97ab9e7..a5452e1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -218,17 +218,6 @@ fi + AC_ISC_POSIX + AC_MINIX + +-# catch -Werror and similar options when running configure +-AC_TRY_COMPILE([#include ], +-[int i; static j; int *p; char *c; +- switch (*p = p = *c) { case 0: printf("%Q", c, p); } +- *c = &i; c = p; +- while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1)); +-], , AC_MSG_ERROR(" +-configure is not able to compile programs with warnings. Please +-remove all offending options like -Werror from the CFLAGS and +-CPPFLAGS variables and run configure again.")) +- + # check size of some types + ac_save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $X_CFLAGS"