- enforce GDK_BACKEND=x11 gh#prusa3d/PrusaSlicer#4691 by
indroducing the same wrapper as Fedora OBS-URL: https://build.opensuse.org/package/show/science/PrusaSlicer?expand=0&rev=15
This commit is contained in:
parent
bbaa80a2eb
commit
d30d5f3630
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 1 11:46:30 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- enforce GDK_BACKEND=x11 gh#prusa3d/PrusaSlicer#4691 by
|
||||||
|
indroducing the same wrapper as Fedora
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 20 15:50:07 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Thu Aug 20 15:50:07 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ It also works with Mach3, LinuxCNC and Machinekit controllers.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-version_%{version}
|
%setup -q -n %{name}-version_%{version}
|
||||||
sed -i 's/UNKNOWN/OpenSUSE/' version.inc
|
sed -i 's/UNKNOWN/OpenSUSE-release%{release}/' version.inc
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# The build process really acquires that much memory per job. We are
|
# The build process really acquires that much memory per job. We are
|
||||||
@ -85,6 +85,17 @@ sed -i 's/UNKNOWN/OpenSUSE/' version.inc
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
|
# https://github.com/prusa3d/PrusaSlicer/issues/4691
|
||||||
|
# Since the binary segfaults under Wayland, we have to wrap it.
|
||||||
|
mv %{buildroot}%{_bindir}/prusa-slicer %{buildroot}%{_bindir}/prusa-slicer.wrapped
|
||||||
|
cat >> %{buildroot}%{_bindir}/prusa-slicer <<'END'
|
||||||
|
#!/bin/sh
|
||||||
|
export GDK_BACKEND=x11
|
||||||
|
exec %{_bindir}/prusa-slicer.wrapped "$@"
|
||||||
|
END
|
||||||
|
chmod 755 %{buildroot}%{_bindir}/prusa-slicer
|
||||||
|
|
||||||
for res in 32 128 192; do
|
for res in 32 128 192; do
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/
|
||||||
ln -sr %{buildroot}%{_datadir}/%{name}/icons/%{name}_${res}px.png \
|
ln -sr %{buildroot}%{_datadir}/%{name}/icons/%{name}_${res}px.png \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user