diff --git a/packages/cpio/build.sh b/packages/cpio/build.sh index 0209889a7..fc007821b 100644 --- a/packages/cpio/build.sh +++ b/packages/cpio/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="CPIO implementation from the GNU project" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=2.13 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/cpio/cpio-$TERMUX_PKG_VERSION.tar.bz2 TERMUX_PKG_SHA256=eab5bdc5ae1df285c59f2a4f140a98fc33678a0bf61bdba67d9436ae26b46f6d TERMUX_PKG_DEPENDS="tar" diff --git a/packages/cpio/global.c.patch b/packages/cpio/global.c.patch new file mode 100644 index 000000000..f133c6672 --- /dev/null +++ b/packages/cpio/global.c.patch @@ -0,0 +1,11 @@ +--- ../global.c.orig 2021-11-17 20:03:46.273607977 +0000 ++++ ./src/global.c 2021-11-17 20:04:24.600257641 +0000 +@@ -185,7 +185,7 @@ + bool to_stdout_option = false; + + /* The name this program was run with. */ +-char *program_name; ++extern char *program_name; + + /* A pointer to either lstat or stat, depending on whether + dereferencing of symlinks is done for input files. */