-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building ovirt-imageio without build files #174
Comments
What do you mean by "building using bazel"? We don't have such build. Why are you building ovirt-imageio and not using released |
I am trying to build an image using bazel, the running code is with golang and needs ovirt-imageio installed in the image. I install in the image ovirt-image-common RPM. But the build fails with the above error. |
Have you tried to install the package using pip? |
Fair enough
That would probably work but we try to build the images using bazeldnf as @liranr23 pointed out and seems it has an issue with links.. |
Are the links "dead links"? That is something I did not consider in bazeldnf. We can probably handle that gracefully on the bazeldnf side if there are really dead links in the tar file. If the links are not dead, then maybe bazeldnf has a bug when reading the tar content. |
Also bazeldnf -- intended by design -- does not execute post-install scripts (in case the pyc files get generated there). That decisions favours reproducible builds and zero-privileges over full dnf/rpm compatibility. |
When building using bazel and installing ovirt-imageio-common RPM to the image it ended up with:
Error processing tar file(exit status 1): link /usr/lib64/python3.9/site-packages/ovirt_imageio/_internal/handlers/pycache/checksum.cpython-39.pyc /usr/lib64/python3.9/site-packages/ovirt_imageio/_internal/handlers/pycache/checksum.cpython-39.opt-1.pyc: no such file or directory
Hopefully, if we remove the build files bazel will succeed to build the image.
The text was updated successfully, but these errors were encountered: