Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#994524: pycurl accesses the internet during the build

0 views
Skip to first unread message

Adrian Bunk

unread,
Sep 17, 2021, 4:30:04 AM9/17/21
to
Source: pycurl
Version: 7.44.1-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/fetch.php?pkg=pycurl&arch=amd64&ver=7.44.1-2&stamp=1631841618&raw=0
https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/pycurl.html

...
=================================== FAILURES ===================================
________________________ SshKeyCbTest.test_keyfunction _________________________

self = <tests.ssh_key_cb_test.SshKeyCbTest testMethod=test_keyfunction>

@util.min_libcurl(7, 19, 6)
# curl compiled with libssh doesn't support
# CURLOPT_SSH_KNOWNHOSTS and CURLOPT_SSH_KEYFUNCTION
@util.guard_unknown_libcurl_option
def test_keyfunction(self):
# with keyfunction returning ok

def keyfunction(known_key, found_key, match):
return pycurl.KHSTAT_FINE

self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)

try:
> self.curl.perform()
E pycurl.error: (6, 'Could not resolve host: web.sourceforge.net')

tests/ssh_key_cb_test.py:40: error

During handling of the above exception, another exception occurred:

self = <tests.ssh_key_cb_test.SshKeyCbTest testMethod=test_keyfunction>

@util.min_libcurl(7, 19, 6)
# curl compiled with libssh doesn't support
# CURLOPT_SSH_KNOWNHOSTS and CURLOPT_SSH_KEYFUNCTION
@util.guard_unknown_libcurl_option
def test_keyfunction(self):
# with keyfunction returning ok

def keyfunction(known_key, found_key, match):
return pycurl.KHSTAT_FINE

self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)

try:
self.curl.perform()
self.fail('should have raised')
except pycurl.error as e:
> self.assertEqual(pycurl.E_LOGIN_DENIED, e.args[0])
E AssertionError: 67 != 6

tests/ssh_key_cb_test.py:43: AssertionError
----------------------------- Captured stderr call -----------------------------
* Could not resolve host: web.sourceforge.net
* Closing connection 0
__________________ SshKeyCbTest.test_keyfunction_bogus_return __________________

self = <tests.ssh_key_cb_test.SshKeyCbTest testMethod=test_keyfunction_bogus_return>

@util.min_libcurl(7, 19, 6)
@util.guard_unknown_libcurl_option
def test_keyfunction_bogus_return(self):
def keyfunction(known_key, found_key, match):
return 'bogus'

self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)

try:
> self.curl.perform()
E pycurl.error: (6, 'Could not resolve host: web.sourceforge.net')

tests/ssh_key_cb_test.py:69: error

During handling of the above exception, another exception occurred:

self = <tests.ssh_key_cb_test.SshKeyCbTest testMethod=test_keyfunction_bogus_return>

@util.min_libcurl(7, 19, 6)
@util.guard_unknown_libcurl_option
def test_keyfunction_bogus_return(self):
def keyfunction(known_key, found_key, match):
return 'bogus'

self.curl.setopt(pycurl.SSH_KNOWNHOSTS, '.known_hosts')
self.curl.setopt(pycurl.SSH_KEYFUNCTION, keyfunction)

try:
self.curl.perform()
self.fail('should have raised')
except pycurl.error as e:
> self.assertEqual(pycurl.E_PEER_FAILED_VERIFICATION, e.args[0])
E AssertionError: 60 != 6

tests/ssh_key_cb_test.py:72: AssertionError
----------------------------- Captured stderr call -----------------------------
* Could not resolve host: web.sourceforge.net
* Closing connection 0
...
0 new messages