All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: Adam Duskett <aduskett@gmail.com>, buildroot@buildroot.org
Cc: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>,
	Samuel Martin <s.martin49@gmail.com>,
	Asaf Kahlon <asafka7@gmail.com>, Julien Olivain <ju.o@free.fr>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Oli Vogt <oli.vogt.pub01@gmail.com>
Subject: Re: [Buildroot] [PATCH v2 06/11] package/python-matplotlib: bump to version 3.4.3
Date: Mon, 25 Oct 2021 21:22:27 +0200	[thread overview]
Message-ID: <df8d1e98-e975-9cea-6eca-dc1acbba9f78@mind.be> (raw)
In-Reply-To: <20211014225849.832479-7-aduskett@gmail.com>



On 15/10/2021 00:58, Adam Duskett wrote:
> - Remove upstreamed patches
> - Add BR2_PACKAGE_PYTHON_CERTIFI and BR2_PACKAGE_QHULL as dependencies
> - Add a new file: setup.cfg. This file is needed to force matplotlib to use
>    the system-provided freetype and qhull, and to disable lto.
>    The setup.cfg file is copied to the source directory before configuring.
> 
> LTO must be disabled or else compile errors such as:
> "Relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZSt3hexRSt8ios_base'
> which may bind externally can not be used when making a shared object;
> recompile with -fPIC"
> 
> Signed-off-by: Adam Duskett <aduskett@gmail.com>

[snip]
> diff --git a/package/python-matplotlib/Config.in b/package/python-matplotlib/Config.in
> index afc090856f..f38618d709 100644
> --- a/package/python-matplotlib/Config.in
> +++ b/package/python-matplotlib/Config.in
> @@ -6,6 +6,7 @@ config BR2_PACKAGE_PYTHON_MATPLOTLIB
>   	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
>   	select BR2_PACKAGE_FREETYPE # runtime
>   	select BR2_PACKAGE_LIBPNG # runtime
> +	select BR2_PACKAGE_PYTHON_CERTIFI

  Since you don't depend on it, I guess this is a runtime dependency, so I added 
that.

>   	select BR2_PACKAGE_PYTHON_CYCLER
>   	select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
>   	select BR2_PACKAGE_PYTHON_DATEUTIL # runtime
> @@ -13,6 +14,7 @@ config BR2_PACKAGE_PYTHON_MATPLOTLIB
>   	select BR2_PACKAGE_PYTHON_NUMPY # runtime
>   	select BR2_PACKAGE_PYTHON_PYPARSING # runtime
>   	select BR2_PACKAGE_PYTHON3_ZLIB # runtime
> +	select BR2_PACKAGE_QHULL
>   	select BR2_PACKAGE_ZLIB # runtime
>   	help
>   	  Matplotlib strives to produce publication quality 2D
> diff --git a/package/python-matplotlib/python-matplotlib.hash b/package/python-matplotlib/python-matplotlib.hash
> index ccb22eefa5..81e83ac0de 100644
> --- a/package/python-matplotlib/python-matplotlib.hash
> +++ b/package/python-matplotlib/python-matplotlib.hash
> @@ -1,4 +1,4 @@
>   # sha256 from https://pypi.org/project/matplotlib/#files
> -sha256	e1d33589e32f482d0a7d1957bf473d43341115d40d33f578dad44432e47df7b7  matplotlib-3.0.3.tar.gz
> +sha256	fc4f526dfdb31c9bd6b8ca06bf9fab663ca12f3ec9cdf4496fb44bc680140318  matplotlib-3.4.3.tar.gz
>   # Locally computed sha256 checksums
>   sha256	5a1a81ea301728c8bba2933da832c0cd62229daf20893a024ab3d53244468dbc  LICENSE/LICENSE
> diff --git a/package/python-matplotlib/python-matplotlib.mk b/package/python-matplotlib/python-matplotlib.mk
> index 8d00ac8a07..2f55dd5d5d 100644
> --- a/package/python-matplotlib/python-matplotlib.mk
> +++ b/package/python-matplotlib/python-matplotlib.mk
> @@ -4,17 +4,23 @@
>   #
>   ################################################################################
>   
> -PYTHON_MATPLOTLIB_VERSION = 3.0.3
> +PYTHON_MATPLOTLIB_VERSION = 3.4.3
>   PYTHON_MATPLOTLIB_SOURCE = matplotlib-$(PYTHON_MATPLOTLIB_VERSION).tar.gz
> -PYTHON_MATPLOTLIB_SITE = https://files.pythonhosted.org/packages/26/04/8b381d5b166508cc258632b225adbafec49bbe69aa9a4fa1f1b461428313
> +PYTHON_MATPLOTLIB_SITE = https://files.pythonhosted.org/packages/21/37/197e68df384ff694f78d687a49ad39f96c67b8d75718bc61503e1676b617
>   PYTHON_MATPLOTLIB_LICENSE = Python-2.0
>   PYTHON_MATPLOTLIB_LICENSE_FILES = LICENSE/LICENSE
> -PYTHON_MATPLOTLIB_DEPENDENCIES = host-pkgconf freetype host-python-numpy \
> -	libpng python-cycler
> +PYTHON_MATPLOTLIB_DEPENDENCIES = \
> +	host-pkgconf freetype host-python-numpy \
> +	libpng python-cycler host-python-certifi qhull

  I've taken the opportunity to make this one per line and sort alphabetically.

  Applied to master, thanks.

  Regards,
  Arnout

