Github messages for voidlinux
 help / color / mirror / Atom feed
From: tsndqst <tsndqst@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] GNS3 2.2.35 - new version supports Python 3.11
Date: Wed, 09 Nov 2022 03:34:03 +0100	[thread overview]
Message-ID: <20221109023403.FnqPvesEoTdaG0m3xqdveT6vN-Ov5L9DqlYDWs5yZr0@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40400@inbox.vuxu.org>

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

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

https://github.com/tsndqst/void-packages gns3-2.2.35
https://github.com/void-linux/void-packages/pull/40400

GNS3 2.2.35 - new version supports Python 3.11
Python 3.11 support was added to GNS3 2.2.35.
A new required library was added to 2.2.35 so a new Void package was created.

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

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

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

For reference, `gns3` 2.2.34 fails 

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

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

From 24022bf779105a60f391ce595730f39874090047 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Tue, 8 Nov 2022 19:00:18 -0600
Subject: [PATCH 1/2] gns3-gui: update to 2.2.35.

---
 srcpkgs/gns3-gui/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 5b83f9314837..8a08c6d34214 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,7 +1,7 @@
 # Template file for 'gns3-gui'
 pkgname=gns3-gui
-version=2.2.34
-revision=2
+version=2.2.35
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3-setuptools python3-psutil python3-jsonschema
@@ -14,7 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://gns3.com"
 changelog="https://raw.githubusercontent.com/GNS3/gns3-gui/master/CHANGELOG"
 distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=bf66313a4808fdb1cd9b06c72d34fd9fc4bcf5abe990dfd8de70d8128a2c26dc
+checksum=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
 
 
 post_patch() {

From 52164192ac654c4ee3590550bf7be7dc03b9c036 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Tue, 8 Nov 2022 19:00:23 -0600
Subject: [PATCH 2/2] gns3-server: update to 2.2.35.

---
 srcpkgs/gns3-server/patches/importlib.patch | 65 +++++++++++++++++++++
 srcpkgs/gns3-server/template                |  6 +-
 2 files changed, 68 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/gns3-server/patches/importlib.patch

diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
new file mode 100644
index 000000000000..c3dbd98bc766
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/importlib.patch
@@ -0,0 +1,65 @@
+diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py
+index 5c5236b9..971e3452 100644
+--- a/gns3server/controller/__init__.py
++++ b/gns3server/controller/__init__.py
+@@ -22,7 +22,11 @@ import uuid
+ import socket
+ import shutil
+ import aiohttp
+-import importlib_resources
++
++try:
++    from importlib import resources as importlib_resources
++except ImportError:
++    import importlib_resources
+ 
+ from ..config import Config
+ from .project import Project
+diff --git a/gns3server/controller/appliance_manager.py b/gns3server/controller/appliance_manager.py
+index d15fc69b..41b73104 100644
+--- a/gns3server/controller/appliance_manager.py
++++ b/gns3server/controller/appliance_manager.py
+@@ -21,9 +21,13 @@ import json
+ import uuid
+ import asyncio
+ import aiohttp
+-import importlib_resources
+ import shutil
+ 
++try:
++    from importlib import resources as importlib_resources
++except ImportError:
++    import importlib_resources
++
+ from .appliance import Appliance
+ from ..config import Config
+ from ..utils.asyncio import locking
+diff --git a/gns3server/utils/get_resource.py b/gns3server/utils/get_resource.py
+index b4b599bd..f4054cd3 100644
+--- a/gns3server/utils/get_resource.py
++++ b/gns3server/utils/get_resource.py
+@@ -19,7 +19,11 @@ import atexit
+ import logging
+ import os
+ import sys
+-import importlib_resources
++
++try:
++    from importlib import resources as importlib_resources
++except ImportError:
++    import importlib_resources
+ 
+ from contextlib import ExitStack
+ resource_manager = ExitStack()
+diff --git a/requirements.txt b/requirements.txt
+index 53f1200d..5eda661b 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -11,6 +11,6 @@ psutil==5.9.2
+ async-timeout>=4.0.2,<4.1
+ distro>=1.7.0
+ py-cpuinfo>=9.0.0,<10.0
+-importlib-resources>=1.3
++importlib-resources>=1.3; python_version < '3.9'
+ setuptools>=60.8.1; python_version >= '3.7'
+ setuptools==59.6.0; python_version < '3.7'  # v59.6.0 is the last version to support Python 3.6
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index c795b151432d..e1b3c68ca2cd 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,7 +1,7 @@
 # Template file for 'gns3-server'
 pkgname=gns3-server
-version=2.2.34
-revision=2
+version=2.2.35
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
@@ -14,7 +14,7 @@ license="GPL-3.0-or-later"
 homepage="https://gns3.com"
 changelog="https://raw.githubusercontent.com/GNS3/gns3-server/master/CHANGELOG"
 distfiles="https://github.com/GNS3/gns3-server/archive/v${version}.tar.gz"
-checksum=8bd61a0777df7cf195b2670ab81139f3029d9b33cf329cfa612d2b2ea3def947
+checksum=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
 
 # The source archive contains statically linked artifacts for x86_64
 # glibc, since this is the only architecture supported by upstream, we

  parent reply	other threads:[~2022-11-09  2:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-09  1:32 [PR PATCH] " tsndqst
2022-11-09  1:47 ` classabbyamp
2022-11-09  2:03 ` classabbyamp
2022-11-09  2:15 ` tsndqst
2022-11-09  2:34 ` tsndqst [this message]
2022-11-09  2:34 ` tsndqst
2022-11-09  2:35 ` tsndqst
2022-11-09  8:41 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221109023403.FnqPvesEoTdaG0m3xqdveT6vN-Ov5L9DqlYDWs5yZr0@z \
    --to=tsndqst@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).