public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-kernel/dracut-crypt-ssh/files/, sys-kernel/dracut-crypt-ssh/
@ 2021-04-03 12:31 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2021-04-03 12:31 UTC (permalink / raw
  To: gentoo-commits

commit:     f2db8522dc3761c94b109a5c3338b82ad02cf835
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Sat Apr  3 12:30:47 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Apr  3 12:30:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2db8522

sys-kernel/dracut-crypt-ssh: Respect CC/LDFLAGS

Closes: https://bugs.gentoo.org/726014
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild     | 11 +++++++++--
 .../files/dracut-crypt-ssh-1.0.7-ldflags.patch         | 18 ++++++++++++++++++
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild b/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild
index e244bc9a18b..78fda89d194 100644
--- a/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild
+++ b/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
+inherit toolchain-funcs
+
 DESCRIPTION="Early unlocking of encrypted systems via ssh for dracut"
 HOMEPAGE="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh"
 SRC_URI="https://github.com/dracut-crypt-ssh/dracut-crypt-ssh/archive/v${PV}.tar.gz -> ${P}.tar.gz"
@@ -23,4 +25,9 @@ RDEPEND="${DEPEND}
 	)
 	net-misc/dropbear"
 
-DOCS=("README.md")
+PATCHES=( "${FILESDIR}"/${P}-ldflags.patch )
+
+src_configure() {
+	tc-export CC
+	default
+}

diff --git a/sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-ldflags.patch b/sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-ldflags.patch
new file mode 100644
index 00000000000..5783ab2b516
--- /dev/null
+++ b/sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-ldflags.patch
@@ -0,0 +1,18 @@
+# https://bugs.gentoo.org/726014
+--- a/modules/60crypt-ssh/helper/Makefile
++++ b/modules/60crypt-ssh/helper/Makefile
+@@ -17,11 +17,11 @@ clean:
+ 	rm -f *.o console_auth unlock crypttab-test
+ 
+ console_auth:	auth.c
+-	$(CC) $(CFLAGS) $^ -o $@
++	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ -o $@
+ 
+ unlock:	crypttab.o unlock.o
+-	$(CC) $(CFLAGS) -lblkid $^ -o $@
++	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -lblkid $^ -o $@
+ 
+ crypttab-test: crypttab-test.c crypttab.o crypttab-test-data
+-	$(CC) crypttab-test.c $(CFLAGS) crypttab.o -lblkid -o crypttab-test
++	$(CC) crypttab-test.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) crypttab.o -lblkid -o crypttab-test
+ 	./crypttab-test


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-kernel/dracut-crypt-ssh/files/, sys-kernel/dracut-crypt-ssh/
@ 2021-04-14  6:26 Joonas Niilola
  0 siblings, 0 replies; 2+ messages in thread
From: Joonas Niilola @ 2021-04-14  6:26 UTC (permalink / raw
  To: gentoo-commits

commit:     69b9449877745ccd238def39c498b53f60f22c1c
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Mon Apr 12 20:02:39 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Apr 14 06:25:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69b94498

sys-kernel/dracut-crypt-ssh: Fix building with --as-needed

Closes: https://bugs.gentoo.org/781125
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Closes: https://github.com/gentoo/gentoo/pull/20355
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild              | 2 +-
 ...t-ssh-1.0.7-ldflags.patch => dracut-crypt-ssh-1.0.7-makefile.patch} | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild b/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild
index 78fda89d194..a403202d190 100644
--- a/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild
+++ b/sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild
@@ -25,7 +25,7 @@ RDEPEND="${DEPEND}
 	)
 	net-misc/dropbear"
 
-PATCHES=( "${FILESDIR}"/${P}-ldflags.patch )
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
 
 src_configure() {
 	tc-export CC

diff --git a/sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-ldflags.patch b/sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-makefile.patch
similarity index 86%
rename from sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-ldflags.patch
rename to sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-makefile.patch
index 5783ab2b516..d45bc41ed60 100644
--- a/sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-ldflags.patch
+++ b/sys-kernel/dracut-crypt-ssh/files/dracut-crypt-ssh-1.0.7-makefile.patch
@@ -1,4 +1,5 @@
 # https://bugs.gentoo.org/726014
+# https://bugs.gentoo.org/781125
 --- a/modules/60crypt-ssh/helper/Makefile
 +++ b/modules/60crypt-ssh/helper/Makefile
 @@ -17,11 +17,11 @@ clean:
@@ -10,7 +11,7 @@
  
  unlock:	crypttab.o unlock.o
 -	$(CC) $(CFLAGS) -lblkid $^ -o $@
-+	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -lblkid $^ -o $@
++	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $^ -lblkid -o $@
  
  crypttab-test: crypttab-test.c crypttab.o crypttab-test-data
 -	$(CC) crypttab-test.c $(CFLAGS) crypttab.o -lblkid -o crypttab-test


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-14  6:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-03 12:31 [gentoo-commits] repo/gentoo:master commit in: sys-kernel/dracut-crypt-ssh/files/, sys-kernel/dracut-crypt-ssh/ David Seifert
  -- strict thread matches above, loose matches on Subject: below --
2021-04-14  6:26 Joonas Niilola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox