Your message dated Wed, 11 Nov 2026 16:19:56 +0000
with message-id <[email protected]>
and subject line Bug#1153736: fixed in r-base 4.6.2-2
has caused the Debian Bug report #1153736,
regarding r-mathlib: libRmath.so.1.0.0 is shipped without a SONAME since R 4.6
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.)
--
1153736: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153736
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: r-base
Version: 4.6.2-1
Severity: important
X-Debbugs-Cc: [email protected], [email protected]
Hi,
This bug report is a consequence from #1153729 which was basically
caused by the issue described below. I was able to work around by an
explicit Depends: r-mathlib but this was not needed before and could be
unnecessary if you follow the suggested approach.
Since the R 4.6.x packages, the standalone Rmath shared library shipped in
r-mathlib has NO embedded SONAME. This is a regression against r-base
4.5.0-3, whose libRmath.so.1.0.0 carries `SONAME libRmath.so.1`.
Concrete consequence: downstream packages that link with -lRmath get the
*unversioned* filename `libRmath.so` as their DT_NEEDED entry instead of
`libRmath.so.1`. dpkg-shlibdeps cannot map that name to a package
(r-mathlib only ships shlibs data under the libRmath.so.1 soname), so the
generated r-mathlib dependency silently disappears. This is exactly the
failure reported in fastqtl's autopkgtest regression (Bug#1153729):
fastQTL then starts without r-mathlib installed and dies with
fastQTL: error while loading shared libraries: libRmath.so:
cannot open shared object file: No such file or directory
Evidence
--------
1. SONAME delta in the shipped binaries (readelf):
r-mathlib 4.5.0-3 (trixie): 0x0e (SONAME) Library soname: [libRmath.so.1]
r-mathlib 4.6.1-9 (forky): (no SONAME entry)
r-mathlib 4.6.2-1 (sid): (no SONAME entry)
2. The soname flag IS still passed by debian/rules to the standalone make
(identical in 4.5.0-3 and 4.6.x, e.g. current rules line 387):
libRmath_la_LDFLAGS=-Wl,-soname,libRmath.so.$(somaj) \
shared static)
and the upstream build files are unchanged: src/nmath/standalone/Makefile.in
is byte-identical between 4.5.0-3 and 4.6.1-9 (same sha256 a476b184...),
and etc/Makeconf.in only differs by the removal of the CXX11/CXX14 blocks
(DYLIB_LINK = $(DYLIB_LD) $(DYLIB_LDFLAGS) $(LDFLAGS) unchanged).
3. Buildd logs show the flag reaching the link in 4.5.0-3 but NOT in 4.6.1-9:
r-base_4.5.0-3 amd64 build log, line 4911 (the link command):
gcc -shared -fopenmp -Wl,-z,relro -o libRmath.so
-Wl,-soname,libRmath.so.1 mlutils.lo ... std_unif.lo -lm
r-base_4.6.1-9 amd64 build log, line 5257 (the link command):
x86_64-linux-gnu-gcc -shared -fopenmp -Wl,-z,relro -o libRmath.so
mlutils.lo ... std_unif.lo
(logs:
https://buildd.debian.org/fetch.php?pkg=r-base&arch=amd64&ver=4.5.0-3&stamp=1745967329&raw=1
https://buildd.debian.org/fetch.php?pkg=r-base&arch=amd64&ver=4.6.1-9&stamp=1792175046&raw=1
)
In 4.6.1-9 the `-Wl,-soname,libRmath.so.1` argument is gone AND `$(LIBM)`
(i.e. -lm) is gone too, even though both are on the same link recipe as in
4.5.0-3. So the recipe ran with libRmath_la_LDFLAGS and LIBM both empty.
Analysis / what changed
-----------------------
The 4.6.x debian/rules started passing `MAKEFLAGS="$(makeflags)"` (=-j6 on
the buildds) into every make invocation, including the standalone one; this
is absent in 4.5.0-3 (its build log contains no MAKEFLAGS at all):
r-base_4.6.1-9 build log lines 4878-4879 (the standalone invocation):
MAKEFLAGS="-j6" \
libRmath_la_LDFLAGS=-Wl,-soname,libRmath.so.1 \
shared static )
Overriding MAKEFLAGS wholesale replaces the MAKEFLAGS that GNU make would
otherwise export to the nested `$(MAKE)` runs inside src/nmath/standalone
(the `shared` target runs `$(MAKE) libRmath.so`), and command-line variable
definitions are forwarded to sub-makes *through* MAKEFLAGS. With MAKEFLAGS
forced to a bare "-j6" the libRmath_la_LDFLAGS assignment no longer reaches
the make instance that executes the `$(libRmath_la)` link recipe, so the
library is linked without a soname.
(A minimal GNU make 4.4.1 replica of that packaging idiom does propagate the
variable, so the loss happens specifically inside R's parallel -j6 build
topology; the two buildd logs above pinpoint it empirically.)
Suggested fix (make the soname independent of make variable forwarding)
----------------------------------------------------------------------
Best: set the soname in the makefile itself rather than injecting it as a
fragile command-line override. In src/nmath/standalone/Makefile.in, replace
the empty definition with the real value:
-libRmath_la_LDFLAGS =
+libRmath_la_LDFLAGS = -Wl,-soname,libRmath.so
(or hard-code the full `-Wl,-soname,libRmath.so.1`; the major number is
already managed by debian/rules' $(somaj) for the installed symlink names).
This matches the existing packaged file names (libRmath.so.1.0.0 /
libRmath.so.1 / libRmath.so) and is robust regardless of MAKEFLAGS handling.
It can be applied as a Debian patch or forwarded upstream.
Alternatively stop setting MAKEFLAGS for the standalone make call so GNU
make's automatic command-line-variable forwarding keeps working, or pass
the soname flag through a location that is not a make command-line
variable (it must survive into the nested `make libRmath.so`).
Once the SONAME is back on libRmath.so.1.0.0, the normal shlibs handling
ships r-mathlib as a dependency of -lRmath consumers again (as it did with
4.5.0-3) and the fastqtl autopkgtest regression (Bug#1153729) is resolved at
the root.
Thanks for maintaining r-base
Andreas.
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (501, 'testing'), (50, 'buildd-unstable'), (50, 'unstable'), (5,
'experimental'), (1, 'buildd-experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 7.2.9+deb14-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE=de_DE:de
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--- End Message ---
--- Begin Message ---
Source: r-base
Source-Version: 4.6.2-2
Done: Dirk Eddelbuettel <[email protected]>
We believe that the bug you reported is fixed in the latest version of
r-base, 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.
Dirk Eddelbuettel <[email protected]> (supplier of updated r-base 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: SHA256
Format: 1.8
Date: Wed, 11 Nov 2026 09:29:33 -0600
Source: r-base
Architecture: source
Version: 4.6.2-2
Distribution: unstable
Urgency: medium
Maintainer: Dirk Eddelbuettel <[email protected]>
Changed-By: Dirk Eddelbuettel <[email protected]>
Closes: 1153736
Changes:
r-base (4.6.2-2) unstable; urgency=medium
.
* debian/rules: Explicit move the two .pc files into subdirectories of
/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig for the two packages with one
* debian/patches/set_Rmath_soname: Ensure a soname is the Makefile.in for
Rmathlib (Closes: #1153736)
Checksums-Sha1:
693197e2d01d969ae2670cec1e7fb30271477be3 2848 r-base_4.6.2-2.dsc
02c5aa074f0e04a93a0b7224dcb6ad3431e3687e 107468 r-base_4.6.2-2.debian.tar.xz
050c3d71d8c22ce14e894b3ab954e19e12d6670b 19809 r-base_4.6.2-2_amd64.buildinfo
Checksums-Sha256:
79fe394b704901b2d3fe97dacc6c0185ab57fbd0bee5960c700a0a159c0ff35f 2848
r-base_4.6.2-2.dsc
e75fbf75703ab5aff74c35ff77df10580b9d410991ee3056c4aea23313fbcd34 107468
r-base_4.6.2-2.debian.tar.xz
cf252e0e98a11a94b283f2c9e5eb73a82e7320761967fe1d196a82c029d04991 19809
r-base_4.6.2-2_amd64.buildinfo
Files:
df36074c39ded22b7f1088ded089e278 2848 gnu-r optional r-base_4.6.2-2.dsc
178dc08802c553f48150a73a6e3e13da 107468 gnu-r optional
r-base_4.6.2-2.debian.tar.xz
8b6739ae375a8d6b4247d1ff6881692f 19809 gnu-r optional
r-base_4.6.2-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIVAwUBavSPnaFIn+KrmaIaAQjimw/+IJhhjoaWfCsuIdBAvHbT2qR+hdvdcUxN
XdtHwJvG4xv4+TcpH7X5Tkn1i5JCBPEMXneca/xP13yKeUfbDD/C461eyjrlw3li
i6L+aCFilZlSMZQ3fq2LojtGfY0besOrTzQv2QXZM569ACpOP68AuLtNdUTqX9MI
91rnv4ThGZyGCtf4ECL9rSGR5LnkfBbkoQaRrlPP7/asUTXnhYDQZ+RX6ypHNdwW
Mz63EjssOrc51+UGFjhjbq0OwUX6VK776sFd94T6xJ1XkBXPb9PJMQBjRzZqxNai
vhFwcTvQV+hy6jj1cpgXGg/m3Zj+Tgx5uQJIjG5qTE9cCCTsiEiBAXPVyUr0BS/K
O0lyxemDKjKogUDeTjuXKZ3Qe9gQU0pcMiU5bimEqmByPeXObKRNFCpMQg95iK9l
UPPqPuq1R5uJcw9XWNOfM7syJE/MlxZfii8Ni+ePeOvKUCOycRvSJCRjJfXhplUa
Dh3kLeEWM3QfntGRXBXJUo5vo1CoZcacVuIM3l4/YtUcSNR4LqwwpmUntYqbAbXk
+ActxRdx0+OHROmhhsbsv4EM6B1Bu16H5IJmAyt7ABncsMHBQu9mDZtTwREVNivS
k1+gClo6rtdsCb/7c73vFImEw3LEBmaUxyd6XQ0yLbOizx3RNoumIL2Ar9f3w3Mt
pw+M7UEgSyI=
=gF40
-----END PGP SIGNATURE-----
pgpZenGOxkMat.pgp
Description: PGP signature
--- End Message ---