Skip to content

Commit 00dc4c3

Browse files
committed
Update to 3007.1
RPM packaging based on salt-3007.1-1.fc42.src. Debian adjusted manually. On Fedora 37 drop optional timelib dependency, as it isn't available there.
1 parent c7a05e4 commit 00dc4c3

16 files changed

+244
-120
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
From cdc4bc6fa37e3d5173b3cad3d0f2e2d9816f8eb1 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
3+
4+
Date: Sun, 15 Dec 2024 16:13:42 +0100
5+
Subject: [PATCH 1/2] Drop versioned dependencies
6+
7+
Upstream bumps version requirements arbitrarily, in most cases without
8+
any specific API or functional requirement.
9+
Use package version available in the distribution instead.
10+
---
11+
requirements/base.txt | 12 ++++++------
12+
requirements/zeromq.txt | 3 +--
13+
2 files changed, 7 insertions(+), 8 deletions(-)
14+
15+
diff --git a/requirements/base.txt b/requirements/base.txt
16+
index 0061087e35..a42ff50f7d 100644
17+
--- a/requirements/base.txt
18+
+++ b/requirements/base.txt
19+
@@ -10,20 +10,20 @@ distro>=1.0.1
20+
psutil>=5.0.0
21+
packaging>=21.3
22+
looseversion
23+
-tornado>=6.3.3
24+
-aiohttp>=3.9.0
25+
+tornado
26+
+aiohttp
27+
28+
# We need contextvars for salt-ssh.
29+
# Even on python versions which ships with contextvars in the standard library!
30+
31+
setproctitle>=1.2.3
32+
-timelib>=0.2.5
33+
-pyopenssl>=24.0.0
34+
+timelib
35+
+pyopenssl
36+
python-dateutil>=2.8.1
37+
python-gnupg>=0.4.7
38+
cherrypy>=18.6.1
39+
importlib-metadata>=3.3.0
40+
-cryptography>=42.0.0
41+
+cryptography
42+
43+
# From old requirements/static/pkg/linux.in
44+
rpm-vercmp; sys_platform == 'linux'
45+
diff --git a/requirements/zeromq.txt b/requirements/zeromq.txt
46+
index 4000f5eb01..ec03558d33 100644
47+
--- a/requirements/zeromq.txt
48+
+++ b/requirements/zeromq.txt
49+
@@ -1,4 +1,4 @@
50+
-r base.txt
51+
-r crypto.txt
52+
53+
-pyzmq>=25.1.1
54+
+pyzmq
55+
--
56+
2.46.0
57+

0001-Drop-versioned-certifi-dependency.patch renamed to 0001-Drop-versioned-requests-dependency.patch

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ From 668a5a89109526e39540174b4a8a56574d0d09bd Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
33
44
Date: Thu, 15 Aug 2024 03:46:12 +0200
5-
Subject: [PATCH] Drop versioned certifi dependency
5+
Subject: [PATCH] Drop versioned requests dependency
66

77
Let it pick the version from the distribution.
8-
Similarly for requests.
98
---
109
requirements/base.txt | 2 --
1110
1 file changed, 2 deletions(-)
@@ -14,15 +13,12 @@ diff --git a/requirements/base.txt b/requirements/base.txt
1413
index de9cbaab17..bce14bc510 100644
1514
--- a/requirements/base.txt
1615
+++ b/requirements/base.txt
17-
@@ -7,10 +7,7 @@ PyYAML
16+
@@ -7,7 +7,7 @@ PyYAML
1817
msgpack>=1.0.0
1918
PyYAML
2019
MarkupSafe
21-
-requests<2.32.0 ; python_version < '3.10'
22-
-requests>=2.32.3 ; python_version >= '3.10'
20+
-requests>=2.25.1
2321
+requests
24-
-certifi==2023.07.22; python_version < '3.10'
25-
-certifi>=2024.7.4; python_version >= '3.10'
2622
distro>=1.0.1
2723
psutil>=5.0.0
2824
packaging>=21.3
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From a861b8c1b6a9f9062c42c902614800548838fe04 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
3+
4+
Date: Sun, 15 Dec 2024 16:15:47 +0100
5+
Subject: [PATCH 2/2] Drop Windows dependencies
6+
7+
---
8+
requirements/base.txt | 10 ----------
9+
1 file changed, 10 deletions(-)
10+
11+
diff --git a/requirements/base.txt b/requirements/base.txt
12+
index a42ff50f7d..73f058c5ff 100644
13+
--- a/requirements/base.txt
14+
+++ b/requirements/base.txt
15+
@@ -33,13 +33,3 @@ cryptography
16+
17+
# From old requirements/static/pkg/linux.in
18+
rpm-vercmp; sys_platform == 'linux'
19+
-
20+
-# From old windows.txt requirements file
21+
-gitpython>=3.1.37; sys_platform == 'win32'
22+
-lxml>=4.6.3; sys_platform == 'win32'
23+
-pymssql>=2.2.1; sys_platform == 'win32'
24+
-pymysql>=1.0.2; sys_platform == 'win32'
25+
-pythonnet>=3.0.1; sys_platform == 'win32'
26+
-pywin32>=305; sys_platform == 'win32'
27+
-wmi>=1.5.1; sys_platform == 'win32'
28+
-xmltodict>=0.13.0; sys_platform == 'win32'
29+
--
30+
2.46.0
31+

contextvars.patch

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
--- salt-3006.1/requirements/base.txt~ 2023-05-05 12:53:34.000000000 -0500
2-
+++ salt-3006.1/requirements/base.txt 2023-05-24 09:59:08.874838801 -0500
3-
@@ -9,4 +9,3 @@
4-
looseversion
5-
croniter>=0.3.0,!=0.3.22; sys_platform != 'win32'
6-
# We need contextvars for salt-ssh
1+
Index: salt-3007.1/requirements/base.txt
2+
===================================================================
3+
--- salt-3007.1.orig/requirements/base.txt 2024-11-06 20:25:51.898374912 +0100
4+
+++ salt-3007.1/requirements/base.txt 2024-11-06 20:26:23.586354279 +0100
5+
@@ -15,7 +15,6 @@ aiohttp>=3.9.0
6+
7+
# We need contextvars for salt-ssh.
8+
# Even on python versions which ships with contextvars in the standard library!
79
-contextvars
8-
--- salt-3006.1/requirements/zeromq.txt~ 2023-05-05 12:53:34.000000000 -0500
9-
+++ salt-3006.1/requirements/zeromq.txt 2023-05-24 10:02:57.943989348 -0500
10-
@@ -2,5 +2,3 @@
10+
11+
setproctitle>=1.2.3
12+
timelib>=0.2.5
13+
Index: salt-3007.1/requirements/zeromq.txt
14+
===================================================================
15+
--- salt-3007.1.orig/requirements/zeromq.txt 2024-11-06 20:25:51.899374912 +0100
16+
+++ salt-3007.1/requirements/zeromq.txt 2024-11-06 20:27:44.898301325 +0100
17+
@@ -1,4 +1,4 @@
18+
-r base.txt
1119
-r crypto.txt
1220

13-
pyzmq>=20.0.0
14-
-pyzmq==25.0.2 ; sys_platform == "win32"
15-
-pyzmq==25.1.2 ; sys_platform == "darwin"
21+
-pyzmq>=25.1.2
22+
+pyzmq>=25.1.1

