Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] Cura 4.1 update
@ 2019-06-14  6:34 voidlinux-github
  2019-06-28  3:02 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: voidlinux-github @ 2019-06-14  6:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

There is a new pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
successfully tested on x64, gnu glibc

testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 9892 bytes --]

From 917a1695b3db005bb91d8bf7b4a97195abaaa3bd Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 02:09:38 -0400
Subject: [PATCH 1/7] python3-zeroconf: update to 0.23.0.

---
 srcpkgs/python3-zeroconf/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/python3-zeroconf/template b/srcpkgs/python3-zeroconf/template
index 62cc8183119..e72829e1b6e 100644
--- a/srcpkgs/python3-zeroconf/template
+++ b/srcpkgs/python3-zeroconf/template
@@ -1,6 +1,6 @@
 # Template file for 'python3-zeroconf'
 pkgname=python3-zeroconf
-version=0.21.3
+version=0.23.0
 revision=1
 archs=noarch
 wrksrc="zeroconf-${version}"
@@ -13,4 +13,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://github.com/jstasiak/python-zeroconf"
 distfiles="${PYPI_SITE}/z/zeroconf/zeroconf-${version}.tar.gz"
-checksum=5b52dfdf4e665d98a17bf9aa50dea7a8c98e25f972d9c1d7660e2b978a1f5713
+checksum=e0c333b967c48f8b2e5cc94a1d4d28893023fb06dfd797ee384a94cdd1d0eef5

From b41274b35bd976558b2a42590bb9dc44411ae535 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 2/7] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 98e3755c2c81f1216058942cc420a68b7b57d708 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 3/7] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 21237a38e45ea69c21c869f4e2a6ee62d0246ca1 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:09 -0400
Subject: [PATCH 4/7] libSavitar: update to 4.1.0.

---
 srcpkgs/libSavitar/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libSavitar/template b/srcpkgs/libSavitar/template
index 53285687199..52336f5ad12 100644
--- a/srcpkgs/libSavitar/template
+++ b/srcpkgs/libSavitar/template
@@ -1,6 +1,6 @@
 # Template file for 'libSavitar'
 pkgname=libSavitar
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 hostmakedepends="python3"
@@ -10,7 +10,7 @@ maintainer="maxice8 <thinkabit.ukim@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libSavitar"
 distfiles="https://github.com/Ultimaker/libSavitar/archive/${version}.tar.gz"
-checksum=c1d6807f55049b73d19e3395c6fc8598e3ab9079b804a77ad2ef0928d7a03f62
+checksum=20e019c89313b442ae561c341568eacba59ef5682791974d816387ebb15fe62b
 nocross="can't find sip on cross environment"
 
 libSavitar-devel_package() {

From 091d3bcce2cd66323f4bb0e137931ade02a4ca2f Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 5/7] cura-engine: update to 4.1.0.

---
 srcpkgs/cura-engine/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 3fc25a4722e440bef22a86304ff503e3491b85fb Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 6/7] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 3ea130237d0910ca9dd7eec5f9518048c1564ddd Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 7/7] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
  2019-06-28  3:02 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-06-28  3:02 ` voidlinux-github
  2019-06-28 19:41 ` voidlinux-github
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-06-28  3:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
successfully tested on x64, gnu glibc

testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 8798 bytes --]

From 917a1695b3db005bb91d8bf7b4a97195abaaa3bd Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 02:09:38 -0400
Subject: [PATCH 1/6] python3-zeroconf: update to 0.23.0.

---
 srcpkgs/python3-zeroconf/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/python3-zeroconf/template b/srcpkgs/python3-zeroconf/template
index 62cc8183119..e72829e1b6e 100644
--- a/srcpkgs/python3-zeroconf/template
+++ b/srcpkgs/python3-zeroconf/template
@@ -1,6 +1,6 @@
 # Template file for 'python3-zeroconf'
 pkgname=python3-zeroconf
-version=0.21.3
+version=0.23.0
 revision=1
 archs=noarch
 wrksrc="zeroconf-${version}"
@@ -13,4 +13,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://github.com/jstasiak/python-zeroconf"
 distfiles="${PYPI_SITE}/z/zeroconf/zeroconf-${version}.tar.gz"
-checksum=5b52dfdf4e665d98a17bf9aa50dea7a8c98e25f972d9c1d7660e2b978a1f5713
+checksum=e0c333b967c48f8b2e5cc94a1d4d28893023fb06dfd797ee384a94cdd1d0eef5

From b41274b35bd976558b2a42590bb9dc44411ae535 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 2/6] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 98e3755c2c81f1216058942cc420a68b7b57d708 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 3/6] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 9432b6aecc943da97d8bc8c4b6d10132e93c173e Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 4/6] cura-engine: update to 4.1.0.

---
 srcpkgs/cura-engine/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From af46a8b97e1a52db8ae79389f74293dd9fd56abe Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 5/6] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 28a93efc7c53677aa5f0712246527f4e39b39f76 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 6/6] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
@ 2019-06-28  3:02 ` voidlinux-github
  2019-06-28  3:02 ` voidlinux-github
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-06-28  3:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
successfully tested on x64, gnu glibc

testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 8798 bytes --]

From 917a1695b3db005bb91d8bf7b4a97195abaaa3bd Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 02:09:38 -0400
Subject: [PATCH 1/6] python3-zeroconf: update to 0.23.0.

---
 srcpkgs/python3-zeroconf/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/python3-zeroconf/template b/srcpkgs/python3-zeroconf/template
index 62cc8183119..e72829e1b6e 100644
--- a/srcpkgs/python3-zeroconf/template
+++ b/srcpkgs/python3-zeroconf/template
@@ -1,6 +1,6 @@
 # Template file for 'python3-zeroconf'
 pkgname=python3-zeroconf
-version=0.21.3
+version=0.23.0
 revision=1
 archs=noarch
 wrksrc="zeroconf-${version}"
@@ -13,4 +13,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://github.com/jstasiak/python-zeroconf"
 distfiles="${PYPI_SITE}/z/zeroconf/zeroconf-${version}.tar.gz"
-checksum=5b52dfdf4e665d98a17bf9aa50dea7a8c98e25f972d9c1d7660e2b978a1f5713
+checksum=e0c333b967c48f8b2e5cc94a1d4d28893023fb06dfd797ee384a94cdd1d0eef5

From b41274b35bd976558b2a42590bb9dc44411ae535 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 2/6] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 98e3755c2c81f1216058942cc420a68b7b57d708 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 3/6] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 9432b6aecc943da97d8bc8c4b6d10132e93c173e Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 4/6] cura-engine: update to 4.1.0.

---
 srcpkgs/cura-engine/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From af46a8b97e1a52db8ae79389f74293dd9fd56abe Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 5/6] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 28a93efc7c53677aa5f0712246527f4e39b39f76 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 6/6] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
  2019-06-28  3:02 ` [PR PATCH] [Updated] " voidlinux-github
  2019-06-28  3:02 ` voidlinux-github
@ 2019-06-28 19:41 ` voidlinux-github
  2019-06-28 19:41 ` voidlinux-github
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-06-28 19:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
successfully tested on x64, gnu glibc

testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 8798 bytes --]

From c9e252b51a037b7d2ad7cbd05d3da85230a3c7f5 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 02:09:38 -0400
Subject: [PATCH 1/6] python3-zeroconf: update to 0.23.0.

---
 srcpkgs/python3-zeroconf/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/python3-zeroconf/template b/srcpkgs/python3-zeroconf/template
index 62cc8183119..e72829e1b6e 100644
--- a/srcpkgs/python3-zeroconf/template
+++ b/srcpkgs/python3-zeroconf/template
@@ -1,6 +1,6 @@
 # Template file for 'python3-zeroconf'
 pkgname=python3-zeroconf
