(This is a build.snapcraft.io issue relating to how to use snapcraft
. I did not find find a BSI category. The solution could be to fix the snapcraft.yaml in some way.)
I am trying to build https://github.com/simos/radare2-simosx on BSI.
The package, radare2, requires a very recent version of meson
that even Ubuntu 18.04 does not have. I resort to the following workaround. That is, I get snapcraft
to do a sudo -H pip3 install --system meson
to install the freshest meson
.
parts:
radare2:
source: https://github.com/radare/radare2.git
source-tag: '2.6.0'
plugin: meson
meson-parameters: [--prefix=/usr]
override-build: |
sudo -H pip3 install --system meson
snapcraftctl build
build-packages:
- python3-pip
I get the following error on the build server (BSI):
Running build phase...
Skipping pull radare2 (already ran)
Preparing to build radare2
Building radare2
Collecting meson
Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py", line 137, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/connection.py", line 67, in create_connection
for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):
File "/usr/lib/python3.5/socket.py", line 732, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 560, in urlopen
body=body, headers=headers)
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 787, in _validate_conn
conn.connect()
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py", line 217, in connect
conn = self._new_conn()
File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py", line 146, in _new_conn
self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f352f8ce470>: Failed to establish a new connection: [Errno -2] Name or service not known
Is this an issue with BSI or an issue with me doing a sudo -H pip3 install --system meson
?