Message ID | 20241126175112.2019940-1-danismostlikely@gmail.com |
---|---|
State | New |
Headers | show |
Series | [v3] python3: package tkinter's shared objects | expand |
The removal of d.setVar should be in a separate commit, with its own explanation. Alex On Tue, 26 Nov 2024 at 18:51, Dan McGregor via lists.openembedded.org <danismostlikely=gmail.com@lists.openembedded.org> wrote: > > From: Dan McGregor <dan.mcgregor@usask.ca> > > Seems every time python is updated this gets removed. That's likely > because the tk option can't be enabled in python3-native without > creating a dependency loop. > > Instead of manually editing the manifest every time, explicitly > add it in the recipe as suggested by Alexander Kanavin. > > Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> > --- > meta/recipes-devtools/python/python3_3.13.0.bb | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/recipes-devtools/python/python3_3.13.0.bb b/meta/recipes-devtools/python/python3_3.13.0.bb > index 8db5b813738..a393b5e4a07 100644 > --- a/meta/recipes-devtools/python/python3_3.13.0.bb > +++ b/meta/recipes-devtools/python/python3_3.13.0.bb > @@ -360,7 +360,6 @@ python(){ > newpackages.append(pypackage) > > # "Build" python's manifest FILES, RDEPENDS and SUMMARY > - d.setVar('FILES:' + pypackage, '') > for value in python_manifest[key]['files']: > d.appendVar('FILES:' + pypackage, ' ' + value) > > @@ -428,6 +427,7 @@ RPROVIDES:${PN}-modules = "${PN}" > > FILES:${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3" > FILES:${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}" > +FILES:${PN}-tkinter += "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_tkinter.*.so" > > # provide python-pyvenv from python3-venv > RPROVIDES:${PN}-venv += "${MLPREFIX}python3-pyvenv" > -- > 2.47.0 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#207875): https://lists.openembedded.org/g/openembedded-core/message/207875 > Mute This Topic: https://lists.openembedded.org/mt/109793661/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta/recipes-devtools/python/python3_3.13.0.bb b/meta/recipes-devtools/python/python3_3.13.0.bb index 8db5b813738..a393b5e4a07 100644 --- a/meta/recipes-devtools/python/python3_3.13.0.bb +++ b/meta/recipes-devtools/python/python3_3.13.0.bb @@ -360,7 +360,6 @@ python(){ newpackages.append(pypackage) # "Build" python's manifest FILES, RDEPENDS and SUMMARY - d.setVar('FILES:' + pypackage, '') for value in python_manifest[key]['files']: d.appendVar('FILES:' + pypackage, ' ' + value) @@ -428,6 +427,7 @@ RPROVIDES:${PN}-modules = "${PN}" FILES:${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3" FILES:${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}" +FILES:${PN}-tkinter += "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/_tkinter.*.so" # provide python-pyvenv from python3-venv RPROVIDES:${PN}-venv += "${MLPREFIX}python3-pyvenv"