public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/papilo] f44: Build with RoundingSat support
Date: Wed, 28 Oct 2026 22:14:51 GMT	[thread overview]
Message-ID: <179322569193.1.17649477489974126820.rpms-papilo-764b31baf771@fedoraproject.org> (raw)

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}

                 reply	other threads:[~2026-10-28 22:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179322569193.1.17649477489974126820.rpms-papilo-764b31baf771@fedoraproject.org \
    --to=loganjerry@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox