OpenBSD: correct post-Neon package names to python3 versions#1801
OpenBSD: correct post-Neon package names to python3 versions#1801krionbsd merged 2 commits intosaltstack:developfrom
Conversation
myii
left a comment
There was a problem hiding this comment.
@delucks Only a fellow contributor to this repo but this should be a useful review.
When adding Vagrant-based CI to this repo, I left the OpenBSD git-based installation jobs commented out:
With this PR, I recommend enabling those instances, as shown in this commit:
I went ahead a ran those instances in my fork, based on top of this PR, but unfortunately, we've still got failures:
Checking the logs there, this is the common error:
************************************************
building 'zmq.libzmq' extension
creating build/temp.openbsd-6.9-amd64-3.8/buildutils
creating build/temp.openbsd-6.9-amd64-3.8/bundled
creating build/temp.openbsd-6.9-amd64-3.8/bundled/zeromq
creating build/temp.openbsd-6.9-amd64-3.8/bundled/zeromq/src
c++ -pthread -std=c++11 -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -g -fPIC -O2 -pipe -g -O2 -pipe -g -fPIC -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_KQUEUE=1 -DZMQ_IOTHREADS_USE_KQUEUE=1 -DZMQ_POLL_BASED_ON_POLL=1 -Ibundled/zeromq/include -Ibundled -I/usr/local/include/python3.8 -c buildutils/initlibzmq.cpp -o build/temp.openbsd-6.9-amd64-3.8/buildutils/initlibzmq.o
c++ -pthread -std=c++11 -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -g -fPIC -O2 -pipe -g -O2 -pipe -g -fPIC -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_KQUEUE=1 -DZMQ_IOTHREADS_USE_KQUEUE=1 -DZMQ_POLL_BASED_ON_POLL=1 -Ibundled/zeromq/include -Ibundled -I/usr/local/include/python3.8 -c bundled/zeromq/src/address.cpp -o build/temp.openbsd-6.9-amd64-3.8/bundled/zeromq/src/address.o
In file included from bundled/zeromq/src/address.cpp:38:
bundled/zeromq/src/tipc_address.hpp:43:10: fatal error: 'linux/tipc.h' file not found
#include <linux/tipc.h>
^~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/c++' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for pyzmq
Successfully built immutables PyYAML
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq which use PEP 517 and cannot be installed directly
* ERROR: Failed to run install_openbsd_git()!!!Would you have any suggestions on how to fix this?
it seems OpenBSD is being not properly detected by pyzmq, I opened an issue at upstream. |
What does this PR do?
This corrects the process of git-based bootstrapping on OpenBSD. Previously, when bootstrapping a post-Neon git installation, the bootstrap script would install the packages "py-pip" and "py-setuptools", which are for python2. This results in an error finding pip, as post-Neon installs use python3. By changing the package names to the python3 versions, the bootstrap script can continue successfully for git-based installations.
What issues does this PR fix or reference?
This fixes #1800.
Previous Behavior
See #1800 for command output, bootstrapping fails when searching for the installed
pip.New Behavior
Bootstrapping continues past the git setup step and on to the actual installation: