fsquillace / junest

The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro.
GNU General Public License v3.0
2.1k stars 110 forks source link

installing aur packages with makepkg and root execution issues #234

Closed aslakstubsgaard closed 4 years ago

aslakstubsgaard commented 5 years ago

since yogurt has become depricated i'm installing openfoam from the aur with

git clone https://aur.archlinux.org/openfoam.git
cd openfoam
makepkg -si

this results in

==> Creating package "openfoam"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: openfoam 7-1 (Mon Nov 25 18:13:21 2019)
==> Installing package openfoam with pacman -U...
error: you cannot perform this operation unless you are root.
==> WARNING: Failed to install built package(s).

while running makepkg -si in fakeroot enviroment yields

==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.

my way around that was subsequently running pacman -U from fakeroot

pacman -U openfoam-7-1-x86_64.pkg.tar.xz

if there's a way around this i'd like to know. but think the readme needs more of a procedure, rather then the one line now given.

also, makepkg can't install repo dependencies without fakeroot. so the procedure if i'm not missing something is

fsquillace commented 5 years ago

Which makepkg have used?

You need to use the one located in: /opt/makepkg/bin/makepkg

aslakstubsgaard commented 4 years ago

which makepkg gives /usr/bin/makepkg, but i don't have a /opt/makepkg folder. this junest installation was also initially set up over a year ago. installing a fresh junest on another system produces the /opt/makepkg folder.

the procedure then boils down to:

git clone ...
cd ...
/opt/makepkg/bin/makepkg -si

great!

recommendations on how to build the /opt/makepkg folder it on older installations?

TitouanT commented 4 years ago

I think this is not clear enough in the readme.