You are not logged in.
Allright, I'm making a ruby-gnome2 package so I can develop some apps in ruby and glade. But every time I try to install it. I get this.
error: archive ruby-gnome2-0.12.0-1.pkg.tar.gz is corrupted
and here's the PKGBUILD
# $Id: PKGBUILD,v 1.4 2003/11/06 08:26:20 dorphell Exp $
# Contributor: Mike Limon <mike@left-foot.org>
pkgname=ruby-gnome2
pkgver=0.12.0
pkgrel=1
pkgdesc="GNOME2 Libs for the Ruby Scripting Language"
depends=('ruby')
source=(http://switch.dl.sourceforge.net/sourceforge/ruby-gnome2/ruby-gnome2-all-$pkgver.tar.gz)
md5sums=('3aa40a574f0365361745d852494240a3')
build() {
cd $startdir/src/ruby-gnome2-all-$pkgver
ruby extconf.rb
make || return 1
make prefix=$startdir/pkg/usr install
}
Yes, I -KNOW- the dependencies are wrong but I'll fix that if and/or when this damn thing works.
And no, it doesn't use a standard ./configure line.
Offline
dunno. Did you run namcap on the pkgbuild file. Maybe there is some non-apparent syntax error somewhere.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
[21:46] [/opt/arch-packages] $ namcap ruby-gnome2-0.12.0-1.pkg.tar.gz
ruby-gnome2 E: Dependency detected and not included (librsvg) from files ['usr/lib/ruby/site_ruby/1.8/i686-linux/rsvg2.so']
ruby-gnome2 E: Dependency detected and not included (libgnomeprintui) from files ['usr/lib/ruby/site_ruby/1.8/i686-linux/gnomeprintui2.so']
ruby-gnome2 E: Dependency detected and not included (xorg) from files ['usr/lib/ruby/site_ruby/1.8/i686-linux/libglade2.so', 'usr/lib/ruby/site_ruby/1.8/i686-linux/gtksourceview.so', 'usr/lib/ruby/site_ruby/1.8/i686-linux/gnomecanvas2.so', 'usr/lib/ruby/site_ruby/1.8/i686-linux/gnome2.so', 'usr/lib/ruby/site_ruby/1.8/i686-linux/gtk20.so', 'usr/lib/ruby/site_ruby/1.8/i686-linux/gtk2.so', 'usr/lib/ruby/site_ruby/1.8/i686-linux/gtk22.so', 'usr/lib/ruby/site_ruby/1.8/i686-linux/gnomeprintui2.so']
ruby-gnome2 E: Dependency detected and not included (libgnomeui) from files ['usr/lib/ruby/site_ruby/1.8/i686-linux/gnome2.so']
ruby-gnome2 E: Dependency detected and not included (gtksourceview) from files ['usr/lib/ruby/site_ruby/1.8/i686-linux/gtksourceview.so']
I dunno man.
Offline
wierd
~ --:namcap PKGBUILD
PKGBUILD (ruby-gnome2) W: Missing Maintainer tag
PKGBUILD (ruby-gnome2) E: Missing url
i then made the package
[root@iphibox iphitus]# pacman -A ruby-gnome2-0.12.0-1.pkg.tar.gz
loading package data... done.
checking for file conflicts... done.
installing ruby-gnome2... done.
works here.
Offline
Let me see your PKGBUILD?
Offline
miqorz. Just for reference, you run namcap on the pkgbuild, not on the package.
But iphitus did that for you, and it looks like it only detected the missing cvs tags. no biggie there..
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Hey this is weird, it adds but it doesn't sync from my local repo..
[22:31] [/opt/arch-packages] $ pacman -A ruby-gnome2-0.12.0-1.pkg.tar.gz
loading package data... done.
checking for file conflicts... done.
installing ruby-gnome2... done.
o.o
Offline
did you rerun gensync on your repo?
if the pkgbuild used to run gensyc again (for the ruby package) differs from the one you actually used to build it, I think it throws an error.
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
Yes I gensync'd again.
Offline
Maybe switch to another mirror ROFL!
I forget but is one of the reasons that a package can be corrupt is that it fails the md5sum? If so then perhaps the reason it fails is because when youmake the package there is a file that is installing directly to your system and that is breaking the md5sum. I dunno though I haven't heard of people getting corruption errors on local packages.
AKA uknowme
I am not your friend
Offline
I make all my packages as my user so files don't get accidently installed duribng the making of the package.
And everything seems to pass when I make the package.. just it keeps thinking it's corrupt. I'll figure it out eventually.
Offline
hmm...bad memory? Might be a bit flipped somewhere when you are tarring things up. Would be very odd though..
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
does it work with a direct pacman -A pkg?
Offline
does it work with a direct pacman -A pkg?
It did somewhat.. and no my memory is just fine. haha.
Offline
I experienced bad downloads from archlinux via pacman for some time.
The problem here was RAM was causing it. I had twoGB ram installed abd when I reduced it to 512MB the problem went away.
Had to clear the cache before retry.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
This is the first and only isolated problem with packages I've had.
And I'm the one making it, not downloading it.
Offline
[nothing to see move along]
Mr Green
Offline
It's amazing how you failed to read the entire thread.
It builds fine. It even to some point installs fine.
But when I try to sync it from my local repo it says it's corrupt.
Offline
I'm having the same problem -- I have a custom package that builds fine but pacman claims it's corrupt when I try to sync. I've rebuilt the package several times, always the same thing. And yes, I did a "gensync" after each build.
I've built other custom packages, never had this problem before.
I even unpacked my custom.db.tar.gz and checked the "%MD5SUM%" entry of the "desc" file for my package, and the value there matches up with what I get when I just manually run md5sum on my package. Also, if I do a "tar -xvzf" on the package file, it unpacks fine, tar doesn't complain at all. So I'm pretty sure the package is NOT corrupt.
Is this a pacman bug, or is there some criteria besides md5sum that pacman uses to determine if a package is corrupt??
Offline
Is this a pacman bug, or is there some criteria besides md5sum that pacman uses to determine if a package is corrupt??
good question... I know that the packages store md5 sums for individual files... I don't know when/if they are used... but it may be worth checking out...
could you maybe post the pkgbuild, just in case?
Offline
Here's the PKGBUILD, it's just to install a local copy of the KDE API html docs.
pkgname=kde-html-api
pkgver=3.4.0
pkgrel=1
pkgdesc="KDE API documentation in HTML format."
url="http://www.kde.org"
source=(http://developer.kde.org/documentation/library/cvs-api/cvs-api.tar.bz2)
md5sums=('b63a1c961f037c75f4e952c8c23f0b1b')
build() {
mkdir -p $startdir/pkg/opt/kde/share/doc/api-$pkgver
cd $startdir/src/cvs-api
rm -rf `find . -name "latex" -print`
rm -rf `find . -name "man" -print`
cd $startdir/src/cvs-api/kdevelop
rm -f common
ln -s ../common common
cd $startdir
mv $startdir/src/cvs-api/* $startdir/pkg/opt/kde/share/doc/api-$pkgver/
}
Offline
could the symlink be causing the problem?
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
could the symlink be causing the problem?
No, none of my packges that end up corrupt have them.
Offline
could the symlink be causing the problem?
no, that wasn't it. Tried the following edited PKGBUILD, package still came out "corrupt", in pacman's opinion.
pkgname=kde-html-api
pkgver=3.4.0
pkgrel=1
pkgdesc="KDE API documentation in HTML format."
url="http://www.kde.org"
source=(http://developer.kde.org/documentation/library/cvs-api/cvs-api.tar.bz2)
md5sums=('b63a1c961f037c75f4e952c8c23f0b1b')
build() {
mkdir -p $startdir/pkg/opt/kde/share/doc/api-$pkgver
cd $startdir/src/cvs-api
rm -rf `find . -name "latex" -print`
rm -rf `find . -name "man" -print`
rm -f $startdir/src/cvs-api/kdevelop/common
mv $startdir/src/cvs-api/* $startdir/pkg/opt/kde/share/doc/api-$pkgver/
}
Also went through and checked for any other symlinks, the "kdevelop/common" link was the only one.
Offline
~)$pacman -S mypack/kde-html-api
Targets: kde-html-api-3.4.0-1
Total Package Size: 46.1 MB
Proceed with upgrade? [Y/n] y
:: Retrieving packages from mypack...
kde-html-api-3.4.0-1 [/home/eliott/packages/] 100% LOCAL
checking package integrity... done.
loading package data...done.
checking for file conflicts... done.
installing kde-html-api... done.
"Built" it just fine, and installed just fine. No corruption issues here..
*shrug*
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline