NetBSD Problem Report #54712

From gson@gson.org  Sat Nov 23 08:39:51 2019
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 700D37A1B2
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 23 Nov 2019 08:39:51 +0000 (UTC)
Message-Id: <20191123083946.B169D253F37@guava.gson.org>
Date: Sat, 23 Nov 2019 10:39:46 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: graphics/py-matplotlib is broken
X-Send-Pr-Version: 3.95

>Number:         54712
>Category:       pkg
>Synopsis:       graphics/py-matplotlib is broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 23 08:40:00 +0000 2019
>Closed-Date:    Thu Dec 12 15:41:43 +0000 2019
>Last-Modified:  Thu Dec 12 15:41:43 +0000 2019
>Originator:     Andreas Gustafsson
>Release:        pkgsrc-current as of 2019-11-23
>Organization:

>Environment:
System: NetBSD 9.0_BETA
Architecture: x86_64
Machine: amd64
>Description:

After upgrading my NetBSD testbed host running 9.0_BETA/amd64 to
the current pkgsrc trunk, importing matplotlib.dates from
graphics/py-matplotlib fails with an undefined symbol:

  $ python3.7 -c 'import matplotlib.dates'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/pkg/lib/python3.7/site-packages/matplotlib/dates.py", line 159, in <module>
      import matplotlib.ticker as ticker
    File "/usr/pkg/lib/python3.7/site-packages/matplotlib/ticker.py", line 174, in <module>
      from matplotlib import transforms as mtransforms
    File "/usr/pkg/lib/python3.7/site-packages/matplotlib/transforms.py", line 43, in <module>
      from matplotlib._path import (
  ImportError: /usr/pkg/lib/python3.7/site-packages/matplotlib/_path.so: Undefined symbol "MPL_matplotlib_ft2font_ARRAY_API" (symnum = 140)

To rule out any local issue, I reproduced the problem using a freshly
installed NetBSD-current and equally freshly installed pkgsrc-current,
and it also failed, but with a different undefined symbol:

  $ python3.7 -c 'import matplotlib.dates'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/pkg/lib/python3.7/site-packages/matplotlib/dates.py", line 159, in <module>
      import matplotlib.ticker as ticker
    File "/usr/pkg/lib/python3.7/site-packages/matplotlib/ticker.py", line 174, in <module>
      from matplotlib import transforms as mtransforms
    File "/usr/pkg/lib/python3.7/site-packages/matplotlib/transforms.py", line 43, in <module>
      from matplotlib._path import (
  ImportError: /usr/pkg/lib/python3.7/site-packages/matplotlib/_path.so: Undefined symbol "MPL_matplotlib_backends__tkagg_ARRAY_API" (symnum = 27)

This issue is blocking me from generating further test reports
such as those at http://www.gson.org/netbsd/bugs/build/amd64-baremetal/.

>How-To-Repeat:

cd /usr/pkgsrc/graphics/py-matplotlib
make install
python3.7 -c 'import matplotlib.dates'

>Fix:

>Release-Note:

>Audit-Trail:
From: Andreas Gustafsson <gson@gson.org>
To: adam@NetBSD.org
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/54712: graphics/py-matplotlib is broken
Date: Sat, 30 Nov 2019 11:51:48 +0200

 Hi adam,

 I ran a bisection to find the commit that caused pkg/54712, and it
 identified these commits:

   2019.11.09.21.51.15 adam pkgsrc/devel/py-cython/Makefile 1.61
   2019.11.09.21.51.15 adam pkgsrc/devel/py-cython/PLIST 1.25
   2019.11.09.21.51.15 adam pkgsrc/devel/py-cython/distinfo 1.53
   2019.11.09.21.51.47 adam pkgsrc/doc/CHANGES-2019 1.4842

 Note that this is a build-time issue - the factor that determines
 whether importing matplotlib.dates works is not the version of
 py-cython installed at the time of the import attempt, but the version
 of py-cython installed at the time when the py-numpy and py-matplotlib
 packages are built.
 -- 
 Andreas Gustafsson, gson@gson.org

From: "Adam Ciarcinski" <adam@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/54712 CVS commit: pkgsrc/devel/py-cython
Date: Wed, 11 Dec 2019 20:20:23 +0000

 Module Name:	pkgsrc
 Committed By:	adam
 Date:		Wed Dec 11 20:20:23 UTC 2019

 Modified Files:
 	pkgsrc/devel/py-cython: Makefile distinfo
 Added Files:
 	pkgsrc/devel/py-cython/patches:
 	    patch-Cython_Distutils_old__build__ext.py

 Log Message:
 Fix PR 54712; bump revision


 To generate a diff of this commit:
 cvs rdiff -u -r1.61 -r1.62 pkgsrc/devel/py-cython/Makefile
 cvs rdiff -u -r1.53 -r1.54 pkgsrc/devel/py-cython/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/devel/py-cython/patches/patch-Cython_Distutils_old__build__ext.py

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: adam@NetBSD.org
State-Changed-When: Wed, 11 Dec 2019 20:37:16 +0000
State-Changed-Why:
Please, confirm it works now.


State-Changed-From-To: feedback->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Thu, 12 Dec 2019 15:41:43 +0000
State-Changed-Why:
Confirmed fixed - thanks you!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.45 2018/12/21 14:23:33 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.