FreeBSD Bugzilla – Attachment 245997 Details for
Bug 274793
graphics/qgis: build fails with wrong sed version; use grass8 instead of grass7 [patch]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to find the right sed and to use grass8 instead of grass7
x1 (text/plain), 4.35 KB, created by
Martin Birgmeier
on 2023-10-30 17:10:23 UTC
(
hide
)
Description:
patch to find the right sed and to use grass8 instead of grass7
Filename:
MIME Type:
Creator:
Martin Birgmeier
Created:
2023-10-30 17:10:23 UTC
Size:
4.35 KB
patch
obsolete
>diff --git a/graphics/qgis/Makefile b/graphics/qgis/Makefile >index f3ce0f39b2f4..8ce921941265 100644 >--- a/graphics/qgis/Makefile >+++ b/graphics/qgis/Makefile >@@ -149,14 +149,19 @@ NO_OPTIONS_SORT= yes > OPTIONS_SUB= yes > SERVER_DESC= Enable QGIS server > >-GRASS_BUILD_DEPENDS= grass7:databases/grass7 >+GRASS_BUILD_DEPENDS= grass8:databases/grass8 > GRASS_RUN_DEPENDS= ${GRASS_BUILD_DEPENDS} >-GRASS_CMAKE_BOOL= WITH_GRASS7 >+GRASS_CMAKE_BOOL= WITH_GRASS8 > SERVER_LIB_DEPENDS= libfcgi.so:www/fcgi > SERVER_CMAKE_BOOL= WITH_SERVER WITH_SERVER_PLUGINS WITH_QSPATIALITE > > .include <bsd.port.pre.mk> > >+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} < 1300000 ) >+BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:textproc/flex >+CMAKE_ARGS+= -DFLEX_EXECUTABLE=/usr/local/bin/flex >+.endif >+ > pre-patch: > # Only PostgreSQL Client headers, not Server > @${REINPLACE_CMD} -e 's|set(POSTGRES_INCLUDE_DIR \$${PostgreSQL_INCLUDE_DIRS})|set(POSTGRES_INCLUDE ${LOCALBASE}/include)|g' \ >@@ -170,9 +175,6 @@ post-patch: > ${WRKSRC}/src/core/CMakeLists.txt > .endif > >-pre-configure: >- ${MKDIR} ${CONFIGURE_WRKSRC}/bin && ${LN} -s ${PYTHON_CMD} ${CONFIGURE_WRKSRC}/bin/python3 >- > post-install: > @${RM} ${STAGEDIR}${DATADIR}/python/pytz/tzfile.py.bak > @${FIND} ${STAGEDIR}${LOCALBASE} -name "__pycache__" -delete >diff --git a/graphics/qgis/files/patch-cmake-FindGRASS.cmake b/graphics/qgis/files/patch-cmake-FindGRASS.cmake >new file mode 100644 >index 000000000000..a095b96b01fa >--- /dev/null >+++ b/graphics/qgis/files/patch-cmake-FindGRASS.cmake >@@ -0,0 +1,17 @@ >+--- ./cmake/FindGRASS.cmake.ORIG 2023-10-27 14:02:22.000000000 +0200 >++++ ./cmake/FindGRASS.cmake 2023-10-29 15:40:10.971356000 +0100 >+@@ -159,11 +159,9 @@ >+ >+ IF (UNIX) >+ IF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") >+- IF (GRASS_FIND_VERSION EQUAL 7) >+- FOREACH (VERSION_MINOR 9 8 7 6 5 4 3 2 1 0) >+- LIST (APPEND GRASS_PATHS /usr/local/grass${GRASS_FIND_VERSION}${VERSION_MINOR}) >+- ENDFOREACH(VERSION_MINOR) >+- ENDIF (GRASS_FIND_VERSION EQUAL 7) >++ FOREACH (VERSION_MINOR 9 8 7 6 5 4 3 2 1 0) >++ LIST (APPEND GRASS_PATHS /usr/local/grass${GRASS_FIND_VERSION}${VERSION_MINOR}) >++ ENDFOREACH(VERSION_MINOR) >+ ELSE (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") >+ FOREACH (VERSION_MINOR 9 8 7 6 5 4 3 2 1 0) >+ FOREACH (PATH /usr/lib64 /usr/lib) >diff --git a/graphics/qgis/pkg-plist b/graphics/qgis/pkg-plist >index 85f4b90bee15..7565df5c1c58 100644 >--- a/graphics/qgis/pkg-plist >+++ b/graphics/qgis/pkg-plist >@@ -2364,17 +2364,17 @@ lib/libqgis_native.so > lib/libqgis_native.so.%%DISTVERSION%% > %%SERVER%%lib/libqgis_server.so > %%SERVER%%lib/libqgis_server.so.%%DISTVERSION%% >-%%GRASS%%lib/libqgisgrass7.so >-%%GRASS%%lib/libqgisgrass7.so.%%DISTVERSION%% >+%%GRASS%%lib/libqgisgrass8.so >+%%GRASS%%lib/libqgisgrass8.so.%%DISTVERSION%% > lib/libqgispython.so > lib/libqgispython.so.%%DISTVERSION%% > %%PYTHON_SITELIBDIR%%/PyQt5/uic/widget-plugins/qgis_customwidgets.py > lib/qgis/crssync >-%%GRASS%%lib/qgis/grass/bin/qgis.g.browser7 >-%%GRASS%%lib/qgis/grass/modules/qgis.d.rast7 >-%%GRASS%%lib/qgis/grass/modules/qgis.g.info7 >-%%GRASS%%lib/qgis/grass/modules/qgis.r.in7 >-%%GRASS%%lib/qgis/grass/modules/qgis.v.in7 >+%%GRASS%%lib/qgis/grass/bin/qgis.g.browser8 >+%%GRASS%%lib/qgis/grass/modules/qgis.d.rast8 >+%%GRASS%%lib/qgis/grass/modules/qgis.g.info8 >+%%GRASS%%lib/qgis/grass/modules/qgis.r.in8 >+%%GRASS%%lib/qgis/grass/modules/qgis.v.in8 > lib/qgis/pdal_wrench > lib/qgis/plugins/libauthmethod_apiheader.so > lib/qgis/plugins/libauthmethod_awss3.so >@@ -2386,15 +2386,15 @@ lib/qgis/plugins/libauthmethod_oauth2.so > lib/qgis/plugins/libauthmethod_pkcs12.so > lib/qgis/plugins/libauthmethod_pkipaths.so > lib/qgis/plugins/libplugin_geometrychecker.so >-%%GRASS%%lib/qgis/plugins/libplugin_grass7.so >+%%GRASS%%lib/qgis/plugins/libplugin_grass8.so > lib/qgis/plugins/libplugin_offlineediting.so > lib/qgis/plugins/libplugin_topology.so > lib/qgis/plugins/libprovider_arcgisfeatureserver.so > lib/qgis/plugins/libprovider_arcgismapserver.so > lib/qgis/plugins/libprovider_delimitedtext.so > lib/qgis/plugins/libprovider_gpx.so >-%%GRASS%%lib/qgis/plugins/libprovider_grass7.so >-%%GRASS%%lib/qgis/plugins/libprovider_grassraster7.so >+%%GRASS%%lib/qgis/plugins/libprovider_grass8.so >+%%GRASS%%lib/qgis/plugins/libprovider_grassraster8.so > lib/qgis/plugins/libprovider_mdal.so > lib/qgis/plugins/libprovider_mssql.so > lib/qgis/plugins/libprovider_pdal.so
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 274793
:
245974
|
245975
|
245991
|
245997
|
246655
|
247281