AUR, building "urbackup" Permission denied

Ask questions about Arch Linux ARM. Please search before making a new topic.

AUR, building "urbackup" Permission denied

Postby agkbill » Thu Mar 12, 2015 6:42 am

I am trying to build the "urbackup-server" package from AUR on my Raspberry Pi.

Got the building process running by editing the PKBUILD file.

Changed:
$this->bbcode_second_pass_quote('', 'a')rch=("i686" "x86_64")

to:
$this->bbcode_second_pass_quote('', 'a')rch=("armv6h")


And removed,
$this->bbcode_second_pass_quote('', ' ')ln -sf /usr/include/cryptopp /usr/include/crypto++


makepkg failed to create that link due to permission problems so I did that manually before runing makepkg.

The build start to run and runs for some time, then I am asked for Password, giving the password build stops with error.

$this->bbcode_second_pass_quote('', '
')Password:
useradd: Permission denied.
useradd: cannot lock /etc/passwd; try again later.
==> ERROR: A failure occurred in build().
Aborting...


I can not (should not) run makepkg as root, so I feel a bit stuck.

Any ideas or input that can help to solve this.

Best regards,
Christer
agkbill
 
Posts: 4
Joined: Tue Feb 24, 2015 7:22 am
Top

Re: AUR, building "urbackup" Permission denied

Postby moonman » Thu Mar 12, 2015 7:24 am

Wow that is the worst PKGBUILD I've seen so far. It was written with the assumtion that you run as root which was never recommended but is now enforced for this exact reason. It not only creates a package but modifies your system which pkgbuild should never do. Useradd should be i the install script. You probably don't have your user added to sudoers list too. Ask maintainer to abandon this package so someone who actually knows what he is doing can fix it.

EDIT: See last comment https://aur.archlinux.org/packages/urbackup-server/
Just download those 2 files into a single directory and run makepkg.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: AUR, building "urbackup" Permission denied

Postby agkbill » Sun Mar 15, 2015 1:57 pm

Thanks moonman,

It worked, managed to build the package ok.

Best regards,
agkbill
 
Posts: 4
Joined: Tue Feb 24, 2015 7:22 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests