You are not logged in.
Hi Guys,
i wan't to build some packages, e.g. teamviewer, in a clean chroot ... as even in the last years.
So i followed this wiki article: https://wiki.archlinux.org/index.php/De … ean_Chroot
If i run 'makechrootpkg -c -r /opt/arch64' as root, i got the error:
root@toaster ~/teamviewer # makechrootpkg -c -r /opt/arch64 :(
==> Creating clean working copy [copy]...done
makepkg: invalid option '--asroot'
==> ERROR: Could not download sources.
Without root privileges i was asked for the root password and got later the same error.
I will not install base-devel on my live system and i know that the --asroot option was removed from makepkg.
Is the way by using a virtual maschine the only one?
Sorry for my english :-)
Greetz
IICore
Offline
If I'm not mistaken, running makepkg as a root user, be it with the --asroot flag or as the root user is supposed to fail because of the changes to makepkg. It's been removed because the issues with fakeroot (which caused the --asroot flag to appear) have been fixed.
If you create a normal user and then build in the chroot, it should work normally.
EDIT: There's also something to do with sudo-ing to nobody somewhere in this thread.
Last edited by clfarron4 (2015-01-06 20:46:13)
Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository
Offline
Does it build with ccm?
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Hi graysky,
i will test ccm later ... currently there are some problems, which are important to me (e.g. cups: Unable to get list of printer drivers)
I installed Arch Linux with KDE after 2 month again on my pc but currently there are so many problems, so i indent to install Fedora or an other distribution
Offline
Reported a bug: https://bugs.archlinux.org/task/43432
Offline
If you run makechrootpkg using sudo, everything works fine.
Offline
If I would run makechrootpkg as nobody, it wouldn't be able to get into the chroot as the chroot files are owned by root.
I could set the SUDO_USER env var to "nobody" but that requires the pwd to be writeabke by user nobody.
Still the asroot option is not there anymore so makechrootpkg must not use that option.
Actually makechrootpkg should also automaticly take care of this on its own. It's kind of hackish to let the user chown the pwd to nobody and let makechrootpkg call with env SUDO_USER=99.
Last edited by asdil12 (2015-01-13 13:06:37)
Offline
Offline
I'm running a tool via cron (see aur pkg aurbs) that automaticly builds aur pkgs.
I want to prevent editing any security related files (like sudoers) if I can prevent it.
The tool is rin via cron or via ssh. Both don't elevate priviliges so the SUDO_USERS var is not set.
Offline