Alexei Colin 228d6b6db2 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>
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
2021-03-25 20:56:24 -04:00
2021-03-23 10:01:20 +01:00
2021-03-16 17:42:16 +01:00
2021-03-16 17:42:16 +01:00
2021-03-16 17:42:16 +01:00
2021-03-20 11:55:18 +00:00
2021-03-25 16:56:17 +00:00
2021-03-25 21:21:03 +00:00
2021-03-16 19:55:44 +00:00
2021-03-26 00:51:59 +01:00
2021-03-25 21:21:03 +00:00
2021-03-26 00:31:05 +01:00
2021-03-26 00:52:03 +01:00
2021-03-16 19:56:02 +00:00
2021-03-25 13:39:26 +00:00
2021-03-25 21:21:03 +00:00
2021-03-21 20:44:12 +01:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.3%
Emacs Lisp 0.2%
C 0.1%