Skip to content
Snippets Groups Projects
Commit f27a6322 authored by Jingyun Hua's avatar Jingyun Hua Committed by Celeste
Browse files

community/fvwm: fix build with gcc14

parent 1503b272
No related branches found
No related tags found
1 merge request!71814community/fvwm: fix build with gcc14
Pipeline #258117 skipped
......@@ -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
"
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment