Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/http-parser/, net-libs/http-parser/files/
Date: Tue, 07 Mar 2017 08:08:38
Message-Id: 1488874096.ebfa98e3e9c35aea2cc51204ddbf63710a81b783.grobian@gentoo
1 commit: ebfa98e3e9c35aea2cc51204ddbf63710a81b783
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 7 08:07:34 2017 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 7 08:08:16 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebfa98e3
7
8 net-libs/http-parser: add patch to fix install_name on Darwin, bug #546098
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 .../http-parser/files/http-parser-2.6.2-darwin.patch | 16 ++++++++++++++++
13 net-libs/http-parser/http-parser-2.6.2.ebuild | 3 ++-
14 2 files changed, 18 insertions(+), 1 deletion(-)
15
16 diff --git a/net-libs/http-parser/files/http-parser-2.6.2-darwin.patch b/net-libs/http-parser/files/http-parser-2.6.2-darwin.patch
17 new file mode 100644
18 index 00000000000..b04b4a32bb0
19 --- /dev/null
20 +++ b/net-libs/http-parser/files/http-parser-2.6.2-darwin.patch
21 @@ -0,0 +1,16 @@
22 +Makefile: set install_name on Darwin
23 +
24 +https://bugs.gentoo.org/show_bug.cgi?id=546098
25 +https://github.com/nodejs/http-parser/issues/356
26 +
27 +--- http-parser-2.6.2/Makefile
28 ++++ http-parser-2.6.2/Makefile
29 +@@ -62,6 +62,8 @@
30 + ifneq (darwin,$(PLATFORM))
31 + # TODO(bnoordhuis) The native SunOS linker expects -h rather than -soname...
32 + LDFLAGS_LIB += -Wl,-soname=$(SONAME)
33 ++else
34 ++LDFLAGS_LIB += -Wl,-install_name,$(LIBDIR)/$(SONAME)
35 + endif
36 +
37 + test: test_g test_fast
38
39 diff --git a/net-libs/http-parser/http-parser-2.6.2.ebuild b/net-libs/http-parser/http-parser-2.6.2.ebuild
40 index 62d9938548b..33986a95474 100644
41 --- a/net-libs/http-parser/http-parser-2.6.2.ebuild
42 +++ b/net-libs/http-parser/http-parser-2.6.2.ebuild
43 @@ -21,6 +21,7 @@ PATCHES=(
44 "${FILESDIR}"/0003-makefile-fix-SONAME-symlink-it-should-not-be-a-full-.patch
45 "${FILESDIR}"/0004-makefile-add-CFLAGS-to-linking-command.patch
46 "${FILESDIR}"/0005-makefile-fix-install-rule-dependency.patch
47 + "${FILESDIR}"/${PN}-2.6.2-darwin.patch
48 )
49
50 src_prepare() {
51 @@ -30,7 +31,7 @@ src_prepare() {
52 }
53
54 multilib_src_compile() {
55 - emake CFLAGS_FAST="${CFLAGS}" library
56 + emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" CFLAGS_FAST="${CFLAGS}" library
57 use static-libs && emake CFLAGS_FAST="${CFLAGS}" package
58 }