Squeezebox Server 7.6 + Perl 5.14

Ask questions about Arch Linux ARM. Please search before making a new topic.

Re: Squeezebox Server 7.6 + Perl 5.14

Postby michif100 » Tue Dec 27, 2011 2:44 pm

Allright, would it then be possible that "makepkg" is missing?
One step further: if i succeeded in building the package, what would be the next step?
michif100
 
Posts: 14
Joined: Thu Aug 04, 2011 10:30 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby WarheadsSE » Tue Dec 27, 2011 3:21 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Squeezebox Server 7.6 + Perl 5.14

Postby aegide » Thu Dec 29, 2011 9:32 pm

Hi,

sorry for the crappy link. You can get my latest PKGBUILD info as .tgz at http://spaceplug.de/armel/logitechmedia ... src.tar.gz . And here's the package that runs on the iconnect: http://spaceplug.de/armel/logitechmedia ... pkg.tar.xz . It runs well as far as i can see but file indexing seems faulty. Have had no time to look into it. ayor.
aegide
 
Posts: 6
Joined: Tue Dec 20, 2011 3:39 pm

Re: Squeezebox Server 7.6 + Perl 5.14

Postby pogouser » Fri Dec 30, 2011 12:45 am

$this->bbcode_second_pass_quote('aegide', 'H')i,

sorry for the crappy link. You can get my latest PKGBUILD info as .tgz at http://spaceplug.de/armel/logitechmedia ... src.tar.gz . And here's the package that runs on the iconnect: http://spaceplug.de/armel/logitechmedia ... pkg.tar.xz . It runs well as far as i can see but file indexing seems faulty. Have had no time to look into it. ayor.


Thanks! I downloaded your package and installed it on pogoplug B01 and so far it is working nicely. Thanks again.
pogouser
 
Posts: 5
Joined: Tue Dec 27, 2011 3:10 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby fujcru » Fri Jul 13, 2012 12:26 am

I don't know if anyone is still reading this thread, but I managed to get the one of the nightly builds of the Logitech Media Server working on a Pogoplug Pro which has been upgraded to Perl 5.16.

I grabbed the ARM Tarball from the official server: http://downloads.slimdevices.com/nightly/?ver=7.8
I also grabbed the tarball and PKGBUILD for logitechmediaserver on AUR: https://aur.archlinux.org/packages.php?ID=53691
I made a few minor modifications to the PKGBUILD. Added 'arm' to the arch entry. Changed the source to be the ARM tarball and corresponding sha1sum. Commented out the last line of the build section where the non-Archlinux versions are being deleted because the ARM Tarball already only has the ARM binaries. Everything complied okay. When I ran the server, it gave me a few warnings: defined(@array) is deprecated at /opt/logitechmediaserver/CPAN/Class/Inspector.pm line 124. /opt/logitechmediaserver/CPAN/Log/Log4perl/Config.pm line 840. /opt/logitechmediaserver/Slim/Player/SB1SliMP3Sync.pm line 146. After a little research I found that Perl 5.16 started enforcing that warning for defined arrays. You can fix these errors by simply deleting the "defined" in each affected file at the line indicated.

The nightly has changed today but hopefully the instructions will still work. You'll just have to change the PKGBUILD to refer to the new file and add it's SHA1 checksum.

Good luck!
fujcru
 
Posts: 7
Joined: Mon Nov 21, 2011 3:05 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby maihoaomv » Sun Jul 22, 2012 2:55 am

fujcru

I've been kind of keeping an eye on this forum hoping someone might actually post something of value that will help me build LMS 7.7.2 for my GoFlexHome.

I've tried to build this package for arm several times but have yet to succeed (It takes 2 hours plus to build it on the GFH). I tried your suggestions on how to build the nightly tarball. It's currently at 7.8.0 (logitechmediaserver-7.8.0-1342011222-arm-linux.tgz). It failed to build. I then tried the official perl version tarball of logitechmediaserver 7.7.2-4 at http://www.mysqueezebox.com/download but I get an error at cleanup.

