summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2024-01-23 00:29:48 +0000
committerDave Hibberd <d@vehibberd.com>2024-01-23 00:29:48 +0000
commitbd933b3c7d6b702bebb123511ad55adea01fe102 (patch)
tree338699f41163fb2a9727537d4867547424e2dade /debian
parentf5e142a4e54bfda24bec40e923c643b434948a04 (diff)
parent7d3d9d4a1808ea0a76a3263a91de7eee892b42cc (diff)
Merge branch 'master' into 'master'
Master See merge request debian-hamradio-team/chirp!4
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog12
-rw-r--r--debian/control2
-rw-r--r--debian/copyright6
-rw-r--r--debian/patches/02-fix-setup-py.patch2
-rw-r--r--debian/patches/08-disable-incorrect-mime-type15
-rw-r--r--debian/patches/desktop-file.patch4
-rw-r--r--debian/patches/remove-future.patch70
-rw-r--r--debian/patches/series2
8 files changed, 89 insertions, 24 deletions
diff --git a/debian/changelog b/debian/changelog
index c791281..72172c8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+chirp (1:20240117-1) UNRELEASED; urgency=medium
+
+ * New upstream version 20240117.
+ * Removed python3-future from d/control
+ Build-Depends and Depends. (Closes: #20240117)
+ * Patch for replacing python3-future in chrip/chirp_common.py,
+ setup.py and requirements files.
+ * Revised old patches to fit new upstream version.
+ * Fixed lintian warning in copyright.
+
+ -- Yogeswaran Umasankar <kd8mbd@gmail.com> Sat, 20 Jan 2024 18:00:00 +0000
+
chirp (1:20231027-1) unstable; urgency=medium
* New d/watch to reflect upstream changes
diff --git a/debian/control b/debian/control
index 52bcee7..98a7192 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,6 @@ Build-Depends:
debhelper-compat (= 13),
dh-python,
python3,
- python3-future,
python3-requests,
python3-serial,
python3-six,
@@ -27,7 +26,6 @@ Package: chirp
Architecture: all
Multi-Arch: foreign
Depends:
- python3-future,
python3-requests,
python3-serial,
python3-six,
diff --git a/debian/copyright b/debian/copyright
index 66ba039..faedb34 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -18,7 +18,7 @@ Copyright: 2017-2023 Dave Hibberd <d@vehibberd.com>
2011 Steve Conklin AI4QR <steve@conklinhouse.com>
License: GPL-3+
- chirp/bitwise.py
+Files: chirp/bitwise.py
chirp/bitwise_grammar.py
chirp/chirp_common.py
chirp/cli/main.py
@@ -265,7 +265,7 @@ Files: chirp/drivers/ft4.py
Copyright: 2011, Dan Smith <dsmith@danplanet.com>
2012, Dan Smith <dsmith@danplanet.com>
2019, Dan Clemmensen <DanClemmensen@Gmail.com>
-License: GPL-2 and/or GPL-3+
+License: GPL-2+ and GPL-3+
Files: chirp/drivers/th_uv88.py
Copyright: NONE
@@ -368,7 +368,7 @@ Files: debian/copyright
Copyright: 2012, Dan Smith <dsmith@danplanet.com>
2013, Christopher Knadle <Chris.Knadle@coredump.us>
GPL-3+
-License: GPL-2+ and/or GPL-3+
+License: GPL-2+ and GPL-3+
Files: chirp/drivers/ft1d.py
Copyright: 2010, Dan Smith <dsmith@danplanet.com>
diff --git a/debian/patches/02-fix-setup-py.patch b/debian/patches/02-fix-setup-py.patch
index ea7e5f3..6b83f5c 100644
--- a/debian/patches/02-fix-setup-py.patch
+++ b/debian/patches/02-fix-setup-py.patch
@@ -4,7 +4,7 @@ Last-Update: 2023-10-28
---
--- a/setup.py
+++ b/setup.py
-@@ -20,7 +20,6 @@
+@@ -20,7 +20,6 @@ setup(name='chirp',
'wx': ['wxPython'],
},
entry_points={
diff --git a/debian/patches/08-disable-incorrect-mime-type b/debian/patches/08-disable-incorrect-mime-type
deleted file mode 100644
index 2ba327d..0000000
--- a/debian/patches/08-disable-incorrect-mime-type
+++ /dev/null
@@ -1,15 +0,0 @@
-Description: Removes inode/directory mimetype from chirp.desktop
- This avoids registering chirp as the default application for opening directories, conflicting with default file browsers.
-Author: Ana Custura <ana@netstat.org.uk>
----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- a/chirp/share/chirp.desktop
-+++ b/chirp/share/chirp.desktop
-@@ -7,7 +7,6 @@
- Icon=chirp
- Exec=chirpw %F
- Terminal=false
--MimeType=inode/directory
- Categories=Utility;HamRadio
- Keywords=Hamradio;Programming;Handheld;Radio;Amateur;Programmer
- StartupNotify=true
diff --git a/debian/patches/desktop-file.patch b/debian/patches/desktop-file.patch
index 9e362b4..d5fc4ef 100644
--- a/debian/patches/desktop-file.patch
+++ b/debian/patches/desktop-file.patch
@@ -5,12 +5,12 @@ Last-Update: 2023-10-28
---
--- a/chirp/share/chirp.desktop
+++ b/chirp/share/chirp.desktop
-@@ -5,7 +5,7 @@
+@@ -5,7 +5,7 @@ Name=CHIRP
GenericName=Radio Programming Tool
Comment=Program amateur radios
Icon=chirp
-Exec=chirp %F
+Exec=chirpw %F
Terminal=false
- MimeType=inode/directory
+ MimeType=x-scheme-handler/chirp
Categories=Utility;HamRadio
diff --git a/debian/patches/remove-future.patch b/debian/patches/remove-future.patch
new file mode 100644
index 0000000..553775b
--- /dev/null
+++ b/debian/patches/remove-future.patch
@@ -0,0 +1,70 @@
+Description: Replacement for python3-future.
+Author: Yogeswaran Umasankar <kd8mbd@gmail.com>
+Last-Update: 2024-01-19
+
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -2,7 +2,6 @@ six
+ wxPython>=4.0,<4.2.0 ; platform_system=="Linux" # See https://github.com/wxWidgets/Phoenix/issues/2225
+ wxPython==4.2.0 ; platform_system!="Linux"
+ pyserial
+-future
+ requests
+ pywin32; platform_system=="Windows"
+ suds
+--- a/setup.py
++++ b/setup.py
+@@ -12,7 +12,6 @@ setup(name='chirp',
+ 'pyserial',
+ 'requests',
+ 'six',
+- 'future',
+ 'importlib-resources;python_version<"3.10"',
+ 'yattag',
+ ],
+--- a/test-requirements.txt
++++ b/test-requirements.txt
+@@ -5,7 +5,6 @@ pytest-html
+ six
+ pep8
+ pyserial
+-future
+ requests
+ pyyaml
+ pywin32; platform_system=="Windows"
+--- a/chirp/chirp_common.py
++++ b/chirp/chirp_common.py
+@@ -14,7 +14,7 @@
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ from builtins import bytes
+-from future import standard_library
++#from future import standard_library
+
+ import base64
+ import json
+@@ -1959,17 +1959,19 @@ def http_user_agent():
+ def urlretrieve(url, fn):
+ """Grab an URL and save it in a specified file"""
+
+- standard_library.install_aliases()
++ #standard_library.install_aliases()
+ import urllib.request
+- import urllib.error
++ from urllib.error import URLError, HTTPError
+
+ headers = {
+ 'User-Agent': http_user_agent(),
+ }
+ req = urllib.request.Request(url, headers=headers)
+- resp = urllib.request.urlopen(req)
+- with open(fn, 'wb') as f:
+- f.write(resp.read())
++
++ try:
++ urllib.request.urlretrieve(req, fn)
++ except (URLError, HTTPError) as e:
++ print(f"Error downloading {url}: {e}")
+
+
+ def mem_from_text(text):
diff --git a/debian/patches/series b/debian/patches/series
index 6558b3f..8522c24 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,6 +1,6 @@
+remove-future.patch
desktop-file.patch
02-fix-setup-py.patch
wxui-chirp-share.patch
distutils-migration.patch
07-disable-reporting.patch
-08-disable-incorrect-mime-type