commit:     6a58b258d4077ae3f17fd08b7f867f8e308b6ada
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 15 03:47:48 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Dec 15 03:48:05 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a58b258

net-misc/sslh: fix parallel build failure w/version.h usage

 net-misc/sslh/files/sslh-1.17-version-deps.patch | 13 +++++++++++++
 net-misc/sslh/sslh-1.17.ebuild                   |  6 +++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/net-misc/sslh/files/sslh-1.17-version-deps.patch 
b/net-misc/sslh/files/sslh-1.17-version-deps.patch
new file mode 100644
index 0000000..c05b87a
--- /dev/null
+++ b/net-misc/sslh/files/sslh-1.17-version-deps.patch
@@ -0,0 +1,13 @@
+make sure the files using version.h depend on it being generated first
+
+--- a/Makefile
++++ b/Makefile
+@@ -39,7 +39,7 @@
+ 
+ all: sslh $(MAN) echosrv
+ 
+-.c.o: *.h
++.c.o: *.h version.h
+       $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
+ 
+ version.h:

diff --git a/net-misc/sslh/sslh-1.17.ebuild b/net-misc/sslh/sslh-1.17.ebuild
index b6a3380..8f458c2 100644
--- a/net-misc/sslh/sslh-1.17.ebuild
+++ b/net-misc/sslh/sslh-1.17.ebuild
@@ -5,7 +5,7 @@
 EAPI=5
 
 MY_P="${PN}-v${PV}"
-inherit toolchain-funcs
+inherit toolchain-funcs eutils
 
 DESCRIPTION="Port multiplexer - accept both HTTPS and SSH connections on the 
same port"
 HOMEPAGE="http://www.rutschle.net/tech/sslh.shtml";
@@ -25,6 +25,10 @@ RESTRICT="test"
 
 S=${WORKDIR}/${MY_P}
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-version-deps.patch
+}
+
 src_compile() {
        emake \
                CC="$(tc-getCC)" \

Reply via email to