You are not logged in.

#1 2020-10-17 22:02:20

MountainX
Member
Registered: 2016-02-08
Posts: 173

[SOLVED] extra-x86_64-build requests [sudo] password for builduser.

I'm using extra-x86_64-build to build a custom package (for internal use) in a chroot. It it prompting me for the password for builduser. I'm not finding much help on this. I got no hits on this search: https://wiki.archlinux.org/index.php?se … arch&go=Go. There were a few hits on the forums, but I didn't see anything related to my issue.

Here is the output:

==> Starting pkgver()...
==> Entering fakeroot environment...
==> Starting package()...
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for builduser:

sudo: 3 incorrect password attempts
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Build failed, check /mnt/chroots/arch/extra-x86_64/extra-x86_64/myuser/build

I verified this and it looks correct:

$ sudo chroot $CHROOT/myuser
# cat /etc/sudoers.d/builduser-pacman
builduser ALL = NOPASSWD: /usr/bin/pacman

So I reset the passwd for builduser like this:

$ sudo chroot $CHROOT/myuser
# passwd builduser
New password: 
Retype new password: 
passwd: password updated successfully

But I get the same error upon running extra-x86_64-build following the passwd reset. I am not running extra-x86_64-build with the "-c" option.

There is no builduser in the $CHROOT/root location.

What is the right way to handle this? Also, why do some packages prompt for the passwd for builduser and others don't?

Last edited by MountainX (2020-10-18 16:51:16)

Offline

#2 2020-10-17 22:35:34

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,015
Website

Re: [SOLVED] extra-x86_64-build requests [sudo] password for builduser.

Why are you calling 'sudo' from the package function?


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2020-10-18 04:00:10

MountainX
Member
Registered: 2016-02-08
Posts: 173

Re: [SOLVED] extra-x86_64-build requests [sudo] password for builduser.

WorMzy wrote:

Why are you calling 'sudo' from the package function?

I guess that's the answer I need: don't call 'sudo' from the package() function right? I'll make the changes and try it.

Offline

#4 2020-10-18 05:24:29

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,681

Re: [SOLVED] extra-x86_64-build requests [sudo] password for builduser.

MountainX wrote:

I guess that's the answer I need: don't call 'sudo' from the package() function right? I'll make the changes and try it.

If you're using sudo there, then it's making changes to the build environment instead of the actual package and will thus not work as expected once you install it.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2020-10-18 16:52:47

MountainX
Member
Registered: 2016-02-08
Posts: 173

Re: [SOLVED] extra-x86_64-build requests [sudo] password for builduser.

eschwartz wrote:
MountainX wrote:

I guess that's the answer I need: don't call 'sudo' from the package() function right? I'll make the changes and try it.

If you're using sudo there, then it's making changes to the build environment instead of the actual package and will thus not work as expected once you install it.

Thank you. This was from the first package I created. I had done several things incorrectly.

Offline

Board footer

Powered by FluxBB