Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689128 - sys-apps/portage: optimize away unnecessary config.setcpv logic related to IUSE for "depend" phase
Summary: sys-apps/portage: optimize away unnecessary config.setcpv logic related to IU...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 835380
  Show dependency tree
 
Reported: 2019-07-02 01:53 UTC by Zac Medico
Modified: 2023-05-20 05:12 UTC (History)
2 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 Zac Medico gentoo-dev 2019-07-02 01:53:23 UTC
For example, the config.setcpv method currently exports the ____in_portage_iuse even for the "depend" phase, when the IUSE value is not yet known (which suppresses the "export: ___in_portage_iuse: not a function" messages that eix-update triggers as shown in bug 680810 comment 7).
Comment 1 Marcin Woźniak 2019-07-03 06:12:18 UTC
I have the same problem in the lastest version of portage
Comment 2 Marcin Woźniak 2019-07-03 06:12:35 UTC
     Reading category 137|175 ( 78): sci-mathematics.../usr/lib/portage/python3.6/ebuild.sh: line 11: export: ___in_portage_iuse: not a function
/usr/lib/portage/python3.6/ebuild.sh: line 11: export: ___in_portage_iuse: not a function
/usr/lib/portage/python3.6/ebuild.sh: line 11: export: ___in_portage_iuse: not a function
/usr/lib/portage/python3.6/ebuild.sh: line 11: export:
Comment 3 Larry the Git Cow gentoo-dev 2019-07-03 21:27:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=f4aa49bc1ba210a1257ae6291a60d0944c32691d

commit f4aa49bc1ba210a1257ae6291a60d0944c32691d
Author:     Zac Medico <zachary.medico@sony.com>
AuthorDate: 2019-07-03 21:20:00 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-07-03 21:26:25 +0000

    ebuild.sh: suppress export error messages for eix-update
    
    Suppress export error messages like this for eix-update:
    
    /usr/lib/portage/python3.6/ebuild.sh: line 11: export: ___in_portage_iuse: not a function
    
    Fixes: 7f1aac111320 ("ebuild.sh: unexport ___in_portage_iuse function (bug 680810)")
    Bug: https://bugs.gentoo.org/680810
    Bug: https://bugs.gentoo.org/689128
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 bin/ebuild.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2019-07-03 21:49:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb6dd4afe2540de3ae7de4b6d7ffdd776b14712b

commit fb6dd4afe2540de3ae7de4b6d7ffdd776b14712b
Author:     Zac Medico <zachary.medico@sony.com>
AuthorDate: 2019-07-03 21:40:27 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-07-03 21:49:28 +0000

    sys-apps/portage: revbump to 2.3.68-r1
    
    Suppress export error messages like this for eix-update:
    
    /usr/lib/portage/python3.6/ebuild.sh: line 11: export: ___in_portage_iuse: not a function
    
    Bug: https://bugs.gentoo.org/680810#c10
    Bug: https://bugs.gentoo.org/689128#c3
    Package-Manager: Portage-2.3.68, Repoman-2.3.16
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/{portage-2.3.68.ebuild => portage-2.3.68-r1.ebuild} | 4 ++++
 1 file changed, 4 insertions(+)
Comment 5 Marcin Woźniak 2019-07-04 17:41:41 UTC
Yeah in the version 2.3.68-r1 it works again ;)