From 0fe431b97093a0aef3d5ed9c7f58ccb43c581f3c Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 13 Mar 2020 20:14:38 +0100 Subject: [PATCH] Fix ncurses pkg-config generator script It picks up the linker hardening flags and stuffs them into the Libs section of the pkg-config file. Some packages, such as procps-ng end up trying to apply them in a semi parsed form and choke when trying to link against "noexecstack". Signed-off-by: David Oberhollenzer --- pkg/ncurses/0001.patch | 13 +++++++++++++ pkg/ncurses/build | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 pkg/ncurses/0001.patch diff --git a/pkg/ncurses/0001.patch b/pkg/ncurses/0001.patch new file mode 100644 index 0000000..2ec24f8 --- /dev/null +++ b/pkg/ncurses/0001.patch @@ -0,0 +1,13 @@ +diff --git a/misc/gen-pkgconfig.in b/misc/gen-pkgconfig.in +index 8f00b82..2849b4d 100644 +--- a/misc/gen-pkgconfig.in ++++ b/misc/gen-pkgconfig.in +@@ -190,7 +190,7 @@ Description: $desc + Version: \${version} + ${USEURL}URL: https://invisible-island.net/ncurses + Requires.private: $reqs +-Libs: $lib_flags $LIBS ++Libs: $LIBS + Libs.private: @LIBS@ $main_libs + Cflags: $CFLAGS + EOF diff --git a/pkg/ncurses/build b/pkg/ncurses/build index 90c3d24..6f996b3 100755 --- a/pkg/ncurses/build +++ b/pkg/ncurses/build @@ -7,7 +7,7 @@ DEPENDS="toolchain toolchain" SUBPKG="ncurses-dev ncurses++-dev ncurses" prepare() { - return + apply_patches } build() {