-version=0.21.3
+version=0.23.0
 revision=1
 archs=noarch
 wrksrc="zeroconf-${version}"
@@ -13,4 +13,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://github.com/jstasiak/python-zeroconf"
 distfiles="${PYPI_SITE}/z/zeroconf/zeroconf-${version}.tar.gz"
-checksum=5b52dfdf4e665d98a17bf9aa50dea7a8c98e25f972d9c1d7660e2b978a1f5713
+checksum=e0c333b967c48f8b2e5cc94a1d4d28893023fb06dfd797ee384a94cdd1d0eef5

From 1b94373be87849a44e9f441fd5c866cccdf4c0ec Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 2/6] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 6deaab09ac663aabc8634be96b38a21f8bdb66ce Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 3/6] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 85491d8b79cb7b0833d71db5f7bde86592da11e8 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 4/6] cura-engine: update to 4.1.0.

---
 srcpkgs/cura-engine/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 4587b0795c7a376c6843612357262a3a43aa3ecb Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 5/6] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 39fd4cd10591c5963797070c3587b52b0365e75b Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 6/6] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (2 preceding siblings ...)
  2019-06-28 19:41 ` voidlinux-github
@ 2019-06-28 19:41 ` voidlinux-github
  2019-06-28 21:15 ` voidlinux-github
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-06-28 19:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
successfully tested on x64, gnu glibc

testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 8798 bytes --]

From c9e252b51a037b7d2ad7cbd05d3da85230a3c7f5 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 02:09:38 -0400
Subject: [PATCH 1/6] python3-zeroconf: update to 0.23.0.

---
 srcpkgs/python3-zeroconf/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/python3-zeroconf/template b/srcpkgs/python3-zeroconf/template
index 62cc8183119..e72829e1b6e 100644
--- a/srcpkgs/python3-zeroconf/template
+++ b/srcpkgs/python3-zeroconf/template
@@ -1,6 +1,6 @@
 # Template file for 'python3-zeroconf'
 pkgname=python3-zeroconf
-version=0.21.3
+version=0.23.0
 revision=1
 archs=noarch
 wrksrc="zeroconf-${version}"
@@ -13,4 +13,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-2.1-or-later"
 homepage="https://github.com/jstasiak/python-zeroconf"
 distfiles="${PYPI_SITE}/z/zeroconf/zeroconf-${version}.tar.gz"
-checksum=5b52dfdf4e665d98a17bf9aa50dea7a8c98e25f972d9c1d7660e2b978a1f5713
+checksum=e0c333b967c48f8b2e5cc94a1d4d28893023fb06dfd797ee384a94cdd1d0eef5

From 1b94373be87849a44e9f441fd5c866cccdf4c0ec Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 2/6] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 6deaab09ac663aabc8634be96b38a21f8bdb66ce Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 3/6] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 85491d8b79cb7b0833d71db5f7bde86592da11e8 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 4/6] cura-engine: update to 4.1.0.

---
 srcpkgs/cura-engine/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 4587b0795c7a376c6843612357262a3a43aa3ecb Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 5/6] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 39fd4cd10591c5963797070c3587b52b0365e75b Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 6/6] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (4 preceding siblings ...)
  2019-06-28 21:15 ` voidlinux-github
@ 2019-06-28 21:15 ` voidlinux-github
  2019-07-12  2:29 ` voidlinux-github
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-06-28 21:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
successfully tested on x64, gnu glibc

testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 7735 bytes --]

