Last active
May 20, 2017 12:40
-
-
Save mlotysz/f5ad3f7b0202f37037c9a01023120267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2da1bf383a482e94152fad5e1b87ff02708c7728 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Maciej=20=20=C5=81otysz?= <[email protected]> | |
Date: Fri, 19 May 2017 15:30:14 +0200 | |
Subject: [PATCH] Fix building error - workaround | |
https://github.com/adrienverge/openfortivpn/issues/81 | |
--- | |
PKGBUILD | 10 ++++++++-- | |
allow-no-unused-functions.patch | 11 +++++++++++ | |
2 files changed, 19 insertions(+), 2 deletions(-) | |
create mode 100644 allow-no-unused-functions.patch | |
diff --git a/PKGBUILD b/PKGBUILD | |
index 5dbbb11..f8985af 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -15,9 +15,15 @@ replaces=() | |
backup=('etc/openfortivpn/config') | |
options=() | |
install= | |
-source=("git+https://github.com/adrienverge/$pkgname.git#tag=v$pkgver") | |
+source=("git+https://github.com/adrienverge/$pkgname.git#tag=v$pkgver" "allow-no-unused-functions.patch") | |
noextract=() | |
-md5sums=('SKIP') | |
+md5sums=('SKIP' | |
+ '4ce932a43c5b6e7241fb3e7ccc7a199f') | |
+ | |
+prepare() { | |
+ cd "$srcdir/$pkgname" | |
+ patch -Np0 -i "${srcdir}/allow-no-unused-functions.patch" | |
+} | |
build() { | |
cd "$srcdir/$pkgname" | |
diff --git a/allow-no-unused-functions.patch b/allow-no-unused-functions.patch | |
new file mode 100644 | |
index 0000000..bc0a3fd | |
--- /dev/null | |
+++ b/allow-no-unused-functions.patch | |
@@ -0,0 +1,11 @@ | |
+--- Makefile.am 2017-05-19 15:17:40.131425922 +0200 | |
++++ Makefile.am.new 2017-05-19 15:17:34.131583469 +0200 | |
+@@ -6,7 +6,7 @@ | |
+ src/ipv4.h src/log.c src/log.h src/tunnel.c \ | |
+ src/tunnel.h src/main.c src/ssl.h src/xml.c \ | |
+ src/xml.h src/userinput.c src/userinput.h | |
+-openfortivpn_CFLAGS = -Wall -Werror --pedantic -std=gnu99 | |
++openfortivpn_CFLAGS = -Wall -Werror --pedantic -std=gnu99 -Wno-unused-function | |
+ | |
+ confdir=$(sysconfdir)/openfortivpn | |
+ conf_DATA = etc/openfortivpn/config | |
-- | |
2.13.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment