Package: libatomic1
Version: 12-20220428-1
Severity: wishlist

Dear Maintainer,

Currently we have libatomic.so.1 but no unversioned libatomic.so.

The next version of Qt (6.3.1) will have this CMake code to find atomic
library when there std::atomic does not work out of the box:

  find_library(atomic_LIB atomic REQUIRED)

This searches for unversioned libatomic.so. I proposed a patch for Qt to
support libatomic.so.1, but upstream Qt Core maintainer responded with the
following:

> That's just a packaging mistake in your Linux distribution. libatomic.so
> exists on OpenSUSE:
>
>  $ rpm -ql gcc12 | grep libatomic
> /usr/lib64/gcc/x86_64-suse-linux/12/libatomic.a
> /usr/lib64/gcc/x86_64-suse-linux/12/libatomic.so
>  $ rpm -ql gcc11 | grep libatomic
> /usr/lib64/gcc/x86_64-suse-linux/11/libatomic.a
> /usr/lib64/gcc/x86_64-suse-linux/11/libatomic.so
>
> I also see it in the listing for gcc in Fedora
> (https://fedora.pkgs.org/35/fedora-updates-x86_64/gcc-11.3.1-2.fc35.x86_64.rpm.html),
> CentOS Stream 9
> (https://centos.pkgs.org/9-stream/centos-appstream-aarch64/gcc-11.3.1-2.el9.aarch64.rpm.html),
> Alpine Linux
> (https://alpine.pkgs.org/3.15/alpine-main-aarch64/gcc-10.3.1_git20211027-r0.apk.html),
> Slackware
> (https://slackware.pkgs.org/current/slackware-x86_64/gcc-11.3.0-x86_64-1.txz.html),
> even FreeBSD Ports
> (https://freebsd.pkgs.org/13/freebsd-amd64/gcc11-11.3.0.pkg.html).
> Plus as a separate package for Mageia and OpenMandriva
> (https://pkgs.org/download/libatomic-devel).
>
> So if it's missing in your distro, report it as a bug there.
>
> Hardcoding the soversion is not a good idea because it could change.

See our discussion here:
https://codereview.qt-project.org/c/qt/qtbase/+/410167

So can we please have libatomic.so like all these distros?

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to