Bug#1143644: brial: Patch to get the package back to building

Maximiliano Curia maxy at debian.org
Wed Sep 9 21:26:13 BST 2026


user debian-python at lists.debian.org
usertags 1143644 python3.15
tags 1143644 patch
retitle 1143644 brial: FTBFS with GCC 16
thanks

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version I ran into this FTBFS [1].

To solve the problem I had to do two changes:
- Apply upstream fix df5b4fd300cdbdd4cda920a27fdc5257f3cfea26 "Fix
   compilation and tests with C++20 (#64)"
- The tests depend on sagemath, which doesn't work with the current
   Python versions, so I replaced that test with a simpler one.

I've applied these fixes in the sandbox [2] to verify that it builds
successfully, these should be applied in Debian to get brial back to a
healthy state.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4416214/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

-- 
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_c++20_compilation.patch
Type: text/x-diff
Size: 2257 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260909/24edc02c/attachment.patch>
-------------- next part --------------
#!/bin/sh
set -e

if [ -z "$AUTOPKGTEST_TMP" ]; then
    AUTOPKGTEST_TMP=$(mktemp -d)
    trap 'rm -rf "$AUTOPKGTEST_TMP"' EXIT
fi

cd "$AUTOPKGTEST_TMP"

cat << 'EOF' > test_brial.cc
#include <polybori.h>
#include <polybori/groebner/GroebnerStrategy.h>
#include <iostream>

USING_NAMESPACE_PBORI
USING_NAMESPACE_PBORIGB

int main() {
    BoolePolyRing ring(10);
    BooleVariable x(0, ring);
    BoolePolynomial p = x + 1;
    GroebnerStrategy strat(ring);
    strat.addGenerator(p);
    std::cout << "p = " << p << std::endl;
    return 0;
}
EOF

${CXX:-g++} test_brial.cc -lbrial -lbrial_groebner -o test_brial
./test_brial
-------------- next part --------------
Tests: build-and-run
Depends: libbrial-dev, libbrial-groebner-dev, build-essential
Restrictions: allow-stderr


More information about the debian-science-maintainers mailing list