Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-occ: patch for python 3.10
@ 2022-01-11 23:05 karl-nilsson
  2022-01-13  2:10 ` [PR PATCH] [Merged]: " ericonr
  0 siblings, 1 reply; 2+ messages in thread
From: karl-nilsson @ 2022-01-11 23:05 UTC (permalink / raw)
  To: ml

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

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

https://github.com/karl-nilsson/void-packages pyocc_fix
https://github.com/void-linux/void-packages/pull/35005

python3-occ: patch for python 3.10
<!-- Uncomment relevant sections and delete options which are not applicable -->

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

#### Local build testing
- I built this PR locally for my native architecture, x64-glibc

I've opened an issue upstream, hopefully the patch will be included in the next release.


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

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

From d01c2d6cb870662720459324df8be877b0e5fe22 Mon Sep 17 00:00:00 2001
From: Karl Nilsson <karl.robert.nilsson@gmail.com>
Date: Tue, 11 Jan 2022 17:04:13 -0500
Subject: [PATCH] python3-occ: patch for python 3.10

---
 srcpkgs/python3-occ/patches/python3.10.patch | 15 +++++++++++++++
 srcpkgs/python3-occ/template                 |  2 +-
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/python3-occ/patches/python3.10.patch

diff --git a/srcpkgs/python3-occ/patches/python3.10.patch b/srcpkgs/python3-occ/patches/python3.10.patch
new file mode 100644
index 000000000000..e192608fd3b3
--- /dev/null
+++ b/srcpkgs/python3-occ/patches/python3.10.patch
@@ -0,0 +1,15 @@
+diff --git a/src/Display/SimpleGui.py b/src/Display/SimpleGui.py
+index 42705a82..6a274c16 100644
+--- a/src/Display/SimpleGui.py
++++ b/src/Display/SimpleGui.py
+@@ -161,8 +161,8 @@ def init_display(backend_str: Optional[str]=None,
+             def centerOnScreen(self) -> None:
+                 '''Centers the window on the screen.'''
+                 resolution = QtWidgets.QApplication.desktop().screenGeometry()
+-                x = (resolution.width() - self.frameSize().width()) / 2
+-                y = (resolution.height() - self.frameSize().height()) / 2
++                x = (resolution.width() - self.frameSize().width()) // 2
++                y = (resolution.height() - self.frameSize().height()) // 2
+                 self.move(x, y)
+ 
+             def add_menu(self, menu_name: str) -> None:
diff --git a/srcpkgs/python3-occ/template b/srcpkgs/python3-occ/template
index ce12d2c06656..bee03373a3d1 100644
--- a/srcpkgs/python3-occ/template
+++ b/srcpkgs/python3-occ/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-occ'
 pkgname=python3-occ
 version=7.4.1
-revision=2
+revision=3
 archs="i686* x86_64* armv7l* aarch64* ppc*"
 wrksrc="pythonocc-core-${version}"
 build_style=cmake

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

* Re: [PR PATCH] [Merged]: python3-occ: patch for python 3.10
  2022-01-11 23:05 [PR PATCH] python3-occ: patch for python 3.10 karl-nilsson
@ 2022-01-13  2:10 ` ericonr
  0 siblings, 0 replies; 2+ messages in thread
From: ericonr @ 2022-01-13  2:10 UTC (permalink / raw)
  To: ml

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

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

python3-occ: patch for python 3.10
https://github.com/void-linux/void-packages/pull/35005

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

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

#### Local build testing
- I built this PR locally for my native architecture, x64-glibc

I've opened an issue upstream, hopefully the patch will be included in the next release.


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

end of thread, other threads:[~2022-01-13  2:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 23:05 [PR PATCH] python3-occ: patch for python 3.10 karl-nilsson
2022-01-13  2:10 ` [PR PATCH] [Merged]: " ericonr

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