Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE-flag dependency seemingly being missed by Portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
molletts
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2013
Posts: 118

PostPosted: Tue Aug 14, 2018 11:55 am    Post subject: USE-flag dependency seemingly being missed by Portage Reply with quote

Hi,

I've noticed when updating mesa to 18.2.0_rc2 that emerge seems not to notice that, if the lm_sensors useflag is turned on and mesa is being compiled as multilib with abi_x86_32, lm_sensors also needs to be multilib.

Looking at mesa's ebuild reveals that the dependency is listed:
Code:
RDEPEND="
...
      lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
...
"

but emerge is not advising me of the required useflag change for lm_sensors - it simply ploughs ahead and attempts to build mesa, which fails with missing libsensors when it gets to the 32-bit part of the build process.

Manually adding the abi_x86_32 useflag for lm_sensors and rebuilding it allows mesa to build successfully, but should this requirement not be flagged up by emerge?

Stephen
Back to top
View user's profile Send private message
oreo
n00b
n00b


Joined: 14 Aug 2018
Posts: 31

PostPosted: Wed Aug 15, 2018 8:36 am    Post subject: Reply with quote

https://devmanual.gentoo.org/eclass-reference/ebuild/index.html

As stated in the above like under "Variables", RDEPEND is for runtime dependencies, meaning programs or libraries that are required to actually run the package. DEPEND is for build dependencies which are required to actually build the package. Pretty strait forward. Portage should install anything required in the RDEPEND field, so I am clueless as to why that is happening, but the build should not fail because of a missed RDEPEND. (That is of course assuming the sanity of the ebuild.) Try moving the dependency to the DEPEND field and see if that fixes it.

Hope this helps!
_________________
"One does not simply, install gentoo."
Back to top
View user's profile Send private message
molletts
Tux's lil' helper
Tux's lil' helper


Joined: 16 Feb 2013
Posts: 118

PostPosted: Wed Aug 15, 2018 9:46 am    Post subject: Reply with quote

The runtime dependencies are all pulled into the list later in the ebuild (line 214):
Code:
DEPEND="${RDEPEND}
...
"


I checked that first but forgot to mention it.

So it should just work, in theory...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum