leamas / lpf

lpf - Local Package Factory
MIT License
64 stars 6 forks source link

Skype won't install, and lpf thinks it is installed... except it doesn't. #30

Open theblackwidower opened 8 years ago

theblackwidower commented 8 years ago

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:

Nothing to update All lpf packages built and installed

I click on 'More...', see:

lpf package version 4.3.0.37-2.fc23 Target package version Not installed Package state install-wait'.

I click on 'Build...' and get the message:

Nothing to update All lpf packages built and installed

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:

Package desktop-file-utils-0.22-5.fc23.x86_64 is already installed, skipping.
Last metadata expiration check performed 2:23:54 ago on Sun Jan 24 14:16:52 2016. Dependencies resolved. Nothing to do. Complete!
Getting http://download.skype.com/linux/skype-4.3.0.37.tar.bz2 to ./skype-4.3.0.37.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  2 18.4M    2  508k    0     0   491k      0  0:00:38  0:00:01  0:00:37  491k
  4 18.4M    4  911k    0     0   440k      0  0:00:42  0:00:02  0:00:40  440k
  7 18.4M    7 1343k    0     0   441k      0  0:00:42  0:00:03  0:00:39  441k
 10 18.4M   10 2050k    0     0   508k      0  0:00:37  0:00:04  0:00:33  508k
 14 18.4M   14 2666k    0     0   530k      0  0:00:35  0:00:05  0:00:30  533k
 16 18.4M   16 3095k    0     0   512k      0  0:00:36  0:00:06  0:00:30  516k
 18 18.4M   18 3479k    0     0   494k      0  0:00:38  0:00:07  0:00:31  517k
 20 18.4M   20 3857k    0     0   480k      0  0:00:39  0:00:08  0:00:31  504k
 23 18.4M   23 4353k    0     0   481k      0  0:00:39  0:00:09  0:00:30  459k
 24 18.4M   24 4709k    0     0   469k      0  0:00:40  0:00:10  0:00:30  408k
 27 18.4M   27 5118k    0     0   463k      0  0:00:40  0:00:11  0:00:29  404k
 29 18.4M   29 5607k    0     0   466k      0  0:00:40  0:00:12  0:00:28  425k
 32 18.4M   32 6169k    0     0   473k      0  0:00:39  0:00:13  0:00:26  461k
 37 18.4M   37 7058k    0     0   503k      0  0:00:37  0:00:14  0:00:23  542k
 43 18.4M   43 8175k    0     0   544k      0  0:00:34  0:00:15  0:00:19  694k
 51 18.4M   51 9707k    0     0   602k      0  0:00:31  0:00:16  0:00:15  906k
 56 18.4M   56 10.4M    0     0   628k      0  0:00:29  0:00:17  0:00:12 1019k
 62 18.4M   62 11.4M    0     0   648k      0  0:00:29  0:00:18  0:00:11 1106k
 65 18.4M   65 11.9M    0     0   644k      0  0:00:29  0:00:19  0:00:10 1040k
 67 18.4M   67 12.4M    0     0   634k      0  0:00:29  0:00:20  0:00:09  906k
 69 18.4M   69 12.7M    0     0   620k      0  0:00:30  0:00:21  0:00:09  680k
 70 18.4M   70 13.0M    0     0   606k      0  0:00:31  0:00:22  0:00:09  532k
 73 18.4M   73 13.6M    0     0   604k      0  0:00:31  0:00:23  0:00:08  443k
 76 18.4M   76 14.0M    0     0   596k      0  0:00:31  0:00:24  0:00:07  414k
 78 18.4M   78 14.4M    0     0   589k      0  0:00:31  0:00:25  0:00:06  409k
 80 18.4M   80 14.7M    0     0   580k      0  0:00:32  0:00:26  0:00:06  409k
 81 18.4M   81 14.9M    0     0   565k      0  0:00:33  0:00:27  0:00:06  385k
 83 18.4M   83 15.3M    0     0   560k      0  0:00:33  0:00:28  0:00:05  359k
 86 18.4M   86 15.8M    0     0   560k      0  0:00:33  0:00:29  0:00:04  385k
 89 18.4M   89 16.5M    0     0   562k      0  0:00:33  0:00:30  0:00:03  428k
 92 18.4M   92 17.1M    0     0   564k      0  0:00:33  0:00:31  0:00:02  484k
 95 18.4M   95 17.5M    0     0   561k      0  0:00:33  0:00:32  0:00:01  537k
 99 18.4M   99 18.3M    0     0   567k      0  0:00:33  0:00:33 --:--:--  608k
