[Git][debian-gis-team/jeolib-miallib][master] Add patch to use buildflags set in the environment. (closes: #1124862)
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Wed Jan 7 11:43:43 GMT 2026
Bas Couwenberg pushed to branch master at Debian GIS Project / jeolib-miallib
Commits:
cdfb083d by Bas Couwenberg at 2026-01-07T12:43:36+01:00
Add patch to use buildflags set in the environment. (closes: #1124862)
- - - - -
4 changed files:
- debian/changelog
- − debian/libmiallib1.lintian-overrides
- + debian/patches/buildflags.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -3,6 +3,8 @@ jeolib-miallib (1.1.7-3) UNRELEASED; urgency=medium
* Team upload.
* Drop Priority: optional, default since dpkg 1.22.13.
* Bump Standards-Version to 4.7.3, changes: priority.
+ * Add patch to use buildflags set in the environment.
+ (closes: #1124862)
-- Bas Couwenberg <sebastic at debian.org> Sat, 03 Jan 2026 13:58:15 +0100
=====================================
debian/libmiallib1.lintian-overrides deleted
=====================================
@@ -1,4 +0,0 @@
-# Build uses -D_FORTIFY_SOURCE=2, but hardening-check reports:
-# Fortify Source functions: no, only unprotected functions found!
-hardening-no-fortify-functions [*]
-
=====================================
debian/patches/buildflags.patch
=====================================
@@ -0,0 +1,27 @@
+Description: Don't overwrite CMAKE_C{,XX}_FLAGS.
+Author: Bas Couwenberg <sebastic at debian.org>
+Bug-Debian: https://bugs.debian.org/1124862
+Forwarded: https://github.com/ec-jrc/jeolib-miallib/pull/9
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -359,10 +359,9 @@ if(PROCESS_IN_PARALLEL)
+ find_package(OpenMP REQUIRED)
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
+- set (CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
+ set(PARALLEL_BOOL 1)
+ message(STATUS "parallel processing: ${PARALLEL_BOOL}")
+- SET(CMAKE_C_FLAGS "-DOPENMP=${PARALLEL_BOOL}")
++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DOPENMP=${PARALLEL_BOOL}")
+ target_link_libraries(${MIALLIB_LIB_NAME} OpenMP::OpenMP_CXX)
+ # string(REPLACE ".so" "_omp.so" FFTW_OMP_LIBRARIES "${FFTW_LIBRARIES}")
+ message(STATUS "FFTW_OMP_LIBRARIES: ${FFTW_OMP_LIBRARIES}")
+@@ -375,7 +374,6 @@ endif(PROCESS_IN_PARALLEL)
+ find_package(PkgConfig REQUIRED)
+
+ set(BLA_VENDOR OpenBLAS)
+-set(CMAKE_C_FLAGS -fopenmp)
+ #find_package(BLAS REQUIRED)
+
+ find_package(GSL REQUIRED)
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
libdir.patch
+buildflags.patch
View it on GitLab: https://salsa.debian.org/debian-gis-team/jeolib-miallib/-/commit/cdfb083dc41b6baf3e11073e284be86cf890dabe
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/jeolib-miallib/-/commit/cdfb083dc41b6baf3e11073e284be86cf890dabe
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20260107/ea06d82a/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list