[med-svn] [Git][med-team/libhmsbeagle][master] 2 commits: Do not build with -march=native

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Nov 6 21:33:19 GMT 2026



Andreas Tille pushed to branch master at Debian Med / libhmsbeagle


Commits:
1c0a78a4 by Andreas Tille at 2026-11-06T21:33:53+01:00
Do not build with -march=native

- - - - -
98a9fd5b by Andreas Tille at 2026-11-06T22:32:47+01:00
d/watch: version=5

- - - - -


5 changed files:

- debian/changelog
- + debian/patches/no-march-native.patch
- debian/patches/series
- debian/rules
- debian/watch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+libhmsbeagle (4.0.1+dfsg-7) UNRELEASED; urgency=medium
+
+  * Do not build with -march=native
+  * d/watch: version=5
+
+ -- Andreas Tille <tille at debian.org>  Fri, 06 Nov 2026 21:32:10 +0100
+
 libhmsbeagle (4.0.1+dfsg-6) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/no-march-native.patch
=====================================
@@ -0,0 +1,21 @@
+Description: Make -march=native optional
+ Upstream unconditionally compiles with -march=native, so the resulting
+ library depends on the CPU of the build host and crashes with SIGILL
+ (e.g. AVX-512 code in scoreFlags() on i386) on other CPUs.
+ Turn the hard-coded variable into an option, default unchanged.
+Author: Andreas Tille <tille at debian.org>
+Forwarded: no
+Comment: This problem was spotted when mrbayes 3.2.9 did not build for i386
+Assisted-By: claude.ai
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,7 +14,7 @@ set(BEAGLE_PLUGIN_VERSION "${BEAGLE_VERS
+ message(STATUS "BEAGLE_VERSION = ${BEAGLE_VERSION}")
+ message(STATUS "BEAGLE_PLUGIN_VERSION = ${BEAGLE_PLUGIN_VERSION}")
+ 
+-set(BEAGLE_OPTIMIZE_FOR_NATIVE_ARCH true)
++option(BEAGLE_OPTIMIZE_FOR_NATIVE_ARCH "Compile with -march=native (not portable)" ON)
+ 
+ option(BUILD_OPENCL "Build beagle with OpenCL library" ON)
+ option(BUILD_CUDA "Build beagle with CUDA library" ON)


=====================================
debian/patches/series
=====================================
@@ -5,3 +5,4 @@ fix-976567.patch
 java_version.patch
 no_synthetictest_because_of_sse.patch
 0007-tests-test_resource.sh-Correct-file.patch
+no-march-native.patch


=====================================
debian/rules
=====================================
@@ -21,7 +21,8 @@ override_dh_auto_configure:
 	dh_auto_configure -- \
 	    -DBUILD_CUDA=OFF \
 	    -DBUILD_OPENCL=OFF \
-	    -DBUILD_SSE=OFF
+	    -DBUILD_SSE=OFF \
+	    -DBEAGLE_OPTIMIZE_FOR_NATIVE_ARCH=OFF
 
 override_dh_auto_build:
 	dh_auto_build


=====================================
debian/watch
=====================================
@@ -1,10 +1,8 @@
 Version: 5
 
 Template: Github
-Project: beagle-lib
-Owner: beagle-dev
+Dist: https://github.com/beagle-dev/beagle-lib
 Uversion-Mangle: s/_/./g
 Repack-Suffix: +dfsg
-Dversion-Mangle: s/\+dfsg//g
-Repack: yes
-Compression: xz
+Dversion-Mangle: auto
+Custom-Version: v\.?(\d[\d.]+)



View it on GitLab: https://salsa.debian.org/med-team/libhmsbeagle/-/compare/b582014478f1dfb45073bffeaab3cd1f5ba73acc...98a9fd5b0bace5fd2e9de69f53b6ef87aae4557e

-- 
View it on GitLab: https://salsa.debian.org/med-team/libhmsbeagle/-/compare/b582014478f1dfb45073bffeaab3cd1f5ba73acc...98a9fd5b0bace5fd2e9de69f53b6ef87aae4557e
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261106/a8d1476f/attachment-0001.htm>


More information about the debian-med-commit mailing list