science/paraview is built normally with default config. There is something wrong with installation. Installing paraview-4.3.1_2... 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 Stop. make[1]: 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 H5_CFLAGS: AM_CFLAGS: - 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 H5_CPPFLAGS: AM_CPPFLAGS: Shared Libraries: YES @@ -37,14 +37,14 @@ Languages: ---------- Fortran: - Fortran Compiler: + Fortran Compiler: /usr/local/bin/gfortran Fortran 2003 Compiler: Fortran Flags: H5 Fortran Flags: AM Fortran Flags: C++: OFF 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 https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/plist-keywords.html#plist-keywords-sample But I also foresee problems with installing from ports versus packages, especially with the deinstallation.
Created attachment 173079 [details] proposed patch 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: Author: stephen Date: Fri Jul 29 23:45:41 UTC 2016 New revision: 419283 URL: https://svnweb.freebsd.org/changeset/ports/419283 Log: - Don't install share/cmake/hdf5/libhdf5.settings to avoid clash with science/paraview PR: ports/211334 Submitted by: Chen Xie <xiechen96@gmail.com> Changes: head/math/vtk6/Makefile head/math/vtk6/pkg-plist
Patch committed, thanks.
Both of two are available, thanks all.