Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Apr 2017 17:52:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 218341] graphics/qgis: remove certain dependencies from the port
Message-ID:  <bug-218341-13-QfcD19GcQC@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-218341-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-218341-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218341

--- Comment #2 from Rainer Hurling <rhurlin@gwdg.de> ---
Hi Jose,

in the meantime I tried several combinations of disabling and enabling
dependencies via the ports Makefile.

It seems, the best result to get rid of direct dependencies to PostgreSQL a=
nd
PostGIS without loosing functionality is with the following patch:

#diff -urN Makefile.orig Makefile
--- Makefile.orig       2017-04-01 20:11:32.567399000 +0200
+++ Makefile    2017-04-05 18:11:52.243112000 +0200
@@ -87,8 +87,8 @@
 GRASS_FORCE_MAKE_JOBS=3D NO
 GRASS_CMAKE_OFF=3D       -DWITH_GRASS:BOOL=3DFALSE

-POSTGIS_USES=3D          pgsql
-POSTGIS_LIB_DEPENDS=3D   liblwgeom.so:databases/postgis22
+#POSTGIS_USES=3D         pgsql
+#POSTGIS_LIB_DEPENDS=3D  liblwgeom.so:databases/postgis22
 POSTGIS_CMAKE_ON=3D      -DWITH_POSTGRESQL:BOOL=3DTRUE
 POSTGIS_CMAKE_OFF=3D     -DWITH_POSTGRESQL:BOOL=3DFALSE


I was not able to find a solution to also avoid indirect dependencies to the
PostgreSQL/PostGIS combo. The usage of databases/qt4-pgsql-plugin via
USE_QT4=3Dsql-pgsql is definitely necessary, if one wants to be able to est=
ablish
to a PostgreSQL connection. The port databases/qt4-pgsql-plugin has a direct
dependency to databases/postgresql9x-client ...

Disabling USE_QT4=3Dsql-pgsql, for example via=20

#diff -urN Makefile.orig Makefile
--- Makefile.orig       2017-04-01 20:11:32.567399000 +0200
+++ Makefile    2017-04-06 19:30:06.685875000 +0200
@@ -33,7 +33,7 @@
 USE_PYQT=3D      core gui network qscintilla2 sip sql svg xml webkit_run

 USE_QT4=3D       corelib designer doc gui linguist_build moc_build \
-               network qmake_build rcc_build script sql sql-pgsql \
+               network qmake_build rcc_build script sql \
                sql-sqlite3 svg testlib uic_build webkit xml

 USE_LDCONFIG=3D  yes

removes all PostgreSQL functionality within QGIS.


It would be nice, if you could try these variants and give some feedback.
Especially, it would be interesting, if you could confirm my findings for y=
our
installation. Thanks in advance.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218341-13-QfcD19GcQC>