commit:     4cd20ef753adcbf7fae65db20d028c90b7e459bc
Author:     Marco Genasci <fedeliallalinea <AT> gmail <DOT> com>
AuthorDate: Wed Jul 14 09:05:03 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Jul 16 11:46:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cd20ef7

app-crypt/aescrypt: fix LDFLAGS in Makefile

Closes: https://bugs.gentoo.org/763660
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Marco Genasci <fedeliallalinea <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/21633
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-crypt/aescrypt/aescrypt-3.14.ebuild              |  5 ++++-
 app-crypt/aescrypt/files/aescrypt-3.14-ldflags.patch | 20 ++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/app-crypt/aescrypt/aescrypt-3.14.ebuild 
b/app-crypt/aescrypt/aescrypt-3.14.ebuild
index c40e124664a..51a5d8403d1 100644
--- a/app-crypt/aescrypt/aescrypt-3.14.ebuild
+++ b/app-crypt/aescrypt/aescrypt-3.14.ebuild
@@ -18,7 +18,10 @@ RDEPEND="X? (
        )
        "
 
-PATCHES=( "${FILESDIR}/${P}-iconv.patch" )
+PATCHES=(
+       "${FILESDIR}/${P}-iconv.patch"
+       "${FILESDIR}/${P}-ldflags.patch"
+)
 
 src_prepare() {
        xdg_src_prepare

diff --git a/app-crypt/aescrypt/files/aescrypt-3.14-ldflags.patch 
b/app-crypt/aescrypt/files/aescrypt-3.14-ldflags.patch
new file mode 100644
index 00000000000..757f0e4e7fc
--- /dev/null
+++ b/app-crypt/aescrypt/files/aescrypt-3.14-ldflags.patch
@@ -0,0 +1,20 @@
+diff -Naru a/src/Makefile b/src/Makefile
+--- a/src/Makefile     2021-07-14 09:25:15.509797042 +0200
++++ b/src/Makefile     2021-07-14 09:25:46.689797121 +0200
+@@ -27,13 +27,13 @@
+ all: aescrypt aescrypt_keygen
+ 
+ aescrypt: $(AESCRYPT_OBJS)
+-      $(CC) $(CFLAGS) $(LIBS) -o $@ $(AESCRYPT_OBJS)
++      $(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) -o $@ $(AESCRYPT_OBJS)
+ 
+ aescrypt_keygen: $(KEYGEN_OBJS)
+-      $(CC) $(CFLAGS) $(LIBS) -o $@ $(KEYGEN_OBJS)
++      $(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) -o $@ $(KEYGEN_OBJS)
+ 
+ %.o: %.c %.h
+-      $(CC) $(CFLAGS) -c $*.c
++      $(CC) $(CFLAGS) $(LDFLAGS) -c $*.c
+ 
+ install: aescrypt
+       install -o root -g root -m 755 aescrypt /usr/bin

Reply via email to