Projects
Extra
aMule
accept_versioned_libatomic.so.1.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File accept_versioned_libatomic.so.1.patch of Package aMule
commit b0323d2168c2171159edf2c2783105f6a97996a3 Author: got3nks <got3nks@users.noreply.github.com> Date: Tue Jun 16 15:29:18 2026 +0200 cmake: accept versioned libatomic.so.1 in find_library openSUSE's `libatomic1` package ships only `libatomic.so.1` — there's no separate -devel package, and therefore no unversioned `libatomic.so` symlink, so the previous `find_library(NAMES atomic)` failed even though the library was installed. Accept `libatomic.so.1` as a fallback name. The canonical unversioned name is kept first so distros that do ship the symlink (Debian / Fedora / Arch) still resolve to it. Also tag the STATUS line with the resolved path so the chosen variant is visible in the configure summary. diff --git a/CMakeLists.txt b/CMakeLists.txt index c85927574..7a68e72ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -290,10 +290,15 @@ endif() # require libatomic unconditionally on 32-bit builds. set (LIBATOMIC "") if (CMAKE_SIZEOF_VOID_P EQUAL 4) - find_library (LIBATOMIC_LIBRARY NAMES atomic) + # Accept either the unversioned `libatomic.so` (Debian / Fedora / + # Arch ship it via the -dev / -devel package) or the versioned-only + # `libatomic.so.1` (openSUSE ships only the latter -- there's no + # separate -devel package). Listing the unversioned name first keeps + # the canonical path preferred when both are present. + find_library (LIBATOMIC_LIBRARY NAMES atomic libatomic.so.1) if (LIBATOMIC_LIBRARY) set (LIBATOMIC atomic) - message (STATUS "32-bit target: linking libatomic for std::atomic<int64_t>") + message (STATUS "32-bit target: linking libatomic for std::atomic<int64_t> (${LIBATOMIC_LIBRARY})") else() message (FATAL_ERROR "32-bit target detected (sizeof(void*) == 4). aMule's "
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.