From 3b3d8ea4cd88a97a42357e4ffab428b2f22b88b8 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 1e50c11bdc8f97b653710cfe263eee803db52a8e Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From d321b5dec2983abd18bb6aac5d18e6fa785fba64 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 srcpkgs/cura-engine/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From eb70f3d7836ac3d3f78793c4c982fc4734b91ae2 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From a66ae3c9218a9a3eca2d7aac616b06b5de30cf04 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (3 preceding siblings ...)
  2019-06-28 19:41 ` voidlinux-github
@ 2019-06-28 21:15 ` voidlinux-github
  2019-06-28 21:15 ` voidlinux-github
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-06-28 21:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 379 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
successfully tested on x64, gnu glibc

testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 7735 bytes --]

From 3b3d8ea4cd88a97a42357e4ffab428b2f22b88b8 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 1e50c11bdc8f97b653710cfe263eee803db52a8e Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From d321b5dec2983abd18bb6aac5d18e6fa785fba64 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 srcpkgs/cura-engine/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From eb70f3d7836ac3d3f78793c4c982fc4734b91ae2 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From a66ae3c9218a9a3eca2d7aac616b06b5de30cf04 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (5 preceding siblings ...)
  2019-06-28 21:15 ` voidlinux-github
@ 2019-07-12  2:29 ` voidlinux-github
  2019-07-12  2:29 ` voidlinux-github
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-12  2:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From 9d046f83546f700e263e7dc7b716d24a328b8af8 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 71a808528c852701ff2d952257aa78b303a51f76 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From ecb6ca62ad1204ae9c469f0d023331d684571a29 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 043edcd49cdfd8bd45cfe78c94e21ad2502f2ae6 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 06e53c7a9d1fdc8aa82a4353c0c8a79a9f8734eb Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (6 preceding siblings ...)
  2019-07-12  2:29 ` voidlinux-github
@ 2019-07-12  2:29 ` voidlinux-github
  2019-07-17 19:27 ` voidlinux-github
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-12  2:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From 9d046f83546f700e263e7dc7b716d24a328b8af8 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 71a808528c852701ff2d952257aa78b303a51f76 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From ecb6ca62ad1204ae9c469f0d023331d684571a29 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 043edcd49cdfd8bd45cfe78c94e21ad2502f2ae6 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 06e53c7a9d1fdc8aa82a4353c0c8a79a9f8734eb Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (8 preceding siblings ...)
  2019-07-17 19:27 ` voidlinux-github
