maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Yaspot (spotify client) (https://talk.maemo.org/showthread.php?t=40842)

sdstrowes 2010-05-24 00:25

Re: Yaspot (spotify client)
 
Regarding yaspot (I guess qtify is hit by the same issue): The version in the repositories is out of date. The despotify API changed very slightly since yaspot was last updated. Specifically: despotify_init_client() in depositify.c now has a fourth parameter, "use_cache".

This means that recompiling the despotify library to latest and replacing the old version doesn't work as before, because yaspot segfaults (the function signature it wants no longer exists).

So, to make yaspot work here again, I've recompiled despotify and yaspot, and copied both over. I haven't packaged these yet (I don't know how, off-hand), but the compiled versions I'm running (with "use_cache" set conservatively to "false") can be found here: http://sdstrowes.co.uk/yaspot/. Feel free to grab those and test them out.

Guidelines:
  • libdespotify.so.0.0.0 goes into /opt/maemo/usr/lib/ as before.
  • For testing, I'm running yaspot from my home directory (and launching via the command line).

Of course, you should probably make backups of originals before replacing anything.

oskkos 2010-05-26 15:16

Re: Yaspot (spotify client)
 
Mine yaspot has started working again.
Updated to PR1.2 and thought about giving a try at it and damn, it worked again :D

Can anyone else confirm that yaspot is working again with PR1.2

Crogge 2010-05-26 15:21

Re: Yaspot (spotify client)
 
Does any of the Spotify clients support a proxy? I use Spotify here in Germany since months without a problem over a UK proxy.

Joorin 2010-05-26 15:23

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by oskkos (Post 679716)
Mine yaspot has started working again.
Updated to PR1.2 and thought about giving a try at it and damn, it worked again :D

Can anyone else confirm that yaspot is working again with PR1.2

Are you having trouble believing yourself?

orcocan 2010-05-26 21:00

Re: Yaspot (spotify client)
 
mine started working again even before the upgrade, not sure what's going on...

dragly 2010-05-26 22:25

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by mickenordin (Post 672174)
For some reason I can't get the autobuilder to build the despotify packages any more and unfortunatly I don't have time to look into too why that is. Anyway, I posted new debs on my blog if you want to use the patched packages instead of just coping the shared libraries.

http://mickenordin.se/blog/index.php...tify-pa-maemo/

/Micke

I had a quick look at the build error and after fighting autobuilder to accept a new control file I managed to make it build. There were three things keeping it from building: Build-Depends had libao0 instead of libao-dev, libdespotify had a Depends missing a comma after ${shlibs:Depends} and the rules file needed dh_makeshlibs to be uncommented to make libdespotify have it's shlibs info created before despotify needed it.

I'll post the edited source code here in case you need it.
rules:
Code:

#!/usr/bin/make -f

#export DH_VERBOSE=1

DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_ARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

MAKEFLAGS=CLIENT_GATEWAY=1 CLIENT_DESPOTIFY=1

build: build-stamp
build-stamp:
        dh_testdir

        mkdir -p $(CURDIR)/debian/tmp
       
        # Add here commands to compile the package.
        $(MAKE) ${MAKEFLAGS}

        touch $@

clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp

        # Add here commands to clean up after the build process.
        $(MAKE) clean ${MAKEFLAGS}
        rm -rf $(CURDIR)/debian/tmp/

        dh_clean

install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs

        # Build
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/ ${MAKEFLAGS}
       
        # Install
#        dh_install -si --fail-missing --sourcedir=debian/tmp
        dh_install -si --sourcedir=debian/tmp

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs
        dh_installdocs
        dh_installexamples
#        dh_install
#        dh_installmenu
#        dh_installdebconf       
#        dh_installlogrotate
#        dh_installemacsen
#        dh_installpam
#        dh_installmime
#        dh_python
#        dh_installinit
#        dh_installcron
#        dh_installinfo
        dh_installman
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
#        dh_perl
        dh_makeshlibs
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

control:
Code:

Source: despotify
Section: sound
Priority: extra
Maintainer: Micke Nordin <mickewiki@gmail.com>
Build-Depends: debhelper (>= 5),
              libtool,
              libexpat1-dev,
              libncurses5-dev,
              libpulse-dev,
              libssl-dev,
              libvorbis-dev,
              zlib1g-dev,
                  libncursesw5-dev,
                  libao-dev,
                  libdespotify-dev
Standards-Version: 3.7.3

Package: libdespotify
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, libvorbisfile3 (>= 1.2.0)
Description: Despotify is an open source client and library for Spotify’s streamed music platform.

Package: libdespotify-dev
Section: libdevel
Architecture: any
Depends: libdespotify (= ${binary:Version})
Description: Development files for libdespotify.

Package: despotify
Section: sound
Architecture: any
Depends: libao0, libncursesw5, libvorbis0a, libvorbisfile3, libdespotify
Provides: despotify, despotify-simple, despotify-gateway
Description: An open source Spotify client.
 * C implementation based on F/OSS code
 * Proof of Concept multi-OS client with curses (text-based) UI
 * Proof of Concept gateway to the Spotify service (text-based
  protocol, for supporting REST).

The package should be in extras-devel any minute now, but I have no idea if it is gonna make Yaspot work or not :p And sorry about the jump in version numbering. The autobuilder wouldn't accept that I had changed the files unless the whole package was updated.

In any case, thanks for you effort in packaging this! Hopefully we'll be able to enjoy Spotify on N900 again soon :)

Update: After installing the newest version everything seems to be working as expected with Yaspot again. However, this version does not have the fourth parameter in despotify_init_client() so I guess it will break with the Spotify API when they decide to update it again. Updating the package to the newest version of despotify is probably a good idea, but I'm afraid I don't have the time to do that myself.

Duffer 2010-05-27 11:21

Re: Yaspot (spotify client)
 
Yaspot keeps dropping me back to entering credentials?

I'm on 1.2, can anyone confirm it's working please?

dragly 2010-05-27 11:52

Re: Yaspot (spotify client)
 
It is working for me, but please check that you have the newest version of yaspot and libdespotify from extras-devel. To be completely sure, run this in terminal (you have to install rootsh first):

sudo gainroot
apt-get update
apt-get install yaspot libdespotify
exit

After doing this it runs as it should on my N900.

Xizor 2010-05-27 15:23

Re: Yaspot (spotify client)
 
Quote:

Originally Posted by dragly (Post 682495)
It is working for me, but please check that you have the newest version of yaspot and libdespotify from extras-devel. To be completely sure, run this in terminal (you have to install rootsh first):

sudo gainroot
apt-get update
apt-get install yaspot libdespotify
exit

After doing this it runs as it should on my N900.

I tried this and still it reverts always back to the login section...

Billy Broms 2010-05-27 17:17

Re: Yaspot (spotify client)
 
My yaspot also behaved like that, but when I tried the files provided by sdstrowes (look further up), everything is working again.


All times are GMT. The time now is 18:07.

vBulletin® Version 3.8.8