FS#43432 - [devtools] makechrootpkg calls makepkg with --asroot
Attached to Project:
Arch Linux
Opened by Dominik Heidler (asdil12) - Tuesday, 13 January 2015, 12:31 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 22 March 2017, 03:23 GMT
Opened by Dominik Heidler (asdil12) - Tuesday, 13 January 2015, 12:31 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 22 March 2017, 03:23 GMT
|
Details
See
https://projects.archlinux.org/devtools.git/tree/makechrootpkg.in#n297
When I run makechrootpkg (as root, of course) it tries to download the sources before changing into the chroot. To do that, makepkg is called with the --asroot option. As the --asroot option was remoced from makepkg, this will fail. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Wednesday, 22 March 2017, 03:23 GMT
Reason for closing: Fixed
Additional comments about closing: https://git.archlinux.org/devtools.git/c ommit/?id=cda9cf436b2897b063c1e40efb1444 04aad8b821
Wednesday, 22 March 2017, 03:23 GMT
Reason for closing: Fixed
Additional comments about closing: https://git.archlinux.org/devtools.git/c ommit/?id=cda9cf436b2897b063c1e40efb1444 04aad8b821
Patches welcome. I don't have time to deal with this right now.
Having a password prompt or unneccesary sudo-invocation is not good - and will scripted calling of makechrootpkg much harder.
A possible workaround would be to allow $NON_ROOT_USER to write to $PWD and run makechrootpkg as root but with env SUDO_USER=$NON_ROOT_USER, but I'm not sure, if this is intended use.
Also I don't like the idea of needing an additional user just to let makechrootpkg download the sources.
BTW: Why doesn't makechrootpkg leave the source downloading to makepkg IN the chroot, but insted calls it from extern at all?
> Having a password prompt or unneccesary sudo-invocation is not good - and will scripted calling of makechrootpkg much harder.
sudo has configuration which allows password-free invocation of makechrootpkg.
> BTW: Why doesn't makechrootpkg leave the source downloading to makepkg IN the chroot, but insted calls it from extern at all?
Two reasons:
1) The chroot might not have network access.
2) We mount SRCDEST as read-only in the chroot.
Edit: sorry for the two uploads
0001-makechrootpkg-remove-out... (1 KiB)