Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] freecad: fix for python 3.11
@ 2023-03-11  6:02 unspecd
  2023-03-11  8:56 ` [PR PATCH] [Merged]: " classabbyamp
  0 siblings, 1 reply; 2+ messages in thread
From: unspecd @ 2023-03-11  6:02 UTC (permalink / raw)
  To: ml

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

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

https://github.com/unspecd/void-packages pkg/freecad
https://github.com/void-linux/void-packages/pull/42697

freecad: fix for python 3.11
https://github.com/FreeCAD/FreeCAD/pull/8101

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pkg/freecad-42697.patch --]
[-- Type: text/x-diff, Size: 2580 bytes --]

From 450557c5c701e789d2ca5637458c89379b25278e Mon Sep 17 00:00:00 2001
From: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
Date: Sat, 11 Mar 2023 16:56:51 +1100
Subject: [PATCH] freecad: fix for python 3.11

---
 ...d63c8c9b1280978be841d04e68a0a55cceb9.patch | 32 +++++++++++++++++++
 srcpkgs/freecad/template                      |  2 +-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/freecad/patches/fe02d63c8c9b1280978be841d04e68a0a55cceb9.patch

diff --git a/srcpkgs/freecad/patches/fe02d63c8c9b1280978be841d04e68a0a55cceb9.patch b/srcpkgs/freecad/patches/fe02d63c8c9b1280978be841d04e68a0a55cceb9.patch
new file mode 100644
index 000000000000..44b8d977def0
--- /dev/null
+++ b/srcpkgs/freecad/patches/fe02d63c8c9b1280978be841d04e68a0a55cceb9.patch
@@ -0,0 +1,32 @@
+From fe02d63c8c9b1280978be841d04e68a0a55cceb9 Mon Sep 17 00:00:00 2001
+From: Roy-043 <70520633+Roy-043@users.noreply.github.com>
+Date: Thu, 29 Dec 2022 23:20:38 +0100
+Subject: [PATCH] Draft: update inspect.getargspec to inspect.getfullargspec
+ (#8101)
+
+---
+ src/Mod/Draft/draftguitools/gui_snapper.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Mod/Draft/draftguitools/gui_snapper.py b/src/Mod/Draft/draftguitools/gui_snapper.py
+index de27eaa53482..ef9ba5284d3c 100644
+--- a/src/Mod/Draft/draftguitools/gui_snapper.py
++++ b/src/Mod/Draft/draftguitools/gui_snapper.py
+@@ -1438,7 +1438,7 @@ def accept():
+             Gui.Snapper.off()
+             self.ui.offUi()
+             if callback:
+-                if len(inspect.getargspec(callback).args) > 1:
++                if len(inspect.getfullargspec(callback).args) > 1:
+                     obj = None
+                     if self.snapInfo and ("Object" in self.snapInfo) and self.snapInfo["Object"]:
+                         obj = App.ActiveDocument.getObject(self.snapInfo["Object"])
+@@ -1457,7 +1457,7 @@ def cancel():
+             Gui.Snapper.off()
+             self.ui.offUi()
+             if callback:
+-                if len(inspect.getargspec(callback).args) > 1:
++                if len(inspect.getfullargspec(callback).args) > 1:
+                     callback(None, None)
+                 else:
+                     callback(None)
diff --git a/srcpkgs/freecad/template b/srcpkgs/freecad/template
index ed34920ada45..f62023ee8ce4 100644
--- a/srcpkgs/freecad/template
+++ b/srcpkgs/freecad/template
@@ -1,7 +1,7 @@
 # Template file for 'freecad'
 pkgname=freecad
 version=0.20.2
-revision=2
+revision=3
 build_style=cmake
 
 _inst_prefix=/usr/lib/${pkgname}

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

* Re: [PR PATCH] [Merged]: freecad: fix for python 3.11
  2023-03-11  6:02 [PR PATCH] freecad: fix for python 3.11 unspecd
@ 2023-03-11  8:56 ` classabbyamp
  0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2023-03-11  8:56 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

freecad: fix for python 3.11
https://github.com/void-linux/void-packages/pull/42697

Description:
https://github.com/FreeCAD/FreeCAD/pull/8101

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)


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

end of thread, other threads:[~2023-03-11  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11  6:02 [PR PATCH] freecad: fix for python 3.11 unspecd
2023-03-11  8:56 ` [PR PATCH] [Merged]: " classabbyamp

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).