Your message dated Mon, 13 Oct 2025 18:26:59 +0000
with message-id <[email protected]>
and subject line Bug#1054229: fixed in libcgns 4.5.0-1~exp3
has caused the Debian Bug report #1054229,
regarding libcgns-dev: please also ship src/cgns_f.F90 to support Fortran 
compilers beyond gfortran
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.)


-- 
1054229: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054229
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libcgns-dev
Version: 3.4.0-3
Severity: wishlist

Hello and thanks for maintaining this useful library in Debian!

The CGNS library may be used from C/C++ programs/libraries and also
from Fortran programs/libraries.

In order to use the library from Fortran code, the

  use cgns

statement is required, which requires access to the 'cgns.mod' module
file, correctly shipped in package libcgns-dev as /usr/include/cgns.mod .

This works like a charm, as long you compile your own Fortran
program/library with the same Fortran compiler which was used to
generate the 'cgns.mod' module file.
But it may fail, when the two compilers are different, since,
unfortunately!, Fortran module files are [not portable] across
different compilers. 

[not portable]: <https://fortranwiki.org/fortran/show/Library+distribution>

Obviously, the 'cgns.mod' module file shipped in package libcgns-dev as
/usr/include/cgns.mod was compiled with gfortran.
As a consequence, if you also compile your own Fortran program/library
with gfortran, there's no issue at all in using libcgns-dev.

But, if you want to support compilation of your own Fortran program/library
with more than one compiler (for instance gfortran and the Intel 'ifort'
Fortran compiler), you cannot use the official Debian package libcgns-dev.

Well, I seem to have found a strategy to work around this issue.

I downloaded the 'src/cgns_f.F90' source file (from the libcgns Debian
source package, same exact version as the installed Debian binary package)
and compiled it with the incompatible Fortran compiler (e.g.: the Intel
'ifort' Fortran compiler), thus obtaining a 'cgns.mod' module file
compatible with the used Fortran compiler. Among the options passed to
the compiler, there were the following:

  -I/usr/include -c

Then I compiled my own Fortran program source files with the previously
obtained 'cgns.mod' module file in the same directory.
Again with:

  -I/usr/include -c

among the compiler options.
Finally, I linked my own Fortran program .o object files together, with the
following:

  -lcgns

among the passed options.

The strategy works and produces an executable, which is dynamically linked
(among other libraries) to the CGNS library:

  $ ldd my_own_fortran_program | grep cgns
        libcgns.so.3.4 => /lib/x86_64-linux-gnu/libcgns.so.3.4 
(0x00007f3a4e9f3000)

The executable works correctly.



In conclusion, I would like to suggest to also ship the 'src/cgns_f.F90'
source file in package libcgns-dev, so that the CGNS library in Debian
becomes usable with Fortran compilers other than gfortran.

This would be highly useful, as it would increase the cross-compiler
compatibility of the CGNS library, as shipped in Debian!
And this would just require to ship one more file (less than 200 kbyte)
simply copied from the source Debian package to the libcgns-dev binary
Debian package.

Please consider accepting this proposal.
Thanks for your time and your dedication!

  
-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libcgns-dev depends on:
ii  libcgns3.4  3.4.0-3

libcgns-dev recommends no packages.

libcgns-dev suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: libcgns
Source-Version: 4.5.0-1~exp3
Done: Drew Parsons <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libcgns, 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.
Drew Parsons <[email protected]> (supplier of updated libcgns 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: Mon, 13 Oct 2025 18:08:53 +0200
Source: libcgns
Architecture: source
Version: 4.5.0-1~exp3
Distribution: experimental
Urgency: medium
Maintainer: Debian Science Team 
<[email protected]>
Changed-By: Drew Parsons <[email protected]>
Closes: 1054229
Changes:
 libcgns (4.5.0-1~exp3) experimental; urgency=medium
 .
   * Team upload.
   * debian/rules: use DEB_HOST_GNU_TYPE not DEB_HOST_MULTIARCH to
     access build dirs. See Debhelper perl scripts (Buildsystem.pm)
     Needed to distinguish i686 from i386, else i386 fails tests.
   * libcgns-dev provides cgns_f.F90 in /usr/src/cgns, to allow use with
     other (non-GNU) Fortran compilers. Closes: #1054229.
Checksums-Sha1:
 3b30b9db708848317d4176d2f889f54558889236 2132 libcgns_4.5.0-1~exp3.dsc
 fe023abe226997f65b6ee92724b4e5d7c4078cf6 16068 
libcgns_4.5.0-1~exp3.debian.tar.xz
Checksums-Sha256:
 e1cbe00b92b132d4b7bc3b3f08b23bc1567f3c8f92d7575bdb1a80ebad719705 2132 
libcgns_4.5.0-1~exp3.dsc
 4d8357833acf130de73d35400a3b1be0a086e772d217723c9cafd0a8982dd3b4 16068 
libcgns_4.5.0-1~exp3.debian.tar.xz
Files:
 f2fe789e432c551b56f18704bdc4acd8 2132 libs optional libcgns_4.5.0-1~exp3.dsc
 a0520eec8efb57adf03e1285b16d60b0 16068 libs optional 
libcgns_4.5.0-1~exp3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEI8mpPlhYGekSbQo2Vz7x5L1aAfoFAmjtJjYACgkQVz7x5L1a
Afp3ZQ/7BQODxff0ANbgG3QuDcEYcTUAnQberIaJJ8w5hNzIuEBUIFO6ate6jhYZ
kVbdHqSmGg8bOL3nShCWHu2BQ6Q3/UO1L9IMoPHwT+kLceUXMbCj1qaxMhsh4lef
DHkFXIxtC4oM7+0vP1ghaT7N1p93bvjNJuVnOu/5/W9X40qimZ5GSrY4jQrmAB8m
euD/EOshc2YSvCUj2PCnARZP1UuPWBnlo6o7W5LT/jqVs/+MI61Bca/5axkh2aoc
hKrTM1tx4iS6dgIAUMdIAhM1tZecSxZjqAZmCURstfwMmukHKM3kT8qC4o70XzBA
Lq6oKrSsp7oOshWLD6h4lPWjB0B1O5PS4sTrP3ZV19M63Ta8VetjJsksVXJJ+7i3
J03CiGvDj+DubSljfrxEpUjwPKvhLBGOjUlqXfKB8+W/GWRsYY9ORunt3DSUHQGk
x5NYAwLNngU9GzMfKyUoJiexdrb8sQMEI4jJXWBZ+2BJspM2HQjanowET0G/XGo6
OrB0d7UhmBVhfxorudhZHB6aJBC1fOQ9CZ1Y6u9btEiWfrI41gmsHKNpFIf1qz8B
GPDITRgXCeU0K3qNqo5PU9IEdAbATInZPwArlu9iCXCpzWm+Ek3rXqya1613KZSm
uYfgAvoQLxTz7DETXxK5ms/D7kLVqiqNtd0vLT5ZC8ht5z1q21Y=
=j7Mv
-----END PGP SIGNATURE-----

Attachment: pgp9qDsfofJ4d.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

Reply via email to