Bug#1110752: mshr: Fix for mshr ftbfs with boost 1.88

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Mon Sep 22 15:57:46 BST 2025


Package: mshr
Version: 2019.2.0~git20230811.ff54a68+dfsg1-4
Followup-For: Bug #1110752
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu questing ubuntu-patch
Control: tags -1 patch ftbfs

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

Fix the failure to build from source with boost 1.88

  * Fix accessing file name extensions (LP: #2125332)

Thanks for considering the patch.


-- System Information:
Debian Release: forky/sid
  APT prefers questing
  APT policy: (500, 'questing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, riscv64

Kernel: Linux 6.17.0-4-generic (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru mshr-2019.2.0~git20230811.ff54a68+dfsg1/debian/patches/boost_filesystem_extension.patch mshr-2019.2.0~git20230811.ff54a68+dfsg1/debian/patches/boost_filesystem_extension.patch
--- mshr-2019.2.0~git20230811.ff54a68+dfsg1/debian/patches/boost_filesystem_extension.patch	1970-01-01 01:00:00.000000000 +0100
+++ mshr-2019.2.0~git20230811.ff54a68+dfsg1/debian/patches/boost_filesystem_extension.patch	2025-09-22 13:14:00.000000000 +0200
@@ -0,0 +1,19 @@
+From: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
+Subject: correctly access file extension via boost::filesystem
+
+Extension() is a method for a path object.
+
+Last-Update: 2025-09-22
+Forwarded: https://bitbucket.org/fenics-project/mshr/pull-requests/19
+
+--- a/app/mshrable.cpp
++++ b/app/mshrable.cpp
+@@ -125,7 +125,7 @@
+ 
+     if (vm.count("polyout"))
+     {
+-      std::string extension = boost::filesystem::extension(vm["polyout"].as<std::string>());
++      std::string extension = boost::filesystem::path(vm["polyout"].as<std::string>()).extension().string();
+ 
+       if (extension != ".off")
+       {
diff -Nru mshr-2019.2.0~git20230811.ff54a68+dfsg1/debian/patches/series mshr-2019.2.0~git20230811.ff54a68+dfsg1/debian/patches/series
--- mshr-2019.2.0~git20230811.ff54a68+dfsg1/debian/patches/series	2024-10-06 15:51:44.000000000 +0200
+++ mshr-2019.2.0~git20230811.ff54a68+dfsg1/debian/patches/series	2025-09-22 13:14:00.000000000 +0200
@@ -1,3 +1,4 @@
 test_controls.diff
 lib_rename.patch
 CGAL_6_compatibility.diff
+boost_filesystem_extension.patch


More information about the debian-science-maintainers mailing list