Bug 4439

Summary: Build fail with Error: must be run as pkg-build user.
Product: Fedora Reporter: rpmfusion
Component: lpf-spotify-clientAssignee: Alec Leamas <leamas.alec>
Status: RESOLVED WORKSFORME    
Severity: enhancement CC: sergio
Priority: P1    
Version: 25   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description rpmfusion 2017-01-30 20:41:35 CET
I have tried installing both spotify and skype using the lpf packages. However neither can be installed. My account is part of the group pkg-build and I have rebooted, reinstalled lpf etc.

These are the last six lines of logfile:

+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ cd spotify-make-a0048ec7c5c6acf4ca584348684150b91328227d
+ /usr/bin/rm -rf /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.47-1.fc25.x86_64
+ exit 0
Error: must be run as pkg-build user.
Comment 1 Sérgio Basto 2017-02-01 07:05:56 CET
you need logout and login after setup you user in lpf-gui .
after login type id , should have your user with 
groups=(...)436(pkg-build)
Comment 2 rpmfusion 2017-02-01 21:58:04 CET
As said, the group was set and computer rebooted. Today I tried removing my account from the pkg-build group with 'sudo gpasswd -d $USER pkg-build' and and for some reason it started working (at least for installing skype. Spotify gives 404-error). 

Thanks for your comment though, id shows 982(pkg-build) instead of 436(pkg-build), that might have had something to do with it.
Comment 3 Sérgio Basto 2017-02-02 01:11:07 CET
the group number is not important 

did you get this message: 

You must be member of the pkg-build group to run lpf (log out and in again to mute this dialog).
OK to add group pkg-build to your current user sergio?

After push yes (will be asked root password) and add pkg-build to your user, after you *must* logout session and login again for your user assume the group pkg-build, or run : 

su - $USER in terminal  
lpf-gui

You may also add yourself to pkg-build group like you described .

I had update lpf-spotify-client in 
http://koji.rpmfusion.org/koji/buildinfo?buildID=3076

you may test it with :
dnf install http://koji.rpmfusion.org/kojifiles/packages/lpf-spotify-client/1.0.48/1.fc25/noarch/lpf-spotify-client-1.0.48-1.fc25.noarch.rpm