Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586312 - dev-libs/liblognorm: invalid || ( dev-libs/json-c:= dev-libs/libfastjson:= ) dep
Summary: dev-libs/liblognorm: invalid || ( dev-libs/json-c:= dev-libs/libfastjson:= ) dep
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Deutschmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 586238
  Show dependency tree
 
Reported: 2016-06-18 18:51 UTC by Michał Górny
Modified: 2016-06-21 19:55 UTC (History)
4 users (show)

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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-18 18:51:01 UTC
|| ( >=dev-libs/json-c-0.11:= >=dev-libs/libfastjson-0.99.2:= )

Using := inside || () is disallowed and broken. Even if it weren't, the dependency would still be incorrect since the two libraries don't collide with each other and liblognorm prefers libfastjson over json-c.

Two possible solutions are:

1. Add USE flag to toggle between the two, and ensure the flag status is respected (would require some hackery),

2. Just depend on libfastjson and ignore json-c. liblognorm is only used by rsyslog and sagan, and rsyslog requires libfastjson anyway.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-21 19:55:33 UTC
commit c56db9177e78ad1abbb4a3476d552942f69eba0a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Tue Jun 21 21:53:00 2016
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Tue Jun 21 21:55:07 2016

    dev-libs/liblognorm: Fix := in || and automagic dep on fastjson, #586312