From 56acf3b9dd8f15f2a72e596bc7d7a7e98fff36cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= Date: Tue, 8 Oct 2019 09:04:57 +0200 Subject: [PATCH] Update to 4.4.0 - Remove CURA_SDK_VERSION CMake variable - Force to run with X11 to workaround invisible window on Wayland --- .gitignore | 21 +-------------------- 0001-Force-to-open-with-X11.patch | 25 +++++++++++++++++++++++++ cura.spec | 13 ++++++++----- sources | 2 +- 4 files changed, 35 insertions(+), 26 deletions(-) create mode 100644 0001-Force-to-open-with-X11.patch diff --git a/.gitignore b/.gitignore index 8025087..3099be2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,20 +1 @@ -/Cura-13.03-linux-fedora.tar.gz -/Cura-13.04-linux-fedora.tar.gz -/Cura-13.10-fedora.tar.gz -/Cura-13.11.2-fedora.tar.gz -/Cura-14.06-fedora.tar.gz -/Cura-14.09-fedora.tar.gz -/Cura-14.12.1-fedora.tar.gz -/Cura-15.02.1-fedora.tar.gz -/Cura-95c2af21db7fdda8c4324a923fa004859f6c5b9c-fedora.tar.gz -/cura-2.5.0.tar.gz -/cura-2.6.1.tar.gz -/cura-2.7.0.tar.gz -/cura-3.0.3.tar.gz -/cura-3.1.0.tar.gz -/cura-3.2.1.tar.gz -/cura-3.3.0.tar.gz -/cura-3.4.1.tar.gz -/cura-3.5.1.tar.gz -/cura-3.6.0.tar.gz -/cura-4.0.0.tar.gz +/cura-*.tar.gz diff --git a/0001-Force-to-open-with-X11.patch b/0001-Force-to-open-with-X11.patch new file mode 100644 index 0000000..a44b1d5 --- /dev/null +++ b/0001-Force-to-open-with-X11.patch @@ -0,0 +1,25 @@ +From 56bd818610c64211b166fe1812e62d1758487a68 Mon Sep 17 00:00:00 2001 +From: Gabriel Feron +Date: Thu, 21 Nov 2019 16:13:53 +0100 +Subject: [PATCH] Force to open with X11 + +--- + cura_app.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/cura_app.py b/cura_app.py +index e14b441..4ab44ef 100755 +--- a/cura_app.py ++++ b/cura_app.py +@@ -42,6 +42,8 @@ if not known_args["debug"]: + + # WORKAROUND: GITHUB-88 GITHUB-385 GITHUB-612 + if Platform.isLinux(): # Needed for platform.linux_distribution, which is not available on Windows and OSX ++ # Workaround for invisible window on Wayland and (at least) Fedora 31 ++ os.environ["XDG_SESSION_TYPE"] = "x11" + # For Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/941826 + # The workaround is only needed on Ubuntu+NVidia drivers. Other drivers are not affected, but fine with this fix. + try: +-- +2.23.0 + diff --git a/cura.spec b/cura.spec index 264bfc5..72e944e 100644 --- a/cura.spec +++ b/cura.spec @@ -1,14 +1,15 @@ Name: cura Epoch: 1 -Version: 4.1.0 -Release: 4%{?dist} +Version: 4.4.0 +Release: 1%{?dist} Summary: 3D printer control software # https://lists.fedoraproject.org/archives/list/legal@lists.fedoraproject.org/thread/MOUNX6I3POCDMYWBNJ7JPLLIKVYWVRBJ/ License: LGPLv3+ URL: https://ultimaker.com/en/products/cura-software -Source0: https://github.com/Ultimaker/Cura/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/Ultimaker/Cura/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: 0001-Force-to-open-with-X11.patch BuildArch: noarch @@ -58,7 +59,6 @@ great results. For experts, there are over 200 settings to adjust to your needs. As it's open source, our community helps enrich it even more. # see: https://github.com/Ultimaker/Cura/issues/5142 -%define cura_sdk_version 6.0.0 %define cura_cloud_api_root https://api.ultimaker.com %define cura_cloud_api_version 1 %define cura_cloud_account_api_root https://account.ultimaker.com @@ -76,7 +76,6 @@ sed -i '1s=^#!/usr/bin/\(python\|env python\)3*=#!%{__python3}=' cura_app.py %{cmake} \ -DCURA_VERSION:STRING=%{version} \ -DCURA_BUILDTYPE=RPM \ - -DCURA_SDK_VERSION:STRING=%{cura_sdk_version} \ -DCURA_CLOUD_API_ROOT:STRING=%{cura_cloud_api_root} \ -DCURA_CLOUD_API_VERSION:STRING=%{cura_cloud_api_version} \ -DCURA_CLOUD_ACCOUNT_API_ROOT:STRING=%{cura_cloud_account_api_root} \ @@ -140,6 +139,10 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %{_prefix}/lib/%{name} %changelog +* Thu Nov 21 2019 Gabriel Féron - 4.4.0-1 +- Update to 4.4.0 +- Force X11 to workaround invisible window on Wayland + * Thu Oct 03 2019 Miro Hrončok - 1:4.1.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) diff --git a/sources b/sources index 4b47b27..b2fabca 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cura-4.1.0.tar.gz) = 9cb76ca1ff45916111070e5664bdb0e53002ee4539677e01c4096722066cd25de0664d33fbf3ceffda010bd460c14a3855b32b79555946c218d3373e2a6ee767 +SHA512 (cura-4.4.0.tar.gz) = 7728553d15fc843c0f2aca83e1ce3df9806835eedd0be6d7447c3edd18cda7e4a23400192f70b1c385841463126dea5bbfc7316f8f12ed26b9392047cabc69d3