Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586240 - media-libs/mesa: Invalid use of := inside || ()
Summary: media-libs/mesa: Invalid use of := inside || ()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 586238
  Show dependency tree
 
Reported: 2016-06-17 21:14 UTC by Michał Górny
Modified: 2016-06-18 18:10 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-17 21:14:05 UTC
llvm? ( !kernel_FreeBSD? (                                                   
        video_cards_radeonsi? ( || (                                             
            >=dev-libs/elfutils-0.155-r1:=[${MULTILIB_USEDEP}]                   
            >=dev-libs/libelf-0.8.13-r2:=[${MULTILIB_USEDEP}]                    
            ) ) ...


This is invalid because:

1. := are forbidden in || () as meaningless and ill-implemented (they trigger a lot of random misbehavior in Portage),

2. || () means the packages listed inside can be switched without rebuilding, while elfutils & libelf have incompatible ABIs.

Potential solutions:

a. USE flag to control switching between the two,

b. a subslotted pseudo-virtual (i.e. virtual/libelf:= where subslot 0/0 installs libelf and 0/1 installs elfutils),

c. just supporting one of the two.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-18 16:39:35 UTC
I've just talked to blueness and he agrees on adding a virtual for libelf.so. I will fix it after adding it.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-06-18 18:10:50 UTC
commit 7f40b6c262bfe5c8b3ca608a8e8ed71f7055bdcc
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Sat Jun 18 19:46:18 2016
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Sat Jun 18 20:08:17 2016

    media-libs/mesa: Use virtual/libelf