public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/papilo] f44: Build with RoundingSat support
@ 2026-10-28 22:14 Jerry James
0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-10-28 22:14 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/papilo
Branch : f44
Commit : 764b31baf771bc165a6e05c7e5b29de43a832cff
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-10-28T16:06:33-06:00
Stats : +27/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/papilo/c/764b31baf771bc165a6e05c7e5b29de43a832cff?branch=f44
Log:
Build with RoundingSat support
---
diff --git a/papilo-roundingsat.patch b/papilo-roundingsat.patch
new file mode 100644
index 0000000..cc29335
--- /dev/null
+++ b/papilo-roundingsat.patch
@@ -0,0 +1,23 @@
+--- papilo-3.0.2/binaries/CMakeLists.txt.orig 2026-09-17 02:08:30.000000000 -0600
++++ papilo-3.0.2/binaries/CMakeLists.txt 2026-10-22 07:27:05.791919500 -0600
+@@ -137,7 +137,8 @@ if(Boost_IOSTREAMS_FOUND AND Boost_SERIA
+ ${ROUNDINGSAT_DIR}/src/used_licenses/lgpl_3_0.cpp
+ )
+ endif()
+- add_executable(papilo-executable ${CMAKE_CURRENT_LIST_DIR}/../src/papilo.cpp ${roundingsat_source_files})
++ add_executable(papilo-executable ${CMAKE_CURRENT_LIST_DIR}/../src/papilo.cpp)
++ target_link_libraries(papilo-executable roundingsat)
+
+ if(PAPILO_HAVE_ROUNDINGSAT)
+ list(APPEND linked_solvers "Roundingsat")
+--- papilo-3.0.2/CMakeLists.txt.orig 2026-10-22 07:11:09.325729326 -0600
++++ papilo-3.0.2/CMakeLists.txt 2026-10-22 07:43:25.652622234 -0600
+@@ -160,7 +160,7 @@ endif()
+ # Target `papilo` is an interface with all the dependencies.
+ add_library(papilo INTERFACE)
+ if(ROUNDINGSAT_DIR)
+- set(ROUNDINGSAT_INCLUDE_DIRS ${ROUNDINGSAT_DIR}/src/)
++ set(ROUNDINGSAT_INCLUDE_DIRS ${ROUNDINGSAT_DIR})
+ endif()
+ target_include_directories(papilo INTERFACE
+ $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>
diff --git a/papilo.spec b/papilo.spec
index cdf918b..a69d9dd 100644
--- a/papilo.spec
+++ b/papilo.spec
@@ -34,12 +34,15 @@ Patch: %{name}-shared.patch
# Avoid out-of-bounds vector access
# https://github.com/scipopt/papilo/pull/48
Patch: %{name}-vector-bounds.patch
+# Link with the roundingsat library instead of trying to build it from source
+Patch: %{name}-roundingsat.patch
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
BuildSystem: cmake
BuildOption(conf): -DQUADMATH:BOOL=%{quadmath}
%if %{without bootstrap}
+BuildOption(conf): -DROUNDINGSAT_DIR:PATH=%{_includedir}/roundingsat
BuildOption(conf): -DSCIP:BOOL=ON
BuildOption(conf): -DSOPLEX:BOOL=ON
%endif
@@ -62,6 +65,7 @@ BuildRequires: pkgconfig(gmp)
# Solver support
BuildRequires: cmake(scip)
BuildRequires: cmake(soplex)
+BuildRequires: roundingsat-devel
%endif
Requires: libpapilo%{?_isa} = %{version}-%{release}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-28 22:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28 22:14 [rpms/papilo] f44: Build with RoundingSat support Jerry James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox