You are not logged in.

#1 2014-07-15 07:58:26

adirat
Member
Registered: 2012-11-03
Posts: 27

[SOLVED] makepkg leaves empty source dir

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

#2 2014-07-15 14:08:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,655

Re: [SOLVED] makepkg leaves empty source dir

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

#3 2014-07-15 15:17:42

adirat
Member
Registered: 2012-11-03
Posts: 27

Re: [SOLVED] makepkg leaves empty source dir

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

#4 2014-07-15 15:22:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,655

Re: [SOLVED] makepkg leaves empty source dir

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

#5 2014-07-15 15:24:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] makepkg leaves empty source dir

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

#6 2014-07-15 15:39:44

adirat
Member
Registered: 2012-11-03
Posts: 27

Re: [SOLVED] makepkg leaves empty source dir

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

Board footer

Powered by FluxBB