>   PYTHON_MATPLOTLIB_SETUP_TYPE = setuptools
>   
>   ifeq ($(BR2_PACKAGE_PYTHON_MATPLOTLIB_QT),y)
>   PYTHON_MATPLOTLIB_DEPENDENCIES += python-pyqt5
>   endif
>   
> +define PYTHON_MATPLOTLIB_COPY_SETUP_CFG
> +	cp $(PYTHON_MATPLOTLIB_PKGDIR)/setup.cfg $(@D)/setup.cfg
> +endef
> +PYTHON_MATPLOTLIB_PRE_CONFIGURE_HOOKS += PYTHON_MATPLOTLIB_COPY_SETUP_CFG
> +
>   $(eval $(python-package))
> diff --git a/package/python-matplotlib/setup.cfg b/package/python-matplotlib/setup.cfg
> new file mode 100644
> index 0000000000..4bda0d4376
> --- /dev/null
> +++ b/package/python-matplotlib/setup.cfg
> @@ -0,0 +1,10 @@
> +[libs]
> +# Disable LTO to prevent the following error:
> +# Relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `_ZSt3hexRSt8ios_base'
> +# which may bind externally can not be used when making a shared object;
> +# recompile with -fPIC
> +enable_lto = False
> +
> +# Freetype and qhull are provided by Buildroot
> +system_freetype = True
> +system_qhull = True
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2021-10-25 19:22 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14 22:58 [Buildroot] [PATCH v2 00/11] package/python3: bump to version 3.10 Adam Duskett
2021-10-14 22:58 ` [Buildroot] [PATCH v2 01/11] package/util-linux: bump to version 2.37.2 Adam Duskett
2021-10-16 16:51   ` Yann E. MORIN
2021-10-14 22:58 ` [Buildroot] [PATCH v2 02/11] package/python-pydantic: bump to version 1.8.2 Adam Duskett
2021-10-25 19:13   ` Arnout Vandecappelle
2021-10-14 22:58 ` [Buildroot] [PATCH v2 03/11] package/python-txtorcon: bump to version 21.1.0 Adam Duskett
2021-10-25 19:21   ` Arnout Vandecappelle
2021-10-14 22:58 ` [Buildroot] [PATCH v2 04/11] package/python-watchdog: bump to version 2.1.6 Adam Duskett
2021-10-25 19:14   ` Arnout Vandecappelle
2021-10-14 22:58 ` [Buildroot] [PATCH v2 05/11] package/python-certifi: add host variant Adam Duskett
2021-10-25 19:21   ` Arnout Vandecappelle
2021-10-14 22:58 ` [Buildroot] [PATCH v2 06/11] package/python-matplotlib: bump to version 3.4.3 Adam Duskett
2021-10-25 19:22   ` Arnout Vandecappelle [this message]
2021-10-14 22:58 ` [Buildroot] [PATCH v2 07/11] package/python-numpy: bump to version 1.21.2 Adam Duskett
2021-12-29 23:07   ` Thomas Petazzoni
2021-10-14 22:58 ` [Buildroot] [PATCH v2 08/11] package/python-pyalsa: add 0001-fix-pytuple-set-item-usage-no-return-value.patch Adam Duskett
2021-12-29 23:13   ` Thomas Petazzoni
2021-10-14 22:58 ` [Buildroot] [PATCH v2 09/11] package/python-django-enumfields: bump to version Adam Duskett
2021-12-29 23:14   ` Thomas Petazzoni
2021-10-14 22:58 ` [Buildroot] [PATCH v2 10/11] package/python-setuptools: bump to version 58.2.0 and split python2 version Adam Duskett
2021-10-25 19:22   ` Arnout Vandecappelle
2021-10-14 22:58 ` [Buildroot] [PATCH v2 11/11] package/python3: bump to version 3.10 Adam Duskett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=df8d1e98-e975-9cea-6eca-dc1acbba9f78@mind.be \
    --to=arnout@mind.be \
    --cc=aduskett@gmail.com \
    --cc=asafka7@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=ju.o@free.fr \
    --cc=jugurtha.belkalem@smile.fr \
    --cc=oli.vogt.pub01@gmail.com \
    --cc=s.martin49@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.