On Sun, Mar 01 2026, Stuart Henderson wrote:
> On 2026/03/01 13:17, Mikolaj Kucharski wrote:
>> Hi.
>>
>> I run out of disk space on /usr/local today with 25GB partition and that
>> got me really surprised. What cought my attention that prusa-slicer
>> binary is more that 800MB in size. Is this epxected? I stripped it to
>> approx 32MB.
>
> upstream builds various things with debug symbols. given that this is
> for LP64 archs only, probably easiest to just do this so they get moved
> to debug-prusaslicer, otherwise it seems a bunch of patching is needed.
>
> Renato, ok with you?
>
> -rw-r--r-- 2 _pbuild wsrc 165M Mar 1 14:34 debug-prusaslicer-2.9.4.tgz
> -rw-r--r-- 2 _pbuild wsrc 77.1M Mar 1 14:34 prusaslicer-2.9.4.tgz
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/cad/prusaslicer/Makefile,v
> diff -u -p -r1.28 Makefile
> --- Makefile 15 Feb 2026 00:20:27 -0000 1.28
> +++ Makefile 1 Mar 2026 13:56:12 -0000
> @@ -3,6 +3,7 @@ ONLY_FOR_ARCHS = ${LP64_ARCHS}
> DPB_PROPERTIES = parallel
>
> V = 2.9.4
> +REVISION = 0
> PKGNAME = prusaslicer-${V}
>
> GH_ACCOUNT = prusa3d
> @@ -38,6 +39,7 @@ WANTLIB += wx_gtk3u_webview-3.2 z z3
> FIX_CRLF_FILES = src/slic3r/GUI/GLCanvas3D.cpp
>
> COMPILER = base-clang ports-gcc
> +DEBUG_PACKAGES = ${BUILD_PACKAGES}
>
> MODULES = devel/cmake \
> x11/gnome
I'm OK with that. We also have the option to, instead, remove debug info
completely.
This is what I got with the attached diff changing the build type.
Before:
256M /usr/ports/packages/amd64/ftp/prusaslicer-2.9.4.tgz
875M /usr/local/bin/prusa-slicer
After:
76.9M /usr/ports/packages/amd64/ftp/prusaslicer-2.9.4p0.tgz
43.0M /usr/local/bin/prusa-slicer
diff --git a/cad/prusaslicer/Makefile b/cad/prusaslicer/Makefile
index a8462be96eb..95a85366657 100644
--- a/cad/prusaslicer/Makefile
+++ b/cad/prusaslicer/Makefile
@@ -3,6 +3,7 @@ ONLY_FOR_ARCHS = ${LP64_ARCHS}
DPB_PROPERTIES = parallel
V = 2.9.4
+REVISION = 0
PKGNAME = prusaslicer-${V}
GH_ACCOUNT = prusa3d
@@ -71,7 +72,7 @@ LIB_DEPENDS = cad/opencascade \
x11/wxWidgets \
x11/wxWidgets,-webview
-CONFIGURE_ARGS += -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+CONFIGURE_ARGS += -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_MODULE_PATH=${PREFIX}/lib/cmake/OpenVDB \
-DSLIC3R_FHS=1 \
-DSLIC3R_GTK=3 \
No comments:
Post a Comment