community/fvwm: fix build with gcc14

This commit is contained in:
Jingyun Hua 2024-09-11 03:23:46 +00:00 committed by Celeste
parent 1503b272a0
commit f27a63229c
2 changed files with 36 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
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
"

View file

@ -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 <stdio.h>],
-[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"