You are not logged in.
Pages: 1
First of all, greetings to all of you fabulous developers and users of SliTaz. This is my first post to this forum, so I guess it's the right place to say hello.
But let's get straight to the business: I'm trying to create a tazpkg for mplayer2. The trouble is, in order to achieve that I need to build from git. Now, I've seen packages that use subversion, unfortunately I couldn't find any that build from git.
The trouble I experience is, that after getting the sources cook packs it and then tries to retrieve it from a mirror. Unfortunately (and obviously as well), it recieves 404 error and subsequently fails.
Here is the recipe
[c]
# SliTaz package receipt.
PACKAGE="mplayer2"
VERSION="03272013"
CATEGORY="multimedia"
SHORT_DESC="mplayer2 is an advanced general-purpose video player."
MAINTAINER="Kacper Moskala"
WEB_SITE="http://www.mplayer2.org/"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="git|git://git.mplayer2.org/mplayer2-build.git"
DEPENDS="fribidi xorg-libXv freetype fontconfig alsa-lib libmad lame
x264"
BUILD_DEPENDS="autoconf libtool automake fribidi-dev yasm \
xorg-libXv-dev freetype-dev fontconfig-dev alsa-lib-dev libmad-dev
libtheora-dev git"
# Rules to configure and make the package.
compile_rules()
{
cd $src
./init --shallow
make
make DESTDIR=$PWD/_pkg install
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
cp -a $install/* $fs
}
[/c]
And here is the output of [c]cook mplayer2[/c] command:
[c]
root@slitaz:/# cook mplayer2
Setup aufs chroot...
Cook: mplayer2 03272013
================================================================================
QA: checking package receipt...
Checking build dependencies...
Installing dep (web/cache): autoconf
Installing dep (web/cache): libtool
Installing dep (web/cache): automake
Installing dep (web/cache): fribidi-dev
Installing dep (web/cache): fribidi
Installing dep (web/cache): yasm
Installing dep (web/cache): xorg-libXv-dev
Installing dep (web/cache): xorg-libXv
Installing dep (web/cache): freetype-dev
Installing dep (web/cache): fontconfig-dev
Installing dep (web/cache): alsa-lib-dev
Installing dep (web/cache): alsa-lib
Installing dep (web/cache): libmad-dev
Installing dep (web/cache): libmad
Installing dep (web/cache): libtheora-dev
Installing dep (web/cache): libtheora
Getting source from Git...
URL: git://git.mplayer2.org/mplayer2-build.git
Cloning into 'mplayer2-03272013'...
Creating tarball: mplayer2-03272013.tar.bz2
Getting source from mirror: http://mirror.slitaz.org/sources/packages/m/mplayer2-03272013.tar.gz
Connecting to mirror.slitaz.org (91.121.171.224:80)
wget: server returned error: HTTP/1.1 404 Not Found
ERROR: wget http://mirror.slitaz.org/sources/packages/m/mplayer2-03272013.tar.gz
Extracting: mplayer2-03272013.tar.gz
Getting source from Git...
URL: git://git.mplayer2.org/mplayer2-build.git
Cloning into 'mplayer2-03272013'...
Creating tarball: mplayer2-03272013.tar.bz2
Getting source from mirror: http://mirror.slitaz.org/sources/packages/m/mplayer2-03272013.tar.gz
Connecting to mirror.slitaz.org (91.121.171.224:80)
wget: server returned error: HTTP/1.1 404 Not Found
ERROR: wget http://mirror.slitaz.org/sources/packages/m/mplayer2-03272013.tar.gz
Extracting: mplayer2-03272013.tar.gz
Build dependencies to remove: 33
Removing: alsa-lib alsa-lib-dev autoconf automake fontconfig-dev freetype-dev fribidi fribidi-dev libltdl libmad libmad-dev libogg libpthread-stubs libtheora libtheora-dev libtool libvorbis libxcb-dev m4 xorg-inputproto xorg-kbproto xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev xorg-libXv xorg-libXv-dev xorg-util-macros xorg-videoproto xorg-xextproto xorg-xproto xorg-xtrans yasm
ERROR: cook failed
Debug information
================================================================================
Cook date: 2013-03-28 01:37
ERROR: wget http://mirror.slitaz.org/sources/packages/m/mplayer2-03272013.tar.gz
ERROR: wget http://mirror.slitaz.org/sources/packages/m/mplayer2-03272013.tar.gz
ERROR: cook failed
wget: server returned error: HTTP/1.1 404 Not Found
wget: server returned error: HTTP/1.1 404 Not Found
================================================================================
Leaving aufs chroot...
[/c]
Thanks in advance for your help. 
Offline
Change
TARBALL="$PACKAGE-$VERSION.tar.gz"
to
TARBALL="$PACKAGE-$VERSION.tar.bz2"
mplayer2 init requires python 3, cooking repo has python 2.7.2
Offline
Thanks, that was really silly of me. I believed so much it was git thing, I didn't spot the obvious problem... 
But it doesn't matter now, since it's not possible to builld mplayer2 itself.
Cheers. 
Offline
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]