I changed the arch to ('arm') and hard coded the filename and sha1sum into the PKGBUILD (which I had already figured out). I also commented out the last line in the build section (#rm -r Bin/{arm-linux,darwin,i386-freebsd-64int,powerpc-linux,sparc-linux}) as you suggested.

I suspect from the error it may be that it thinks it's a i386 file rather than arm.
I would like to learn how to build the package myself but programming is not my strong point. I don't know where to go from here. Would it be possible you could assist me in figuring out what I'm doing wrong?

I get the following error:

sent 9733898 bytes received 631 bytes 19469058.00 bytes/sec
total size is 9729731 speedup is 1.00
/media/Seagate/logitechmediaserver/src/logitechmediaserver-7.7.2-33893
patching file CPAN/XML/Parser/Expat.pm
patching file CPAN/XML/Simple.pm
patching file Slim/Control/Request.pm
==> Starting package()...
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
strip: Unable to recognise the format of the input file `./opt/logitechmediaserver/Bin/i386-linux/faad'

==> ERROR: An unknown error has occurred. Exiting...
==> Cleaning up...
User defined signal 1
[root@GoFlexHome logitechmediaserver]#

Thanks..........
maihoaomv
 
Posts: 16
Joined: Thu Mar 01, 2012 2:46 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby WarheadsSE » Sun Jul 22, 2012 3:59 am

#rm -r Bin/{arm-linux,darwin,i386-freebsd-64int,powerpc-linux,sparc-linux}

Un-comment at least the arm-linux part. You're correct on the strip failed.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Squeezebox Server 7.6 + Perl 5.14

Postby maihoaomv » Mon Jul 23, 2012 4:51 am

Resolved
Last edited by maihoaomv on Thu Jul 26, 2012 3:35 pm, edited 2 times in total.
maihoaomv
 
Posts: 16
Joined: Thu Mar 01, 2012 2:46 am

Re: Squeezebox Server 7.6 + Perl 5.14

Postby pepedog » Mon Jul 23, 2012 9:19 am

Is it Bin or bin
?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Squeezebox Server 7.6 + Perl 5.14

Postby maihoaomv » Tue Jul 24, 2012 11:15 pm

After hours of frustration trying to figure it out success at last. I was able to build LMS package from the 7.8 nightly build (logitechmediaserver-7.8.0-1342011222-arm-linux.tgz). It's installed and running on my GFH (despite the array errors).

These are the steps I used to build the package (that is once I figured it out)
NOTE: Do be aware that 7.8 is beta and may or may not work as expected.
$this->bbcode_second_pass_code('', '
# Update / Upgrade packages
sudo pacman -Syu

# Install Native Build Essentials
# Ref http://archlinuxarm.org/developers/building-packages
sudo pacman -Sy kernel26-headers file base-devel abs

##when install is complete then run abs as root to create the ABS tree by synchronizing it with the Arch Linux server.
# Ref https://wiki.archlinux.org/index.php/ABS
sudo abs
')
Make a directory to do the build. I chose /logitechmediaserver but any directory should work.
Download the nightly build ARM file from http://downloads.slimdevices.com/nightly/?ver=7.8 into the root of your build directory. There is no need to untar it.
Download the PKGBUILD tarball from the AUR at https://aur.archlinux.org/packages.php?ID=53691. The tarball will contain several files. Extract the contents of the tarball into the root of your build directory.

Edit the PKGBUILD file to make it build correctly.
$this->bbcode_second_pass_code('', '
# Calculate the sha1sum of the LMS tarball
sha1sum logitechmediaserver-7.8.0-1342011222-arm-linux.tgz
# Make note of the returned sha1 checksum

sudo nano PKGBUILD
# at line 4 change the pkgver from 7.7.2 to 7.8.0
pkgver=7.8.0

# At line 9 add arm to arch
arch=('arm' 'i686' 'x86_64')

# at line 13 hard code the first line of source with the LMS tarball filename
source=("logitechmediaserver-7.8.0-1342011222-arm-linux.tgz"
'perl-recent.patch'
'conf.d'
'rc.d')

# At line 18 hard code the first line of sha1sums to reflect the the calculated sha1 checksum from above
sha1sums=('6f9481f09fb4bfa20d39d48a7fba6bbc6742c6b8'
'2e9989b5ea49e9e3b0fa2e16590ad3a6957f7b9c'
'80d3658796ba7241b497e5fce93813423c57e06e'
'9a98d601faff6345dfeddae16d1f10547c2aacba')

# At line 55 comment out the last line in the build section.
build() {
.....
#rm -r Bin/{arm-linux,darwin,i386-freebsd-64int,powerpc-linux,sparc-linux}
}

# Save and close the PKGBUILD file

# As your user run the makepkg to build the package.
sudo makepkg --asroot -Acs
')
2 to 3 hours (or so) later, if all goes well the LMS package should be created in your build directory.
logitechmediaserver-7.8.0-4-arm.pkg.tar.xz

$this->bbcode_second_pass_code('', '
# Install the server
pacman -U logitechmediaserver-7.8.0-4-arm.pkg.tar.xz

# Once the install is complete start the server
/etc/rc.d/logitechmediaserver start
')
The array errors can be ignored. It'll work just fine with them.

Open your web broswer. In the address line type in your servers ip address and port 9000
Example 192.168.1.180:9000 NOTE: Your servers ip may differ.

When the page opens sign into mysqueezebox.com then click the NEXT button in the bottom right corner of the page.
Configure the folder that contains your music and enjoy.

You might want to edit /etc/rc.conf and add logitechmediaserver to the DAEMONS= line at the end of the file so it'll start at boot time.

I think I covered most everything.
Enjoy

Modified PKGBUILD file that I used.
$this->bbcode_second_pass_code('', '# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=logitechmediaserver
pkgver=7.8.0
pkgrel=4
pkgdesc='Streaming audio server supported by Logitech'
url='http://www.mysqueezebox.com/download'
license=('GPL' 'custom')
arch=('arm' 'i686' 'x86_64')
makedepends=('nasm' 'yasm' 'rsync')
[[ $CARCH = x86_64 ]] && optdepends=('lib32-glibc: transcoding' 'lib32-gcc-libs: transcoding')
depends=('perl>5.15' 'perl<5.17')
source=("logitechmediaserver-7.8.0-1342011222-arm-linux.tgz"
'perl-recent.patch'
'conf.d'
'rc.d')
backup=('etc/conf.d/logitechmediaserver')
sha1sums=('6f9481f09fb4bfa20d39d48a7fba6bbc6742c6b8'
'2e9989b5ea49e9e3b0fa2e16590ad3a6957f7b9c'
'80d3658796ba7241b497e5fce93813423c57e06e'
'9a98d601faff6345dfeddae16d1f10547c2aacba')

install=install

build_cpan() {
svnurl=svn.slimdevices.com/repos/slim/7.7/trunk/vendor/CPAN/
wget -r --no-parent http://${svnurl} --reject 'mysql-*'
pushd ${svnurl}

wget http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Class-XSAccessor-1.13.tar.gz
sed \
-e 's/XSAccessor-1.05/XSAccessor-1.13/g' \
-e '/RUN_TESTS=1/c RUN_TESTS=0' \
-e 's/perl5.12/perl/g' \
-e 's/5.12/5.16/g' \
-i buildme.sh
sh buildme.sh

popd
cp -r ${svnurl}build/5.16/lib/perl5/*-linux-thread-multi/* CPAN/
cp -r ${svnurl}build/arch CPAN/
rm -fr svn.slimdevices.com
}

build() {
cd "${srcdir}/${pkgname}-${pkgver}"-*

build_cpan
patch -p1 -i ../perl-recent.patch

rm -r CPAN/arch/5.{8,10,12,14}
#rm -r CPAN/arch/5.16/{arm-linux-gnueabi-thread-multi-64int,i386-linux-thread-multi-64int,powerpc-linux-thread-multi-64int}
#[[ ${CARCH} = i686 ]] && rm -r CPAN/arch/5.16/x86_64-linux-thread-multi || true
#[[ ${CARCH} = x86_64 ]] && rm -r CPAN/arch/5.16/i386-linux-thread-multi || true
#rm -r Bin/{arm-linux,darwin,i386-freebsd-64int,powerpc-linux,sparc-linux}
}

package() {
cd "${srcdir}/${pkgname}-${pkgver}"-*

install -d "${pkgdir}"/{opt,usr/share/licenses}/"${pkgname}"
cp -a * "${pkgdir}/opt/${pkgname}"

ln -s /opt/"${pkgname}"/License.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 ../conf.d "${pkgdir}/etc/conf.d/${pkgname}"
install -Dm755 ../rc.d "${pkgdir}/etc/rc.d/${pkgname}"
}')
maihoaomv
 
Posts: 16
Joined: Thu Mar 01, 2012 2:46 am

PreviousNext

Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests