From owner-freebsd-bugs@FreeBSD.ORG Sun Oct 23 08:50:10 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EE281065675 for ; Sun, 23 Oct 2011 08:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1A5258FC15 for ; Sun, 23 Oct 2011 08:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9N8o9sg059917 for ; Sun, 23 Oct 2011 08:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9N8o9nU059916; Sun, 23 Oct 2011 08:50:09 GMT (envelope-from gnats) Resent-Date: Sun, 23 Oct 2011 08:50:09 GMT Resent-Message-Id: <201110230850.p9N8o9nU059916@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rainer Hurling Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 031971065670 for ; Sun, 23 Oct 2011 08:50:01 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E08EE8FC13 for ; Sun, 23 Oct 2011 08:50:01 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9N8o13P047357 for ; Sun, 23 Oct 2011 08:50:01 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p9N8o14g047356; Sun, 23 Oct 2011 08:50:01 GMT (envelope-from nobody) Message-Id: <201110230850.p9N8o14g047356@red.freebsd.org> Date: Sun, 23 Oct 2011 08:50:01 GMT From: Rainer Hurling To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/161922: [maintainer][patch] math/saga: cleanup unneeded helper files and static libs X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2011 08:50:10 -0000 >Number: 161922 >Category: misc >Synopsis: [maintainer][patch] math/saga: cleanup unneeded helper files and static libs >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 23 08:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Rainer Hurling >Release: FreeBSD 9.0-BETA2 amd64 >Organization: >Environment: FreeBSD xxx.xxx 9.0-BETA2 FreeBSD 9.0-BETA2 #0: Tue Sep 27 10:18:08 CEST 2011 xxx@xxx.xxx:/usr/obj/usr/src/sys/XXX amd64 >Description: SAGA GIS installs libtool helper files for each library in ${PREFIX}/lib/saga. The presence of these .la files (and one static .a file for odbc) hinders graphics/qgis from starting correctly, when QGIS has plugins for the work with SAGA GIS modules installed. >How-To-Repeat: 1. Install math/saga with 'Python bindings' enabled. 2. Install graphics/qgis with 'Python support' enabled. 3. Within QGIS, install the following two plugins (menu 'Extensions'), which enables the use of SAGA GIS modules via python bindings: - Processing Framework Manager - SAGA Module interface After that, try to restart QGIS from shell. In the shell endless messages appear about not finding the correct libraries and QGIS does not start. >Fix: The following patch removes the helper files and static libs from lib/saga. After that, QGIS can use SAGA GIS modules via python bindings. Patch attached with submission follows: diff -Naur saga.orig/Makefile saga/Makefile --- saga.orig/Makefile 2011-10-19 22:46:32.000000000 +0200 +++ saga/Makefile 2011-10-21 13:36:28.000000000 +0200 @@ -7,7 +7,7 @@ PORTNAME= saga PORTVERSION= 2.0.7 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= math MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]*$//}/SAGA%20${PORTVERSION} DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -98,5 +98,7 @@ ${INSTALL_DATA} ${WRKSRC}/src/saga_core/saga_gui/res/saga_tip.txt ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/src/saga_core/saga_gui/res/xpm/saga_icon_32.xpm ${DATADIR} @${CAT} ${PKGMESSAGE} + @${RM} ${PREFIX}/lib/saga/*.la + @${RM} ${PREFIX}/lib/saga/*.a .include diff -Naur saga.orig/pkg-plist saga/pkg-plist --- saga.orig/pkg-plist 2011-07-16 19:10:27.000000000 +0200 +++ saga/pkg-plist 2011-10-21 13:33:09.000000000 +0200 @@ -17,128 +17,66 @@ %%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/saga_api.py %%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/saga_api.pyc %%SAGA_PYTHON%%%%PYTHON_SITELIBDIR%%/saga_api.pyo -lib/saga/libcontrib_a_perego.la lib/saga/libcontrib_a_perego.so -lib/saga/libdocs_html.la lib/saga/libdocs_html.so -%%HARU%%lib/saga/libdocs_pdf.la %%HARU%%lib/saga/libdocs_pdf.so -lib/saga/libgarden_3d_viewer.la lib/saga/libgarden_3d_viewer.so -lib/saga/libgeostatistics_grid.la lib/saga/libgeostatistics_grid.so -lib/saga/libgeostatistics_kriging.la lib/saga/libgeostatistics_kriging.so -lib/saga/libgeostatistics_points.la lib/saga/libgeostatistics_points.so -lib/saga/libgeostatistics_regression.la lib/saga/libgeostatistics_regression.so -lib/saga/libgrid_analysis.la lib/saga/libgrid_analysis.so -lib/saga/libgrid_calculus.la lib/saga/libgrid_calculus.so -lib/saga/libgrid_calculus_bsl.la lib/saga/libgrid_calculus_bsl.so -lib/saga/libgrid_filter.la lib/saga/libgrid_filter.so -lib/saga/libgrid_gridding.la lib/saga/libgrid_gridding.so -lib/saga/libgrid_spline.la lib/saga/libgrid_spline.so -lib/saga/libgrid_tools.la lib/saga/libgrid_tools.so -lib/saga/libgrid_visualisation.la lib/saga/libgrid_visualisation.so -lib/saga/libihacres.la lib/saga/libihacres.so -lib/saga/libimagery_classification.la lib/saga/libimagery_classification.so -lib/saga/libimagery_rga.la lib/saga/libimagery_rga.so -lib/saga/libimagery_segmentation.la lib/saga/libimagery_segmentation.so -lib/saga/libimagery_tools.la lib/saga/libimagery_tools.so -lib/saga/libio_esri_e00.la lib/saga/libio_esri_e00.so -lib/saga/libio_gdal.la lib/saga/libio_gdal.so -lib/saga/libio_gps.la lib/saga/libio_gps.so -lib/saga/libio_grid.la lib/saga/libio_grid.so -lib/saga/libio_grid_grib2.la lib/saga/libio_grid_grib2.so -lib/saga/libio_grid_image.la lib/saga/libio_grid_image.so -lib/saga/libio_odbc.a -lib/saga/libio_odbc.la lib/saga/libio_odbc.so -lib/saga/libio_shapes.la lib/saga/libio_shapes.so -lib/saga/libio_shapes_dxf.la lib/saga/libio_shapes_dxf.so -lib/saga/libio_shapes_las.la lib/saga/libio_shapes_las.so -lib/saga/libio_table.la lib/saga/libio_table.so -lib/saga/liblectures_introduction.la lib/saga/liblectures_introduction.so -lib/saga/libopencv.la lib/saga/libopencv.so -lib/saga/libpj_georeference.la lib/saga/libpj_georeference.so -lib/saga/libpj_proj4.la lib/saga/libpj_proj4.so -lib/saga/libpointcloud_tools.la lib/saga/libpointcloud_tools.so -lib/saga/libpointcloud_viewer.la lib/saga/libpointcloud_viewer.so -lib/saga/librecreations_fractals.la lib/saga/librecreations_fractals.so -lib/saga/librecreations_games.la lib/saga/librecreations_games.so -lib/saga/libshapes_grid.la lib/saga/libshapes_grid.so -lib/saga/libshapes_lines.la lib/saga/libshapes_lines.so -lib/saga/libshapes_points.la lib/saga/libshapes_points.so -lib/saga/libshapes_polygons.la lib/saga/libshapes_polygons.so -lib/saga/libshapes_tools.la lib/saga/libshapes_tools.so -lib/saga/libsim_cellular_automata.la lib/saga/libsim_cellular_automata.so -lib/saga/libsim_ecosystems_hugget.la lib/saga/libsim_ecosystems_hugget.so -lib/saga/libsim_fire_spreading.la lib/saga/libsim_fire_spreading.so -lib/saga/libsim_hydrology.la lib/saga/libsim_hydrology.so -lib/saga/libta_channels.la lib/saga/libta_channels.so -lib/saga/libta_hydrology.la lib/saga/libta_hydrology.so -lib/saga/libta_lighting.la lib/saga/libta_lighting.so -lib/saga/libta_morphometry.la lib/saga/libta_morphometry.so -lib/saga/libta_preprocessor.la lib/saga/libta_preprocessor.so -lib/saga/libta_profiles.la lib/saga/libta_profiles.so -lib/saga/libtable_calculus.la lib/saga/libtable_calculus.so -lib/saga/libtable_tools.la lib/saga/libtable_tools.so -lib/saga/libtin_tools.la lib/saga/libtin_tools.so -lib/saga/libtin_viewer.la lib/saga/libtin_viewer.so -lib/saga/libtransect.la lib/saga/libtransect.so -%%VIGRA%%lib/saga/libvigra.la %%VIGRA%%lib/saga/libvigra.so share/saga/saga_icon_32.xpm share/saga/saga_tip.txt >Release-Note: >Audit-Trail: >Unformatted: