aboutsummaryrefslogtreecommitdiff
path: root/archivers/gcpio
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2020-08-23 21:30:56 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2020-08-23 21:30:56 +0000
commitb757cfa8e71029d2200317cb3ddaa7bafed65da9 (patch)
tree2de5c7ea076da2d8243fbbe6e00bcf18b4bdff32 /archivers/gcpio
parentdfd74062d8d537a26d01c498c20a3981691a8ecd (diff)
downloadports-b757cfa8e71029d2200317cb3ddaa7bafed65da9.tar.gz
ports-b757cfa8e71029d2200317cb3ddaa7bafed65da9.zip
Remove superfluous declaration to fix build with -fno-common.
Reported by: pkg-fallout Obtained from: upstream
Notes
Notes: svn path=/head/; revision=546023
Diffstat (limited to 'archivers/gcpio')
-rw-r--r--archivers/gcpio/Makefile1
-rw-r--r--archivers/gcpio/files/patch-src_global.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/archivers/gcpio/Makefile b/archivers/gcpio/Makefile
index 7025d2026ee6..20b82f606f00 100644
--- a/archivers/gcpio/Makefile
+++ b/archivers/gcpio/Makefile
@@ -2,6 +2,7 @@
PORTNAME= cpio
PORTVERSION= 2.13
+PORTREVISION= 0
CATEGORIES= archivers
MASTER_SITES= GNU
PKGNAMEPREFIX= g
diff --git a/archivers/gcpio/files/patch-src_global.c b/archivers/gcpio/files/patch-src_global.c
new file mode 100644
index 000000000000..7875572e6796
--- /dev/null
+++ b/archivers/gcpio/files/patch-src_global.c
@@ -0,0 +1,14 @@
+https://git.savannah.gnu.org/cgit/cpio.git/commit/src/global.c?id=641d3f489cf6238bb916368d4ba0d9325a235afb
+
+--- src/global.c.orig 2019-11-03 15:07:23 UTC
++++ src/global.c
+@@ -184,9 +184,6 @@ unsigned int warn_option = 0;
+ /* Extract to standard output? */
+ bool to_stdout_option = false;
+
+-/* The name this program was run with. */
+-char *program_name;
+-
+ /* A pointer to either lstat or stat, depending on whether
+ dereferencing of symlinks is done for input files. */
+ int (*xstat) ();