Created attachment 176653 [details] patch to update graphics/qgis from 2.14.3 to 2.18.0 This major update from QGIS 2.14.3 to 2.18.0 comes with many new features and bugfixes [1]. On FreeBSD, QGIS 2.16.x was skipped mainly because of problems with editing vector attributes. Some highlights of the attached patch: - Update to 2.18.0 - New dependency devel/qjson - New makefile target 'check', which runs the test suite - Use of external python functionality, if possible (via CMAKE_ARGS) [2] - Switch from PostGIS 2.1 to 2.2 In former versions of graphics/qgis, there was a problem with installation of an invalid shared library [2]. Now bug #210164 should be closed, as py-MarkupSafe is an external, native FreeBSD dependency. [1] http://qgis.org/en/site/forusers/visualchangelog218/ [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210164 The patch was tested on Poudriere (9.3i/a, 10.3i/a, 11.0i/a and, HEADa, with options all enabled, all disabled and default). portlint -AC seems happy.
It does not build for me on 9.3 i386 (default OPTIONs) in poudriere: [ 88%] Generating ui_console_compile_apis.py cd /wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0/python/console && ../../scripts/pyuic-wrapper.sh /usr/local/bin/pyuic4 /wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0/output/lib /wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0/output/python /usr/local/bin/python2.7 /wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0/python/console/console_compile_apis.ui -o /wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0/python/console/ui_console_compile_apis.py Traceback (most recent call last): File "../../scripts/pyuic-wrapper.py", line 26, in <module> import qgis.PyQt.uic.pyuic File "/wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0/output/python/qgis/__init__.py", line 27, in <module> from qgis.core import QgsFeature, QgsGeometry File "/wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0/output/python/qgis/core/__init__.py", line 30, in <module> from qgis._core import * ImportError: /usr/lib/libstdc++.so.6: version CXXABI_1.3.8 required by /wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0/output/python/qgis/_core.so not found gmake[2]: *** [python/console/CMakeFiles/pyconsole.dir/build.make:66: python/console/ui_console_compile_apis.py] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/graphics/qgis/work/QGIS-final-2_18_0' gmake[1]: *** [CMakeFiles/Makefile2:7808: python/console/CMakeFiles/pyconsole.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs....
(In reply to Thomas Zander from comment #1) Oops, this should not happen. Thanks for the hint. ATM, I have no clue what is going on here, but will investigate. This may take some time, because my Poudriere is not able to create 9.3 jails any more :(
A commit references this bug: Author: wen Date: Fri Dec 23 03:15:53 UTC 2016 New revision: 429216 URL: https://svnweb.freebsd.org/changeset/ports/429216 Log: - Update to 2.18.2(based on) - New dependency devel/qjson - New makefile target 'check', which runs the test suite - Use of external python functionality, if possible (via CMAKE_ARGS) [2] - Switch from PostGIS 2.1 to 2.2 PR: 214238 Submitted by: rhurlin@gwdg.de(maintainer) Changes: head/graphics/qgis/Makefile head/graphics/qgis/distinfo head/graphics/qgis/files/patch-debian_qgis.desktop head/graphics/qgis/files/patch-src_plugins_grass_CMakeLists.txt head/graphics/qgis/files/patch-src_plugins_grass_qtermwidget_kpty.cpp head/graphics/qgis/pkg-plist
Hi, I committed this PR but update it to 2.18.2, and I have not fix the build on FreeBSD-9 since we shall drop the support of FreeBSD-9 soon(2016-12-31). wen
Thanks Wen, your additions to the update are very appreciated! I also agree, that we should not spent any more time and energy in fixing for 9.x.
Unfortunetely, that there is a small typo in pkg-plist, which should be corrected: --- pkg-plist.orig 2016-12-23 08:28:00.417502000 +0100 +++ pkg-plist 2016-12-23 08:32:50.165427000 +0100 @@ -799,7 +799,7 @@ lib/qgis/plugins/libzonalstatisticsplugin.so lib/qgis/qgis_help %%CUSTOMWIDGETS%%%%QT_PLUGINDIR%%/designer/libqgis_customwidgets.so -%%CUSTOMWIDGETS%%%%QT_PLUGINDIR%%/designer/libqgis_customwidgets.so.2.18.0 +%%CUSTOMWIDGETS%%%%QT_PLUGINDIR%%/designer/libqgis_customwidgets.so.2.18.2 man/man1/qbrowser.1.gz man/man1/qgis.1.gz share/applications/qgis.desktop