package/fetchmail: fix *.pyc compilation with python-3
PATCH v2 1/1 package/fetchmail: fix *.pyc compilation with python-3
This change removes the fetchmailconf.py python module when the python interpreter is python-3, because this module is not yet python-3 compliant.
Fixes:
http://autobuild.buildroot.org/results/700/7009445dd116a1c02db82a351d38db44db8dad16/
...
---
changes v1->v2:
- remove the *.py instead of adding patches fixing it
--- package/fetchmail/fetchmail.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)
package/fetchmail/fetchmail.mk +10 -0
@@ -23,4 +23,14 @@ FETCHMAIL_DEPENDENCIES = \ openssl \ $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) +# fetchmailconf.py script is not (yet) python3-compliant. +# Prevent the pyc-compilation with python-3 from failing by removing this +# non-critical script. +ifeq ($(BR2_PACKAGE_PYTHON3),y) +define FETCHMAIL_REMOVE_FETCHMAILCONF_PY + $(RM) -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/fetchmailconf.py +endef +FETCHMAIL_POST_TARGET_INSTALL_HOOKS += FETCHMAIL_REMOVE_FETCHMAILCONF_PY +endif + $(eval $(autotools-package))
Signature · 1 line
2.8.3
Thomas Petazzoni
AppliedPATCH v2 1/1 package/fetchmail: fix *.pyc compilation with python-3
Hello,
Quoted 8 lines · Samuel Martin
This change removes the
fetchmailconf.pypython module when the python interpreter is python-3, because this module is not yet python-3 compliant.Fixes:
http://autobuild.buildroot.org/results/700/7009445dd116a1c02db82a351d38db44db8dad16/
...
Quoted 8 lines
Signed-off-by Samuel Martin <[email protected]>---
changesv1->v2:
- remove the *.py instead of adding patches fixing it--- package/fetchmail/fetchmail.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com