Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#13442 - makechrootpkg permenantly chowns local directories to nobody
Attached to Project:
Arch Linux
Opened by dtw (dibblethewrecker) - Tuesday, 24 February 2009, 15:31 GMT
Last edited by Allan McRae (Allan) - Friday, 01 May 2009, 16:14 GMT
Opened by dtw (dibblethewrecker) - Tuesday, 24 February 2009, 15:31 GMT
Last edited by Allan McRae (Allan) - Friday, 01 May 2009, 16:14 GMT
|
DetailsThe problem appears to lie here:
Line 155: [ ! -z "$SRCDEST" ] && mount --bind "$SRCDEST" "$uniondir/srcdest" Line 168: chown -R nobody "$uniondir/srcdest" |
This task depends upon
Closed by Allan McRae (Allan)
Friday, 01 May 2009, 16:14 GMT
Reason for closing: Fixed
Additional comments about closing: In git: commit 486375ba
Friday, 01 May 2009, 16:14 GMT
Reason for closing: Fixed
Additional comments about closing: In git: commit 486375ba
Other options:
1) don't use mount --bind
2) chown it back
3) don't use nobody and add a new user?
4) ...
Can you use mount options to get the group when you bind the dir?
Although I have only mentioned the srcdest obviously the same applies to the pkgdest but the needs are different.
With the pkgdest we could forgo the bind completely and chuck in a simple mv or cp for the resulting pkg. With the srcdest another unionfs mount would make nice use of existing src downloads, but would prevent local caching of any new src downloads while in the chroot. However, we could mv or cp anything remaining in the chroot srcdest over to local srcdest once we unmount the union?
Since we're already in sudo the permissions wouldn't be a prob.
.:edit:.
s/dir/dest/
Example:
cd svn-packages && rm -rf bash && svn up bash && cd bash/trunk
# dir is clean now, except SVN files
sudo makechrootpkg -r ~/archroot/
# this downloads all bash sources
# on completion all sources downloaded and the package file is copied locally
sudo makechrootpkg -r ~/archroot/
# local files are copied to the chroot before building - not redownloaded
Also, I imagine there's an easier way to do the copying _to_ part:
in the existing loop, also check if [ -n "$SRCDEST" -a -e "$SRCDEST/$file" ]
http://projects.archlinux.org/?p=devtools.git;a=commitdiff;h=486375ba0aedb185b369946fe565538c0f8e7949
Please check this over, I didn't test it
Perhaps we should do a devtools release. There are a lot of useful new patches.
Also, the rebuild script needs a little bit of work to be fully usable