Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages /
prusa-slicer
Commits:
94effd97 by Sven-Hendrik Haase at 2026-01-29T15:38:47+01:00
upgpkg: 2.9.4-5: Remove D_GLIBCXX_ASSERTIONS to fix some assertion crashes
Upstream doesn't use it and so sometimes we would get crashes that upstream
doesn't want to fix.
Better turn off these assertions then.
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = prusa-slicer
pkgdesc = G-code generator for 3D printers (Prusa fork of Slic3r)
pkgver = 2.9.4
- pkgrel = 4
+ pkgrel = 5
url = https://github.com/prusa3d/PrusaSlicer
arch = x86_64
license = AGPL-3.0-only
=====================================
PKGBUILD
=====================================
@@ -5,7 +5,7 @@
pkgbase=prusa-slicer
pkgname=(prusa-slicer slicer-udev)
pkgver=2.9.4
-pkgrel=4
+pkgrel=5
pkgdesc="G-code generator for 3D printers (Prusa fork of Slic3r)"
arch=('x86_64')
url="https://github.com/prusa3d/PrusaSlicer"
@@ -38,11 +38,13 @@ prepare() {
cd PrusaSlicer-version_${pkgver/_/-}
# We want to use the system OpenVDB
rm cmake/modules/FindOpenVDB.cmake
+
# Dynamically link system OpenCASCADE
sed -i -e 's/\(OpenCASCADE\).*\(REQUIRED\)/\1 \2/
/TK/d
s/^\(set(OCCT_LIBS\)/\1 TKDESTEP/' \
src/occt_wrapper/CMakeLists.txt
+
patch -Np1 -i "${srcdir}"/fixes_boost.patch
patch -Np1 -i "${srcdir}"/fixes_cgal.patch
patch -Np1 -i "${srcdir}"/fixes_nanosvg.patch
@@ -60,6 +62,9 @@ prepare() {
build() {
export CMAKE_POLICY_VERSION_MINIMUM=3.5
+ # Fix crashes
+ export CXXFLAGS=${CXXFLAGS/-Wp,-D_GLIBCXX_ASSERTIONS}
+
# Use all packages currently available in extra from the system.
# While upstream does not provide any support if we are using system deps,
# the alignment of ABI incompatibiities seem more challenging. Additionally,
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/prusa-slicer/-/commit/94effd97688ca40244236ce17b46121e85bb0fd5
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/prusa-slicer/-/commit/94effd97688ca40244236ce17b46121e85bb0fd5
You're receiving this email because of your account on gitlab.archlinux.org.