* [PR PATCH] GNS3 and dynamips updates
@ 2023-01-05 16:04 tsndqst
2023-01-05 17:01 ` [PR PATCH] [Updated] " tsndqst
` (47 more replies)
0 siblings, 48 replies; 49+ messages in thread
From: tsndqst @ 2023-01-05 16:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
There is a new pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
GNS3 update to 2.2.36
Dynamips update required for GNS3 2.2.36
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 6063 bytes --]
From 66ef59fac9ece621f293059c2f8c4f7b4bd7f432 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
---
srcpkgs/dynamips/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6c0d7fd74cea 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,6 +1,6 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
archs="i686* x86_64*"
build_style=cmake
@@ -11,7 +11,7 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
# Dynamips does processor instruction translation. This is already
# painfully slow on powerful x86 hardware and is unlikely to work
From 8247a62a95b7d91821dded2e50a5cb070df14e38 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 6 +-
2 files changed, 3 insertions(+), 68 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..74baeb0088da 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,9 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
-hostmakedepends="python3-setuptools"
+hostmakedepends="python3-setuptools busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
# The source archive contains statically linked artifacts for x86_64
# glibc, since this is the only architecture supported by upstream, we
From 15363591e762a5b6e7c02cf20bea3d683fca36c8 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
@ 2023-01-05 17:01 ` tsndqst
2023-01-05 17:10 ` tsndqst
` (46 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-05 17:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
GNS3 update to 2.2.36
Dynamips update required for GNS3 2.2.36
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 6146 bytes --]
From 66ef59fac9ece621f293059c2f8c4f7b4bd7f432 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
---
srcpkgs/dynamips/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6c0d7fd74cea 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,6 +1,6 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
archs="i686* x86_64*"
build_style=cmake
@@ -11,7 +11,7 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
# Dynamips does processor instruction translation. This is already
# painfully slow on powerful x86 hardware and is unlikely to work
From 364cbe48e40baa06a889a8556f82b6f7ecdcbd28 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 8 ++-
2 files changed, 5 insertions(+), 68 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..80f3361d08d3 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
-hostmakedepends="python3-setuptools"
+# Skip test that fails in CI
+make_check_args="-k-test_subprocess_check_output"
+hostmakedepends="python3-setuptools busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,7 +16,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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
# The source archive contains statically linked artifacts for x86_64
# glibc, since this is the only architecture supported by upstream, we
From 5f3bf473b7077b35db0da1eaadcee6360bd737ee Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
2023-01-05 17:01 ` [PR PATCH] [Updated] " tsndqst
@ 2023-01-05 17:10 ` tsndqst
2023-01-05 17:16 ` tsndqst
` (45 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-05 17:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
GNS3 update to 2.2.36
Dynamips update required for GNS3 2.2.36
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 6151 bytes --]
From 66ef59fac9ece621f293059c2f8c4f7b4bd7f432 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
---
srcpkgs/dynamips/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6c0d7fd74cea 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,6 +1,6 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
archs="i686* x86_64*"
build_style=cmake
@@ -11,7 +11,7 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
# Dynamips does processor instruction translation. This is already
# painfully slow on powerful x86 hardware and is unlikely to work
From 483936ee2aeb7007d2a467af14520c405ed3ea36 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 8 ++-
2 files changed, 5 insertions(+), 68 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..fbb60bbc122b 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
-hostmakedepends="python3-setuptools"
+# Skip test that fails in CI
+make_check_args="-k'not test_subprocess_check_output'"
+hostmakedepends="python3-setuptools busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,7 +16,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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
# The source archive contains statically linked artifacts for x86_64
# glibc, since this is the only architecture supported by upstream, we
From e5a836d1eed145ecd8aeaaae2510c5f68796aa88 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
2023-01-05 17:01 ` [PR PATCH] [Updated] " tsndqst
2023-01-05 17:10 ` tsndqst
@ 2023-01-05 17:16 ` tsndqst
2023-01-05 22:48 ` [PR REVIEW] " CameronNemo
` (44 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-05 17:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
GNS3 update to 2.2.36
Dynamips update required for GNS3 2.2.36
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 6063 bytes --]
From 66ef59fac9ece621f293059c2f8c4f7b4bd7f432 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
---
srcpkgs/dynamips/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6c0d7fd74cea 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,6 +1,6 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
archs="i686* x86_64*"
build_style=cmake
@@ -11,7 +11,7 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
# Dynamips does processor instruction translation. This is already
# painfully slow on powerful x86 hardware and is unlikely to work
From 3d1f24292b5fd1d6552bd9643eddf780fb5f8ea9 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 6 +-
2 files changed, 3 insertions(+), 68 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..74baeb0088da 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,9 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
-hostmakedepends="python3-setuptools"
+hostmakedepends="python3-setuptools busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
# The source archive contains statically linked artifacts for x86_64
# glibc, since this is the only architecture supported by upstream, we
From d10391e8526f4683069b1fc476b22295313fa40b Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR REVIEW] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (2 preceding siblings ...)
2023-01-05 17:16 ` tsndqst
@ 2023-01-05 22:48 ` CameronNemo
2023-01-05 23:51 ` tsndqst
` (43 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: CameronNemo @ 2023-01-05 22:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 296 bytes --]
New review comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#discussion_r1062960407
Comment:
busybox-static? Why was this necessary to add? And does this mean gns3 can run on non-x86_64 arches? See note below, it is referring to busybox.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR REVIEW] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (3 preceding siblings ...)
2023-01-05 22:48 ` [PR REVIEW] " CameronNemo
@ 2023-01-05 23:51 ` tsndqst
2023-01-06 17:47 ` [PR PATCH] [Updated] " tsndqst
` (42 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-05 23:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 365 bytes --]
New review comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#discussion_r1062990086
Comment:
I think you're right @CameronNemo. https://github.com/GNS3/gns3-server/issues/1890 includes the change to use a stock busybox to inject into Docker images. I'll test it out on arm64 and see if I can get it working.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (4 preceding siblings ...)
2023-01-05 23:51 ` tsndqst
@ 2023-01-06 17:47 ` tsndqst
2023-01-06 17:57 ` tsndqst
` (41 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-06 17:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
GNS3 update to 2.2.36
Dynamips update required for GNS3 2.2.36
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 6842 bytes --]
From 0b62a47a09c7d293b87a66f2278326c22d5ac58f Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
---
srcpkgs/dynamips/template | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..16252270ddc3 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,4 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
-
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
From 63f6b53c6b98a68ea2c4f390dd667b5401290b84 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 17 +++---
2 files changed, 8 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..ff0383d3db11 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 9749b5cddeac0c1a3ff829a81b4f918330f89a38 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (5 preceding siblings ...)
2023-01-06 17:47 ` [PR PATCH] [Updated] " tsndqst
@ 2023-01-06 17:57 ` tsndqst
2023-01-06 18:00 ` CameronNemo
` (40 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-06 17:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1373959590
Comment:
I updated the templates to cross compile dynamips and gns3-server. I tested it locally with aarch64 and they both worked. I'll have to dig into the CI failures a bit when I have some time.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (6 preceding siblings ...)
2023-01-06 17:57 ` tsndqst
@ 2023-01-06 18:00 ` CameronNemo
2023-01-07 2:56 ` tsndqst
` (39 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: CameronNemo @ 2023-01-06 18:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1373962023
Comment:
Looks like, for dynamips, there is some binary being generated and invoked:
>/bin/sh: line 1: /builddir/dynamips-0.2.23/build/stable/rom2c: cannot execute binary file: Exec format error
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (7 preceding siblings ...)
2023-01-06 18:00 ` CameronNemo
@ 2023-01-07 2:56 ` tsndqst
2023-01-07 4:02 ` CameronNemo
` (38 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-07 2:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1374359611
Comment:
I was able to reproduce the problem on one of my x86_64 machines but I can't figure out what the difference is between the machine that can cross compile dynamips and the one that can't. The host xbps-src runs on shouldn't affect the outcome but something is different between the two. Got any hints about how to track down the difference?
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (8 preceding siblings ...)
2023-01-07 2:56 ` tsndqst
@ 2023-01-07 4:02 ` CameronNemo
2023-01-07 14:51 ` tsndqst
` (37 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: CameronNemo @ 2023-01-07 4:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 262 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1374370149
Comment:
Off hand I would say that zapping masterdir and clearing out any stale binpkgs would be good troubleshooting tactic.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (9 preceding siblings ...)
2023-01-07 4:02 ` CameronNemo
@ 2023-01-07 14:51 ` tsndqst
2023-01-07 15:37 ` tsndqst
` (36 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-07 14:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1374505144
Comment:
> Off hand I would say that zapping masterdir and clearing out any stale binpkgs would be good troubleshooting tactic.
I tried it on a fresh clone of `void-packages` and it still worked fine. I'll keep digging.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (10 preceding siblings ...)
2023-01-07 14:51 ` tsndqst
@ 2023-01-07 15:37 ` tsndqst
2023-01-08 15:30 ` [PR PATCH] [Updated] " tsndqst
` (35 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-07 15:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1374518833
Comment:
I figured it out. My main desktop where I initially tested this has `binfmt-support` installed and configured. The laptop I tested after CI failed does not have it. I installed and configured `binfmt-support` on my laptop and cross compiling worked. I seems like making use of binfmts would make cross compiling easier but I'm not sure if adding the dependency is something the maintainers would want. Maybe there's another way to handle this that I don't know about.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (11 preceding siblings ...)
2023-01-07 15:37 ` tsndqst
@ 2023-01-08 15:30 ` tsndqst
2023-01-08 15:37 ` tsndqst
` (34 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-08 15:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
GNS3 update to 2.2.36
Dynamips update required for GNS3 2.2.36
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7137 bytes --]
From 435b4b6c311fc09263de4a2f0ccb5a73121317f4 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..a8db4f767f72 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,8 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+if ! grep -c enabled /proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static; then
+ nocross="binfmt support not enabled"
+fi
From 7d617702fe9959f390e164f45ba8c55a1f42698c Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
Enable non-x86 platforms now that gns3-server uses a stock BusyBox for the Docker integration
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 17 +++---
2 files changed, 8 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..ff0383d3db11 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From a713832bcc8c5bfd3d6f503432169ebc02caf3f8 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (12 preceding siblings ...)
2023-01-08 15:30 ` [PR PATCH] [Updated] " tsndqst
@ 2023-01-08 15:37 ` tsndqst
2023-01-08 15:40 ` tsndqst
` (33 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-08 15:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7166 bytes --]
From 1af83d1e880408c1ba046a6c63a628519ca7ebb6 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..aaaeb98d8c82 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,10 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -c enabled ${_BINFMT_PATH}; then
+ nocross="binfmt support not enabled"
+fi
From 4fc60505316a335b87113aff65388338771ded4a Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
Enable non-x86 platforms now that gns3-server uses a stock BusyBox for the Docker integration
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 17 +++---
2 files changed, 8 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..ff0383d3db11 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 1c07623533030178a885fe66cf230aa1eb4eda26 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (13 preceding siblings ...)
2023-01-08 15:37 ` tsndqst
@ 2023-01-08 15:40 ` tsndqst
2023-01-08 15:48 ` tsndqst
` (32 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-08 15:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7166 bytes --]
From fb6d03f15a6ecc9258677f8901e85ce0cac45ae3 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..7d8636858725 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,10 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH}; then
+ nocross="binfmt support not enabled"
+fi
From 4304498eccac0c397488a1740f368c29a9024a28 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
Enable non-x86 platforms now that gns3-server uses a stock BusyBox for the Docker integration
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 17 +++---
2 files changed, 8 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..ff0383d3db11 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 8bf7322dcbd5027498b818b6225dc8cf66a13b20 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (14 preceding siblings ...)
2023-01-08 15:40 ` tsndqst
@ 2023-01-08 15:48 ` tsndqst
2023-01-08 15:57 ` tsndqst
` (31 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-08 15:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7072 bytes --]
From fb6d03f15a6ecc9258677f8901e85ce0cac45ae3 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..7d8636858725 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,10 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH}; then
+ nocross="binfmt support not enabled"
+fi
From 3dcfcaff8b139b06f8d42f11a0d0b361b63d64b7 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 17 +++---
2 files changed, 8 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..ff0383d3db11 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 28db292cc52395263b61cf55905a8ff5e5419aec Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (15 preceding siblings ...)
2023-01-08 15:48 ` tsndqst
@ 2023-01-08 15:57 ` tsndqst
2023-01-08 16:10 ` tsndqst
` (30 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-08 15:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7084 bytes --]
From 3a4cf20a90d437db4031823018861629e1b448b5 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6b26bfe0efc5 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,10 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 96a3083b0b5c0a04c74b8e6ef7b9fe6f36ac4ec3 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 17 +++---
2 files changed, 8 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..ff0383d3db11 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 5615457717288c466cfadda0c601d5cf6cd3fe6b Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (16 preceding siblings ...)
2023-01-08 15:57 ` tsndqst
@ 2023-01-08 16:10 ` tsndqst
2023-01-08 16:13 ` tsndqst
` (29 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-08 16:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7875 bytes --]
From 3a4cf20a90d437db4031823018861629e1b448b5 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/4] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6b26bfe0efc5 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,10 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 96a3083b0b5c0a04c74b8e6ef7b9fe6f36ac4ec3 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/4] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 17 +++---
2 files changed, 8 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..ff0383d3db11 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 5615457717288c466cfadda0c601d5cf6cd3fe6b Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/4] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
From 6026e2b4c381eee024cc0b8d32f98d0745b74fcf Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Sun, 8 Jan 2023 10:09:35 -0600
Subject: [PATCH 4/4] Skip flakey test
---
srcpkgs/gns3-server/template | 2 ++
1 file changed, 2 insertions(+)
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index ff0383d3db11..9c6d68756d9c 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -4,6 +4,8 @@ version=2.2.36
revision=1
build_style=python3-module
build_helper=qemu
+# Skip flakey test
+make_check_args="-k 'not test_subprocess_check_output'"
hostmakedepends="python3-setuptools"
makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (17 preceding siblings ...)
2023-01-08 16:10 ` tsndqst
@ 2023-01-08 16:13 ` tsndqst
2023-01-08 16:33 ` leahneukirchen
` (28 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-08 16:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7162 bytes --]
From 3a4cf20a90d437db4031823018861629e1b448b5 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6b26bfe0efc5 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,10 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From f3c904bc3b1b6df6b5a3641759cabc172af1e304 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 19 +++---
2 files changed, 10 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 e1b3c68ca2cd..9c6d68756d9c 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,13 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
+# Skip flakey test
+make_check_args="-k 'not test_subprocess_check_output'"
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +18,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 6111f597b13120dd46af2eed534c499c878e4807 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (18 preceding siblings ...)
2023-01-08 16:13 ` tsndqst
@ 2023-01-08 16:33 ` leahneukirchen
2023-01-25 15:00 ` tsndqst
` (27 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: leahneukirchen @ 2023-01-08 16:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 815 bytes --]
There is an updated pull request by leahneukirchen against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7938 bytes --]
From 3a4cf20a90d437db4031823018861629e1b448b5 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6b26bfe0efc5 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,10 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 2f5c085888c4a733cd65f16fdc6bcf1d68ea83c8 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.36.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
3 files changed, 19 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..ff0383d3db11 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=37ad282a26c380818cabd69f99f5f9ae53548d6d672ab8587fa1cbfa5dbe7071
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 3ef85218cf94d984312a68d421c393a3a79326eb Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.36.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..41925a996969 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.36
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d8c92273f4a55b3b7a635d4c1621d64be4ee9f7501933e3f1486d06daa729481
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (19 preceding siblings ...)
2023-01-08 16:33 ` leahneukirchen
@ 2023-01-25 15:00 ` tsndqst
2023-01-25 15:14 ` tsndqst
` (26 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-25 15:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7938 bytes --]
From 6e699772b0fb2f4d5370b568559d34b068efe3c2 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..6b26bfe0efc5 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,10 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 829a3b20ddf71db3beb0e3a9bd0ff9ecf684597b Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.37.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
3 files changed, 19 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..7e63447aa20f 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.37
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=1cdad8dccd39c3c70e80d8ec2599d62df7020b97e7eecc8217208fa3146c73f7
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 7aeb243516ac6414d15dec19ec19e2b74f62b8ef Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.37.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..7082e27d6109 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.37
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=bb191bb1e1adf8b37d88f9dccfa39916d3f3288d0517d1bfeefc54bf0c4f10fd
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (20 preceding siblings ...)
2023-01-25 15:00 ` tsndqst
@ 2023-01-25 15:14 ` tsndqst
2023-01-25 15:47 ` [PR REVIEW] " CameronNemo
` (25 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-25 15:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 284 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1403775643
Comment:
@CameronNemo can you re-review this? GNS3 was updated since I created this PR so I bumped the version since the last time you looked at it.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR REVIEW] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (21 preceding siblings ...)
2023-01-25 15:14 ` tsndqst
@ 2023-01-25 15:47 ` CameronNemo
2023-01-25 16:19 ` tsndqst
` (24 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: CameronNemo @ 2023-01-25 15:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
New review comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#discussion_r1086812538
Comment:
Not sure what to say about this... seems a bit weird to me, personally...
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR REVIEW] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (22 preceding siblings ...)
2023-01-25 15:47 ` [PR REVIEW] " CameronNemo
@ 2023-01-25 16:19 ` tsndqst
2023-01-25 18:00 ` CameronNemo
` (23 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-25 16:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
New review comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#discussion_r1086853529
Comment:
binfmt support is not available in Github CI so we can't cross compile in Github but if binfmt is supported locally we can cross compile.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR REVIEW] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (23 preceding siblings ...)
2023-01-25 16:19 ` tsndqst
@ 2023-01-25 18:00 ` CameronNemo
2023-01-25 18:02 ` tsndqst
` (22 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: CameronNemo @ 2023-01-25 18:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 192 bytes --]
New review comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#discussion_r1086986061
Comment:
ok. Maybe add that context as a comment.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR REVIEW] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (24 preceding siblings ...)
2023-01-25 18:00 ` CameronNemo
@ 2023-01-25 18:02 ` tsndqst
2023-01-25 19:11 ` [PR PATCH] [Updated] " tsndqst
` (21 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-25 18:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 158 bytes --]
New review comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#discussion_r1086987544
Comment:
Good idea.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (25 preceding siblings ...)
2023-01-25 18:02 ` tsndqst
@ 2023-01-25 19:11 ` tsndqst
2023-03-03 14:34 ` tsndqst
` (20 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-01-25 19:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8058 bytes --]
From 2116222f3a6b05fec592909132739c7e5bb0fc83 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..5f7c20572e02 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 01c86bcac267b8152fbf9ba761516f71b8eb60d5 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.37.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
3 files changed, 19 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..7e63447aa20f 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.37
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=1cdad8dccd39c3c70e80d8ec2599d62df7020b97e7eecc8217208fa3146c73f7
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From a91df0ee4fe0e870ecebe29707214b0212196d01 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.37.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..7082e27d6109 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.37
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=bb191bb1e1adf8b37d88f9dccfa39916d3f3288d0517d1bfeefc54bf0c4f10fd
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (26 preceding siblings ...)
2023-01-25 19:11 ` [PR PATCH] [Updated] " tsndqst
@ 2023-03-03 14:34 ` tsndqst
2023-05-08 12:44 ` tsndqst
` (19 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-03-03 14:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8058 bytes --]
From 02c89cf10ef9e1b09f9d04b9f0e1c649c7434d2b Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..5f7c20572e02 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 128350f745ca8015f491fe3cd4c7bf1a938b048a Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.38.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
3 files changed, 19 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..248efe1de491 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.38
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=be8234628ce65067bc305d1529982af8d9cff08c2c3a9b41eb7d9e11c23a860c
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 276541a83c7943d5bf8f93dff33888a8f6d4bcd9 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.38.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..cecefa69284f 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.38
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=c1053f5fd40b0cac80689be67f6fbff39587a7c5d83344ed8f530020a1fd71be
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (27 preceding siblings ...)
2023-03-03 14:34 ` tsndqst
@ 2023-05-08 12:44 ` tsndqst
2023-05-08 12:44 ` tsndqst
` (18 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-05-08 12:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8058 bytes --]
From 1f2f2bb92c12e187f2d7927293f2a2ef8aaa2f16 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..5f7c20572e02 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 109a60301fe88c61a620a8314a8879a90e926033 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.39.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
3 files changed, 19 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..7fb31b744f8a 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.39
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=dfcda6855d4ad5317989561b2f5a21f3b4ec4a0e305eab216957dea7f46776c9
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From b802944ef872e074dbf3eb52d684a7d71665e942 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.39.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..d19f07935697 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.39
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=f8dd831a9d7f2c9e4eb99de24b5f83801153390b3ca2e1ff8a8f7dd377f75f80
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (28 preceding siblings ...)
2023-05-08 12:44 ` tsndqst
@ 2023-05-08 12:44 ` tsndqst
2023-06-06 19:26 ` [PR PATCH] [Updated] " tsndqst
` (17 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-05-08 12:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 194 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1538299326
Comment:
I pushed an update since GNS3 2.2.39 was released.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (29 preceding siblings ...)
2023-05-08 12:44 ` tsndqst
@ 2023-06-06 19:26 ` tsndqst
2023-06-06 19:26 ` tsndqst
` (16 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-06-06 19:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8058 bytes --]
From 14c5e1ddcdd7386f46002f15f4e39a4a20f2e3db Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..5f7c20572e02 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From b30f396a5d84a1b3a72504a2146d365ec7e3fc32 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.40.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
3 files changed, 19 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..9c4823906ff1 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.40
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=0e9f87758e2cbd39be4641d8cc921ce39bdd51c2cc52829696fb447640bddbbc
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 3bb36044d94fcc7f42ac02fb412eb39235b073ef Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.40.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..c2b497d8272b 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.40
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=de5e507768339d26e8765c411fa80bbea0f0085bc416da90b688b99eb35000c0
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (30 preceding siblings ...)
2023-06-06 19:26 ` [PR PATCH] [Updated] " tsndqst
@ 2023-06-06 19:26 ` tsndqst
2023-06-06 20:02 ` [PR PATCH] [Updated] " tsndqst
` (15 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-06-06 19:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 196 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1579328610
Comment:
I pushed an update since GNS3 2.2.40 was released.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (31 preceding siblings ...)
2023-06-06 19:26 ` tsndqst
@ 2023-06-06 20:02 ` tsndqst
2023-06-10 19:24 ` tsndqst
` (14 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-06-06 20:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 9452 bytes --]
From 14c5e1ddcdd7386f46002f15f4e39a4a20f2e3db Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..5f7c20572e02 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 2d0202774a2678acc3a207bef6de616360db735b Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.40.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_create_node_from_template.patch | 21 ++++++
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
4 files changed, 40 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_create_node_from_template.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_create_node_from_template.patch b/srcpkgs/gns3-server/patches/test_create_node_from_template.patch
new file mode 100644
index 000000000000..29b0645e1553
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_create_node_from_template.patch
@@ -0,0 +1,21 @@
+From 21dc2a8dbc5ac51cb4857d142e1cfc03a140a31d Mon Sep 17 00:00:00 2001
+From: grossmj <grossmj@gns3.net>
+Date: Fri, 2 Jun 2023 20:25:33 +0930
+Subject: [PATCH] Fix tests
+
+---
+ tests/handlers/api/controller/test_template.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/handlers/api/controller/test_template.py b/tests/handlers/api/controller/test_template.py
+index 2aeff91fa..a80d7d090 100644
+--- a/tests/handlers/api/controller/test_template.py
++++ b/tests/handlers/api/controller/test_template.py
+@@ -952,6 +952,6 @@ async def test_create_node_from_template(controller_api, controller, project):
+ "x": 42,
+ "y": 12
+ })
+- mock.assert_called_with(id, x=42, y=12, compute_id=None)
++ mock.assert_called_with(id, x=42, y=12, name=None, compute_id=None)
+ assert response.route == "/projects/{project_id}/templates/{template_id}"
+ assert response.status == 201
diff --git a/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..9c4823906ff1 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.40
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=0e9f87758e2cbd39be4641d8cc921ce39bdd51c2cc52829696fb447640bddbbc
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From a2179482c7f3c03a1d89c5db4488d1be30ceac60 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.40.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..c2b497d8272b 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.40
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=de5e507768339d26e8765c411fa80bbea0f0085bc416da90b688b99eb35000c0
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (32 preceding siblings ...)
2023-06-06 20:02 ` [PR PATCH] [Updated] " tsndqst
@ 2023-06-10 19:24 ` tsndqst
2023-07-10 1:09 ` tsndqst
` (13 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-06-10 19:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8066 bytes --]
From 7ec14132c8e57c84ffd68c0efc56f22262724f64 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..5f7c20572e02 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From a7e43d9991571331d97780535d498ceabda796fe Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.40.1.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
3 files changed, 19 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..858647f718e4 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.40.1
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=1c4c661828a2f35591c50b4ed89c86c1c80afa1294a52f90a9bb4284a85eb02b
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 12e6965731399c943dee8d600fcf3d24ed7fba40 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.40.1.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..30e83137962a 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.40.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d7448e82c11a41543742fd25743dc3a91e31551d07a8aabbf9f454dba6f2a98a
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (33 preceding siblings ...)
2023-06-10 19:24 ` tsndqst
@ 2023-07-10 1:09 ` tsndqst
2023-08-09 20:56 ` tsndqst
` (12 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-07-10 1:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8066 bytes --]
From 4e4539396a910c2a3d7a35856a622a3b0a4f4550 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd4..5f7c20572e02 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 965a9d8f255d4a2e525d13fc4cc01c47a754faf5 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.40.1.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 17 +++--
3 files changed, 19 insertions(+), 74 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc766..000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 000000000000..cd3ac5ace5b3
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cd..858647f718e4 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,9 +1,11 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.40.1
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
@@ -14,15 +16,12 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=1c4c661828a2f35591c50b4ed89c86c1c80afa1294a52f90a9bb4284a85eb02b
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 70039986700988ee55a624ace7ad63ea3cd16fa1 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.40.1.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214..30e83137962a 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.40.1
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d7448e82c11a41543742fd25743dc3a91e31551d07a8aabbf9f454dba6f2a98a
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (34 preceding siblings ...)
2023-07-10 1:09 ` tsndqst
@ 2023-08-09 20:56 ` tsndqst
2023-09-19 17:13 ` tsndqst
` (11 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-08-09 20:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8380 bytes --]
From 40e11fe96b8b250e7b677b37e39e27d262a69f1a Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd43..5f7c20572e025 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 62a2fcc2f89519a83a532e68ce113fbcb11b7370 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.42.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 19 +++---
3 files changed, 20 insertions(+), 75 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc7661..0000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 0000000000000..cd3ac5ace5b3c
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cdb..d7428925f8d93 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,28 +1,27 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.42
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
-checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp"
+checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp python3-urllib3"
short_desc="Graphical Network Simulator 3 - Server"
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=3c0761bd7d5622ab3f8382b88cf2dcd15d4eb520c135836ab4d8dd3f21b815a0
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From f46e2c6533232f6ab23c89d8262114b122c035fc Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.42.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214c..3fa04426d359c 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.42
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=8cb0fbfb361d8f6dce8711c9ef6de9a8394009b888af7eee355e87bf57f4dce1
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (35 preceding siblings ...)
2023-08-09 20:56 ` tsndqst
@ 2023-09-19 17:13 ` tsndqst
2023-10-14 0:45 ` tsndqst
` (10 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-09-19 17:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8401 bytes --]
From 50f1c027727c80fadc4ec2223c7dafac0a569d39 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd43..5f7c20572e025 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 25089f5e88d25c454805e48f05822b9ab1cd4f6f Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.43.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 19 +++---
3 files changed, 20 insertions(+), 75 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc7661..0000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 0000000000000..cd3ac5ace5b3c
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index e1b3c68ca2cdb..d47e1092f61c0 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,28 +1,27 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
+version=2.2.43
revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
-checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp"
+checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp python3-urllib3 python3-platformdirs"
short_desc="Graphical Network Simulator 3 - Server"
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=dd1a22837f1a982e4d897f3c01d88c40e719641c6316f3af0d7969217099cb7a
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 4325987d35446391555baa7ed8af52369079d3b8 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.43.
---
srcpkgs/gns3-gui/template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/gns3-gui/template b/srcpkgs/gns3-gui/template
index 8a08c6d34214c..dfc8c5a681881 100644
--- a/srcpkgs/gns3-gui/template
+++ b/srcpkgs/gns3-gui/template
@@ -1,6 +1,6 @@
# Template file for 'gns3-gui'
pkgname=gns3-gui
-version=2.2.35
+version=2.2.43
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
@@ -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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=7618bbbd2ad85b7e98c6296f34c173740c5bf492868c2acb72546677253ad5fd
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (36 preceding siblings ...)
2023-09-19 17:13 ` tsndqst
@ 2023-10-14 0:45 ` tsndqst
2023-10-14 0:48 ` tsndqst
` (9 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-10-14 0:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8490 bytes --]
From cbac3658b01418a96f76f4b883d604f5a890cd91 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd43..5f7c20572e025 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From bd4edcea787f14d3b5c285b2567d6156161f11c7 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.43.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 20 +++---
3 files changed, 21 insertions(+), 75 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc7661..0000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 0000000000000..cd3ac5ace5b3c
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index d1bd0eed1ce45..039b93f6efb69 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,28 +1,28 @@
# Template file for 'gns3-server'
pkgname=gns3-server
version=2.2.35
-revision=2
+version=2.2.43
+revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
-checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp"
+checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp python3-urllib3 python3-platformdirs"
short_desc="Graphical Network Simulator 3 - Server"
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=dd1a22837f1a982e4d897f3c01d88c40e719641c6316f3af0d7969217099cb7a
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 189474625af9cd60bf76e53c8ffcec7b5ed37a2c Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.43.
---
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 9397fbff2644e..dfc8c5a681881 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.35
-revision=2
+version=2.2.43
+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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=7618bbbd2ad85b7e98c6296f34c173740c5bf492868c2acb72546677253ad5fd
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (37 preceding siblings ...)
2023-10-14 0:45 ` tsndqst
@ 2023-10-14 0:48 ` tsndqst
2023-10-23 23:31 ` tsndqst
` (8 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-10-14 0:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8490 bytes --]
From cbac3658b01418a96f76f4b883d604f5a890cd91 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 864bd790ecd43..5f7c20572e025 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -1,9 +1,9 @@
# Template file for 'dynamips'
pkgname=dynamips
-version=0.2.21
+version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -11,10 +11,12 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
-checksum=08587589db2c3fc637e6345aebf4f9706825c12f45d9e2cf40d4189c604656d2
+checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 16fed94843f9e8b059b0cbcb4a16f7f8d164c176 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.43.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 21 +++---
3 files changed, 21 insertions(+), 76 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc7661..0000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 0000000000000..cd3ac5ace5b3c
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index d1bd0eed1ce45..d47e1092f61c0 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,28 +1,27 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
-revision=2
+version=2.2.43
+revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
-checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp"
+checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp python3-urllib3 python3-platformdirs"
short_desc="Graphical Network Simulator 3 - Server"
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=dd1a22837f1a982e4d897f3c01d88c40e719641c6316f3af0d7969217099cb7a
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 2e039ca98b892ca0de643f28f8f151bfaa147219 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.43.
---
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 9397fbff2644e..dfc8c5a681881 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.35
-revision=2
+version=2.2.43
+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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=7618bbbd2ad85b7e98c6296f34c173740c5bf492868c2acb72546677253ad5fd
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (38 preceding siblings ...)
2023-10-14 0:48 ` tsndqst
@ 2023-10-23 23:31 ` tsndqst
2023-10-30 19:00 ` SpidFightFR
` (7 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-10-23 23:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 8276 bytes --]
From 4d926160dd871909b0e9686cfcdbc0483b7f9c00 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 6c0d7fd74cea6..5f7c20572e025 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -2,8 +2,8 @@
pkgname=dynamips
version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -13,8 +13,10 @@ homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 2537bade63383ace4258242b6e3c1dcfa2464ac7 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.43.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 -------------------
.../test_subprocess_check_output.patch | 11 ++++
srcpkgs/gns3-server/template | 21 +++---
3 files changed, 21 insertions(+), 76 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
create mode 100644 srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc7661..0000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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/patches/test_subprocess_check_output.patch b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
new file mode 100644
index 0000000000000..cd3ac5ace5b3c
--- /dev/null
+++ b/srcpkgs/gns3-server/patches/test_subprocess_check_output.patch
@@ -0,0 +1,11 @@
+index 9e66c124..e2c162cd 100644
+--- a/tests/utils/test_asyncio.py
++++ b/tests/utils/test_asyncio.py
+@@ -44,6 +44,7 @@ async def test_exception_wait_run_in_executor():
+
+
+ @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
++@pytest.mark.skip(reason="Flakey test in VoidLinux CI")
+ async def test_subprocess_check_output(loop, tmpdir):
+
+ path = str(tmpdir / "test")
diff --git a/srcpkgs/gns3-server/template b/srcpkgs/gns3-server/template
index d1bd0eed1ce45..d47e1092f61c0 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,28 +1,27 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
-revision=2
+version=2.2.43
+revision=1
build_style=python3-module
+build_helper=qemu
hostmakedepends="python3-setuptools"
+makedepends="${hostmakedepends} busybox-static"
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
-checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp"
+checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp python3-urllib3 python3-platformdirs"
short_desc="Graphical Network Simulator 3 - Server"
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
+checksum=dd1a22837f1a982e4d897f3c01d88c40e719641c6316f3af0d7969217099cb7a
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+# Prefix PATH with XBPS_CROSS_BASE bin directory so setup.py can find the correct busybox.static
+if [ "$CROSS_BUILD" ]; then
+ PATH="${XBPS_CROSS_BASE}/bin:$PATH"
+fi
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
From 33edf4b05c47d2d730340b078421e31fc217e866 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.43.
---
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 9397fbff2644e..dfc8c5a681881 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.35
-revision=2
+version=2.2.43
+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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=7618bbbd2ad85b7e98c6296f34c173740c5bf492868c2acb72546677253ad5fd
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (39 preceding siblings ...)
2023-10-23 23:31 ` tsndqst
@ 2023-10-30 19:00 ` SpidFightFR
2023-10-30 19:01 ` SpidFightFR
` (6 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: SpidFightFR @ 2023-10-30 19:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 265 bytes --]
New comment by SpidFightFR on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1785861351
Comment:
Heya for the build fails, the answer lies here: https://github.com/GNS3/gns3-server/issues/2305#issuecomment-1784473048
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (40 preceding siblings ...)
2023-10-30 19:00 ` SpidFightFR
@ 2023-10-30 19:01 ` SpidFightFR
2023-10-30 19:15 ` tsndqst
` (5 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: SpidFightFR @ 2023-10-30 19:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
New comment by SpidFightFR on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1785861351
Comment:
Heya for the build fails, the answer lies here: https://github.com/GNS3/gns3-server/issues/2305#issuecomment-1784473048
TL;DR: Fixed in 2.2.44, not released yet.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (41 preceding siblings ...)
2023-10-30 19:01 ` SpidFightFR
@ 2023-10-30 19:15 ` tsndqst
2023-11-24 20:15 ` Vaelatern
` (4 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-10-30 19:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 345 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1785882675
Comment:
Thanks for looking into that @SpidFightFR. I was waiting for a new upstream release. I tested it with a recent commit from the 2.2 branch and it worked fine so we just need to wait for a new release.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (42 preceding siblings ...)
2023-10-30 19:15 ` tsndqst
@ 2023-11-24 20:15 ` Vaelatern
2023-11-25 3:21 ` [PR PATCH] [Updated] " tsndqst
` (3 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: Vaelatern @ 2023-11-24 20:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 807 bytes --]
New comment by Vaelatern on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1826055781
Comment:
@tsndqst I've got a PR open: #47331
I'd rather merge your PR.
Please update to 2.2.44, drop the `.patch` file... I'm not sure `makedepends="${hostmakedepends}` is necessary, the `hostmakedepends` bit. Please either justify the extra python pkg or not.
Also please do not change PATH to prefix with the cross dir. GNS3's build has an environment variable, I believe `$BUSYBOX_PATH` or similar, which it checks before looking on `PATH` for a `busybox.static`. Set that instead.
`python3-platformdirs` is a `depends` not a `checkdepends`. See my PR #47331.
With these changes, I'll merge this PR.
I'm currently using GNS3 on my x86_64-musl machine.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Updated] GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (43 preceding siblings ...)
2023-11-24 20:15 ` Vaelatern
@ 2023-11-25 3:21 ` tsndqst
2023-11-25 3:22 ` tsndqst
` (2 subsequent siblings)
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-11-25 3:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
There is an updated pull request by tsndqst against master on the void-packages repository
https://github.com/tsndqst/void-packages gns3_and_dynamips
https://github.com/void-linux/void-packages/pull/41472
GNS3 and dynamips updates
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
A patch file from https://github.com/void-linux/void-packages/pull/41472.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gns3_and_dynamips-41472.patch --]
[-- Type: text/x-diff, Size: 7539 bytes --]
From 1702b438a4b12209ac19c77d2022bd759917ed36 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:54:59 -0600
Subject: [PATCH 1/3] dynamips: update to 0.2.23.
Enable cross-compiling when binfmt support is available.
---
srcpkgs/dynamips/template | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/srcpkgs/dynamips/template b/srcpkgs/dynamips/template
index 6c0d7fd74cea6..5f7c20572e025 100644
--- a/srcpkgs/dynamips/template
+++ b/srcpkgs/dynamips/template
@@ -2,8 +2,8 @@
pkgname=dynamips
version=0.2.23
revision=1
-archs="i686* x86_64*"
build_style=cmake
+build_helper=qemu
makedepends="elfutils-devel libpcap-devel"
depends="iouyap"
short_desc="Hardware emulation for Cisco IOS capable devices"
@@ -13,8 +13,10 @@ homepage="https://github.com/GNS3/dynamips"
distfiles="https://github.com/GNS3/${pkgname}/archive/v${version}.tar.gz"
checksum=503bbb52c03f91900ea8dbe8bd0b804b76e2e28d0b7242624e0d3c52dda441a1
-# Dynamips does processor instruction translation. This is already
-# painfully slow on powerful x86 hardware and is unlikely to work
-# reliably on arm processors.
-#
-# So restrict to x86_64* and i686*
+# cross compile does not currently work without binfmt
+# so `nocross` is used in environments like Github Actions
+_BINFMT_PATH=/proc/sys/fs/binfmt_misc/qemu-${XBPS_TARGET_QEMU_MACHINE}-static
+
+if ! grep -q enabled ${_BINFMT_PATH} 2>/dev/null; then
+ nocross="binfmt support not enabled"
+fi
From 3bdd1892592b2ebf0dcd33656abd2e9b4316afc9 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:16 -0600
Subject: [PATCH 2/3] gns3-server: update to 2.2.44.1.
---
srcpkgs/gns3-server/patches/importlib.patch | 65 ---------------------
srcpkgs/gns3-server/template | 23 ++++----
2 files changed, 10 insertions(+), 78 deletions(-)
delete mode 100644 srcpkgs/gns3-server/patches/importlib.patch
diff --git a/srcpkgs/gns3-server/patches/importlib.patch b/srcpkgs/gns3-server/patches/importlib.patch
deleted file mode 100644
index c3dbd98bc7661..0000000000000
--- a/srcpkgs/gns3-server/patches/importlib.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-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 d1bd0eed1ce45..739cc72746fb8 100644
--- a/srcpkgs/gns3-server/template
+++ b/srcpkgs/gns3-server/template
@@ -1,12 +1,13 @@
# Template file for 'gns3-server'
pkgname=gns3-server
-version=2.2.35
-revision=2
+version=2.2.44.1
+revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
+makedepends="busybox-static" # Pulls distro busybox static to embed
depends="python3-setuptools python3-jsonschema python3-aiohttp python3-aiohttp-cors
- python3-yarl python3-Jinja2 python3-psutil python3-aiofiles
- python3-py-cpuinfo python3-distro python3-async-timeout dynamips"
+ python3-yarl python3-Jinja2 python3-psutil python3-aiofiles python3-platformdirs
+ python3-py-cpuinfo python3-distro python3-async-timeout dynamips ubridge"
checkdepends="${depends} python3-pytest python3-flake8 python3-pytest-timeout python3-pytest-aiohttp"
short_desc="Graphical Network Simulator 3 - Server"
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
@@ -14,17 +15,13 @@ 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=2c20ddc968a24fd8a77c272071d35304bac0706266a3f9e643658555e634c489
-
-# The source archive contains statically linked artifacts for x86_64
-# glibc, since this is the only architecture supported by upstream, we
-# mirror that requirement here. The artifacts in questions are the C
-# modules that are used to drive additional virtualization backends
-# for gns3. For more information, see this ticket:
-# https://github.com/GNS3/gns3-server/issues/970
-archs="x86_64"
+checksum=96a85d73db795282b3b732e1b6a5f592145c4a1cf93fa23f966dbe34d5d91a67
post_patch() {
# comment out requirements since versions are usually out of sync with Void packages
vsed -e 's|^|#|' -i requirements.txt
+ # pre-populate docker resource directory with static busybox binary
+ if [ "$CROSS_BUILD" ]; then
+ cp ${XBPS_CROSS_BASE}/bin/busybox.static gns3server/compute/docker/resources/bin/busybox
+ fi
}
From 0651dcf77ff7c2cdf2a64d832b7d347f0a33c340 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Wed, 4 Jan 2023 08:55:23 -0600
Subject: [PATCH 3/3] gns3-gui: update to 2.2.44.1.
---
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 9397fbff2644e..2717396384cca 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.35
-revision=2
+version=2.2.44.1
+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=5dee30a6be10a4463d16c3cec516bf81717fc6f37f4f53386347d98de9a1f43b
+checksum=d2eec509d9ec11dfc2f61b485853162471a41fd95489c0aa9b5b4d84f801a85e
post_patch() {
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (44 preceding siblings ...)
2023-11-25 3:21 ` [PR PATCH] [Updated] " tsndqst
@ 2023-11-25 3:22 ` tsndqst
2023-11-27 5:50 ` Vaelatern
2023-11-27 5:51 ` [PR PATCH] [Merged]: " Vaelatern
47 siblings, 0 replies; 49+ messages in thread
From: tsndqst @ 2023-11-25 3:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]
New comment by tsndqst on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1826200948
Comment:
Thanks for reminding me to look at this again @Vaelatern. I was waiting for the 2.2.44 release then got distracted by the aiohttp 3.9 release that supports Python 3.12. I haven't used GNS3 recently but perhaps it works fine on 3.12 without the latest aiohttp library.
Anyway, I have integrated your suggestions into my local branch and I'm trying to figure out how to manage the busybox binary but I'm not having much luck. The BUSYBOX_PATH variable you found is a Python variable. I tried setting it via an environment variable so I can change it based on XBPS variables during build. I haven't found a combination that works yet.
Also, it turns out `setup.py` uses that BUSYBOX_PATH variable as a destination. It is where GNS3 looks for binaries to copy into docker images. It uses the `shutil.which()` to find the appropriate binary.
I ended up copying the static busybox file into the location where the GNS3 setup expects to find it. I think that is cleaner than what I had before.
I also tested it on my aarch64 box and docker images contain the aarch64 static busybox binary.
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (45 preceding siblings ...)
2023-11-25 3:22 ` tsndqst
@ 2023-11-27 5:50 ` Vaelatern
2023-11-27 5:51 ` [PR PATCH] [Merged]: " Vaelatern
47 siblings, 0 replies; 49+ messages in thread
From: Vaelatern @ 2023-11-27 5:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
New comment by Vaelatern on void-packages repository
https://github.com/void-linux/void-packages/pull/41472#issuecomment-1827163390
Comment:
> Also, it turns out setup.py uses that BUSYBOX_PATH variable as a destination. It is where GNS3 looks for binaries to copy into docker images. It uses the shutil.which() to find the appropriate binary.
Good catch!
^ permalink raw reply [flat|nested] 49+ messages in thread
* Re: [PR PATCH] [Merged]: GNS3 and dynamips updates
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
` (46 preceding siblings ...)
2023-11-27 5:50 ` Vaelatern
@ 2023-11-27 5:51 ` Vaelatern
47 siblings, 0 replies; 49+ messages in thread
From: Vaelatern @ 2023-11-27 5:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 784 bytes --]
There's a merged pull request on the void-packages repository
GNS3 and dynamips updates
https://github.com/void-linux/void-packages/pull/41472
Description:
Upgrade dynamips and cross-compile when binfmt is enabled.
Upgrade gns3-server and enable more archictures since x86_64 busybox is no longer packaged with gns3-server.
Upgrade gns3-gui.
#### Testing the changes
- I tested the changes in this PR: **YES**
- I tested the `Ethernet Switch` on aarch64 which uses the dynamips hypervisor
- I tested Alpine Linux docker container on aarch64 as well.
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64
- aarch64 (crossbuild)
^ permalink raw reply [flat|nested] 49+ messages in thread
end of thread, other threads:[~2023-11-27 5:51 UTC | newest]
Thread overview: 49+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-05 16:04 [PR PATCH] GNS3 and dynamips updates tsndqst
2023-01-05 17:01 ` [PR PATCH] [Updated] " tsndqst
2023-01-05 17:10 ` tsndqst
2023-01-05 17:16 ` tsndqst
2023-01-05 22:48 ` [PR REVIEW] " CameronNemo
2023-01-05 23:51 ` tsndqst
2023-01-06 17:47 ` [PR PATCH] [Updated] " tsndqst
2023-01-06 17:57 ` tsndqst
2023-01-06 18:00 ` CameronNemo
2023-01-07 2:56 ` tsndqst
2023-01-07 4:02 ` CameronNemo
2023-01-07 14:51 ` tsndqst
2023-01-07 15:37 ` tsndqst
2023-01-08 15:30 ` [PR PATCH] [Updated] " tsndqst
2023-01-08 15:37 ` tsndqst
2023-01-08 15:40 ` tsndqst
2023-01-08 15:48 ` tsndqst
2023-01-08 15:57 ` tsndqst
2023-01-08 16:10 ` tsndqst
2023-01-08 16:13 ` tsndqst
2023-01-08 16:33 ` leahneukirchen
2023-01-25 15:00 ` tsndqst
2023-01-25 15:14 ` tsndqst
2023-01-25 15:47 ` [PR REVIEW] " CameronNemo
2023-01-25 16:19 ` tsndqst
2023-01-25 18:00 ` CameronNemo
2023-01-25 18:02 ` tsndqst
2023-01-25 19:11 ` [PR PATCH] [Updated] " tsndqst
2023-03-03 14:34 ` tsndqst
2023-05-08 12:44 ` tsndqst
2023-05-08 12:44 ` tsndqst
2023-06-06 19:26 ` [PR PATCH] [Updated] " tsndqst
2023-06-06 19:26 ` tsndqst
2023-06-06 20:02 ` [PR PATCH] [Updated] " tsndqst
2023-06-10 19:24 ` tsndqst
2023-07-10 1:09 ` tsndqst
2023-08-09 20:56 ` tsndqst
2023-09-19 17:13 ` tsndqst
2023-10-14 0:45 ` tsndqst
2023-10-14 0:48 ` tsndqst
2023-10-23 23:31 ` tsndqst
2023-10-30 19:00 ` SpidFightFR
2023-10-30 19:01 ` SpidFightFR
2023-10-30 19:15 ` tsndqst
2023-11-24 20:15 ` Vaelatern
2023-11-25 3:21 ` [PR PATCH] [Updated] " tsndqst
2023-11-25 3:22 ` tsndqst
2023-11-27 5:50 ` Vaelatern
2023-11-27 5:51 ` [PR PATCH] [Merged]: " Vaelatern
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).