diff options
author | Mike Sullivan <mksully22@gmail.com> | 2018-12-21 16:01:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-12-21 18:07:27 +0000 |
commit | 8c72e8e6e32a0660fce22117dd192980be8e7e57 (patch) | |
tree | e5aff31f1edca2d10d2bbd933dabe18fd6634b2a /community/java-jna | |
parent | ee04f96c6c86d0ab74c4a1cbffa55ad7e36f4bf5 (diff) | |
download | aports-8c72e8e6e32a0660fce22117dd192980be8e7e57.tar.bz2 aports-8c72e8e6e32a0660fce22117dd192980be8e7e57.tar.xz |
community/java-jna: fix build break by disabling Werror flag
Diffstat (limited to 'community/java-jna')
-rw-r--r-- | community/java-jna/APKBUILD | 4 | ||||
-rw-r--r-- | community/java-jna/disable-Werror.patch | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/community/java-jna/APKBUILD b/community/java-jna/APKBUILD index d4436b2306..0bce0d8971 100644 --- a/community/java-jna/APKBUILD +++ b/community/java-jna/APKBUILD @@ -3,7 +3,7 @@ pkgname=java-jna _pkgname=${pkgname#java-} pkgver=4.5.2 -pkgrel=0 +pkgrel=1 pkgdesc="JNA provides Java programs easy access to native shared libraries." url="https://github.com/java-native-access/jna" arch="all" @@ -12,6 +12,7 @@ depends="openjdk8-jre-base" makedepends="apache-ant autoconf automake libffi-dev>=3.2 libtool openjdk8" subpackages="$pkgname-native" source="$pkgname-$pkgver.tar.gz::https://github.com/java-native-access/$_pkgname/archive/$pkgver.tar.gz + disable-Werror.patch 0001-jar-without-natives.patch " builddir="$srcdir/$_pkgname-$pkgver" @@ -65,4 +66,5 @@ native() { } sha512sums="c740b5655725d01a1bdb0e86ca9640d70bd416591b36f82976429455bc728f2872a19c78cddbc271657146e8926fa22f8bb2ec48b56d3483379488cff576dac8 java-jna-4.5.2.tar.gz +2420c6fbf9f9375f6fc8fbe004fa2831ac13799b1a16608da27c2ce09388b023742336b2e4a81e7524a9df4ed6f421864042b82dbb2dbc17fb54b5bc6091d1b6 disable-Werror.patch dacfa03e1a957172502dd10007445e844df67288fde07f7ada80a5cbfe3186511aa7a866c8c757a0a94c894829fead9c67ad0993f2105d2fef1f18d22ee01cdb 0001-jar-without-natives.patch" diff --git a/community/java-jna/disable-Werror.patch b/community/java-jna/disable-Werror.patch new file mode 100644 index 0000000000..70f42bc5ff --- /dev/null +++ b/community/java-jna/disable-Werror.patch @@ -0,0 +1,11 @@ +--- a/native/Makefile ++++ b/native/Makefile +@@ -336,7 +336,7 @@ + ifeq ($(CC),gcc) + GCC_MAJOR_VERSION = $(shell gcc -dumpversion | cut -f 1 -d '.') + ifneq ($(GCC_MAJOR_VERSION),4) +- LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable ++ LOC_CC_OPTS=-Wno-unknown-warning-option -Wno-clobbered -Wno-unused-variable + endif + else + LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered -Wno-unused-variable |