Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454944 - app-admin/rsyslog-7.2.5 - fix json-c include paths
Summary: app-admin/rsyslog-7.2.5 - fix json-c include paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-02-01 04:04 UTC by Torsten Kurbad
Modified: 2013-02-12 12:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rsyslog-7.2.5.ebuild_json-c.patch (rsyslog-7.2.5.ebuild_json-c.patch,644 bytes, patch)
2013-02-01 04:05 UTC, Torsten Kurbad
Details | Diff
0001-Use-pkg-config-to-detect-json-c.patch (0001-Use-pkg-config-to-detect-json-c.patch,4.35 KB, text/x-diff)
2013-02-12 10:58 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kurbad 2013-02-01 04:04:28 UTC
app-admin/rsyslog-7.2.5 fails to build because the include path of dev-libs/json-c changed from '/usr/include/json' to '/usr/include/json-c' (cf. bug #452234).

Find attached a patch to the ebuild that fixes the problem by sed'ing the relevant source files.

Reproducible: Always
Comment 1 Torsten Kurbad 2013-02-01 04:05:40 UTC
Created attachment 337538 [details, diff]
rsyslog-7.2.5.ebuild_json-c.patch
Comment 2 walt 2013-02-04 14:11:19 UTC
I think the json-c package puts a symlink in the wrong place:

# ls -l /usr/include/json-c/json
lrwxrwxrwx 1 root root 9 Feb  2 04:28 /usr/include/json-c/json -> ../json-c

I think that symlink belongs in /usr/include instead of /usr/include/json-c

Making that change also fixes net-misc/grive, which has the same problem.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-02-12 10:24:06 UTC
Could we please get a build.log and the output of "emerge --info rsyslog" here?
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2013-02-12 10:58:37 UTC
Created attachment 338680 [details]
0001-Use-pkg-config-to-detect-json-c.patch

0001-Use-pkg-config-to-detect-json-c.patch
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2013-02-12 12:06:39 UTC
+  12 Feb 2013; Justin Lecher <jlec@gentoo.org> rsyslog-7.2.5.ebuild,
+  +files/rsyslog-7.2.5-json-c-pkgconfig.patch, metadata.xml:
+  Correct buildsystem so that json-c will be detected correctly by pkg-config,
+  #454944
+