debian-pkg/debian/control

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Build-Depends: bash-completion,
6565
python3-sphinxcontrib.httpdomain,
6666
python3-sphinxcontrib.spelling,
6767
python3-toml,
68+
python3-tornado,
6869
python3-requests (>= 1.0.0),
6970
python3-setuptools,
7071
python3-six,
@@ -91,6 +92,7 @@ Depends: iproute2,
9192
python3-pkg-resources,
9293
python3-psutil,
9394
python3-requests (>= 1.0.0),
95+
python3-tornado,
9496
python3-yaml,
9597
${misc:Depends},
9698
${python3:Depends}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
From cdc4bc6fa37e3d5173b3cad3d0f2e2d9816f8eb1 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
3+
4+
Date: Sun, 15 Dec 2024 16:13:42 +0100
5+
Subject: [PATCH 1/2] Drop versioned dependencies
6+
7+
Upstream bumps version requirements arbitrarily, in most cases without
8+
any specific API or functional requirement.
9+
Use package version available in the distribution instead.
10+
---
11+
requirements/base.txt | 12 ++++++------
12+
requirements/zeromq.txt | 3 +--
13+
2 files changed, 7 insertions(+), 8 deletions(-)
14+
15+
diff --git a/requirements/base.txt b/requirements/base.txt
16+
index 0061087e35..a42ff50f7d 100644
17+
--- a/requirements/base.txt
18+
+++ b/requirements/base.txt
19+
@@ -10,21 +10,21 @@ distro>=1.0.1
20+
psutil>=5.0.0
21+
packaging>=21.3
22+
looseversion
23+
-tornado>=6.3.3
24+
-aiohttp>=3.9.0
25+
+tornado
26+
+aiohttp
27+
28+
# We need contextvars for salt-ssh.
29+
# Even on python versions which ships with contextvars in the standard library!
30+
contextvars
31+
32+
setproctitle>=1.2.3
33+
-timelib>=0.2.5
34+
-pyopenssl>=24.0.0
35+
+timelib
36+
+pyopenssl
37+
python-dateutil>=2.8.1
38+
python-gnupg>=0.4.7
39+
cherrypy>=18.6.1
40+
importlib-metadata>=3.3.0
41+
-cryptography>=42.0.0
42+
+cryptography
43+
44+
# From old requirements/static/pkg/linux.in
45+
rpm-vercmp; sys_platform == 'linux'
46+
diff --git a/requirements/zeromq.txt b/requirements/zeromq.txt
47+
index 4000f5eb01..ec03558d33 100644
48+
--- a/requirements/zeromq.txt
49+
+++ b/requirements/zeromq.txt
50+
@@ -1,4 +1,4 @@
51+
-r base.txt
52+
-r crypto.txt
53+
54+
-pyzmq>=25.1.2
55+
+pyzmq
56+
--
57+
2.46.0
58+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From a861b8c1b6a9f9062c42c902614800548838fe04 Mon Sep 17 00:00:00 2001
2+
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
3+
4+
Date: Sun, 15 Dec 2024 16:15:47 +0100
5+
Subject: [PATCH 2/2] Drop Windows dependencies
6+
7+
---
8+
requirements/base.txt | 10 ----------
9+
1 file changed, 10 deletions(-)
10+
11+
diff --git a/requirements/base.txt b/requirements/base.txt
12+
index a42ff50f7d..73f058c5ff 100644
13+
--- a/requirements/base.txt
14+
+++ b/requirements/base.txt
15+
@@ -33,13 +33,3 @@ cryptography
16+
17+
# From old requirements/static/pkg/linux.in
18+
rpm-vercmp; sys_platform == 'linux'
19+
-
20+
-# From old windows.txt requirements file
21+
-gitpython>=3.1.37; sys_platform == 'win32'
22+
-lxml>=4.6.3; sys_platform == 'win32'
23+
-pymssql>=2.2.1; sys_platform == 'win32'
24+
-pymysql>=1.0.2; sys_platform == 'win32'
25+
-pythonnet>=3.0.1; sys_platform == 'win32'
26+
-pywin32>=305; sys_platform == 'win32'
27+
-wmi>=1.5.1; sys_platform == 'win32'
28+
-xmltodict>=0.13.0; sys_platform == 'win32'
29+
--
30+
2.46.0
31+

debian-pkg/debian/patches/doc-Exclude-documentation_options.js-from-default-th.patch

Lines changed: 0 additions & 42 deletions
This file was deleted.

debian-pkg/debian/patches/match_hostname.patch

Lines changed: 0 additions & 24 deletions
This file was deleted.

debian-pkg/debian/patches/series

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Make-the-Salt-Proxy-environment-aware.patch
2-
doc-Exclude-documentation_options.js-from-default-th.patch
32
remove-privacy-breach.patch
43
#run-salt-master-as-salt-user.patch
54
doc-fix-logo-link.patch
@@ -8,4 +7,5 @@ ensure-searchtools.js-gets-included.patch
87
dpkg_lowpkg-Do-not-access-var-lib-dpkg-info-package-.patch
98
dpkg_lowpkg-Drop-reading-var-lib-dpkg-available-dire.patch
109
0002-Hide-known-DeprecationWarning-related-to-PEP-594.patch
11-
match_hostname.patch
10+
0001-Drop-versioned-dependencies.patch
11+
0002-Drop-Windows-dependencies.patch

0 commit comments

Comments
 (0)