1 |
commit: 85ef4a41db344646dbb93d8583a231bc2058f0d6 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 28 18:47:47 2016 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 28 18:48:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85ef4a41 |
7 |
|
8 |
app-admin/rsyslog: Restricting build depedencies for v8.16.0 |
9 |
|
10 |
While this version builds against =dev-libs/libfastjson-0.99.2 it does not |
11 |
build against >dev-libs/libfastjson-0.99.2. |
12 |
|
13 |
Additional, if you build rsyslog against dev-libs/json-c but build also against |
14 |
dev-libs/liblognorm which was build against >dev-libs/libfastjson-0.99.2 |
15 |
you will get runtime errors. |
16 |
|
17 |
To solve this problem we are restricting rsyslog-8.16.0 to build only against |
18 |
dev-libs/json-c and also restricting to =dev-libs/liblognorm-1.1.2* (last |
19 |
version which builds against dev-libs/json-c). |
20 |
|
21 |
Package-Manager: portage-2.3.0 |
22 |
|
23 |
.../50-rsyslog-8.16.0-restrict-build-deps.patch | 55 ++++++++++++++++++++++ |
24 |
app-admin/rsyslog/rsyslog-8.16.0-r1.ebuild | 3 +- |
25 |
2 files changed, 57 insertions(+), 1 deletion(-) |
26 |
|
27 |
diff --git a/app-admin/rsyslog/files/8-stable/50-rsyslog-8.16.0-restrict-build-deps.patch b/app-admin/rsyslog/files/8-stable/50-rsyslog-8.16.0-restrict-build-deps.patch |
28 |
new file mode 100644 |
29 |
index 00000000..b28fbed |
30 |
--- /dev/null |
31 |
+++ b/app-admin/rsyslog/files/8-stable/50-rsyslog-8.16.0-restrict-build-deps.patch |
32 |
@@ -0,0 +1,55 @@ |
33 |
+From ac9acbd9297cf986873e972968aca98d65377dab Mon Sep 17 00:00:00 2001 |
34 |
+From: Thomas Deutschmann |
35 |
+Date: Sun, 28 Aug 2016 20:08:58 +0200 |
36 |
+Subject: [PATCH 1/2] configure: Restrict to json-c usage |
37 |
+ |
38 |
+--- |
39 |
+ configure.ac | 6 ++---- |
40 |
+ 1 file changed, 2 insertions(+), 4 deletions(-) |
41 |
+ |
42 |
+diff --git a/configure.ac b/configure.ac |
43 |
+index 4551c46..6789ab2 100644 |
44 |
+--- a/configure.ac |
45 |
++++ b/configure.ac |
46 |
+@@ -26,10 +26,8 @@ PKG_PROG_PKG_CONFIG |
47 |
+ |
48 |
+ # modules we require |
49 |
+ PKG_CHECK_MODULES(LIBESTR, libestr >= 0.1.9) |
50 |
+-PKG_CHECK_MODULES([JSON_C], [libfastjson],, [ |
51 |
+- PKG_CHECK_MODULES([JSON_C], [json],, [ |
52 |
+- PKG_CHECK_MODULES([JSON_C], [json-c],,) |
53 |
+- ]) |
54 |
++PKG_CHECK_MODULES([JSON_C], [json],, [ |
55 |
++ PKG_CHECK_MODULES([JSON_C], [json-c],,) |
56 |
+ ]) |
57 |
+ |
58 |
+ save_CFLAGS="$CFLAGS" |
59 |
+-- |
60 |
+2.9.3 |
61 |
+ |
62 |
+ |
63 |
+From 7eed92763725244a53c50110fbe7419ba90d41a6 Mon Sep 17 00:00:00 2001 |
64 |
+From: Thomas Deutschmann |
65 |
+Date: Sun, 28 Aug 2016 20:15:32 +0200 |
66 |
+Subject: [PATCH 2/2] configure: Restrict to liblognorm-1.1.2 usage |
67 |
+ |
68 |
+--- |
69 |
+ configure.ac | 2 +- |
70 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
71 |
+ |
72 |
+diff --git a/configure.ac b/configure.ac |
73 |
+index 6789ab2..5f29106 100644 |
74 |
+--- a/configure.ac |
75 |
++++ b/configure.ac |
76 |
+@@ -927,7 +927,7 @@ AC_ARG_ENABLE(mmnormalize, |
77 |
+ [enable_mmnormalize=no] |
78 |
+ ) |
79 |
+ if test "x$enable_mmnormalize" = "xyes"; then |
80 |
+- PKG_CHECK_MODULES(LIBLOGNORM, lognorm >= 1.1.2) |
81 |
++ PKG_CHECK_MODULES(LIBLOGNORM, lognorm = 1.1.2) |
82 |
+ |
83 |
+ save_CFLAGS="$CFLAGS" |
84 |
+ save_LIBS="$LIBS" |
85 |
+-- |
86 |
+2.9.3 |
87 |
+ |
88 |
|
89 |
diff --git a/app-admin/rsyslog/rsyslog-8.16.0-r1.ebuild b/app-admin/rsyslog/rsyslog-8.16.0-r1.ebuild |
90 |
index 7716605..49f4469 100644 |
91 |
--- a/app-admin/rsyslog/rsyslog-8.16.0-r1.ebuild |
92 |
+++ b/app-admin/rsyslog/rsyslog-8.16.0-r1.ebuild |
93 |
@@ -16,6 +16,7 @@ PATCHES=( |
94 |
"${FILESDIR}"/8-stable/50-rsyslog-8.15.0-imfile-readmode2-vg-test-workaround.patch |
95 |
"${FILESDIR}"/8-stable/50-rsyslog-8.16.0-fix-queue-engine-issue-262.patch |
96 |
"${FILESDIR}"/8-stable/50-rsyslog-8.16.0-fix-leap-year-handling.patch |
97 |
+ "${FILESDIR}"/8-stable/50-rsyslog-8.16.0-restrict-build-deps.patch |
98 |
) |
99 |
|
100 |
if [[ ${PV} == "9999" ]]; then |
101 |
@@ -57,7 +58,7 @@ RDEPEND=" |
102 |
mysql? ( virtual/mysql ) |
103 |
normalize? ( |
104 |
>=dev-libs/libee-0.4.0 |
105 |
- >=dev-libs/liblognorm-1.1.2:= |
106 |
+ =dev-libs/liblognorm-1.1.2*:= |
107 |
) |
108 |
omudpspoof? ( >=net-libs/libnet-1.1.6 ) |
109 |
postgres? ( >=dev-db/postgresql-8.4.20:= ) |