summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Genasci <fedeliallalinea@gmail.com>2021-07-14 11:05:03 +0200
committerJoonas Niilola <juippis@gentoo.org>2021-07-16 14:46:13 +0300
commit4cd20ef753adcbf7fae65db20d028c90b7e459bc (patch)
treef2b1afc8961d13d6119c265b135da011e4a58023 /app-crypt
parentfortran-2.eclass: support EAPI 8 (diff)
downloadgentoo-4cd20ef753adcbf7fae65db20d028c90b7e459bc.tar.gz
gentoo-4cd20ef753adcbf7fae65db20d028c90b7e459bc.tar.bz2
gentoo-4cd20ef753adcbf7fae65db20d028c90b7e459bc.zip
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@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/21633 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/aescrypt/aescrypt-3.14.ebuild5
-rw-r--r--app-crypt/aescrypt/files/aescrypt-3.14-ldflags.patch20
2 files changed, 24 insertions, 1 deletions
diff --git a/app-crypt/aescrypt/aescrypt-3.14.ebuild b/app-crypt/aescrypt/aescrypt-3.14.ebuild
index c40e124664a5..51a5d8403d18 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 000000000000..757f0e4e7fcb
--- /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