python2 is end-of-life and will be removed in Debian Bullseye (next Release). This will break the onerng package.
The following patch against onerng_3.6.orig.tar.gz (not a pull request as I didn't find the repository) fixes this issue for me.
diff -u -r onerng_3.6.orig/debian/control onerng_3.6/debian/control
--- onerng_3.6.orig/debian/control 2017-01-15 03:49:59.000000000 +0100
+++ onerng_3.6/debian/control 2020-11-17 08:29:08.347563330 +0100
@@ -1,5 +1,5 @@
Source: onerng
-Section: contrib
+Section: utils
Priority: extra
Maintainer: Paul Campbell <paul@taniwha.com>
Build-Depends: debhelper (>= 8.0.0), autotools-dev
@@ -8,9 +8,9 @@
Package: onerng
Architecture: all
-Depends: rng-tools, udev, python, python-gnupg, gnupg, at, openssl
+Depends: rng-tools, udev, python3, python3-gnupg, gnupg, at, openssl
Description: Driver for the OneRNG open source hardware entropy generator
OneRNG is an open source hardware entropy generator in a USB dongle - it does not
require any special kernel drivers but does need a set of udev and sstem scripts to start the
- rmgd daemon (from the rng-tools package) when the device is plugged in
+ rngd daemon (from the rng-tools package) when the device is plugged in
diff -u -r onerng_3.6.orig/debian/onerng/sbin/onerng.sh onerng_3.6/debian/onerng/sbin/onerng.sh
--- onerng_3.6.orig/debian/onerng/sbin/onerng.sh 2017-10-01 10:11:50.000000000 +0200
+++ onerng_3.6/debian/onerng/sbin/onerng.sh 2020-11-17 08:07:59.135615092 +0100
@@ -83,7 +83,7 @@
echo "cmdw" >/dev/$2 # flush entropy pool
# process the data, verify its signature, log any errors
- python /sbin/onerng_verify.py $t
+ /sbin/onerng_verify.py $t
# res 1 err, 0 OK
res=$?
diff -u -r onerng_3.6.orig/debian/onerng/sbin/onerng_verify.py onerng_3.6/debian/onerng/sbin/onerng_verify.py
--- onerng_3.6.orig/debian/onerng/sbin/onerng_verify.py 2017-10-01 10:11:50.000000000 +0200
+++ onerng_3.6/debian/onerng/sbin/onerng_verify.py 2020-11-17 08:07:35.039609221 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
# OneRNG firmware verification
# (C) Copyright Paul Campbell Moonbase Otago 2014
diff -u -r onerng_3.6.orig/files/onerng.sh onerng_3.6/files/onerng.sh
--- onerng_3.6.orig/files/onerng.sh 2017-10-01 10:00:49.000000000 +0200
+++ onerng_3.6/files/onerng.sh 2020-11-17 08:07:59.147615096 +0100
@@ -83,7 +83,7 @@
echo "cmdw" >/dev/$2 # flush entropy pool
# process the data, verify its signature, log any errors
- python /sbin/onerng_verify.py $t
+ /sbin/onerng_verify.py $t
# res 1 err, 0 OK
res=$?
diff -u -r onerng_3.6.orig/files/onerng_verify.py onerng_3.6/files/onerng_verify.py
--- onerng_3.6.orig/files/onerng_verify.py 2017-01-15 03:49:59.000000000 +0100
+++ onerng_3.6/files/onerng_verify.py 2020-11-17 08:07:35.031609220 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
# OneRNG firmware verification
# (C) Copyright Paul Campbell Moonbase Otago 2014
Hello,
python2 is end-of-life and will be removed in Debian Bullseye (next Release). This will break the onerng package.
The following patch against onerng_3.6.orig.tar.gz (not a pull request as I didn't find the repository) fixes this issue for me.
Regards
Simon