Bas Couwenberg pushed to branch master at Debian GIS Project / hdf4


Commits:
116e9eab by Bas Couwenberg at 2026-03-04T10:21:26+01:00
Use -std=c17 on armhf to fix FTBFS with GCC 15. Thanks to Emanuele Rocca. 
(closes: #1129510)

- - - - -


3 changed files:

- debian/changelog
- debian/control
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -4,13 +4,15 @@ libhdf4 (4.3.1-3) UNRELEASED; urgency=medium
 
   [ Helmut Grohne ]
   * Improve cross building. (Closes: #1121629)
-    + Build depend on -for-host variants of the toolchain.
     + Fix build vs host confusion.
     + Always export CC and CXX as the upstream build system wrongly guesses it.
 
   [ Bas Couwenberg ]
   * Drop Priority: optional, default since dpkg 1.22.13.
   * Bump Standards-Version to 4.7.3, changes: priority.
+  * Use -std=c17 on armhf to fix FTBFS with GCC 15.
+    Thanks to Emanuele Rocca.
+    (closes: #1129510)
 
  -- Bas Couwenberg <[email protected]>  Sat, 29 Nov 2025 19:28:54 +0100
 


=====================================
debian/control
=====================================
@@ -7,8 +7,6 @@ Build-Depends: bison,
                chrpath,
                debhelper-compat (= 13),
                flex,
-               gcc-14-for-host [armhf],
-               g++-14-for-host [armhf],
                libaec-dev,
                libjpeg-dev,
                libtirpc-dev,


=====================================
debian/rules
=====================================
@@ -17,8 +17,8 @@ export DEB_CPPFLAGS_MAINT_APPEND = -I/usr/include/tirpc/
 export DEB_LDFLAGS_MAINT_APPEND = -ltirpc
 
 ifneq (,$(filter $(DEB_HOST_ARCH),armhf))
-CC=$(DEB_HOST_GNU_TYPE)-gcc-14
-CXX=$(DEB_HOST_GNU_TYPE)-g++-14
+# Suggested by Emanuele Rocca in 
https://lists.debian.org/debian-arm/2026/03/msg00003.html
+export DEB_CFLAGS_MAINT_APPEND += -std=c17
 endif
 
 # The upstream buildsystem defaults to CC=gcc in cross builds.



View it on GitLab: 
https://salsa.debian.org/debian-gis-team/hdf4/-/commit/116e9eaba620a4a14b477687821bc5462eaf426b

-- 
View it on GitLab: 
https://salsa.debian.org/debian-gis-team/hdf4/-/commit/116e9eaba620a4a14b477687821bc5462eaf426b
You're receiving this email because of your account on salsa.debian.org.


_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to