Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/bitlbee/files/, net-im/bitlbee/
Date: Tue, 23 Aug 2022 05:11:28
Message-Id: 1661230279.54bb9f516d5608cbf3bb445af98fa8876ce938e9.sam@gentoo
1 commit: 54bb9f516d5608cbf3bb445af98fa8876ce938e9
2 Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz>
3 AuthorDate: Mon Aug 22 14:52:33 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 04:51:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54bb9f51
7
8 net-im/bitlbee: remove system-json-parser patch from live
9
10 This feature is now integrated in upstream.
11
12 Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
13 Closes: https://github.com/gentoo/gentoo/pull/26925
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 net-im/bitlbee/bitlbee-9999.ebuild | 3 +-
17 .../files/bitlbee-9999-system-json-parser.patch | 99 ----------------------
18 2 files changed, 1 insertion(+), 101 deletions(-)
19
20 diff --git a/net-im/bitlbee/bitlbee-9999.ebuild b/net-im/bitlbee/bitlbee-9999.ebuild
21 index 8d4f88ddc3d1..079feaea767b 100644
22 --- a/net-im/bitlbee/bitlbee-9999.ebuild
23 +++ b/net-im/bitlbee/bitlbee-9999.ebuild
24 @@ -62,7 +62,6 @@ BDEPEND="${PYTHON_DEPS}
25
26 PATCHES=(
27 "${FILESDIR}/${PN}-3.5-systemd-user.patch"
28 - "${FILESDIR}/${P}-system-json-parser.patch"
29 )
30
31 src_configure() {
32 @@ -115,7 +114,7 @@ src_configure() {
33 --libdir=/usr/$(get_libdir) \
34 --pcdir=/usr/$(get_libdir)/pkgconfig \
35 --plugindir=/usr/$(get_libdir)/bitlbee \
36 - --externaljsonparser=1 \
37 + --external_json_parser=1 \
38 --systemdsystemunitdir=$(systemd_get_systemunitdir) \
39 --doc=1 \
40 --strip=0 \
41
42 diff --git a/net-im/bitlbee/files/bitlbee-9999-system-json-parser.patch b/net-im/bitlbee/files/bitlbee-9999-system-json-parser.patch
43 deleted file mode 100644
44 index d0020307cfa3..000000000000
45 --- a/net-im/bitlbee/files/bitlbee-9999-system-json-parser.patch
46 +++ /dev/null
47 @@ -1,99 +0,0 @@
48 -This is adapted patch from upstream PR 151. Original PR defines
49 ---external-json-parser which breaks configuration, see [1]. It was changed to
50 ---externaljsonparser and $external_json_parser to $externaljsonparser.
51 -Additionally, LDFLAGS_CHECK variable was introduced in order to make
52 -tests working, see [2] and #865667.
53 -
54 -[1] https://github.com/bitlbee/bitlbee/pull/151#issuecomment-1201181905
55 -[2] https://github.com/bitlbee/bitlbee/pull/151#issuecomment-1219254239
56 -
57 -Upstream-PR: https://github.com/bitlbee/bitlbee/pull/151
58 -
59 -diff --git a/configure b/configure
60 -index 2291e9a4..3ba40933 100755
61 ---- a/configure
62 -+++ b/configure
63 -@@ -47,6 +47,7 @@ plugins=1
64 - otr=0
65 -
66 - events=glib
67 -+externaljsonparser=auto
68 - ssl=auto
69 -
70 - pam=0
71 -@@ -154,6 +155,7 @@ Option Description Default
72 - --events=... Event handler (glib, libevent) $events
73 - --ssl=... SSL library to use (gnutls, nss, openssl, auto)
74 - $ssl
75 -+--externaljsonparser=0/1/auto Use External JSON parser $externaljsonparser
76 -
77 -
78 - --target=... Cross compilation target same as host
79 -@@ -404,6 +406,21 @@ else
80 - fi
81 - echo 'EVENT_HANDLER=events_'$events'.o' >> Makefile.settings
82 -
83 -+if [ "$externaljsonparser" = "auto" ]; then
84 -+ if pkg-config --exists json-parser; then
85 -+ externaljsonparser=1
86 -+ else
87 -+ externaljsonparser=0
88 -+ fi
89 -+fi
90 -+echo "EXTERNAL_JSON_PARSER=$externaljsonparser" >> Makefile.settings
91 -+if [ "$externaljsonparser" = "1" ]; then
92 -+ echo "CFLAGS+=$(pkg-config --cflags json-parser)" >> Makefile.settings
93 -+ echo "LDFLAGS_BITLBEE+=$(pkg-config --libs json-parser)" >> Makefile.settings
94 -+ echo "LDFLAGS_CHECK+=$(pkg-config --libs json-parser)" >> Makefile.settings
95 -+fi
96 -+
97 -+
98 - detect_gnutls()
99 - {
100 - if $PKG_CONFIG --exists gnutls; then
101 -@@ -993,6 +1010,12 @@ else
102 - echo ' systemd disabled.'
103 - fi
104 -
105 -+if [ "$externaljsonparser" = "1" ]; then
106 -+ echo ' Using system JSON parser.'
107 -+else
108 -+ echo ' Using bundled JSON parser.'
109 -+fi
110 -+
111 - echo ' Using python: '$PYTHON
112 - echo ' Using event handler: '$events
113 - echo ' Using SSL library: '$ssl
114 -diff --git a/lib/Makefile b/lib/Makefile
115 -index fc46aedc..ad95d9cb 100644
116 ---- a/lib/Makefile
117 -+++ b/lib/Makefile
118 -@@ -12,7 +12,11 @@ _SRCDIR_ := $(_SRCDIR_)lib/
119 - endif
120 -
121 - # [SH] Program variables
122 --objects = arc.o base64.o canohost.o $(EVENT_HANDLER) ftutil.o http_client.o ini.o json.o json_util.o md5.o misc.o oauth.o oauth2.o proxy.o sha1.o $(SSL_CLIENT) url.o xmltree.o ns_parse.o
123 -+objects = arc.o base64.o canohost.o $(EVENT_HANDLER) ftutil.o http_client.o ini.o json_util.o md5.o misc.o oauth.o oauth2.o proxy.o sha1.o $(SSL_CLIENT) url.o xmltree.o ns_parse.o
124 -+
125 -+ifneq ($(EXTERNAL_JSON_PARSER),1)
126 -+objects += json.o
127 -+endif
128 -
129 - LFLAGS += -r
130 -
131 -diff --git a/tests/Makefile b/tests/Makefile
132 -index 76122a2f..2235bf1d 100644
133 ---- a/tests/Makefile
134 -+++ b/tests/Makefile
135 -@@ -20,7 +20,7 @@ test_objs = check.o check_util.o check_nick.o check_md5.o check_arc.o check_irc.
136 -
137 - check: $(test_objs) $(addprefix ../, $(main_objs)) ../protocols/protocols.o ../lib/lib.o
138 - @echo '*' Linking $@
139 -- $(VERBOSE) $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(EFLAGS)
140 -+ $(VERBOSE) $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) $(LDFLAGS_CHECK) $(EFLAGS)
141 -
142 - %.o: $(_SRCDIR_)%.c
143 - @echo '*' Compiling $<
144 ---
145 -2.35.1
146 -