aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2 3

Author Topic: Trouble building CVS for Mandrake  (Read 8874 times)

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Trouble building CVS for Mandrake
« on: March 16, 2005, 07:31:42 PM »

I use aMule on Mandrake 10.1 and I get the followingg error when using the current specfile :
Failed build dependencies: krb5-devel >= 1.3.1 is needed by aMule-CVS-20050316


Actually, I have the following installed :

libkrb51-devel-1.3-6.4.100mdk
libkrb51-1.3-6.4.100mdk


Running rpmbuild -ta aMule-CVS-2005mmdd.tar.bz2 --nodeps did the trick. ;)
« Last Edit: March 16, 2005, 07:32:26 PM by OldFrog »
Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Trouble building CVS for Mandrake
« Reply #1 on: March 16, 2005, 11:26:21 PM »

AFAIK the spec file was originally created for RH (FC) systems. It seems that they have different pacakage names than Mdk.
Logged
concordia cum veritate

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Trouble building CVS for Mandrake
« Reply #2 on: March 17, 2005, 02:44:42 AM »

OldFrog,

Please, just for my curiosity, post the result of
$ $ rpm -q --provides libkrb5-devel

Cheers!
Logged

OldFrog

  • Sr. Member
  • ****
  • Karma: 31
  • Offline Offline
  • Posts: 385
Re: Trouble building CVS for Mandrake
« Reply #3 on: March 17, 2005, 07:30:12 PM »

Here you are :


Quote

$  rpm -q --provides libkrb51-devel
krb-devel = 1.3-6.4.100mdk
krb5-devel = 1.3-6.4.100mdk
devel(libdes425)
devel(libgssapi_krb5)
devel(libgssrpc)
devel(libk5crypto)
devel(libkadm5clnt)
devel(libkadm5srv)
devel(libkdb5)
devel(libkrb4)
devel(libkrb5)
libkrb51-devel = 1.3-6.4.100mdk

Logged
Computer Science is no more about computers than astronomy is about telescopes (Edsger W. Dijkstra)

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Trouble building CVS for Mandrake
« Reply #4 on: March 17, 2005, 10:01:52 PM »

The different names should not be a problem as long as the rpms provided the same thing. But in my opinion, the problem is that Mandrake is using a different numbering system. aMule requires krb5-devel >= 1.3.1, Mandrake rpm provides krb5-devel = 1.3-6.4.100mdk. Now how do you compare those two? Probably rpm is ignoring what is after the dash and considering it a release string. So what Mandrake is actually providing is probably krb5-devel = 1.3, while aMule is requiring krb5-devel >= 1.3.1.

OldFrog, if you are a curious person :) you could change that line in aMule spec:

From:
BuildPreReq: wxGTK-devel >= 2.4.2, krb5-devel >= 1.3.1, grep, curl-devel >= 7.10.6, automake >= 1.7

To:
BuildPreReq: wxGTK-devel >= 2.4.2, krb5-devel >= 1.3, grep, curl-devel >= 7.10.6, automake >= 1.7

And see if it works. Do it like this:
$ tar zxvf aMule-CVS-20050317.tar.bz2
$ vi amule-cvs/aMule-CVS.spec
... edit the line...
$ tar zcvf aMule-CVS-20050317.tar.bz2 amule-cvs
$ rpmbuild -ta aMule-CVS-20050317.tar.bz2

Just scientific curiosity :) I don't know who has put this requirement in aMule, but maybe it could be lowered to krb5-devel >= 1.3. Anyone knows something about this? Why aMule requires kerberos?

Cheers!
Logged

reeky

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 88
Re: Trouble building CVS for Mandrake
« Reply #5 on: March 18, 2005, 04:19:29 PM »

same error on suse 9.2 ->
Failed build dependencies: krb5-devel >= 1.3.1 is needed by aMule-CVS-20050318

