Summary: | app-admin/rsyslog with dev-libs/json-c-0.11 - configure: error: Package requirements (json) were not met: No package 'json' found | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Deutschmann (RETIRED) <whissi> |
Component: | Current packages | Assignee: | Ultrabug <ultrabug> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | che, jlec, maggu2810 |
Priority: | Normal | Keywords: | PATCH, UPSTREAM |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://bugzilla.adiscon.com/show_bug.cgi?id=438 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 467644 | ||
Attachments: |
Rename json to json-c in configure.ac
Check for json-c if json was not found New ebuild to use the new patch |
Description
Thomas Deutschmann (RETIRED)
2013-04-26 11:58:11 UTC
Created attachment 346638 [details, diff] Rename json to json-c in configure.ac That is the problem: > The pkgconfig name has also changed from json to json-c. (form https://github.com/json-c/json-c/blob/master/ChangeLog) This patch will replace PKG_CHECK_MODULES([JSON_C], [json]) with PKG_CHECK_MODULES([JSON_C], [json-c]) in configure.ac within src_prepare() in the ebuild so that rsyslog is able to build again with the new json-c. (With that patch alone, the ebuild would start to fail against older json-c versions.) Created attachment 346664 [details, diff] Check for json-c if json was not found You are right. The new patch will use the old json when available, if not it will use PKG_CHECK_MODULES's action-if-not-found to check for the new json-c (inspired by http://www.flameeyes.eu/autotools-mythbuster/pkgconfig/pkg_check_modules.html). Created attachment 346666 [details, diff]
New ebuild to use the new patch
This is a patch for the ebuild, to use the new added patch.
Would be nice if we could combine the existing rsyslog-7.2.5-json-c-pkgconfig.patch file with the new rsyslog-7.2.7-json-c-pkgconfig2.patch file, but I don't know how to do that. Thanks. Committed + files/rsyslog-7.2.5-json-c-pkgconfig.patch: + Detect new json-c-0.11. Patch from Thomas D. <whissi@whissi.de>. Fixes bug + #467338 + http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/rsyslog/files/rsyslog-7.2.5-json-c-pkgconfig.patch?r1=1.1&r2=1.2 Waiting for maintainers to ACK the new patch so I can send it upstream Thanks a lot everyone, I'm okay with this ofc. Thanks. Tracking upstream now I updated upstream bug with current patches. Still tracking. Comment # 3 on bug 438 from Rainer Gerhards Thanks for your continued effort. I was now able to merge the patches without any problems. They will be released as part of 7.4.4 (soon). Merged upstream, bumped version with integrated support, closing. +*rsyslog-7.4.4 (10 Sep 2013) + + 10 Sep 2013; Ultrabug <ultrabug@gentoo.org> -rsyslog-5.8.11.ebuild, + -rsyslog-5.8.12.ebuild, -rsyslog-5.10.1.ebuild, -rsyslog-6.6.0.ebuild, + +rsyslog-7.4.4.ebuild, -files/5-stable/rsyslog.confd, + -files/5-stable/rsyslog.initd, -files/5-stable/rsyslog.logrotate, + -files/5-stable/rsyslog-gentoo.conf, -files/6-stable/rsyslog.confd, + -files/6-stable/rsyslog.initd, -files/6-stable/rsyslog.logrotate, + -files/6-stable/rsyslog-gentoo.conf, -files/6-stable/rsyslog6-zeromq.patch: + Version bump, fix #467338, work on #442706 for systemd support, drop old and + unsupported versions, cleanup + |