public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/syslog-ng/, app-admin/syslog-ng/files/patches/
Date: Wed, 20 Dec 2017 20:44:15 +0000 (UTC)	[thread overview]
Message-ID: <1513802644.d03a886fc569f7025ff7d97b7975c5af817ad963.whissi@gentoo> (raw)

commit:     d03a886fc569f7025ff7d97b7975c5af817ad963
Author:     Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Tue Dec 19 15:30:41 2017 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Dec 20 20:44:04 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d03a886f

app-admin/syslog-ng: fix building with dev-libs/json-c-0.13

Closes: https://bugs.gentoo.org/641688
Package-Manager: Portage-2.3.18, Repoman-2.3.6

 .../patches/syslog-ng-3.12.1-json-c-0.13+.patch    | 33 ++++++++++++++++++++++
 ...ng-3.12.1-r1.ebuild => syslog-ng-3.12.1.ebuild} |  7 ++++-
 ...ng-3.13.2-r1.ebuild => syslog-ng-3.13.2.ebuild} |  7 ++++-
 3 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/app-admin/syslog-ng/files/patches/syslog-ng-3.12.1-json-c-0.13+.patch b/app-admin/syslog-ng/files/patches/syslog-ng-3.12.1-json-c-0.13+.patch
new file mode 100644
index 00000000000..3703bec22ba
--- /dev/null
+++ b/app-admin/syslog-ng/files/patches/syslog-ng-3.12.1-json-c-0.13+.patch
@@ -0,0 +1,33 @@
+From 1b824dd6389e209eab752d5a698c6093f311e3e3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
+Date: Mon, 11 Dec 2017 15:46:06 +0100
+Subject: [PATCH] modules/json: Adaptions for json-c v0.13
+
+---
+ modules/json/json-parser.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/modules/json/json-parser.c b/modules/json/json-parser.c
+index 0368ed8f7..356df48b9 100644
+--- a/modules/json/json-parser.c
++++ b/modules/json/json-parser.c
+@@ -20,6 +20,8 @@
+  * COPYING for details.
+  */
+ 
++#define JSON_C_VER_013 (13 << 8)
++
+ #include "json-parser.h"
+ #include "dot-notation.h"
+ #include "scratch-buffers.h"
+@@ -28,7 +30,10 @@
+ #include <ctype.h>
+ 
+ #include <json.h>
++
++#if (!defined(JSON_C_VERSION_NUM)) || (JSON_C_VERSION_NUM < JSON_C_VER_013)
+ #include <json_object_private.h>
++#endif
+ 
+ typedef struct _JSONParser
+ {

diff --git a/app-admin/syslog-ng/syslog-ng-3.12.1-r1.ebuild b/app-admin/syslog-ng/syslog-ng-3.12.1.ebuild
similarity index 98%
rename from app-admin/syslog-ng/syslog-ng-3.12.1-r1.ebuild
rename to app-admin/syslog-ng/syslog-ng-3.12.1.ebuild
index 55136f58ec4..b608df78696 100644
--- a/app-admin/syslog-ng/syslog-ng-3.12.1-r1.ebuild
+++ b/app-admin/syslog-ng/syslog-ng-3.12.1.ebuild
@@ -43,6 +43,10 @@ DEPEND="${RDEPEND}
 	sys-devel/flex
 	virtual/pkgconfig"
 
+PATCHES=(
+	"${FILESDIR}"/patches/${PN}-3.12.1-json-c-0.13+.patch
+)
+
 S=${WORKDIR}/${PN}-${MY_PV}
 
 pkg_setup() {
@@ -59,7 +63,6 @@ src_prepare() {
 
 	if use !json ; then
 		sed -i -e '/cim/d' scl/Makefile.am || die
-		eautoreconf
 	fi
 
 	for f in "${FILESDIR}"/*logrotate*.in ; do
@@ -73,6 +76,8 @@ src_prepare() {
 	done
 
 	default
+
+	eautoreconf
 }
 
 src_configure() {

diff --git a/app-admin/syslog-ng/syslog-ng-3.13.2-r1.ebuild b/app-admin/syslog-ng/syslog-ng-3.13.2.ebuild
similarity index 98%
rename from app-admin/syslog-ng/syslog-ng-3.13.2-r1.ebuild
rename to app-admin/syslog-ng/syslog-ng-3.13.2.ebuild
index 2f5ba1e3a39..ddb99e5c2c8 100644
--- a/app-admin/syslog-ng/syslog-ng-3.13.2-r1.ebuild
+++ b/app-admin/syslog-ng/syslog-ng-3.13.2.ebuild
@@ -43,6 +43,10 @@ DEPEND="${RDEPEND}
 	sys-devel/flex
 	virtual/pkgconfig"
 
+PATCHES=(
+	"${FILESDIR}"/patches/${PN}-3.12.1-json-c-0.13+.patch
+)
+
 S=${WORKDIR}/${PN}-${MY_PV}
 
 pkg_setup() {
@@ -60,7 +64,6 @@ src_prepare() {
 	# drop scl modules requiring json
 	if use !json; then
 		sed -i -r '/cim|ewmm|graylog2/d' scl/Makefile.am || die
-		eautoreconf
 	fi
 
 	# use gentoo default path
@@ -80,6 +83,8 @@ src_prepare() {
 	done
 
 	default
+
+	eautoreconf
 }
 
 src_configure() {


             reply	other threads:[~2017-12-20 20:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-20 20:44 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-04-05 15:30 [gentoo-commits] repo/gentoo:master commit in: app-admin/syslog-ng/, app-admin/syslog-ng/files/patches/ Patrice Clement
2019-09-20 16:18 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1513802644.d03a886fc569f7025ff7d97b7975c5af817ad963.whissi@gentoo \
    --to=whissi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox