Your message dated Sun, 24 Sep 2023 03:04:19 +0000
with message-id <e1qkfpv-00eyqc...@fasolo.debian.org>
and subject line Bug#1050943: fixed in bladerf 0.2023.02-2
has caused the Debian Bug report #1050943,
regarding bladerf accesses the Internet during package build
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1050943: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050943
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: bladerf
Version: 0.2023.02-1
Severity: serious
Tags: patch
Justification: Policy 4.9
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: bdr...@debian.org

Dear Maintainer,

bladerf 0.2023.02-1 fails to build from source on Ubuntu, because it
tries to access the Internet (see Debian policy 4.9):

```
python3 -m build --sdist --outdir=debian/tmp/ 
host/libraries/libbladeRF_bindings/python
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools >= 40.8.0, wheel)
WARNING: The directory '/sbuild-nonexistent/.cache/pip' or its parent directory 
is not owned or is not writable by the current user. The cache has been 
disabled. Check the permissions and owner of that directory. If executing pip 
with sudo, you should use sudo's -H flag.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f24da035d10>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/wheel/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f24da0363d0>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/wheel/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f24da036f90>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/wheel/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f24da037dd0>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/wheel/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, 
status=None)) after connection broken by 
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 
0x7f24da048510>: Failed to establish a new connection: [Errno -2] Name or 
service not known')': /simple/wheel/
ERROR: Could not find a version that satisfies the requirement wheel (from 
versions: none)
ERROR: No matching distribution found for wheel

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/build/__main__.py", line 375, in main
    built = build_call(
            ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/build/__main__.py", line 208, in 
build_package
    out = _build(isolation, builder, outdir, distribution, config_settings, 
skip_dependency_check)
          
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/build/__main__.py", line 145, in _build
    return _build_in_isolated_env(builder, outdir, distribution, 
config_settings)
           
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/build/__main__.py", line 113, in 
_build_in_isolated_env
    env.install(builder.build_system_requires)
  File "/usr/lib/python3/dist-packages/build/env.py", line 214, in install
    _subprocess(cmd)
  File "/usr/lib/python3/dist-packages/build/env.py", line 79, in _subprocess
    raise e
  File "/usr/lib/python3/dist-packages/build/env.py", line 76, in _subprocess
    subprocess.run(cmd, check=True, stdout=subprocess.PIPE, 
stderr=subprocess.STDOUT)
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/tmp/build-env-c4ez2a0s/bin/python', 
'-Im', 'pip', 'install', '--use-pep517', '--no-warn-script-location', '-r', 
'/tmp/build-reqs-kxypfyca.txt']' returned non-zero exit status 1.

ERROR Command '['/tmp/build-env-c4ez2a0s/bin/python', '-Im', 'pip', 'install', 
'--use-pep517', '--no-warn-script-location', '-r', 
'/tmp/build-reqs-kxypfyca.txt']' returned non-zero exit status 1.
```

In Ubuntu, the attached patch was applied to achieve the following:

  * Use pybuild for building the Python3 bindings to avoid Internet access
    (LP: #2033661)


Thanks for considering the patch.

-- 
Benjamin Drung
Debian & Ubuntu Developer
diff -Nru bladerf-0.2023.02/debian/control bladerf-0.2023.02/debian/control
--- bladerf-0.2023.02/debian/control    2023-07-12 17:45:05.000000000 +0200
+++ bladerf-0.2023.02/debian/control    2023-08-31 16:21:33.000000000 +0200
@@ -15,10 +15,8 @@
                libusb2-dev [kfreebsd-any],
               pandoc [!kfreebsd-any],
                pkg-config,
-              python3-build,
                python3-dev,
-              python3-setuptools,
-              python3-venv
+              python3-setuptools
 Standards-Version: 4.6.2
 Rules-Requires-Root: no
 Section: comm
@@ -94,7 +92,7 @@
 Architecture: any
 Multi-Arch: foreign
 Depends: libbladerf-dev (= ${binary:Version}),
-         python3, python3-cffi, ${python3:Depends},
+         python3-cffi, ${python3:Depends},
          ${misc:Depends}
 Description: Nuand bladeRF software-defined radio device (Python)
  The Nuand bladeRF is an open-source software-defined radio (SDR) system,
diff -Nru bladerf-0.2023.02/debian/not-installed 
bladerf-0.2023.02/debian/not-installed
--- bladerf-0.2023.02/debian/not-installed      1970-01-01 01:00:00.000000000 
+0100
+++ bladerf-0.2023.02/debian/not-installed      2023-08-31 16:01:44.000000000 
+0200
@@ -0,0 +1,2 @@
+usr/bin/bladerf-tool
+usr/lib/python3*/dist-packages/bladerf-*.egg-info
diff -Nru bladerf-0.2023.02/debian/python3-bladerf.install 
bladerf-0.2023.02/debian/python3-bladerf.install
--- bladerf-0.2023.02/debian/python3-bladerf.install    2022-10-31 
02:34:36.000000000 +0100
+++ bladerf-0.2023.02/debian/python3-bladerf.install    2023-08-31 
16:01:02.000000000 +0200
@@ -1,2 +1,2 @@
-host/libraries/libbladeRF_bindings/python/bladerf 
usr/lib/python3/dist-packages/
+usr/lib/python3*/dist-packages/bladerf
 host/misc/python/* usr/share/doc/python-bladerf/
diff -Nru bladerf-0.2023.02/debian/rules bladerf-0.2023.02/debian/rules
--- bladerf-0.2023.02/debian/rules      2023-07-12 17:10:30.000000000 +0200
+++ bladerf-0.2023.02/debian/rules      2023-08-31 15:45:08.000000000 +0200
@@ -54,18 +54,17 @@
 
 override_dh_auto_build:
        dh_auto_build
-       python3 -m build --sdist --outdir=debian/tmp/ 
host/libraries/libbladeRF_bindings/python
-       tar tvf debian/tmp/bladerf-1.3.0.tar.gz
+       dh_auto_build --buildsystem=pybuild 
--sourcedir=host/libraries/libbladeRF_bindings/python
 
 override_dh_auto_install:
        dh_auto_install
+       # Python3 bindings
+       dh_auto_install --buildsystem=pybuild 
--sourcedir=host/libraries/libbladeRF_bindings/python
        # Use locally installed Mathjax.js
        (cd debian/tmp/usr/share/doc/libbladerf-doc/html && ln -s 
/usr/share/javascript/mathjax/MathJax.js MathJax.js)
        (cd debian/tmp/usr/share/doc/libbladerf-doc/html && sed --in-place 
's_http://cdn.mathjax.org/mathjax/latest/MathJax.js_MathJax.js_' *.html)
        # library soversion named udev rules
        #mv debian/tmp/lib/udev/rules.d/88-nuand.rules 
debian/tmp/lib/udev/rules.d/88-libbladerf2.rules
-       # Python3 bindings
-       # python3 host/libraries/libbladeRF_bindings/python/setup.py install 
--root=debian/tmp/ --prefix=/usr
        # per lintian
        rm -f host/examples/bladeRF-cli/sync_trx/.gitignore
        rm -f host/examples/python/txrx/.gitignore

--- End Message ---
--- Begin Message ---
Source: bladerf
Source-Version: 0.2023.02-2
Done: A. Maitland Bottoms <bott...@debian.org>

We believe that the bug you reported is fixed in the latest version of
bladerf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1050...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
A. Maitland Bottoms <bott...@debian.org> (supplier of updated bladerf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 23 Sep 2023 22:34:49 -0400
Source: bladerf
Architecture: source
Version: 0.2023.02-2
Distribution: unstable
Urgency: medium
Maintainer: A. Maitland Bottoms <bott...@debian.org>
Changed-By: A. Maitland Bottoms <bott...@debian.org>
Closes: 1050943
Changes:
 bladerf (0.2023.02-2) unstable; urgency=medium
 .
   * Use pybuild for building the Python3 bindings to avoid Internet access
     using patch from Ubuntu, thanks! (Closes: #1050943)
Checksums-Sha1:
 f0f85c74a792636586f3c1380aca645f9f0f5e07 3146 bladerf_0.2023.02-2.dsc
 58a927daa3ca80a68720833d95395f4d5a4e144a 55080 
bladerf_0.2023.02-2.debian.tar.xz
 d1ca125b41da138ba431c10cfa44e0e1e2a7480a 14209 
bladerf_0.2023.02-2_amd64.buildinfo
Checksums-Sha256:
 5894a5a8e23cfb1c9c7a833f13d699288c0cbe32f19af0c05e478e9505107abd 3146 
bladerf_0.2023.02-2.dsc
 782234e94d79e4489680495d07035e2c69671cd90d4fcd714ee09dfd2b082505 55080 
bladerf_0.2023.02-2.debian.tar.xz
 16ba365b7fa3f5dd574e563606001ca85ed14796c04901808f8058d7e6811a4d 14209 
bladerf_0.2023.02-2_amd64.buildinfo
Files:
 3112bfe3f65223a410f78d6f11a4c48a 3146 comm optional bladerf_0.2023.02-2.dsc
 a68a591e91758e0b48b788f5ab24cc02 55080 comm optional 
bladerf_0.2023.02-2.debian.tar.xz
 8a45b591b7adf424d13f4b6adcb6a738 14209 comm optional 
bladerf_0.2023.02-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEB8qH3cTCsGJAtrF0UEHxiR9E4JAFAmUPo18ACgkQUEHxiR9E
4JD0nxAAsxkrQ8EyK7r9HZqd4cBT/l8O7OH76S+DvVRnIu3jlnpp3LS+cHONPmVO
g4Kh8yaFrDYQVmI/U/7gIUtkQd4+GPBZCajf50RcLnO4uwGtr3D7894INNYsAFLF
o4mJxkWlMvqrsdO7OYOSnRmeKWSe7mEEUbDZsehrqjVRCpvJHLzCRzHENhfZJqgu
H+zhUzLmup7u/LGmHt/Q7rzVUOZmvRBOdgRuIt8XOMTrc6fPapdkezwnsyTRisaG
Rtpor4HHc2ZZxAtOJNNPCzgkumdEqXzO/O+8Uf/eSgbxJkV+hoJygRhJk2kSSxqO
NAop547/e94rxoHaVDrfPqJ9aHR8SC4iJSiwFwCwGEuf9dBanhKdPIdeK056o+Fc
+H0mTDm4rx5zE07gZrfekQMgvxetWYaWhtKxSKH7mUoTp8W6aw2DP35Ao24Zeypl
k2YqtlGHTKhBJt2sL+LdKsDkO5nzJqoHH/C7z1NBJIB0TCLslkEwKD28y7LSd/dG
YAG+vbgeIV8KEmIS9dz+va3KNzx0Y9/kJj9mbTA7xwiYBwOFjy1VnMD0e0Pj4Ayi
fXaMgMbEOQ4NIpLtFBpmdzmRUr5YLAdRyHmjPcTdgF1m+w1LhNA1t3N72PCYBjaX
bolZQHmF/gWtommx7ScjCPstQoXpPJSIOszTrgAQUp5QsM3tqSc=
=wazC
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to