Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643568 - sys-cluster/keepalived-1.4.0 fails to build: configure: error: unable to find json-c/json.h
Summary: sys-cluster/keepalived-1.4.0 fails to build: configure: error: unable to find...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-05 15:42 UTC by Tomáš Mózes
Modified: 2018-01-05 18:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2018-01-05 15:42:29 UTC
Without dev-libs/json-c it fails to build. For example I don't need it, so can we please make it optional?

--- /usr/portage/sys-cluster/keepalived/keepalived-1.4.0.ebuild 2018-01-05 15:39:21.000000000 +0100
+++ keepalived-1.4.0-r1.ebuild  2018-01-05 16:37:33.066481023 +0100
@@ -12,7 +12,7 @@
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="dbus debug ipv6 snmp"
+IUSE="dbus debug ipv6 json snmp"
 
 RDEPEND="dev-libs/libnl:=
        dev-libs/openssl:=
@@ -20,6 +20,7 @@
        net-libs/libnfnetlink
        sys-apps/iproute2
        dbus? ( sys-apps/dbus )
+       json? ( dev-libs/json-c:= )
        snmp? ( net-analyzer/net-snmp )"
 DEPEND="${RDEPEND}
        >=sys-kernel/linux-headers-4.4"
@@ -36,12 +37,12 @@
        STRIP=/bin/true \
        econf \
                --with-kernel-dir=/usr \
-               --enable-json \
                --enable-sha1 \
                --enable-vrrp \
                $(use_enable dbus) \
                $(use_enable dbus dbus-create-instance) \
                $(use_enable debug) \
+               $(use_enable json) \
                $(use_enable snmp)
 }
Comment 1 Ultrabug gentoo-dev 2018-01-05 16:40:48 UTC
Fixed, added json USE flag (off by default), my apologizes mate
Comment 2 Tomáš Mózes 2018-01-05 16:52:04 UTC
Thank you :)
Comment 3 Tomáš Mózes 2018-01-05 16:53:51 UTC
We should rebuild keepalived when json-c changes slot (as was the case with 0.13 version bump).
Comment 4 Ultrabug gentoo-dev 2018-01-05 18:00:36 UTC
You're right and my multitasking is bad, thanks for bearing with me, ebuild updated
Comment 5 Tomáš Mózes 2018-01-05 18:32:32 UTC
Thanks,looks good,deployed on a pair of servers.