Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586310 - app-i18n/poedit: invalid use of || ( db-5*:= ... )
Summary: app-i18n/poedit: invalid use of || ( db-5*:= ... )
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 563966 586238
  Show dependency tree
 
Reported: 2016-06-18 18:44 UTC by Michał Górny
Modified: 2016-06-21 20:02 UTC (History)
3 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:44:22 UTC
||  (
        =sys-libs/db-5*:=[cxx]
        =sys-libs/db-4*:=[cxx]
        )

I can see your point but := can't be used in || (). Sadly, I don't see any sane solution to enforce this constraint with the slotted db mess.

Possibilities:

1. drop := and live with lack of rebuilds,

2. use <sys-libs/db-6:= and hope nobody actually has db-1*/3* installed still.

I guess you could also try something crazy along the lines of:

  || ( sys-libs/db-5* sys-libs/db-4* )
  <sys-libs/db-6:=

i.e. state both constraints separately. In this case, I think explicitly pulling in 4-or-5 will cause <db-6:= to use one of them.

@pms-bugs, could you confirm this?

@base-system, is there any reason to keep the ancient db versions around?
Comment 1 Ulrich Müller gentoo-dev 2016-06-18 19:06:38 UTC
(In reply to Michał Górny from comment #0)
> I can see your point but := can't be used in || (). Sadly, I don't see any
> sane solution [...]

Ack. We have to wait for ||= for a sane wait to express such dependencies (see bug 489458).

>   || ( sys-libs/db-5* sys-libs/db-4* )
>   <sys-libs/db-6:=

I would say, go for this one as a stopgap solution.
Comment 2 Ulrich Müller gentoo-dev 2016-06-18 19:07:26 UTC
(In reply to Ulrich Müller from comment #1)
> We have to wait for ||= for a sane wait to express such dependencies

for a sane *way*
Comment 3 Ciaran McCreesh 2016-06-18 19:13:51 UTC
Is there any compelling reason not to just pick one slot of db and stick to it?
Comment 4 Zac Medico gentoo-dev 2016-06-18 19:27:03 UTC
(In reply to Ciaran McCreesh from comment #3)
> Is there any compelling reason not to just pick one slot of db and stick to
> it?

That's a good question. It reminds me of bug 584238, where I've been encouraging the perl team to drop legacy packages from their || ( new legacy ) style dependencies. We can do this as a revision bump with unstable keywords, leaving an older revision with stable keywords, for those users that still need db-4*.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-06-18 19:42:33 UTC
(In reply to Michał Górny from comment #0)
> @base-system, is there any reason to keep the ancient db versions around?
Yes, so that applications that only use the old interface can keep working, and that newer versions can't always open old databases.

Eg #1, for dev-lang/perl:
- Any version of sys-libs/db will get you the DB modules.
- Also having =sys-libs/db-1* will get you the NDBM modules.

Eg #2, for openldap:
- You required a dump & reload if you have slapd built against db-4.5 then wanted to rebuild against db-4.6.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2016-06-19 03:26:35 UTC
How long until a version of 5 goes stable?
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-21 20:02:01 UTC
commit 8258e69866fe67adb456a8d9ddc8da7bea213533
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Tue Jun 21 22:00:46 2016
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Tue Jun 21 22:01:32 2016

    app-i18n/poedit: Fix := slot op in || dep, #586310


Fixed as described, should work correctly.