-
Notifications
You must be signed in to change notification settings - Fork 70
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
installing zfsbootmenu 2.3.0 on arch results in error #588
Comments
I cannot reproduce this: mkdir -p test/root
cd test
curl -L https://github.com/zbm-dev/zfsbootmenu/archive/v2.3.0.tar.gz | tar xzvf -
cd zfsbootmenu-2.3.0
make DESTDIR="../root" successfully installs ZFSBootMenu with a valid The Makefile is also used in the same way to build the Void Linux package. Is |
I've followed your steps and this works fine for me. I don't have much insight in in the workings of makepkg but I think the problem is caused by the separate build and source dirs. |
additionally when doing it manually the file zfsbootmenu/zbm-release looks like this: NAME="ZFSBootMenu" with makepkg it get: NAME="ZFSBootMenu" |
It does look like it's related to the version parsing - I can reproduce the same error locally:
By making
|
Alright, I understand the problem. The fact that AUR stuff lives in a git repository, and that
Arch packaging is kind of broken here. The right thing to do is not build the ZBM package as a child of a git repository, and also to prevent the host git from leaking into the environment. I'm not sure how to do this with If this needs to be worked around, patching the Makefile to make the |
Ha, indeed! A simple workaround:
Obviously that precludes the use of |
it not so much git i think but the fact that "--abbrev-rev" does not exist as a parameter it should be "--abbrev-ref". |
Ah, I couldn't see the difference in your "line should be" note. Thanks, this is definitely a big on our part. Curious that git isn't returning nonzero there. |
1. Correct typo: --abbrev-rev -> --abbrev-ref 2. Limit repository search to the current directory Fixes: #588.
1. Correct typo: --abbrev-rev -> --abbrev-ref 2. Limit repository search to the current directory Fixes: #588.
After fixing the typo and limiting the search for a git repository, I think this will build as expected even with the AUR helper. See #589. |
1. Correct typo: --abbrev-rev -> --abbrev-ref 2. Limit repository search to the current directory Fixes: #588.
Still not fixed, AUR suggest to use workaround. Will this be fixed? |
There's nothing to fix on our end. We don't support the AUR, and whoever posted that PKGBUILD should avoid running our versioning script if Arch's build process can't stop leaking information into the build directory. |
ZFSBootMenu build source
Release EFI
ZFSBootMenu version
2.3.0
Boot environment distribution
arch linux
Problem description
Hi,]
I get his error while building
problem might come from line 35 releng/version.sh:
should be:
Steps to reproduce
yay -S zfsbootmenu
The text was updated successfully, but these errors were encountered: