aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-08 15:37:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-08 16:00:33 +0000
commita0ac6f5b19483a576069f945ad034ed84e73a03b (patch)
treea133452cc9a0c7c1200edeb7099efeb3382a91c1
parenta113922567d10238411f1a8451cfdc738ee8725d (diff)
downloadaports-a0ac6f5b19483a576069f945ad034ed84e73a03b.tar.bz2
main/freeswitch: build fix. disable -Werror
-rw-r--r--main/freeswitch/APKBUILD7
-rw-r--r--main/freeswitch/disable-Werror.patch18
2 files changed, 22 insertions, 3 deletions
diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD
index 3e48b49..dfa3394 100644
--- a/main/freeswitch/APKBUILD
+++ b/main/freeswitch/APKBUILD
@@ -3,7 +3,7 @@
# Contributor: Cameron Banta <cbanta@gmail.com>
pkgname=freeswitch
pkgver=1.8.2
-pkgrel=0
+pkgrel=1
pkgdesc="A communications platform written in C from the ground up"
url="http://www.freeswitch.org"
arch="all"
@@ -66,6 +66,7 @@ source="http://files.freeswitch.org/freeswitch-releases/$pkgname-$pkgver.tar.xz
0002-FS-verto-bswap_64.patch
getlib.patch
configure-lua53.patch
+ disable-Werror.patch
modules.conf
freeswitch.confd
freeswitch.initd
@@ -75,6 +76,7 @@ builddir="$srcdir/$pkgname-$pkgver"
prepare() {
default_prepare
+ autoreconf -vif
update_config_sub
}
@@ -82,8 +84,6 @@ build() {
cd "$builddir"
cp -f "$srcdir/modules.conf" modules.conf
- autoreconf -vif
-
CFLAGS="-Wno-unused-but-set-variable" ./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -218,6 +218,7 @@ sha512sums="30c5d2a151c95ab9c8c3252280fc25c7e7c5f7b57fb72b6a28b0673a3b9c96c9b6a5
5f93150e1acd632df98bc3bed5613fb1e45180ae4096dcfee5c060da213c8355339260eaf5758cd77c785f6d84cf0661650a872ec574b586ab19803d4f6955f8 0002-FS-verto-bswap_64.patch
4ceb48f64d2bc26a02cc0846276506241bfd30c156422b0a1d608fd172c099feb5c121a763652e9a45046dcdd0ba0eb71eab240e0c6ce2ad63ff781719e135a4 getlib.patch
6ff9a31b0b69efe13208f96e55fcbaa8fc1fad220dede74df75c5259e72a6c1fede8145981f3e81547bdfc3a849cfa8f50297a6799d7874299fc3056910e54dc configure-lua53.patch
+16e9208fca7f0a1985dd01ec38ddabb6a79da83ad6ab004bb66de528ac45f02fadaddc50a9f228e1aa38fae213fa5af0ca858b7af629b67a7d654339f813a68c disable-Werror.patch
6deecb303e765d44bdd970d5a7079c9dd9ce17d12056b68cd978a182a86b477b4a3c19d2f5a18f36199ca2e0594a3b84de521ab821e2f8c89f7449a3d7f21279 modules.conf
a585f6411185a26206137a1ad97a06fd6c73e80c5439e9be45eabfa70e7a83120169ba882971fcd328436c8e0242cbd664170b80754ea2846021689baf1f1595 freeswitch.confd
643d0a2e43f5d3bf3b99fcb6f6422302cb4b74a95eccf844eafb100b15aa9856b4ff41f112d6637255c2e9e2bec9fedc9a9215dfff214dfb83b52eae16b71dca freeswitch.initd"
diff --git a/main/freeswitch/disable-Werror.patch b/main/freeswitch/disable-Werror.patch
new file mode 100644
index 0000000..9b823d7
--- /dev/null
+++ b/main/freeswitch/disable-Werror.patch
@@ -0,0 +1,18 @@
+diff --git a/configure.ac b/configure.ac
+index 3eb0a47..2670bbd 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -414,13 +414,11 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
+ elif test "x${ax_cv_c_compiler_vendor}" = "xclang" ; then
+ APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC -ffast-math)
+ APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC -ffast-math)
+- APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
+ elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
+ APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC -ffast-math)
+ APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC -ffast-math)
+ AC_SUBST([AM_MOD_AVMD_CXXFLAGS], [-std=gnu99]) # FS-8809, needed for MAP_POPULATE
+ if test "$ac_cv_gcc_supports_w_no_unused_result" = yes; then
+- APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
+ APR_ADDTO(SWITCH_AM_CFLAGS, -Wno-unused-result)
+ fi
+ if test "$ac_cv_gcc_supports_w_no_misleading_indentation" = yes; then