Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566522 - sys-freebsd/*: multiple packages call 'use' in global scope
Summary: sys-freebsd/*: multiple packages call 'use' in global scope
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: global-scope-use
  Show dependency tree
 
Reported: 2015-11-22 22:24 UTC by Michał Górny
Modified: 2015-12-06 19:24 UTC (History)
1 user (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 2015-11-22 22:24:35 UTC
Stuff like:

  use build && EXTRACTONLY+="include/"

is forbidden by PMS and unpredictable. In particular, some PMs will unconditionally return false here and *not* reevaluate the variable when USE is established.

I think you really need to move this setting into a phase function. I'm sorry I didn't notice this earlier.
Comment 1 Adam Feldman gentoo-dev 2015-11-23 02:47:27 UTC
Assuming that there are other instances beyond just the "use build [...]", are you able to enumerate the ebuilds in question that have issues, so we don't have to go hunting (and potentially miss some)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-11-23 07:21:12 UTC
WARNING: 'use' function invoked by sys-freebsd/freebsd-cddl-10.2 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-lib-10.2-r1 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-lib-10.2-r1 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-rescue-10.2 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-sbin-10.2 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-share-10.2 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-sources-10.2-r1 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-ubin-10.2-r1 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-ubin-10.2-r1 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-usbin-10.2-r4 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.

WARNING: 'use' function invoked by sys-freebsd/freebsd-usbin-10.2-r4 during metadata regeneration.
WARNING: Please ensure upstream is aware of it and working to remove it.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-06 19:24:11 UTC
commit 73a205d7991182e5d2e1f8135b8c1a4b7482ba4e
Author: Yuta Satoh <nigoro@gentoo.gr.jp>
Date:   Mon Nov 23 20:56:34 2015 +0900

    sys-freebsd: Move use call from global scope to pkg_setup.
    
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=566522