FS#34833 - [pacman] makepkg generate wrong permission 'd' directory

Attached to Project: Arch Linux
Opened by Daniel YC Lin (dlin) - Thursday, 18 April 2013, 00:56 GMT
Last edited by Allan McRae (Allan) - Thursday, 18 April 2013, 01:43 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

makepkg generate wrong permission 'd' on pkg directory

Additional info:
* package version(s)

pacman 4.1.0-2
fakeroot 1.18.4-1

* config and/or log files etc.

drwxr-xr-x  4 dlin users   4096 Apr 18 08:51 ./
drwxr-xr-x 14 dlin root    4096 Apr 18 08:48 ../
-rw-r--r--  1 dlin users   1134 Apr  7 21:45 ChangeLog
-rw-r--r--  1 dlin users    347 Apr  7 21:44 libarchive-depr-fix.patch
d---------  2 dlin users   4096 Apr 18 08:51 pkg/
-rw-r--r--  1 dlin users    790 Apr  7 21:46 PKGBUILD
-rw-r--r--  1 dlin users 363183 Apr 18 08:50 rdup-1.1.14.tar.bz2
drwxr-xr-x  3 dlin users   4096 Apr 18 08:51 src/

Steps to reproduce:
1. get rdup from AUR
2. makepkg (it will failed)
3. the pkg directory permission can not view
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 18 April 2013, 01:43 GMT
Reason for closing:  Not a bug
Comment by Daniel YC Lin (dlin) - Thursday, 18 April 2013, 01:03 GMT
I found it will happen when my makepkg's -j option is 5.
I force the PKGBUILD's make -j1, it can make the package again.
But, It maybe still a bug of pkg directory's permission.
Comment by Matthias Dienstbier (fs4000) - Thursday, 18 April 2013, 01:11 GMT
Then that package seems to have a problem with parallel builds.

Makepkg locks the pkgdir during build() to prevent faulty PKGBUILDs to place anything in there in the wrong moment.
See https://projects.archlinux.org/pacman.git/commit/?id=f170a94c137d355cfebb7d1623b685f34a09081b
Comment by KaiSforza (KaiSforza) - Thursday, 18 April 2013, 01:20 GMT
You should not be running anything to do with the $pkgdir in the build function. This honestly seems like an upstream bug, since from what I can see, the PKGBUILD is fine.

I'm getting errors about strip running in make. Please report this upstream to the rdup people.
Comment by Allan McRae (Allan) - Thursday, 18 April 2013, 01:43 GMT
Nothing to do with pkg/ directory. rdup looks like it has issues with parallel builds. Closing.

Loading...