100 18.4M  100 18.4M    0     0   569k      0  0:00:33  0:00:33 --:--:--  633k
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Cg6cLI
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ cd /var/lib/lpf/rpmbuild/BUILD
+ rm -rf skype-4.3.0.37
+ /usr/bin/bzip2 -dc /var/lib/lpf/rpmbuild/SOURCES/skype-4.3.0.37.tar.bz2
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd skype-4.3.0.37
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ sed -i 's/\r$//' LICENSE
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ErgDUk
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ cd skype-4.3.0.37
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.P3DJ5W
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ '[' /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386 '!=' / ']'
+ rm -rf /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386
++ dirname /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386
+ mkdir -p /var/lib/lpf/rpmbuild/BUILDROOT
+ mkdir /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386
+ cd skype-4.3.0.37
+ mkdir -p /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/etc/prelink.conf.d/
+ install -p -D -m 655 skype /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/bin/skype
+ echo '-b /usr/bin/skype'
+ install -p -D -m 644 skype.conf /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/etc/dbus-1/system.d/skype.conf
+ for size in 16 24 32 48 64 96 128 256
+ install -p -D -m 644 icons/SkypeBlue_16x16.png /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/icons/hicolor/16x16/apps/skype.png
+ for size in 16 24 32 48 64 96 128 256
+ install -p -D -m 644 icons/SkypeBlue_24x24.png /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/icons/hicolor/24x24/apps/skype.png
+ for size in 16 24 32 48 64 96 128 256
+ install -p -D -m 644 icons/SkypeBlue_32x32.png /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/icons/hicolor/32x32/apps/skype.png
+ for size in 16 24 32 48 64 96 128 256
+ install -p -D -m 644 icons/SkypeBlue_48x48.png /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/icons/hicolor/48x48/apps/skype.png
+ for size in 16 24 32 48 64 96 128 256
+ install -p -D -m 644 icons/SkypeBlue_64x64.png /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/icons/hicolor/64x64/apps/skype.png
+ for size in 16 24 32 48 64 96 128 256
+ install -p -D -m 644 icons/SkypeBlue_96x96.png /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/icons/hicolor/96x96/apps/skype.png
+ for size in 16 24 32 48 64 96 128 256
+ install -p -D -m 644 icons/SkypeBlue_128x128.png /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/icons/hicolor/128x128/apps/skype.png
+ for size in 16 24 32 48 64 96 128 256
+ install -p -D -m 644 icons/SkypeBlue_256x256.png /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/icons/hicolor/256x256/apps/skype.png
+ mkdir -p /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/skype
+ cp -afr sounds avatars lang /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/skype
+ sed -i -e s/.png//g skype.desktop
+ desktop-file-install --dir=/var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/applications skype.desktop
+ /usr/lib/rpm/brp-compress
Processing files: skype-4.3.0.37-2.fc23.i686
Provides: config(skype) = 4.3.0.37-2.fc23 skype = 4.3.0.37-2.fc23 skype(x86-32) = 4.3.0.37-2.fc23
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libQtCore.so.4 libQtDBus.so.4 libQtGui.so.4 libQtNetwork.so.4 libQtWebKit.so.4 libQtXml.so.4 libX11.so.6 libXext.so.6 libXss.so.1 libXv.so.1 libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) libc.so.6(GLIBC_2.2) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.2) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libc.so.6(GLIBC_2.7) libdl.so.2 libdl.so.2(GLIBC_2.0) libdl.so.2(GLIBC_2.1) libgcc_s.so.1 libgcc_s.so.1(GCC_3.0) libgcc_s.so.1(GLIBC_2.0) libm.so.6 libm.so.6(GLIBC_2.0) libm.so.6(GLIBC_2.1) libpthread.so.0 libpthread.so.0(GLIBC_2.0) libpthread.so.0(GLIBC_2.1) libpthread.so.0(GLIBC_2.2) libpthread.so.0(GLIBC_2.3.2) librt.so.1 librt.so.1(GLIBC_2.2) libstdc++.so.6 libstdc++.so.6(CXXABI_1.3) libstdc++.so.6(GLIBCXX_3.4) libstdc++.so.6(GLIBCXX_3.4.9)
Processing files: skype-data-4.3.0.37-2.fc23.noarch
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.rq4oTA
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ cd skype-4.3.0.37
+ DOCDIR=/var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/doc/skype-data
+ export DOCDIR
+ /usr/bin/mkdir -p /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/doc/skype-data
+ cp -pr LICENSE /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/doc/skype-data
+ cp -pr README /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/doc/skype-data
+ cp -pr third-party_attributions.txt /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386/usr/share/doc/skype-data
+ exit 0
Provides: application() application(skype.desktop) config(skype-data) = 4.3.0.37-2.fc23 mimehandler(x-scheme-handler/skype) skype-data = 4.3.0.37-2.fc23
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
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386
Wrote: /var/lib/lpf/rpmbuild/RPMS/i686/skype-4.3.0.37-2.fc23.i686.rpm
Wrote: /var/lib/lpf/rpmbuild/RPMS/noarch/skype-data-4.3.0.37-2.fc23.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.1zRYFD
+ umask 022
+ cd /var/lib/lpf/rpmbuild/BUILD
+ cd skype-4.3.0.37
+ /usr/bin/rm -rf /var/lib/lpf/rpmbuild/BUILDROOT/skype-4.3.0.37-2.fc23.i386
+ exit 0
Error: must be run as pkg-build user.

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.

sergiomb2 commented 8 years ago

your user need be in pkg-build group

https://ask.fedoraproject.org/en/question/66586/skype-rpm-build-error/?answer=68528#post-id-68528 https://ask.fedoraproject.org/en/question/73860/fedora-22-skype-doesnt-start-crashes-after-log-in-problem-changed/?answer=73885#post-id-73885

theblackwidower commented 8 years ago

Yes, I noticed that. But is this not something that should be covered by the lpf-gui?

theblackwidower commented 8 years ago

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.

sergiomb2 commented 8 years ago

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

theblackwidower commented 8 years ago

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.

sergiomb2 commented 8 years ago

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)

flango commented 8 years ago

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.

sergiomb2 commented 8 years ago

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 .

flango commented 8 years ago

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.

sergiomb2 commented 8 years ago

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

flango commented 8 years ago

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.

sergiomb2 commented 8 years ago

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 .

ahwatts commented 6 years ago

I've been running in to this issue with Spotify. From searching through the repo, it looks like this error message comes from

https://github.com/leamas/lpf/blob/f1f5dd90e828ab5ecca7ac9a61dd046014d18738/scripts/lpf-notify#L17-L25

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.

sergiomb2 commented 6 years ago

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

stieg commented 6 years ago

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.

sergiomb2 commented 6 years ago

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

sergiomb2 commented 6 years ago

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.
sergiomb2 commented 6 years ago

@stieg ^

stieg commented 6 years ago

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
stieg commented 6 years ago

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
sergiomb2 commented 6 years ago

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

sergiomb2 commented 6 years ago

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.

stieg commented 6 years ago

Log attached:

lpf-gui.log

sergiomb2 commented 6 years ago

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

stieg commented 6 years ago

So doing that has really caused things to get weird. Attached is the log:

lpf-gui-2.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.

sergiomb2 commented 6 years ago

please send to me /var/lib/lpf/log/spotify-client.log !

stieg commented 6 years ago

Not really much there...

spotify-client.log

sergiomb2 commented 6 years ago

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 .

stieg commented 6 years ago

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 Pre Install Attempt

Post Install Attempt Post Install Attempt

Log File spotify-client.log

stieg commented 6 years ago

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....

sergiomb2 commented 6 years ago

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!

sergiomb2 commented 6 years ago

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

stieg commented 6 years ago

Have you approved the spotify license Yes.

MayCXC commented 3 years ago

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

sergiomb2 commented 3 years ago
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

MayCXC commented 3 years ago

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.

sergiomb2 commented 3 years ago

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