aMule Forum

English => Compilation problems => Topic started by: caki on July 07, 2005, 11:59:39 AM

Title: building rpm in fedora core 4
Post by: caki on July 07, 2005, 11:59:39 AM
i have problems with building rpm on fedora core 4, can anybody managed to build rpm of aMule-2.0.3?
Title: Re: building rpm in fedora core 4
Post by: stefanero on July 07, 2005, 12:43:20 PM
well could you maybe tell us the problem where it fails to compile?!
maybe we can help ya then...

I know for sure it compiles....since I have a fc4 box, and wxGTK and aMule compiled fine
Title: Re: building rpm in fedora core 4
Post by: caki on July 07, 2005, 01:04:22 PM
Does .spec file that comes with the tarball have any problems, apart from Copyright/License?
Title: Re: building rpm in fedora core 4
Post by: stefanero on July 07, 2005, 01:16:13 PM
not that I know if

you are the 1st one who complains...

it could be that 2 spec files are in the tarball....maybe you should check that, one if for cvs-daily-tarballs and one for the bulld of the release-rpm. but maybe not..

stefanero
Title: Re: building rpm in fedora core 4
Post by: stefanero on July 07, 2005, 01:18:19 PM
no only one spec file, but you should look at it mayb sections like:

Distribution:   SuSE Linux 9.3 (i586)

disturb your build on fc4
Title: Re: building rpm in fedora core 4
Post by: caki on July 07, 2005, 01:21:22 PM
but did anybody tried to build rpm release of amule-2.0.3, have you, for example?
Title: Re: building rpm in fedora core 4
Post by: caki on July 07, 2005, 01:23:43 PM
how can i fix this distribution noise?
Title: Re: building rpm in fedora core 4
Post by: stefanero on July 07, 2005, 01:39:23 PM
you can simple unpack it, change the spec file, and tar.gz it back up

and no I havent tryed it since I run gentoo at my home box, and have fc4 on a vmware box...

what would help more is if you could actually post some errors here...

have you tryed compiling amule yourself first? since if that wont work, then building the rpms will also not
Title: Re: building rpm in fedora core 4
Post by: caki on July 07, 2005, 01:42:35 PM
you re going to regret this error request, i am installing fresh fc4 to my computer right now, within 30 minutes i will post them.

i will try changing the name,

yes i managed to compile and run aMule on fc4.

by the way, nice display...
Title: Re: building rpm in fedora core 4
Post by: stefanero on July 07, 2005, 01:46:36 PM
^^   8) isnt she cute :))

about the errors...cant wait ;)
Title: Re: building rpm in fedora core 4
Post by: caki on July 07, 2005, 02:53:11 PM
here it comes:

error: magic_file(ms, "/var/tmp/aMule-2.0.3-build/usr/share/doc/aMule-2.0.3/ABOUT-NLS") failed: cannot open `/var/tmp/aMule-2.0.3-build/usr/share/doc/aMule-2.0.3/ABOUT-NLS' (No such file or directory)
rpmbuild: rpmfc.c:1229: rpmfcClassify: Assertion `ftype != ((void *)0)' failed.
Aborted

plus, it gives so many warning during the build process, is it normal?
Title: Re: building rpm in fedora core 4
Post by: stefanero on July 07, 2005, 03:10:15 PM
about the warnings,
yes that most often just some info for us, so we dont forget things...

about your error,
its looking for the ABOUT-NLS in
share/doc/aMule-2.0.3/
instead of
share/doc/

you have gettext and gettext-devel installed?
Title: Re: building rpm in fedora core 4
Post by: caki on July 07, 2005, 03:13:06 PM
yes i have them installed, how can we change where it looks for ABOUT-NLS
Title: Re: building rpm in fedora core 4
Post by: caki on July 07, 2005, 03:21:51 PM
i have just looked at /var/tmp/aMule-2.0.3-build/usr/share/doc/ and it just contains aMule-2.0.3 directory, and ABOUT-NLS has not been copied to this directory, as well-as some other files, like doxyfile, (i removed ABOUT-NLS from the tarball and the makefiles it gave the same error for doxyfile)

In my opinion, the directory should contain:
ABOUT-NLS, amulesig.txt, amule-win32.HOWTO.txt, ....TODO

but it only contains,
AUTHORS  Changelog  ED2K-Links.HOWTO  license.txt  README

Now, if i remove all the non-contained(is it a word?) files from the build process(from make files, etc..), will it do any harm, in the end they are in .../docs/ directory

what do you say?
Title: Re: building rpm in fedora core 4
Post by: stefanero on July 07, 2005, 03:26:40 PM
it wont do any harm if you remove them no...

funny is that it dont find them there,

what you could do aswell, just as a test
dl the amule-cvs tarball from

http://amule.hirnriss.net

and try to build that, it also contains a spec file but a different one...

stefanero
Title: Re: building rpm in fedora core 4
Post by: caki on July 07, 2005, 04:38:19 PM
The problem is with the original spec file, it built the rpms with the .spec file that i took from cvs s, it is possibly about the original spec file is written for SUSE,

thx for your help stefanero..
Title: Re: building rpm in fedora core 4
Post by: stefanero on July 07, 2005, 05:44:22 PM
and about teh original spec file, seams so yes. that it only builds on suse...
but it works with the spec from cvs :)

you could try to include taht one in the tarball from 2.0.3 and remove the date restriction from the spec file
Title: Re: building rpm in fedora core 4
Post by: sl1pkn07 on July 10, 2005, 11:38:42 PM
aMule-2.0.3-FC4.i386.rpm (http://sl1pkn07.no-ip.com/Downloads/RPMs/aMule-2.0.3-FC4.i386.rpm)
wxGTK-2.6.1-1.i386.rpm (http://sl1pkn07.no-ip.com/Downloads/RPMs/wxGTK-2.6.1-1.i386.rpm)

talueee

up files in the amule.org servers (SourceForge or BerliOS)