@ 2019-07-17 19:27 ` voidlinux-github
  2019-07-18 17:08 ` voidlinux-github
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-17 19:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
~~[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)~~
[cura segfaults](https://github.com/Ultimaker/Cura/issues/5882) probably related to PyQt

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From c79fbbc789b636af94a48a5e15b627eb48b741a0 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From d73de7a9acc93a1db45d55a77bd0f063133e6735 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 1d62088c3b1c631fee3cf75c1eb62e0aced8a377 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From a4089c8b48960067cfacfc384a0a685866d8f3ab Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 622c3accc574438c40ec010e8334c43d5b1f0b16 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (7 preceding siblings ...)
  2019-07-12  2:29 ` voidlinux-github
@ 2019-07-17 19:27 ` voidlinux-github
  2019-07-17 19:27 ` voidlinux-github
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-17 19:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
~~[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)~~
[cura segfaults](https://github.com/Ultimaker/Cura/issues/5882) probably related to PyQt

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From c79fbbc789b636af94a48a5e15b627eb48b741a0 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From d73de7a9acc93a1db45d55a77bd0f063133e6735 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 1d62088c3b1c631fee3cf75c1eb62e0aced8a377 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From a4089c8b48960067cfacfc384a0a685866d8f3ab Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 622c3accc574438c40ec010e8334c43d5b1f0b16 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (10 preceding siblings ...)
  2019-07-18 17:08 ` voidlinux-github
@ 2019-07-18 17:08 ` voidlinux-github
  2019-07-20 21:56 ` voidlinux-github
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-18 17:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
~~[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)~~
[cura segfaults](https://github.com/Ultimaker/Cura/issues/5882) probably related to PyQt

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From 964277099ac7aaa0de4a84d7dceaf96fbe07d192 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 5c0fc38cd770be3a0b6c660abb98653eeb672710 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 922955e2f4f36eb9160dc341714bced58d97fb98 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 3712047e24574d8bcb244721a6c83ae77dcde662 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 0dc99ab441443933aa4fa07ce335ba1b8afa5f4f Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (9 preceding siblings ...)
  2019-07-17 19:27 ` voidlinux-github
@ 2019-07-18 17:08 ` voidlinux-github
  2019-07-18 17:08 ` voidlinux-github
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-18 17:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
~~[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)~~
[cura segfaults](https://github.com/Ultimaker/Cura/issues/5882) probably related to PyQt

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From 964277099ac7aaa0de4a84d7dceaf96fbe07d192 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 5c0fc38cd770be3a0b6c660abb98653eeb672710 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 922955e2f4f36eb9160dc341714bced58d97fb98 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 3712047e24574d8bcb244721a6c83ae77dcde662 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 0dc99ab441443933aa4fa07ce335ba1b8afa5f4f Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (11 preceding siblings ...)
  2019-07-18 17:08 ` voidlinux-github
@ 2019-07-20 21:56 ` voidlinux-github
  2019-07-20 21:56 ` voidlinux-github
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-20 21:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
~~[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)~~
[cura segfaults](https://github.com/Ultimaker/Cura/issues/5882) probably related to PyQt

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From a61d56f20c10007e97720c0dfbe38fc4fdb3b763 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 4a58374476152224bb03e094fede18beb7e3d459 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 96b680303641241fc12ab305502458d5e2a18fd7 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From b5015b31fd08d6c9b0b0543e0d8514289487a862 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From ee8a6072765b45eb2f1e732c1ce2bf17a2aa864e Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] [WIP] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (12 preceding siblings ...)
  2019-07-20 21:56 ` voidlinux-github
@ 2019-07-20 21:56 ` voidlinux-github
  2019-07-23  1:47 ` [PR PATCH] [Updated] " voidlinux-github
  2019-07-23  1:47 ` voidlinux-github
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-20 21:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

[WIP] Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
~~[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)~~
[cura segfaults](https://github.com/Ultimaker/Cura/issues/5882) probably related to PyQt

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From a61d56f20c10007e97720c0dfbe38fc4fdb3b763 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 4a58374476152224bb03e094fede18beb7e3d459 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From 96b680303641241fc12ab305502458d5e2a18fd7 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From b5015b31fd08d6c9b0b0543e0d8514289487a862 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From ee8a6072765b45eb2f1e732c1ce2bf17a2aa864e Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (13 preceding siblings ...)
  2019-07-20 21:56 ` voidlinux-github
@ 2019-07-23  1:47 ` voidlinux-github
  2019-07-23  1:47 ` voidlinux-github
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-23  1:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
~~[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)~~
~~[cura segfaults](https://github.com/Ultimaker/Cura/issues/5882) probably related to PyQt~~

Testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From 09f4dfbc4793bf4614cd4a72b46e6c2ae9b7976c Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 2cd3bd942b2ba96fc2425e40afd668bf5a779105 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From f2df46bdcff53cd0dd0c91480bc7585b3c1fe26f Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 0fb7020be81c3e4d774fd10c3929e04c8951fa95 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 78c34ebfe80d200ea6c3d7cdde681b7c95963055 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PR PATCH] [Updated] Cura 4.1 update
  2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
                   ` (14 preceding siblings ...)
  2019-07-23  1:47 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-07-23  1:47 ` voidlinux-github
  15 siblings, 0 replies; 17+ messages in thread
From: voidlinux-github @ 2019-07-23  1:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

There is an updated pull request by karl-nilsson against master on the void-packages repository

https://github.com/karl-nilsson/void-packages cura-4.1
https://github.com/void-linux/void-packages/pull/12450

Cura 4.1 update
~~successfully tested on x64, gnu glibc~~
~~[cura-engine fails to build](https://github.com/Ultimaker/CuraEngine/issues/984)~~
~~[cura segfaults](https://github.com/Ultimaker/Cura/issues/5882) probably related to PyQt~~

Testers welcome!

A patch file from https://github.com/void-linux/void-packages/pull/12450.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cura-4.1-12450.patch --]
[-- Type: application/text/x-diff, Size: 11117 bytes --]

From 09f4dfbc4793bf4614cd4a72b46e6c2ae9b7976c Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:51:52 -0400
Subject: [PATCH 1/5] cura-fdm-materials: update to 4.1.0.

---
 srcpkgs/cura-fdm-materials/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/cura-fdm-materials/template b/srcpkgs/cura-fdm-materials/template
index 045a684d23a..7f3edb8f59d 100644
--- a/srcpkgs/cura-fdm-materials/template
+++ b/srcpkgs/cura-fdm-materials/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-fdm-materials'
 pkgname=cura-fdm-materials
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="fdm_materials-${version}"
@@ -10,7 +10,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="CC0-1.0"
 homepage="https://github.com/Ultimaker/fdm_materials"
 distfiles="https://github.com/Ultimaker/fdm_materials/archive/${version}.tar.gz"
-checksum=ab2c6fcbabd699c65380d7746e58d85e8d5d46271b88b13ba325d6b9f1b66f08
+checksum=4a71742d33f004e6c1b63a25b3c296c2c7872a189775b1dcbaeea9853ec59166
 
 post_install() {
 	vlicense LICENSE

From 2cd3bd942b2ba96fc2425e40afd668bf5a779105 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:52:12 -0400
Subject: [PATCH 2/5] libArcus: update to 4.1.0.

---
 srcpkgs/libArcus/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/libArcus/template b/srcpkgs/libArcus/template
index 8bd39d1675c..91f3a26cd15 100644
--- a/srcpkgs/libArcus/template
+++ b/srcpkgs/libArcus/template
@@ -1,6 +1,6 @@
 # Template file for 'libArcus'
 pkgname=libArcus
-version=4.0.0
+version=4.1.0
 revision=1
 build_style=cmake
 configure_args="-DBUILD_EXAMPLES=OFF"
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/libArcus"
 distfiles="https://github.com/Ultimaker/libArcus/archive/${version}.tar.gz"
-checksum=fc7709fe8e9738d219baa65606a092dc67d5c9fc3002d48f074a7c55db87a8e4
+checksum=6be791cea7e12b7b9e4c6be771aac28d43b8530258dc1480cf8c30bed0c0f550
 
 libArcus-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

From f2df46bdcff53cd0dd0c91480bc7585b3c1fe26f Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:17 -0400
Subject: [PATCH 3/5] cura-engine: update to 4.1.0.

---
 .../cura-engine/patches/CuraEngine-gcc9.patch | 48 +++++++++++++++++++
 srcpkgs/cura-engine/template                  |  4 +-
 2 files changed, 50 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch

diff --git a/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
new file mode 100644
index 00000000000..328cfc2b687
--- /dev/null
+++ b/srcpkgs/cura-engine/patches/CuraEngine-gcc9.patch
@@ -0,0 +1,48 @@
+From 9fd93712220aa2754e077bf89f165c7a9b795abd Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Gabriel=20F=C3=A9ron?= <feron.gabriel@gmail.com>
+Date: Tue, 18 Jun 2019 22:58:47 +0200
+Subject: [PATCH] [PATCH 3/3] GCC 9 patches
+
+---
+ src/layerPart.cpp | 2 +-
+ src/support.cpp   | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git src/layerPart.cpp src/layerPart.cpp
+index ba3e7157..6cf0919a 100644
+--- src/layerPart.cpp
++++ src/layerPart.cpp
+@@ -52,7 +52,7 @@ void createLayerParts(SliceMeshStorage& mesh, Slicer* slicer)
+ {
+     const auto total_layers = slicer->layers.size();
+     assert(mesh.layers.size() == total_layers);
+-#pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
++#pragma omp parallel for default(none) shared(mesh, slicer, total_layers) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_nr = 0; layer_nr < static_cast<int>(total_layers); layer_nr++)
+     {
+diff --git src/support.cpp src/support.cpp
+index 9bd531a6..bb7a741d 100644
+--- src/support.cpp
++++ src/support.cpp
+@@ -875,7 +875,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+     constexpr bool no_prime_tower = false;
+     xy_disallowed_per_layer[0] = storage.getLayerOutlines(0, no_support, no_prime_tower).offset(xy_distance);
+     // for all other layers (of non support meshes) compute the overhang area and possibly use that when calculating the support disallowed area
+-    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh) schedule(dynamic)
++    #pragma omp parallel for default(none) shared(xy_disallowed_per_layer, storage, mesh, layer_count, is_support_mesh_place_holder, use_xy_distance_overhang, z_distance_top, tan_angle, xy_distance, xy_distance_overhang) schedule(dynamic)
+     // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+     for (int layer_idx = 1; layer_idx < static_cast<int>(layer_count); layer_idx++)
+     {
+@@ -1070,7 +1070,7 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
+         const int max_checking_layer_idx = std::max(0,
+                                                     std::min(static_cast<int>(storage.support.supportLayers.size()),
+                                                              static_cast<int>(layer_count - (layer_z_distance_top - 1))));
+-#pragma omp parallel for default(none) shared(support_areas, storage) schedule(dynamic)
++#pragma omp parallel for default(none) shared(support_areas, storage, max_checking_layer_idx, layer_z_distance_top) schedule(dynamic)
+         // Use a signed type for the loop counter so MSVC compiles (because it uses OpenMP 2.0, an old version).
+         for (int layer_idx = 0; layer_idx < max_checking_layer_idx; layer_idx++)
+         {
+-- 
+2.21.0
+
diff --git a/srcpkgs/cura-engine/template b/srcpkgs/cura-engine/template
index a3d26dc9498..b72a8f16e1c 100644
--- a/srcpkgs/cura-engine/template
+++ b/srcpkgs/cura-engine/template
@@ -1,6 +1,6 @@
 # Template file for 'cura-engine'
 pkgname=cura-engine
-version=4.0.0
+version=4.1.0
 revision=1
 wrksrc="CuraEngine-${version}"
 build_style=cmake
@@ -12,7 +12,7 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="AGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/CuraEngine"
 distfiles="https://github.com/Ultimaker/CuraEngine/archive/${version}.tar.gz"
-checksum=08c8cc6ca6ba44ce35cf66b06e399408dd5fc809a208afc1892f0f700728326e
+checksum=8599bd123462692600d6ccf3b0baab5d87fe87aebb9736f1398768c7fdf6b340
 
 post_install() {
 	vlicense LICENSE

From 0fb7020be81c3e4d774fd10c3929e04c8951fa95 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:37 -0400
Subject: [PATCH 4/5] Uranium: update to 4.1.0.

---
 .../0002-Fix-install-prefix-symlink.patch     | 30 -------------------
 srcpkgs/Uranium/template                      |  4 +--
 2 files changed, 2 insertions(+), 32 deletions(-)
 delete mode 100644 srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch

diff --git a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch b/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
deleted file mode 100644
index 101d8ef90be..00000000000
--- a/srcpkgs/Uranium/patches/0002-Fix-install-prefix-symlink.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 237dc959ca536ae4a45d1ba59d4ad6cf86a36946 Mon Sep 17 00:00:00 2001
-From: Ghostkeeper <rubend@tutanota.com>
-Date: Mon, 25 Feb 2019 11:58:02 +0100
-Subject: [PATCH] Fix install prefix when installing in symlinked directory
-
-If /bin is a symlink to /usr/bin and /bin appears before /usr/bin on the user's PATH, it would get sys.argv[0]='/bin/python3'. This then messes up the install location ('/') which consequently messes up the data and config storage directories.
-This solution is provided by CapnKernel and should resolve the symlink so that sys.argv[0]='/usr/bin/python3' again and the storage data and config storage directories become something like /usr/share/... again.
----
- UM/Application.py | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git UM/Application.py UM/Application.py
-index 05adb8f3..f709438a 100644
---- UM/Application.py
-+++ UM/Application.py
-@@ -398,9 +398,10 @@ class Application:
-     @staticmethod
-     def getInstallPrefix() -> str:
-         if "python" in os.path.basename(sys.executable):
--            return os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
-+            executable = sys.argv[0]
-         else:
--            return os.path.abspath(os.path.join(os.path.dirname(sys.executable), ".."))
-+            executable = sys.executable
-+        return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(executable)), ".."))
- 
-     __instance = None   # type: Application
- 
--- 
-2.21.0
diff --git a/srcpkgs/Uranium/template b/srcpkgs/Uranium/template
index 6f31c47ce79..8412416c0ef 100644
--- a/srcpkgs/Uranium/template
+++ b/srcpkgs/Uranium/template
@@ -1,6 +1,6 @@
 # Template file for 'Uranium'
 pkgname=Uranium
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 build_style=cmake
@@ -15,4 +15,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Uranium"
 distfiles="https://github.com/Ultimaker/Uranium/archive/${version}.tar.gz"
-checksum=d405183b98b2e8db8c8c11ebe6f8838865cb4ac7f6a55ab0ac654b060edf9dd8
+checksum=72245dba1fb74236144ffbe59497ef495b87bb3bb2b1d7ffcadebe138824eed4

From 78c34ebfe80d200ea6c3d7cdde681b7c95963055 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Fri, 14 Jun 2019 01:53:41 -0400
Subject: [PATCH 5/5] cura: update to 4.1.0.

---
 srcpkgs/cura/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cura/template b/srcpkgs/cura/template
index 9575ad0ee8b..52967a5cc3c 100644
--- a/srcpkgs/cura/template
+++ b/srcpkgs/cura/template
@@ -1,14 +1,14 @@
 # Template file for 'cura'
 pkgname=cura
-version=4.0.0
+version=4.1.0
 revision=1
 archs=noarch
 wrksrc="Cura-${version}"
 build_style=cmake
-configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0 -DCURA_CLOUD_API_VERSION=1"
+configure_args="-DCURA_VERSION=${version} -DCURA_SDK_VERSION=6.0.0"
 pycompile_module="cura"
 pycompile_dirs="usr/lib/cura/plugins"
-makedepends="Uranium libArcus-devel"
+makedepends="python3-devel Uranium libArcus-devel"
 depends="Uranium cura-engine cura-fdm-materials python3-pyserial python3-zeroconf
  libSavitar-python3 python3-requests qt5-graphicaleffects"
 short_desc="3D printer / slicing GUI"
@@ -16,4 +16,4 @@ maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
 license="LGPL-3.0-or-later"
 homepage="https://github.com/Ultimaker/Cura"
 distfiles="https://github.com/Ultimaker/Cura/archive/${version}.tar.gz"
-checksum=546742eaade2d097fb7bef2d89189c17d5fb75291715f58d394076c234d6f4d3
+checksum=29bce1086f9e9e2b773c2d43986cfc00dd3b3c70fbfdb5d84bdf1e31da6812fc

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-07-23  1:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-14  6:34 [PR PATCH] [WIP] Cura 4.1 update voidlinux-github
2019-06-28  3:02 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-28  3:02 ` voidlinux-github
2019-06-28 19:41 ` voidlinux-github
2019-06-28 19:41 ` voidlinux-github
2019-06-28 21:15 ` voidlinux-github
2019-06-28 21:15 ` voidlinux-github
2019-07-12  2:29 ` voidlinux-github
2019-07-12  2:29 ` voidlinux-github
2019-07-17 19:27 ` voidlinux-github
2019-07-17 19:27 ` voidlinux-github
2019-07-18 17:08 ` voidlinux-github
2019-07-18 17:08 ` voidlinux-github
2019-07-20 21:56 ` voidlinux-github
2019-07-20 21:56 ` voidlinux-github
2019-07-23  1:47 ` [PR PATCH] [Updated] " voidlinux-github
2019-07-23  1:47 ` voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).