net-misc/sslh: fix parallel build failure w/version.h usage
authorMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2015 03:47:48 +0000 (22:47 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2015 03:48:05 +0000 (22:48 -0500)
net-misc/sslh/files/sslh-1.17-version-deps.patch [new file with mode: 0644]
net-misc/sslh/sslh-1.17.ebuild

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 (file)
index 0000000..c05b87a
--- /dev/null
@@ -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:
index b6a3380c59f0a712f44309f7b9caa22bc72a09c3..8f458c22844f50b2b33bca2e9bbc5f6df121f69f 100644 (file)
@@ -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)" \