From owner-freebsd-python@freebsd.org Sat Aug 13 10:38:36 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3D7DDBB7681 for ; Sat, 13 Aug 2016 10:38:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 265E31C7B for ; Sat, 13 Aug 2016 10:38:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 22502BB7680; Sat, 13 Aug 2016 10:38:36 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1FAD8BB767F for ; Sat, 13 Aug 2016 10:38:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F22161C71 for ; Sat, 13 Aug 2016 10:38:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7DAcZv8031800 for ; Sat, 13 Aug 2016 10:38:35 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 211641] graphics/py-mayavi mayavi2 runtime error Date: Sat, 13 Aug 2016 10:38:35 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch, needs-qa, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vladimir.chukharev@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2016 10:38:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211641 --- Comment #13 from vladimir.chukharev@gmail.com --- (In reply to Kubilay Kocak from comment #10) That's right, I consider setting env as a temporary workaround in a hope th= at the core problem will be solved in the compiling infrastructure relatively soon. That's why I did not put much effort into cleaning the patch (in this part). Unfortunately, the patch from bag 208120 does not solve it on my computer. Now to your comments. > * Use PYTHONPREFIX_SITELIBDIR for ${STAGEDIR}${PREFIX}/lib/python2.7/site= -packages/tvtk/array_ext.so Thanks, I'll make this change. Now testing. > * The post-install -> post-stage switch is unexplained (for stripping). p= ost-install should be fine for both commands executed Yes, they are both fine. If I understand correctly, stripping before packag= ing is slightly better. Even better, before staging, e.g. in post-build:, but t= hen it cannot be coupled with patching bin/mayavi2 script which is created only= in stage. > * The additional of mayavi2 executable is unexplained. Related, for versi= on suffixed script names, USE_PYTHON=3Dconcurrent is preferred. Actually, this is just adding 'import os; os.environ["LD_LIBRARY_PATH"] =3D "/usr/local/lib/gcc48"' with proper formatting to the existing script by overwriting the script with a modified one. This is the very workaround. In= the previous patch, I tried to rename the original script and call it from a sh= ell wrapper, but did not manage to add the renamed script into the auto generat= ed plist. As to suffixes, some of the used libraries are not yet python3 ready. >* os.environ["LD_LIBRARY_PATH"] =3D "/usr/local/lib/gcc48" should likely u= se %%LOCALBASE%% in files, and be replaced (REINPLACE_CMD) in post-patch to= to be prefix safe. You'll probably need SUB_FILES too. The unknown part of this is how to find out the version of gcc in the Makefile... Can you help with it, please? > Finally please reconfirm QA across as many arch/versions as possible, as = this will be committed then merged to the quarterly branch. My notebook is about 6 years old and has 4GB of memory. Adding the second j= ail to poudriere took more than 24 hours. So, I cannot promise testing on anyth= ing more than 10-STABLE and 9-STABLE on amd64. Sorry. --=20 You are receiving this mail because: You are the assignee for the bug.=