science/paraview is built normally with default config. There is something wrong with installation.
pkg-static: paraview-4.3.1_2 conflicts with vtk6-6.2.0_2 (installs files into the same place). Problematic file: /usr/local/share/cmake/hdf5/libhdf5.settings
*** Error code 70
make: stopped in /usr/ports/science/paraview
*** Error code 1
I see the problem, but I have no idea how to fix it! devel@stasyan, do yuo have any ideas?
Here is the diff of the two files. The first file is that installed by math/vtk6. The differences seem very inconsequential.
diff -u /usr/local/share/cmake/hdf5/libhdf5.settings work/stage//usr/local/share/cmake/hdf5/libhdf5.settings
--- /usr/local/share/cmake/hdf5/libhdf5.settings 2016-07-26 02:02:44.000000000 +0000
+++ work/stage//usr/local/share/cmake/hdf5/libhdf5.settings 2016-07-26 02:51:01.000000000 +0000
@@ -20,7 +20,7 @@
CFLAGS: -O2 -pipe -fstack-protector -fno-strict-aliasing -w -w -w
- CPPFLAGS: -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -w -w -w
+ CPPFLAGS: -O2 -pipe -fstack-protector -fno-strict-aliasing -w -w -w
Shared Libraries: YES
@@ -37,14 +37,14 @@
- Fortran Compiler:
+ Fortran Compiler: /usr/local/bin/gfortran
Fortran 2003 Compiler:
H5 Fortran Flags:
AM Fortran Flags:
C++ Compiler: /usr/bin/c++
- C++ Flags: -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -w -w -w
+ C++ Flags: -O2 -pipe -fstack-protector -fno-strict-aliasing -w -w -w
H5 C++ Flags:
AM C++ Flags:
One possibility is for us to modify pkg-plist, so that libhdf5.settings is only installed if it doesn't already exist. We do this somehow uing @exec style keywords: see
But I also foresee problems with installing from ports versus packages, especially with the deinstallation.
Created attachment 173079 [details]
Can you try this patch? I know it builds and installs, but I want you to test to see if this stops vtk from working. I don't use vtk these days. Please test vtk when paraview is not installed.
I patch vtk6 and reinstall it. I run several simple examples, vtk6 works!(In reply to Stephen Montgomery-Smith from comment #3)
A commit references this bug:
Date: Fri Jul 29 23:45:41 UTC 2016
New revision: 419283
- Don't install share/cmake/hdf5/libhdf5.settings to avoid clash with
Submitted by: Chen Xie <email@example.com>
Patch committed, thanks.
Both of two are available, thanks all.