You are not logged in.
Hello, I made this package https://aur.archlinux.org/packages/i8kutils-bzr/
Works as expected, the only problem is that after running makepkg (with or without the --clean flag) there is always an empty "i8kutils-bzr" directory in the package root.
The culprit PKGBUILD line seems to be the following. The empty dir name changes along with $pkgname.
source=("$pkgname"::'bzr+https://launchpad.net/i8kutils/trunk'
I can't find how to stop makepkg from creating that empty dir.
The sources are inside the 'src' directory, that dir may be used for cloning? But why does makepkg keep it?
Last edited by adirat (2014-07-15 15:41:38)
Offline
That dir shouldn't be empty, it should have a checkout of the source repo. That then gets copied to the src dir, where the build happens, but the original checkout is left in $SRCDEST as the clean copy of the repo.
Offline
I can see the sources only in pkg-root/src/$pkgname, the pkg-root/$pkgname is always empty. It is created when bzr pulls the sources, though
if I change the source line to the following, makepkg has the same behavior only the empty dir name is "trunk".
So you have an empty pkg-root/trunk and source present in pkg-root/src/trunk
source=('bzr+https://launchpad.net/i8kutils/trunk'
Edit: And on every build, bzr re-downloads all the sources
Later edit:
core/pacman 4.1.2-6 (base base-devel) [installed]
Last edited by adirat (2014-07-15 15:21:47)
Offline
I know that someone on the pacman-dev mailing list was saying that the handling of bzr was somewhat broken. I wonder if this is part of what he was talking about. None of the regular pacman devs uses bzr, so it got released without much testing/review. Hopefully this will be fixed in 4.2, scheduled for release in a month and a half or so.
Offline
It works fine here. Check whether that directory is *actually* empty, or if it has a ".bzr" folder. With the bzr branch command used by makepkg the toplevel directory will only have the "hidden" folder .bzr.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
There's a .bzr dir inside. I guess it's something like a git bare repo with no working tree out of which src/$pkgname gets pulled.
This was my bad, I did not expect such behavior. I'm marking the thread as solved. Thank you.
Offline