Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 687327 Details for
Bug 770961
sci-libs/vtk-8.2.0-r1: python modules installed into wrong site-dir path: /usr/lib64/python
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to update the overriding of site-dir path in the ebuild (corrected commit msg).
0001-sci-libs-vtk-8.2.0-update-deprecated-var-for-setting.patch (text/plain), 3.28 KB, created by
Alexei Colin
on 2021-02-17 19:42:56 UTC
(
hide
)
Description:
Patch to update the overriding of site-dir path in the ebuild (corrected commit msg).
Filename:
MIME Type:
Creator:
Alexei Colin
Created:
2021-02-17 19:42:56 UTC
Size:
3.28 KB
patch
obsolete
>From 64bd4904b840eeeef4bae49476f515003dbc3452 Mon Sep 17 00:00:00 2001 >From: Alexei Colin <ac@alexeicolin.com> >Date: Tue, 16 Feb 2021 10:12:06 -0500 >Subject: [PATCH] sci-libs/vtk: 8.2.0: update deprecated var for setting Python > site-dir > >Problem: On some platforms (ppc64le), Python modules are installed into > $EPREFIX/usr/lib64/pythonX.Y/site-packages >instead of > $EPREFIX/usr/lib/pythonX.Y/site-packages > >Reason: The ebuild sets VTK_INSTALL_PYTHON_MODULE_DIR, but it has >been deprecated and thus has no effect. Thus, the install directory >used is the default install directory, and for some reason it's >/usr/lib64 instead of /usr/lib. The only reference to the deprecated >var in v8.2.0 is to print the deprecation warning: > > ./CMake/vtkDirectories.cmake:29:if(DEFINED VTK_INSTALL_PYTHON_MODULE_DIR) > ./CMake/vtkDirectories.cmake-30- message(WARNING > ./CMake/vtkDirectories.cmake:31: "VTK_INSTALL_PYTHON_MODULE_DIR is no longer supported. " > ./CMake/vtkDirectories.cmake-32- "Set `VTK_PYTHON_SITE_PACKAGES_SUFFIX` instead, although not needed in most cases.") > ./CMake/vtkDirectories.cmake-33-endif() > >Note that in versions >8.2.0, this warning has been removed, too. > >The fix: VTK_INSTALL_PYTHON_MODULES_DIR is still honored, including in >8.2.0, >so use it instead. > >Note that VTK_PYTHON_SITE_PACKAGES_SUFFIX does not help because it >is appended after the lib directory in the path. > >Perhaps a deeper fix might be to figure out why the default lib dir >is set to lib64 instead of lib. I didn't investigate this further. >The ebuild already intends to override the default, and this commit just >fixes that override. > >I don't know if the default dir is still broken in >8.2.0, i.e. whether >it is still necessary for the >8.2.0 ebuilds to override the default >installation directory. There have been related changes, though, see at >least this commit that's not in 8.2.0 but is in master: > > commit 4c42ff417c209087bf0058a9eb2614928943156b > Author: Ben Boeckel <ben.boeckel@kitware.com> > Date: Thu Oct 18 13:17:11 2018 -0400 > > vtkPython: expose VTK_PYTHONPATH to consumers of VTK > >Signed-off-by: Alexei Colin <ac@alexeicolin.com> >--- > sci-libs/vtk/vtk-8.2.0-r1.ebuild | 2 +- > sci-libs/vtk/vtk-8.2.0.ebuild | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/sci-libs/vtk/vtk-8.2.0-r1.ebuild b/sci-libs/vtk/vtk-8.2.0-r1.ebuild >index b3c0061..dc51008 100644 >--- a/sci-libs/vtk/vtk-8.2.0-r1.ebuild >+++ b/sci-libs/vtk/vtk-8.2.0-r1.ebuild >@@ -254,7 +254,7 @@ src_configure() { > > if use python; then > mycmakeargs+=( >- -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)" >+ -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)" > -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" > -DPYTHON_LIBRARY="$(python_get_library_path)" > -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip" >diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild >index 0c4458b..0eab965 100644 >--- a/sci-libs/vtk/vtk-8.2.0.ebuild >+++ b/sci-libs/vtk/vtk-8.2.0.ebuild >@@ -248,7 +248,7 @@ src_configure() { > > if use python; then > mycmakeargs+=( >- -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)" >+ -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)" > -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" > -DPYTHON_LIBRARY="$(python_get_library_path)" > -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip" >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 770961
:
686970
| 687327