(using the --nodeps flag the process ends like this http://forum.amule.org/thread.php?threadid=5487 so i'll wait till tomorrow).

the problem is: suse (and packager) doesn't provide a package called krb5-devel (nor krb5) so what are the files in that package needed by amule? maybe are in another rpm?

thanx
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Trouble building CVS for Mandrake
« Reply #6 on: March 19, 2005, 12:25:57 AM »

reeky,

Provides need not to be a package name. In Mandrake's case, it does provide krb5-devel indeed, look at this:
Quote
Originally posted by OldFrog
$ rpm -q --provides libkrb51-devel
krb-devel = 1.3-6.4.100mdk
krb5-devel = 1.3-6.4.100mdk
devel(libdes425)
devel(libgssapi_krb5)
devel(libgssrpc)
devel(libk5crypto)
devel(libkadm5clnt)
devel(libkadm5srv)
devel(libkdb5)
devel(libkrb4)
devel(libkrb5)
libkrb51-devel = 1.3-6.4.100mdk

My guess is that rpm is interpreting krb5-devel = 1.3-6.4.100mdk as krb5-devel = 1.3, so it will not be satisfied because this is less than 1.3.1. If anyone can confirm this, I can change it to a lower value so that it works for Mandrake.

Cheers!
Logged

reeky

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 88
Re: Trouble building CVS for Mandrake
« Reply #7 on: March 19, 2005, 11:13:38 AM »

suse doesn't use kerberos but heimdal (free implementation of kerberos), so i have to install heimdal-devel and keep using --nodeps flag? if right, this is not a solution coz i won't be warned about other broken dependencies (if any) :(

bye
Logged

snac

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
Re: Trouble building CVS for Mandrake
« Reply #8 on: March 19, 2005, 11:54:20 AM »

Quote
Originally posted by reeky
suse doesn't use kerberos but heimdal (free implementation of kerberos), so i have to install heimdal-devel and keep using --nodeps flag? if right, this is not a solution coz i won't be warned about other broken dependencies (if any) :(
bye

Right partially.
[list=1]
  • Heimdal
  • Heimdal-lib
  • heimdal-tools
  • heimdal-tools-devel
  • heimdal-x11
  • e2fsprogs-devel
  • [/list=1]
    All version 0.6.2, after you will have Suse ready for compile aMule.

    Byez  ;)
Logged
Desktop:: AMD Barton 2600 + ArchLinux Heavy Modded + KDE 3.4.1 + aMule 2.0.3
Portable:: Ibook G4 - 1,25Ghz - OSX 10.3.9
Linux User Nr.372724

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Trouble building CVS for Mandrake
« Reply #9 on: March 19, 2005, 03:07:58 PM »

Quote
Originally posted by reeky
suse doesn't use kerberos but heimdal (free implementation of kerberos), so i have to install heimdal-devel and keep using --nodeps flag? if right, this is not a solution coz i won't be warned about other broken dependencies (if any) :(

bye
reeky,
Please post:
$ rpm -q --provides heimdal-tools-devel

You can repeat this command for all heimdal rpms and see if any provides krb5-devel.
Logged

reeky

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 88
Re: Trouble building CVS for Mandrake
« Reply #10 on: March 19, 2005, 11:42:31 PM »

Quote
Originally posted by phoenix
reeky,
Please post:
$ rpm -q --provides heimdal-tools-devel

You can repeat this command for all heimdal rpms and see if any provides krb5-devel.

here it is ->

reek@linux:~> rpm -q --provides heimdal
heimdal = 0.6.2-8

reek@linux:~> rpm -q --provides heimdal-devel
heimdal-devel = 0.6.2-8.1

reek@linux:~> rpm -q --provides heimdal-lib
libasn1.so.6
libgssapi.so.1
libkafs.so.0
libkrb5.so.17
libotp.so.0
libroken.so.16
libsl.so.0
heimdal-lib = 0.6.2-8

reek@linux:~> rpm -q --provides heimdal-tools
libhdb.so.7
libkadm5clnt.so.4
libkadm5srv.so.7
heimdal-tools = 0.6.2-8

reek@linux:~> rpm -q --provides heimdal-tools-devel
heimdal-tools-devel = 0.6.2-8.1

reek@linux:~> rpm -q --provides heimdal-x11
heimdal-x11 = 0.6.2-8


and just to quote myself... :)

Quote
Originally posted by reeky
suse (and packager) doesn't provide a package called krb5-devel (nor krb5) so what are the files in that package needed by amule? maybe are in another rpm?

so the kerberos related files needed by amule are in one of the heimdal rpms?

bye

ps: let me quote you phoenix... :D

Quote
Originally posted by phoenix
Why aMule requires kerberos?
« Last Edit: March 19, 2005, 11:47:51 PM by reeky »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Trouble building CVS for Mandrake
« Reply #11 on: March 20, 2005, 12:54:32 AM »

reeky,

You certainly does not expect me to answer the question I made at first, do you? :P

You see, I am not the original packager, I was hoping someone else could answer that for me. I am not willing to go after the actual prerequisites for that, I'm sorry, I'm too lazy at the moment :)

This heimdal stuff you posted is not very encouraging... The correct solutions seems to be to have separate spec files for each distro, but then, how do we tell rpmbuild to use the correct spec?
Logged

reeky

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 88
Re: Trouble building CVS for Mandrake
« Reply #12 on: March 20, 2005, 12:12:52 PM »

maybe this is not the right way and it's a bit stupid too but...

well... someone said amule requires krb5-devel and this someone used fedora.
being this a -devel package some part of it should be included in amule code so i took this page as example http://rpm.pbone.net/index.php3/stat/6/idpl/1203124 , i extracted the amule archive and made a quick search using the "file search -> find text in files". seems that the only result is "des.h" but because it finds "ECcodes.h".

in any case... i removed krb5 from the spec file and built the rpm (yeah! today cvs is not broken!!! :P ;) ) ; now amule is running and seems to work fine

bye
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Trouble building CVS for Mandrake
« Reply #13 on: March 22, 2005, 02:58:48 AM »

reeky,

In fact, I think I can remove that dependency. I have stopped beeing lazy and went to find what was the real dependency and it is on curl-devel. That way, curl-devel will set its own dependency, be it on heimdal or kerberos. Look:

$ apt-get remove krb5-devel
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  cups-devel curl-devel krb5-devel openssl-devel

So, if we set curl-devel dependency only, this should no longer be an issue.

EDIT: Done, krb5-libs and krb5-devel are no longer on the spec file. curl-lib and curl-devel are enough.
Logged

reeky

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 88
Re: Trouble building CVS for Mandrake
« Reply #14 on: March 22, 2005, 10:42:38 AM »

Quote
Originally posted by phoenix
...cut...
That way, curl-devel will set its own dependency, be it on heimdal or kerberos.
...cut...

?(
curl-devel desn't need heimdal or kerberos (nor their -devel) but it's krb5-devel that needs curl-devel
 ?(
Logged
Pages: [1] 2 3