You are not logged in.
I've wanted to build qt5-declarative-git from AUR. makepkg is supposed to checkout the 5.15 branch but it always checks out the dev branch. Can somebody tell me what's wrong? Is there something wrong with the PKGBUILD or is there a bug in makepkg?
Last edited by BertiBoeller (2020-11-12 13:28:55)
Offline
makepkg is supposed to checkout the 5.15 branch
What makes you think that? It's a -git package, it's meant to check out the latest version.
Offline
The bare checkout in $pkgdir/package_name will always point to the default branch. makepkg will checkout the correct branch when it clones the sources into the $srcdir/package_name folder.
Offline
source=("git+https://code.qt.io/qt/qtdeclarative.git#branch=5.15")BertiBoeller, the PKGBUILD will actually build the correct version. If you do `git show` within the source directory, you will see that the `makepkg` branch is the same as the `origin/5.15` branch.
The problem is that the pkgver() function returns a bogus version information because… it does awkward things. I don't know what the correct way to do it is, but it simply lists all known tags and picks the latest one, regardless of which branch it currently is in.
Offline
I'm sorry to bump that old thread, but I have exactly the same question.
When I use that PKGBUILD mentioned above (with the fragment "branch=5.15", the following git command shows that dev is checked out, not 5.15
git branch | grep -E '(\*|5.15$)'
5.15
* devThe man page states
fragment
(optional) Allows specifying a revision number or branch for makepkg to checkout from the VCS.
So I would assume the 5.15 branch will be checked out
Last edited by weltio (Yesterday 07:31:56)
Offline
Following git command run where exactly?
Offline
Weltio, please (re-)read necro-bumping .
Start a new thread and , link to this one and answer seth' question in the first post of the new thread.
Moderator Note
Closing this old thread.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline