All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/fetchmail: fix *.pyc compilation with python-3
@ 2016-06-08 21:06 Samuel Martin
  2016-06-08 21:22 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Martin @ 2016-06-08 21:06 UTC (permalink / raw)
  To: buildroot

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/
  ...

Signed-off-by: Samuel Martin <s.martin49@gmail.com>

---
changes v1->v2:
- remove the *.py instead of adding patches fixing it
---
 package/fetchmail/fetchmail.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/package/fetchmail/fetchmail.mk b/package/fetchmail/fetchmail.mk
index a198dc5..5cae0e2 100644
--- a/package/fetchmail/fetchmail.mk
+++ b/package/fetchmail/fetchmail.mk
@@ -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))
-- 
2.8.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v2] package/fetchmail: fix *.pyc compilation with python-3
  2016-06-08 21:06 [Buildroot] [PATCH v2] package/fetchmail: fix *.pyc compilation with python-3 Samuel Martin
@ 2016-06-08 21:22 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-06-08 21:22 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed,  8 Jun 2016 23:06:38 +0200, Samuel Martin wrote:
> 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/
>   ...
> 
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> 
> ---
> changes v1->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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-08 21:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08 21:06 [Buildroot] [PATCH v2] package/fetchmail: fix *.pyc compilation with python-3 Samuel Martin
2016-06-08 21:22 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.