Open theblackwidower opened 8 years ago
Yes, I noticed that. But is this not something that should be covered by the lpf-gui?
Also, seems like a it would be a pretty common error. Bringing up a series of conflicting messages and hiding the error at the bottom of the log file doesn't seem like the right way to handle it.
yes , after lpf-gui set your user pkg-build group , you must logout and login , or something , because in current session your user isn't yet in pkg-build group
Okay, for a start, that doesn't explain why the user is being given conflicting messages. Second, I did restart, several times, it changed nothing.
I think you misunderstand. I filed this under issues, because it's an issue that needs to be fixed. Users shouldn't have to search the internet to find a solution to this. It should be handled automatically. And if they need to reboot, they should be told to reboot. This is basic first year interface design.
please , if you restart please tell us what id command says ? mine is :
id
uid=500(sergio) gid=500(sergio) groups=500(sergio),18(dialout),436(pkg-build),455(vboxusers),458(wireshark),462(davfs2),464(mock)
I have exactly the same problem with lpf-skype I did usermod -aG pkg-build $USER And when i use id it says uid=1000(sol) gid=1000(sol) groups=1000(sol),978(pkg-build) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
And when trying to use lpf-skype it says nothing more to do and in the log file it says. Error: must be run as pkg-build user.
So what can i do. This is on a freshly installed Fedora 23.
Hi, you wrote "use lpf-skype" , the correct command is lpf-gui , after install lpf-skype
I always have SElinux disabled , but not bet on SElinux fault , anyway if try with SELinux disable we will know if it is selinux fault or not .
I mean I start lpf-skype from gnome gui. I it starts and just says all packages is installed and nothing to do. In lpf-gui i can see Skype and a ! marking that something is wrong. Trying to install from there and same message and it will say my user is not in pkg-build but it is.
I don't understand what you wrote , "I start lpf-skype from gnome gui. " ? what that's means ? , the build must be under lpf-gui , I don't know any other way
Screenshots Lpf https://dl.dropboxusercontent.com/u/2792526/lpf.png Lpf-skype https://dl.dropboxusercontent.com/u/2792526/lpf-skype.png Lpf-gui https://dl.dropboxusercontent.com/u/2792526/lpf-gui.png Lpf-gui and lpf-skype is the same lpf-gui can just build other lpf things like Spotify to, but lpf-skype is designed to run lpf-gui and automatically install lpf-skype, none of the ways work. Same message.
Nothing to update, all lpf packages built and installed. But it's not...
And when running lpf-gui more on Skype and then view a little error message at the bottom of the file. Error: must be run as pkg-build user. I am a pkg-build user. And lpf doesn't give a error message, everything good message the log tells of the error.
Hello , sorry for the delay , thanks for the screenshots I had uninstall all skype stuff and ran "lpf-skype" which is the same of run "/usr/bin/lpf update skype" and install without problems . have you logout and login ? I bet not all envoiment have pkg-build group, or please run lpf-gui from the same console , that you ran id .
I've been running in to this issue with Spotify. From searching through the repo, it looks like this error message comes from
It appears that the script is literally checking if the user that runs it is pkg-bild
, as opposed to if the user is in the pkg-build
group. As best as I can tell, and maybe this is because of the way lpf has been installed on Fedora, it looks like lpf-gui
starts up lpf-notify
as the current user and not pkg-build
.
After run lpf-gui for the first time , do su - $USER
and if you run id
you will see that you already have
pkg-build group so there you may run lpf-gui (if you don't want login and logout or reboot computer) again and finally start install spotify .
lpf-skype was retired , now I just maintain flash-player , spotify and ms-fonts.
skype have one linux repo: skype-stable
Hey @sergiomb2 ,
I think @ahwatts is on the correct path here. I am also hitting this issue while trying to use lpf-gui
to build and install Spotify client on Fedora 29. Here is the output of id
:
% id
uid=1000(stieg) gid=1000(stieg) groups=1000(stieg),4(adm),6(disk),10(wheel),11(cdrom),18(dialout),63(audio),978(pkg-build) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
As you can clearly see I am part of the pkg-build group. But as @ahwatts notes above the failing check is checking the user, not the group. So it appears that this check is the culprit. Unless the build is supposed to actually be switching its user to the pkg-build
user before the build run, in which case the switch to that user is not happening correctly.
Knowing its checkered history I tried setting SELinux to permissive mode to see if that was the culprit. But alas the same error happened again. Here is a full log so you can see what is happening:
Last metadata expiration check: 0:31:06 ago on Fri 12 Oct 2018 10:16:13 AM HST. Package desktop-file-utils-0.23-9.fc29.x86_64 is already installed. Package python2-devel-2.7.15-10.fc29.x86_64 is already installed. Package redhat-lsb-core-4.1-45.fc29.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete!
Getting http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.0.89.313.g34a58dea-5_amd64.deb to ./spotify-client_1.0.89.313.g34a58dea-5_amd64.deb
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2 98.3M 2 2114k 0 0 2891k 0 0:00:34 --:--:-- 0:00:34 2888k
7 98.3M 7 7999k 0 0 4650k 0 0:00:21 0:00:01 0:00:20 4650k
16 98.3M 16 16.2M 0 0 6136k 0 0:00:16 0:00:02 0:00:14 6134k
26 98.3M 26 26.4M 0 0 7290k 0 0:00:13 0:00:03 0:00:10 7288k
37 98.3M 37 36.9M 0 0 8025k 0 0:00:12 0:00:04 0:00:08 8025k
48 98.3M 48 47.9M 0 0 8580k 0 0:00:11 0:00:05 0:00:06 9412k
59 98.3M 59 58.8M 0 0 8976k 0 0:00:11 0:00:06 0:00:05 10.2M
70 98.3M 70 69.5M 0 0 9224k 0 0:00:10 0:00:07 0:00:03 10.6M
81 98.3M 81 79.8M 0 0 9383k 0 0:00:10 0:00:08 0:00:02 10.6M
92 98.3M 92 90.6M 0 0 9549k 0 0:00:10 0:00:09 0:00:01 10.7M
100 98.3M 100 98.3M 0 0 9664k 0 0:00:10 0:00:10 --:--:-- 10.7M
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.28URSs
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ cd /var/lib/lpf/rpmbuild/BUILD
+ rm -rf spotify-make-a0048ec7c5c6acf4ca584348684150b91328227d
+ /usr/bin/gzip -dc /var/lib/lpf/rpmbuild/SOURCES/spotify-make-a0048ec.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd spotify-make-a0048ec7c5c6acf4ca584348684150b91328227d
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wT3uQJ
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ cd spotify-make-a0048ec7c5c6acf4ca584348684150b91328227d
+ ./configure --prefix=/usr --libdir=/usr/lib64 --package=/var/lib/lpf/rpmbuild/SOURCES/spotify-client_1.0.89.313.g34a58dea-5_amd64.deb
Checking build and support dependencies
ldconfig:... ldconfig (GNU libc) 2.28 (ok)
python: Python 2.7.15 (ok)
zenity: ...(ok)
ar: GNU ar version 2.31.1-13.fc29 (ok)
lsb_release: trying -i: Distributor ID: Fedora (ok)
make: GNU Make 4.2.1 (ok)
install: install (GNU coreutils) 8.30 (ok)
desktop-file-validate: (ok)
gtk-update-icon-cache: (ok)
update-desktop-database: (ok)
Determining distro:... (no "special configuration" of distro needed)...Fedora
Determining arch:... amd64
Digging out version from --file:...1.0.89.313.g34a58dea
Using supplied package:.../var/lib/lpf/rpmbuild/SOURCES/spotify-client_1.0.89.313.g34a58dea-5_amd64.deb
Determine permissions for shared libs (SO_PERMS)...755
Configuration paths:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
prefix: /usr
bindir: /usr/bin
libdir: /usr/lib64
datadir: /usr/share
mandir: /usr/share/man
Writing Makefile
Writing spotify.desktop
Writing spotify.bash
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.mnuQW0
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ '[' /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64 '!=' / ']'
+ rm -rf /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64
++ dirname /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64
+ mkdir -p /var/lib/lpf/rpmbuild/BUILDROOT
+ mkdir /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64
+ cd spotify-make-a0048ec7c5c6acf4ca584348684150b91328227d
+ /usr/bin/make install DESTDIR=/var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64 'INSTALL=/usr/bin/install -p'
ar x /var/lib/lpf/rpmbuild/SOURCES/spotify-client_1.0.89.313.g34a58dea-5_amd64.deb
tar xzf data.tar.gz
cp -ar ./usr/share/spotify/* /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/spotify-client
mv /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/spotify-client/libcef.so /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/lib64/spotify-client
cp ./usr/bin/spotify /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/lib64/spotify-client
tar xzf control.tar.gz
mv control md5sums /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/spotify-client
cd /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/lib64/spotify-client; \
for f in /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/spotify-client/*; do \
ln -sf ../../share/spotify-client/$(basename $f) . ; \
done
[ -n "" ] && cp -a /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/spotify-client || :
cp -a fedora/amd64/*.so.* /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/lib64/spotify-client
WARNING; cant resolve spotify dependency: libcurl-gnutls.so.4
INFO: resolving libatomic.so.1 as " /lib64/libatomic_ops_gpl.so.1"
install -m 755 -pD spotify.bash /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/bin/spotify
install -m 644 -pD spotify.1 /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/man/man1/spotify.1
mkdir -p /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/appdata || echo '(ignored)'
cp appdata.xml /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/appdata/spotify.xml
Installing icons in /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/icons/hicolor
[ -d /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/applications ] || \
mkdir /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/applications
desktop-file-install --dir /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/applications \
spotify.desktop
[ "Fedora" = 'Ubuntu' ] && chmod 755 \
/var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/applications/spotify.desktop || :
chmod 755 \
$( find /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/lib64/spotify-client -name '*.so*' -writable)
cp Makefile /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/spotify-client
cp README.md /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/spotify-client
+ cd /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/lib64/spotify-client
+ ln -s ../libcurl.so.4 libcurl-gnutls.so.4
+ '[' '%{buildarch}' = noarch ']'
+ QA_CHECK_RPATHS=1
+ case "${QA_CHECK_RPATHS:-}" in
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
mangling shebang in /usr/bin/spotify from /bin/bash to #!/usr/bin/bash
Processing files: spotify-client-1.0.89.313-1.fc29.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.jLQi0m
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ cd spotify-make-a0048ec7c5c6acf4ca584348684150b91328227d
+ DOCDIR=/var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/doc/spotify-client
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/doc/spotify-client
+ cp -pr usr/share/doc/spotify-client/changelog.gz /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64/usr/share/doc/spotify-client
+ exit 0
Provides: application() application(spotify.desktop) bundled(libssl) = 0.9.8 libEGL.so()(64bit) libGLESv2.so()(64bit) mimehandler(x-scheme-handler/spotify) spotify = 1.0.89.313-1.fc29 spotify-client = 1.0.89.313-1.fc29 spotify-client(x86-64) = 1.0.89.313-1.fc29
Requires(interp): /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Requires(posttrans): /bin/sh
Requires: /usr/bin/bash ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.2.5)(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libGLESv2.so()(64bit) libX11-xcb.so.1()(64bit) libX11.so.6()(64bit) libXcomposite.so.1()(64bit) libXcursor.so.1()(64bit) libXdamage.so.1()(64bit) libXext.so.6()(64bit) libXfixes.so.3()(64bit) libXi.so.6()(64bit) libXrandr.so.2()(64bit) libXrender.so.1()(64bit) libXss.so.1()(64bit) libXtst.so.6()(64bit) libasound.so.2()(64bit) libasound.so.2(ALSA_0.9)(64bit) libatk-1.0.so.0()(64bit) libatomic.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.6)(64bit) libc.so.6(GLIBC_2.7)(64bit) libc.so.6(GLIBC_2.8)(64bit) libc.so.6(GLIBC_2.9)(64bit) libcairo.so.2()(64bit) libdbus-1.so.3()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libexpat.so.1()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgdk-x11-2.0.so.0()(64bit) libgdk_pixbuf-2.0.so.0()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgmodule-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgtk-x11-2.0.so.0()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libnspr4.so()(64bit) libnss3.so()(64bit) libnss3.so(NSS_3.10)(64bit) libnss3.so(NSS_3.11)(64bit) libnss3.so(NSS_3.11.1)(64bit) libnss3.so(NSS_3.12)(64bit) libnss3.so(NSS_3.12.1)(64bit) libnss3.so(NSS_3.12.3)(64bit) libnss3.so(NSS_3.12.4)(64bit) libnss3.so(NSS_3.2)(64bit) libnss3.so(NSS_3.22)(64bit) libnss3.so(NSS_3.3)(64bit) libnss3.so(NSS_3.4)(64bit) libnss3.so(NSS_3.5)(64bit) libnss3.so(NSS_3.6)(64bit) libnss3.so(NSS_3.7)(64bit) libnss3.so(NSS_3.8)(64bit) libnss3.so(NSS_3.9)(64bit) libnss3.so(NSS_3.9.2)(64bit) libnssutil3.so()(64bit) libnssutil3.so(NSSUTIL_3.12)(64bit) libnssutil3.so(NSSUTIL_3.12.3)(64bit) libpango-1.0.so.0()(64bit) libpangocairo-1.0.so.0()(64bit) libpangoft2-1.0.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) libpthread.so.0(GLIBC_2.3.3)(64bit) libresolv.so.2()(64bit) librt.so.1()(64bit) librt.so.1(GLIBC_2.2.5)(64bit) libsmime3.so()(64bit) libsmime3.so(NSS_3.10)(64bit) libsmime3.so(NSS_3.2)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.1)(64bit) libstdc++.so.6(CXXABI_1.3.3)(64bit) libstdc++.so.6(CXXABI_1.3.5)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.13)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.17)(64bit) libstdc++.so.6(GLIBCXX_3.4.18)(64bit) libstdc++.so.6(GLIBCXX_3.4.19)(64bit) libstdc++.so.6(GLIBCXX_3.4.5)(64bit) libstdc++.so.6(GLIBCXX_3.4.6)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) libxcb.so.1()(64bit) libz.so.1()(64bit) libz.so.1(ZLIB_1.2.3.4)(64bit) rtld(GNU_HASH)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/lib/lpf/rpmbuild/BUILDROOT/spotify-client-1.0.89.313-1.fc29.x86_64
Wrote: /var/lib/lpf/rpmbuild/RPMS/x86_64/spotify-client-1.0.89.313-1.fc29.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.G4AlCi
+ 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.89.313-1.fc29.x86_64
+ exit 0
Error: must be run as pkg-build user.
Not sure if you need anything else but please don't hesitate to ask.
Error: must be run as pkg-build user.
ok, as user 1000, please try :
export SUDO_ASKPASS=/usr/share/lpf/scripts/sudo_askpass
sudo -A /usr/share/lpf/scripts/lpf-sudo-install /var/lib/lpf/rpms/spotify-client/spotify-client-1.0.89.313-1.fc27.x86_64.rpm
lpf ask you for your password ? if not it is the problem
I'd like check this , we may give a clever error to end user ... I think this all about sudo configuration , you may have one configuration that help me to find the problem. your user 1000 have sudo capabilities ? For example I don't (the Fedora default I guess)
sudo systemctl restart httpd mysqld
[sudo] password for sergio:
Sorry, user sergio is not allowed to execute '/usr/bin/systemctl restart httpd mysqld' as root on mylaptop.
@stieg ^
Howdy,
So for your first comment the path to the RPM was incorrect. I corrected it and was able to install. Here is the output:
[stieg@daevas]~% sudo -A /usr/share/lpf/scripts/lpf-sudo-install /var/lib/lpf/rpms/spotify-client/spotify-client-1.0.89.313-1.fc29.x86_64.rpm
Last metadata expiration check: 0:06:28 ago on Sat 13 Oct 2018 02:44:40 PM HST.
Dependencies resolved.
==============================================================================================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================================================================================
Installing:
spotify-client x86_64 1.0.89.313-1.fc29 @commandline 80 M
Installing dependencies:
libatomic x86_64 8.2.1-4.fc29 updates-testing 39 k
Transaction Summary
==============================================================================================================================================================================================================================================
Install 2 Packages
Total size: 80 M
Total download size: 39 k
Installed size: 240 M
Downloading Packages:
libatomic-8.2.1-4.fc29.x86_64.rpm 30 kB/s | 39 kB 00:01
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 12 kB/s | 39 kB 00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libatomic-8.2.1-4.fc29.x86_64 1/2
Running scriptlet: libatomic-8.2.1-4.fc29.x86_64 1/2
Installing : spotify-client-1.0.89.313-1.fc29.x86_64 2/2
Running scriptlet: spotify-client-1.0.89.313-1.fc29.x86_64 2/2
Verifying : libatomic-8.2.1-4.fc29.x86_64 1/2
Verifying : spotify-client-1.0.89.313-1.fc29.x86_64 2/2
Installed:
spotify-client-1.0.89.313-1.fc29.x86_64 libatomic-8.2.1-4.fc29.x86_64
Complete!
My user does have full sudo capabilities as I am in the wheel group and wheel has ALL
capabilities:
[stieg@daevas]~% sudo grep wheel /etc/sudoers
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
# %wheel ALL=(ALL) NOPASSWD: ALL
[stieg@daevas]~% id
uid=1000(stieg) gid=1000(stieg) groups=1000(stieg),4(adm),6(disk),10(wheel),11(cdrom),18(dialout),63(audio),978(pkg-build) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Also including the relevant contents of /var/lib/lpf/
. Note that contents of BUILD was omitted because its too damn big:
[stieg@daevas]~% tree /var/lib/lpf/
/var/lib/lpf/
├── approvals
├── log
│ └── spotify-client.log
├── notify
├── packages
│ └── spotify-client
│ └── state
├── rpmbuild
│ ├── BUILD
│ │ └── spotify-make-a0048ec7c5c6acf4ca584348684150b91328227d
│ │ └─<OMITTED>
│ ├── BUILDROOT
│ ├── RPMS
│ │ └── x86_64
│ │ └── spotify-client-1.0.89.313-1.fc29.x86_64.rpm
│ ├── SOURCES
│ │ ├── spotify-client_1.0.89.313.g34a58dea-5_amd64.deb
│ │ └── spotify-make-a0048ec.tar.gz
│ ├── SPECS
│ └── SRPMS
└── rpms
└── spotify-client
└── spotify-client-1.0.89.313-1.fc29.x86_64.rpm
My user does have full sudo capabilities as I am in the wheel group and wheel has ALL capabilities
ah should be this , as you can see you have installed spotify successfully . Thanks for the feedback , I will test it myself and report back soon
No, works still works for me , please edit /usr/share/lpf/scripts/lpf-defs.bash and add one line with set -x
before scriptdir=...
, please remove spotify-client with dnf remove spotify-client
and try lpf-gui again , and report back please and thanks.
Log attached:
spotify-client install-wait 1.0.89.313-1.fc29
is a weird state, please on lpf-gui , click on more and click in reset data , try install it again and please send me /var/lib/lpf/log/spotify-client.log not lpf-gui.log .
Many thanks in advance
So doing that has really caused things to get weird. Attached is the log:
After doing the requested steps the build would fail to download and would get stuck in a permanent retry loop. Only a SIGINT was capable of stopping it.
please send to me /var/lib/lpf/log/spotify-client.log !
Not really much there...
please try , install it, and send spotify-client.log , see if no window is behind the main window , moving the main window , to other place .
Did a clean reinstall of all lpf-* packages. Ensured that spotify-client was not installed. Below are screenshots of lpf-gui
pre and post build along with the requested log. No other windows were seen when moving them around:
Pre Install Attempt
Post Install Attempt
Log File spotify-client.log
So dug into the script a bit. Looking at the logs it appears that you expect the EUID to be pkg-build
when you call into /usr/share/lpf/scripts/lpf-notify create spotify-client install-wait
in the lpf-pkgbuild. This is confirmed further by the re-exec code with sudo earlier in the file:
if [[ ! $( id -un ) = "$LPF_USER" && "$UID" -ne '0' ]]; then
exec $SUDO -u pkg-build $scriptdir/lpf-pkgbuild "$@"
fi
So it should be reasonable to expect that EUID would be preserved. However it seems that the invocation of the lpf-notify script is done using my standard user id. So somewhere between when the build starts and when the invocation to lpf-notify has happened the UID has been dropped back to my own. Hrmmm....
Thanks for the spotify-client.log , lpf-notify is called several times just fails after some calls , I will check it later , seems to me this spotify-client.log will hel me to find the issue . Thanks!
I haven't time to try to reproduce this , but in your images , is write approve-wait , , Have you approved the spotify license , should be asked before starting download etc
Have you approved the spotify license Yes.
This issue still comes up on google, so I'll leave this here:
this kind of problem can be caused by ar x
failure because spotify's deb server sucks. my approach to this was to run the build until it failed, cancel, then:
wget http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.55.498.gf9a83c60_amd64.deb
mv spotify-client_1.1.55.498.gf9a83c60_amd64.deb /var/lib/lpf/rpmbuild/SOURCES
sudo chown -R root /var/lib/lpf/rpmbuild/SOURCES
and rerun, so it would use the full wget deb instead of the incomplete ones. Seems like lpf or dnf needs a more robust downloading method, I was inspired by this thread: https://ask.fedoraproject.org/t/cannot-build-lpf-spotify-client/12144/23
cd /usr/share/lpf/packages/spotify-client/
spectool -g spotify-client.spec
Downloading: http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.55.498.gf9a83c60_amd64.deb
100% of 127.6 MiB |########################################################################################################| Elapsed Time: 0:00:11 Time: 0:00:11
Downloaded: spotify-client_1.1.55.498.gf9a83c60_amd64.deb
worked for me , I want do something for not try to run if your user is not yet in pkg-build group . First run ask root password to add your user to pkg-build group , after that we must logout and login again , or do su - $USER before run lpf-gui again
yes, but did you try building rest of the package with this deb? using lpf-gui the download fails silently, which causes ar x
to break because the deb is corrupted.
I forgot to reply it works for me , I could download file without any problem [2] , spectool use from urllib import request
[1] whcih I don't know it it is the problem for you ...
[1] https://pagure.io/spectool/blob/master/f/spectool#_371
[2] md5sum /var/lib/lpf/rpmbuild/SOURCES/spotify-client_1.1.55.498.gf9a83c60_amd64.deb 3f48cd83d2237b225fccc2c54779e194 /var/lib/lpf/rpmbuild/SOURCES/spotify-client_1.1.55.498.gf9a83c60_amd64.deb
This is weird.
I tried installing Skype through LPF on Fedora 23. And it apparently won't work. I open up lpf-gui, and there's a red exclamation mark next to Skype. I click on 'Build...' and get the message:
I click on 'More...', see:
I click on 'Build...' and get the message:
So which is it? Installed, or not installed? Well I don't see 'Skype' in the programs list, so I'm going to say 'no.'
Anyway. I think this needs to be fixed. Here's the full logfile:
Yes, I did notice that last line, but I don't know what pkg-build user is, or how to run as one. This seems like something that should be handled by the GUI.