You are not logged in.
Pages: 1
Hi all,
I'm trying to update a package but I have some problem to download it:
the source url is:
http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.6/gtk-nodoka-engine-0.6.tar.gz;hb=HEAD
with a browser the file is downloaded correctly, but with wget the name of the file is something like
index.html?p=hosted%2Fnodoka;a=blob_plain;f=branches%2F0.6%2Fgtk-nodoka-engine-0.6.tar.gz;hb=HEAD
Someone know some hacks for this problem?
Thanks
Luca
Last edited by luca (2007-09-14 19:33:59)
Offline
Maybe Example_GIT_PKGBUILD from the wiki will help.
Last edited by Lone_Wolf (2007-09-14 20:02:41)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
Maybe Example_GIT_PKGBUILD from the wiki will help.
I think that would only help for using the last git code, not the stable released tarball, but I could be wrong.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Yes Shining has right, I want to download the stable code
Thank you for your help
Offline
This shouldn't be a problem. Makepkg uses file -biz to determine file type, so it should extract it even if the file name is awkward.
Offline
Hi rixxon,
the problem is the name of the file; it must be enclosed in " or ' because I obtain this error:
cp: impossibile fare stat di `gtk-nodoka-engine-0.6.tar.gz;hb=HEAD': No such file or directory
while the complete name of the file downloaded is
index.html?p=hosted%2Fnodoka;a=blob_plain;f=branches%2F0.6%2Fgtk-nodoka-engine-0.6.tar.gz;hb=HEAD
Last edited by luca (2007-09-15 09:39:03)
Offline
Ok I see what you mean. This is because makepkg expects the resulting download to be the basename of the source url. Use noextract=() and extract manually in build():
source=('http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.6/gtk-nodoka-engine-0.6.tar.gz;hb=HEAD')
noextract=('gtk-nodoka-engine-0.6.tar.gz;hb=HEAD')
build() {
cd $startdir/src
tar -xzf 'index.html?p=hosted%2Fnodoka;a=blob_plain;f=branches%2F0.6%2Fgtk-nodoka-engine-0.6.tar.gz;hb=HEAD'
cd $pkgname-$pkgver
...
}
something like that.
Last edited by rixxon (2007-09-15 09:41:49)
Offline
Apparently makepkg fails before the extracting part. when trying to move the file to src/.
So noextract doesn't work around it.
I hoped there would be a way to use that archive, but it looks more difficult than I expected.
You could maybe :
1) Ask these guys to fix the link so that it works correctly with wget
2) use git as suggested above by Lone_Wolf , but trying to get the stable branch with it.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Thank you rixxon,
but it seems that noextract doesn't work , this is my PKGBUILD:
pkgname=gtk-engine-nodoka
pkgver=0.6
pkgrel=1
pkgdesc="Default gtk engine provided by Fedora8"
url="https://hosted.fedoraproject.org/projects/nodoka/wiki"
license=('GPL')
depends=('gtk2')
makedepends=('pkgconfig')
arch=(i686)
source=("http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.6/gtk-nodoka-engine-0.6.tar.gz;hb=HEAD" \
"http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.3/nodoka-theme-gnome-0.3.2.tar.gz;hb=HEAD")
noextract=("gtk-nodoka-engine-0.6.tar.gz;hb=HEAD" "nodoka-theme-gnome-0.3.2.tar.gz;hb=HEAD")
md5sums=('82124020169af64931c059c606e3c7d8' '6bd4a54194d9c981c4894fc77b254943')
options=(!libtool)
build() {
cd $startdir/src
tar -xzvf 'index.html?p=hosted%2Fnodoka;a=blob_plain;f=branches%2F0.6%2Fgtk-nodoka-engine-0.6.tar.gz;hb=HEAD'
tar -xzvf 'index.html?p=hosted%2Fnodoka;a=blob_plain;f=branches%2F0.3%2Fnodoka-theme-gnome-0.3.2.tar.gz;hb=HEAD'
cd $startdir/src/gtk-nodoka-engine-$pkgver
sed -i 's|/usr/bin/install|/bin/install|g' $startdir/src/gtk-nodoka-engine-$pkgver/src/Makefile.in
./configure --prefix=/usr --enable-animation
make || return 1
make DESTDIR=$startdir/pkg install || return 1
mkdir -p $startdir/pkg/usr/share/themes
cd $startdir/src/nodoka-theme-gnome
cp -r Nodoka $startdir/pkg/usr/share/themes
}
Offline
A dirty solution is to tell wget to save the file with a different name:
FTPAGENT="$FTPAGENT -O gtk-nodoka-engine-0.6.tar.gz;hb=HEAD"
but it doesn't work with curl for example
Offline
If the file is saved as 'index.html?p=hosted%2Fnodoka;a=blob_plain;f=branches%2F0.6%2Fgtk-nodoka-engine-0.6.tar.gz;hb=HEAD' isn't that what you should put in noextract as well?
PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM
Offline
No vEX, the problem persits. As Shining said the error is before the extracting part
Offline
The PKGBUILD you posted workes here on x86_64 after adding x86_64 to the arch field. The only problem is that it can't do the md5sums check so I had to comment out the md5sums.
Offline
Oops, my bad. What I said only applies to makepkg 3.1 .
It works fine with makepkg 3.0 indeed, except the md5sum part. Also it fails to copy the files from $startdir/src to $SRCDEST (which defaults to $startdir), but it isn't critical.
makepkg 3.1 however first download the files to $SRCDEST (which still defaults to $startdir), and then try to link them to $startdir/src, where it fails. And it stops there.
I am not sure if I should report a bug for this, since it's apparently not possible to support these broken url...
Otherwise, after thinking a bit on this problem, rather than using this dirty hack previously mentioned : FTPAGENT="$FTPAGENT -O gtk-nodoka-engine-0.6.tar.gz;hb=HEAD"
or using git manually and trying to checkout the stable release with it,
why not just combining these 2 ways?
That is, downloading the files manually with wget (so not using the sources array, just like git/svn/cvs PKGBUILDs), and extracting them manually.
This works nicely with both makepkg versions.
pkgname=gtk-engine-nodoka
pkgver=0.6
pkgrel=1
pkgdesc="Default gtk engine provided by Fedora8"
url="https://hosted.fedoraproject.org/projects/nodoka/wiki"
license=('GPL')
depends=('gtk2')
makedepends=('pkgconfig')
arch=(i686)
options=(!libtool)
build() {
cd $startdir/src
wget -O gtk-nodoka-engine-0.6.tar.gz "http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.6/gtk-nodoka-engine-0.6.tar.gz;hb=HEAD"
wget -O nodoka-theme-gnome-0.3.2.tar.gz "http://git.fedoraproject.org/?p=hosted/nodoka;a=blob_plain;f=branches/0.3/nodoka-theme-gnome-0.3.2.tar.gz;hb=HEAD"
tar -xzvf gtk-nodoka-engine-0.6.tar.gz
tar -xzvf nodoka-theme-gnome-0.3.2.tar.gz
cd $startdir/src/gtk-nodoka-engine-$pkgver
sed -i 's|/usr/bin/install|/bin/install|g' $startdir/src/gtk-nodoka-engine-$pkgver/src/Makefile.in
./configure --prefix=/usr --enable-animation
make || return 1
make DESTDIR=$startdir/pkg install || return 1
mkdir -p $startdir/pkg/usr/share/themes
cd $startdir/src/nodoka-theme-gnome
cp -r Nodoka $startdir/pkg/usr/share/themes
}
Of course, that's still rather awkward, we have to do manually what makepkg is supposed to do, but well, I am afraid there isn't any real solutions.
I still think the best one is to contact these guys, and ask them if they can do something about it
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Thanks to Snowman and all other people that help me,
I removed the md5sum= and the package compiles well.
Last edited by luca (2007-09-16 05:51:07)
Offline
Pages: 1