Projects
home:gcomes.pmbs
aMule
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
aMule.changes
Changed
@@ -8,6 +8,8 @@ * broad legacy-API cleanup - add BuildRequires: libcurl-devel - add BuildRequires: libayatana-appindicator3-devel +- add patch accept_versioned_libatomic.so.1.patch + * fix 32-bit build ------------------------------------------------------------------- Sat Apr 18 13:24:14 UTC 2026 - Giacomo Comes <gcomes.obs@gmail.com>
View file
aMule.spec
Changed
@@ -29,6 +29,8 @@ #https://github.com/amule-org/amule Source0: %{_name}-%{version}.tar.gz Patch0: FTBFS-%{name}-leap-15.6.patch +# PATCH-FIX-UPSTREAM: accept versioned libatomic.so.1 +Patch1: accept_versioned_libatomic.so.1.patch BuildRequires: binutils-devel BuildRequires: boost-devel BuildRequires: cmake
View file
accept_versioned_libatomic.so.1.patch
Added
@@ -0,0 +1,39 @@ +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
.