Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 781827 - meson.eclass: provide a way to inject custom values to [binaries] section
Summary: meson.eclass: provide a way to inject custom values to [binaries] section
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-09 09:57 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-07-27 04:38 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 Sergei Trofimovich (RETIRED) gentoo-dev 2021-04-09 09:57:20 UTC
In https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e64c97da5d53b1205efeba729fc9bd10546f25e8 package discovers python3 as:

    import('python').find_installation('python3')

I did not find any generic command-line options I could override 'python3' resolution and ended up doing a sed hack:

	sed "s/py3_exe = import('python').find_installation('python3')/py3_exe = import('python').find_installation('${EPYTHON}')/" \
		-i subprojects/sdb/meson.build || die

I suspect that injecting
    [binaries]
        python3 = ${EPYTHON}
would make it Just Work.

Should meson.eclass provide a mechanism for ebuilds to do it? Or maybe there already is a way to do it already?