View previous topic :: View next topic |
Author |
Message |
molletts Tux's lil' helper
Joined: 16 Feb 2013 Posts: 118
|
Posted: Tue Aug 14, 2018 11:55 am Post subject: USE-flag dependency seemingly being missed by Portage |
|
|
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 |
|
|
oreo n00b
Joined: 14 Aug 2018 Posts: 31
|
Posted: Wed Aug 15, 2018 8:36 am Post subject: |
|
|
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 |
|
|
molletts Tux's lil' helper
Joined: 16 Feb 2013 Posts: 118
|
Posted: Wed Aug 15, 2018 9:46 am Post subject: |
|
|
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 |
|
|
|