Your message dated Sat, 13 Dec 2025 09:49:00 +0000
with message-id <[email protected]>
and subject line Bug#977942: fixed in g2clib 2.3.0-2
has caused the Debian Bug report #977942,
regarding g2clib FTCBFS: multiple reasons
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
977942: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977942
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: g2clib
Version: 1.6.2-1
Tags: patch
User: [email protected]
Usertags: ftcbfs
g2clib fails to cross build from source. A first issue is the use of the
build architecture pkg-config. Making it substitutable via the standard
variable PKG_CONFIG is the solution here. Next, it passes -m64 and
-D__64BIT__ to the compiler. This happens to break the build for almost
any architecture but amd64. Those flags should simply go away. In the
linker stage, the makefile hard codes gcc rather than using CC, which
fails again. Finally make install redoes all the compilation, so we also
need to pass cross tools there. The attached patch fixes all of that.
Please consider applying it.
Helmut
diff --minimal -Nru g2clib-1.6.2/debian/changelog g2clib-1.6.2/debian/changelog
--- g2clib-1.6.2/debian/changelog 2020-12-20 13:38:08.000000000 +0100
+++ g2clib-1.6.2/debian/changelog 2020-12-21 14:33:16.000000000 +0100
@@ -1,3 +1,14 @@
+g2clib (1.6.2-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + cross.patch: Make pkg-config substitutable.
+ + cross.patch: Don't force -m64 nor -D__64BIT__ flags.
+ + cross.patch: Make gcc substitutable.
+ + Pass cross tools to make install
+
+ -- Helmut Grohne <[email protected]> Mon, 21 Dec 2020 14:33:16 +0100
+
g2clib (1.6.2-1) unstable; urgency=medium
* New upstream release
diff --minimal -Nru g2clib-1.6.2/debian/patches/cross.patch
g2clib-1.6.2/debian/patches/cross.patch
--- g2clib-1.6.2/debian/patches/cross.patch 1970-01-01 01:00:00.000000000
+0100
+++ g2clib-1.6.2/debian/patches/cross.patch 2020-12-21 14:33:16.000000000
+0100
@@ -0,0 +1,44 @@
+--- g2clib-1.6.2.orig/makefile
++++ g2clib-1.6.2/makefile
+@@ -1,4 +1,5 @@
+ SHELL=/bin/sh
++PKG_CONFIG?=pkg-config
+
+ # If you want to enable support for PNG or JPEG2000 encoding/decoding,
+ # you must specify -DUSE_PNG and/or -DUSE_JPEG2000 in the DEFS variable
+@@ -18,7 +19,7 @@
+ #
+
+ #INC=-I/usrx/local/prod/packages/gnu/4.8.5/jasper/1.900.1/include
+-INC=$(shell pkg-config --cflags libopenjp2)
++INC=$(shell $(PKG_CONFIG) --cflags libopenjp2)
+
+ #
+ # This "C" source code contains many uses of the C++
+@@ -26,7 +27,7 @@
+ # appropriate compiler flag to allow the use of "//" comment indicators.
+ #
+
+-CFLAGS:= -O3 -g -m64 $(INC) $(DEFS) -D__64BIT__ $(CFLAGS)
++CFLAGS:= -O3 -g $(INC) $(DEFS) $(CFLAGS)
+
+ PIC:= -fPIC
+
+@@ -104,7 +105,7 @@
+ clean:
+ rm -f *.o *.a *.so grib2c.pc lib*
+
+-LIBS= `pkg-config --libs libpng` -lopenjp2 -lm
++LIBS= `$(PKG_CONFIG) --libs libpng` -lopenjp2 -lm
+ OBJS:= gridtemplates.o \
+ drstemplates.o \
+ pdstemplates.o \
+@@ -155,7 +156,7 @@
+ all: $(LIB) $(SHLIB)
+
+ $(SHLIB): $(OBJS)
+- gcc $(LDFLAGS) -Wl,-as-needed -shared -o $(SHLIB)
-Wl,-soname,$(SONAME) $(OBJS) $(LIBS)
++ $(CC) $(LDFLAGS) -Wl,-as-needed -shared -o $(SHLIB)
-Wl,-soname,$(SONAME) $(OBJS) $(LIBS)
+
+ grib2c.pc: grib2c.pc.in
+ cat grib2c.pc.in | sed -e 's!@prefix@!${PREFIX}!' | sed -e
's!@libdir@!${LIBDIR}!' > grib2c.pc
diff --minimal -Nru g2clib-1.6.2/debian/patches/series
g2clib-1.6.2/debian/patches/series
--- g2clib-1.6.2/debian/patches/series 2020-12-20 13:38:08.000000000 +0100
+++ g2clib-1.6.2/debian/patches/series 2020-12-21 14:32:53.000000000 +0100
@@ -4,3 +4,4 @@
harden.patch
remove_jasper.patch
64bit_fix.patch
+cross.patch
diff --minimal -Nru g2clib-1.6.2/debian/rules g2clib-1.6.2/debian/rules
--- g2clib-1.6.2/debian/rules 2020-12-20 13:38:08.000000000 +0100
+++ g2clib-1.6.2/debian/rules 2020-12-21 14:33:16.000000000 +0100
@@ -4,8 +4,10 @@
%:
dh $@ --no-parallel
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/buildtools.mk
+
DESTDIR:=$(CURDIR)/debian/tmp/
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR:=/usr/lib/$(DEB_HOST_MULTIARCH)
#export DH_VERBOSE=1
@@ -15,7 +17,7 @@
dh_clean
override_dh_auto_install:
- $(MAKE) prefix=$(DESTDIR)/usr LIBDIR=$(DESTDIR)/$(LIBDIR) install
+ $(MAKE) prefix=$(DESTDIR)/usr LIBDIR=$(DESTDIR)/$(LIBDIR) CC=$(CC)
PKG_CONFIG=$(PKG_CONFIG) install
sed -i -e 's@libdir=$(DESTDIR)/@libdir=@g'
$(DESTDIR)/$(LIBDIR)/pkgconfig/grib2c.pc # Strip build path
mv $(DESTDIR)/$(LIBDIR)/./libg2c_v1.6.*.a
$(DESTDIR)/$(LIBDIR)/libgrib2c.a
dh_link -p libgrib2c-dev $(LIBDIR)/libgrib2c.so.0d
$(LIBDIR)/libgrib2c.so
--- End Message ---
--- Begin Message ---
Source: g2clib
Source-Version: 2.3.0-2
Done: Alastair McKinstry <[email protected]>
We believe that the bug you reported is fixed in the latest version of
g2clib, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alastair McKinstry <[email protected]> (supplier of updated g2clib package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 13 Dec 2025 09:13:19 +0000
Source: g2clib
Architecture: source
Version: 2.3.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers
<[email protected]>
Changed-By: Alastair McKinstry <[email protected]>
Closes: 977942 1122415
Changes:
g2clib (2.3.0-2) unstable; urgency=medium
.
* Fix typo in comments that breaks doxygen. Closes: #1122415
* Drop obsolete bug report, mostly fixed? Closes: #977942
* No longer ignore test failures
Checksums-Sha1:
6a3220f9a2d1d150b33cf1b4fa6689c9a697435e 2129 g2clib_2.3.0-2.dsc
ca434c9e39280770c364dacbd9e5b897ae705c41 5304 g2clib_2.3.0-2.debian.tar.xz
Checksums-Sha256:
a268e7090c23450ebec72c7e2b0632780d0156f4ab50573d79eb91e95f81f831 2129
g2clib_2.3.0-2.dsc
7c6785b42bfb37beee8ad2c72b6a6b3b7fde57b64c3437606f7a3b75f8a68876 5304
g2clib_2.3.0-2.debian.tar.xz
Files:
9c38f5138c5f39206126fbb54bf094f4 2129 utils optional g2clib_2.3.0-2.dsc
bb0074aa3e9b729ca107e369cf84f44a 5304 utils optional
g2clib_2.3.0-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmk9MeUACgkQy+a7Tl2a
06UAQhAAif3qcX9FmW5ihhgPA2RTcCtXZZnE9aMPmWLF0/+6V0X9LDmqEWrHIkHG
JFAzGySm2/pThGsoo3Ai1YYgWhcvnIu08EXpmpt4nKwu4q/UR3xsW+tSznB9BopW
FajzZLB2XXEfRPzRHBLiSRAItBKNg4uPfEE/MEVvEpwNRHHClmqBvMmxIGJKDjMU
Cvh6xJAFHQOXiISgtma/hBw195mr8joouvFc1W6dF9g3i76IgfHu5FjIaJigBzFY
9iz4HgcqvV/CCwdoq4DCIbShhxSxL8/KrQSILY8elbpLWsaaOgnT41GnH3UovyGg
xspAGT9LFT7Z4AP1f1VBmkR99oOJNhFpi1zW8O8P/wjKGbuZX8K8GNtPt63aqi6h
bHp/iU+RcFP0Npcs5DMiHzl/FrI62wQ44iIXTcdQtNK1OfyLZi5yPBP/Tzb7tN99
U+iuCdvHqBo0NG6HFA4wDIURXYFxobzwq9VGEYoy9tNr6iMvJwOtujl1RjXtZJ2B
6Cn5hq+5klSDovkyRcslu4f0amSpJOnC116A35jSPRSfr/HJM9heEvZ8Q7EwOW44
Y17j3XoIUBbY3fiaOYkSNXlwBOb6l/boyaz7fjvPJpl8AYa4vBxSKPNPVMGhafJw
U4JGFmQSPkmniV4pfrTtyD7MLWLrrr8NyaDBApInOKOnTwNcF6g=
=2r7O
-----END PGP SIGNATURE-----
pgpR0Ej6l63Vl.pgp
Description: PGP signature
--- End Message ---
--
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers