aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Building rpms for mandriva 2006 mini in K6-II  (Read 3706 times)

Crakem

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 103
Building rpms for mandriva 2006 mini in K6-II
« on: June 01, 2007, 07:02:44 PM »

Please somebody have tried to build rpm for wxBase? I'm trying 2.6.3
I could compile with ./compile...
but with:
  rpmbuild -tb wxBase-<ver>.tar.bz2
I couldn't get rmps, errors i saw:
----------------------------------------------------------------------------------------------
Using BuildRoot: /var/tmp/wx-base-unicode-root to search libs
Using BuildRoot: /var/tmp/wx-base-unicode-root to search libs
Using BuildRoot: /var/tmp/wx-base-unicode-root to search libs
error: Installed (but unpackaged) file(s) found:
   /usr/bin/wx-config
   /usr/share/bakefile/presets/wx.bkl
   /usr/share/bakefile/presets/wx_unix.bkl
   /usr/share/bakefile/presets/wx_win32.bkl
   /usr/share/locale/it/LC_MESSAGES/wxmsw.mo
    Installed (but unpackaged) file(s) found:
   /usr/bin/wx-config
   /usr/share/bakefile/presets/wx.bkl
   /usr/share/bakefile/presets/wx_unix.bkl
   /usr/share/bakefile/presets/wx_win32.bkl
   /usr/share/locale/it/LC_MESSAGES/wxmsw.mo

------------------------------------------------------------------------------------
Someboy have tried something like this?
Please,  ;D, another question, could i compile in a rpm wxBase and amuled-cvs in only one rpm easily (more or less) ?
I'm testing differents configurations of wxBase and amuled because i have problems (amuled crashs) when i'm downloading 20 files at one time (i'm confused because i haven't got problems with 16 files) I wold like to post results when i have something more defined. My server have 6 clients so I can't do a lot of experiments (and i need do it quickly -currenly i'm working with last stable amule aMule-2.1.3-wxGtk2.6.3_mdv.i586.rpm, but i want to change to CVS for download >4Gb files) I don't know if I'm doing something bad  ::)

Thanks you all. I think I haven't got I fall for amuled, congratulations developers!!
I never think that my old old k6 could do a lot of things for me  :D  (thanks amuled!  :))
« Last Edit: June 07, 2007, 03:21:08 PM by Crakem »
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Building rpms for mandriva 2006 mini in K6-II
« Reply #1 on: June 01, 2007, 07:23:15 PM »

Instead of building a RPM, have you tried compiling wxBase from the source code tar.bz2? get it at www.wxwidgets.org and try.

Regards.

P.S: On a K6 compiling can take hours. Be patient ;)
Logged

Crakem

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 103
Re: Building rpms for mandriva 2006 mini in K6-II
« Reply #2 on: June 02, 2007, 12:35:25 PM »

Thanks you skolnick  with ./compile it works very well for me (and takes as you say 1 hour  :'() but I want compile with rpmbuild because I could change between versions faster  if some CVS version don't work as I want.

I don't understand why ./configure works and rpmbuild fail in the same machine with same sources  ???
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Building rpms for mandriva 2006 mini in K6-II
« Reply #3 on: June 05, 2007, 05:43:35 AM »

what I usually do when testing CVS versions is compile them, and install them to another folder, say /opt/amule. That wa, if something dislikes me with that CVS version, I can simply delete the folder, and be happy. Same for wxGTK. hen installing, you an use:

gmake install prefix=/opt/amule

same for wxGTK.

Regards.
Logged

Crakem

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 103
Re: Building rpms for mandriva 2006 mini in K6-II
« Reply #4 on: June 07, 2007, 03:31:14 PM »

Please, I don't know if I understand you. Well, you say me what I could install wxBase, for example, using ./configure prefix=/'another folder different than usr' and, for example, amuled-cvs using ./configure prefix=/'another folder different than usr/local/bin' then, how amuled could find another binaries (wxBase package and amule binaries: ed2k, amuleweb )? I thougth amuled only could find binaries if they were in its default forlders (/usr/local/bin for cvs-versions for example)

Thanks you very much.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Building rpms for mandriva 2006 mini in K6-II
« Reply #5 on: June 08, 2007, 01:24:42 AM »

it can find binaries if they are in the path. Same for libraries, it will use them in the default path, or if you define LD_LIBRARY_PATH it will use that order. That way, you can define which binaries to use, and which version of the libraries should they pick. Also, the path to install it's not necessary to specify it in the configure line, doing it in the make install just as I wrote will work.

Regards.
« Last Edit: June 08, 2007, 01:29:03 AM by skolnick »
Logged

Crakem

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 103
Re: Building rpms for mandriva 2006 mini in K6-II
« Reply #6 on: June 08, 2007, 03:08:24 PM »

Thanks skolnick, I'm checking it.
Logged

Crakem

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 103
Re: Building rpms for mandriva 2006 mini in K6-II
« Reply #7 on: October 27, 2007, 02:07:38 PM »

Please somebody have tried to build rpm for wxBase? I'm trying 2.6.3
I could compile with ./compile...
but with:
  rpmbuild -tb wxBase-<ver>.tar.bz2
I couldn't get rmps, errors i saw:
----------------------------------------------------------------------------------------------
Using BuildRoot: /var/tmp/wx-base-unicode-root to search libs
Using BuildRoot: /var/tmp/wx-base-unicode-root to search libs
Using BuildRoot: /var/tmp/wx-base-unicode-root to search libs
error: Installed (but unpackaged) file(s) found:
   /usr/bin/wx-config
   /usr/share/bakefile/presets/wx.bkl
   /usr/share/bakefile/presets/wx_unix.bkl
   /usr/share/bakefile/presets/wx_win32.bkl
   /usr/share/locale/it/LC_MESSAGES/wxmsw.mo
    Installed (but unpackaged) file(s) found:
   /usr/bin/wx-config
   /usr/share/bakefile/presets/wx.bkl
   /usr/share/bakefile/presets/wx_unix.bkl
   /usr/share/bakefile/presets/wx_win32.bkl
   /usr/share/locale/it/LC_MESSAGES/wxmsw.mo

------------------------------------------------------------------------------------
I got it work surfing into internet (maybe somebody was interested :)) Problem was that files gotten in compilation wasn't included in rpm so automatic checker of rpmbuild warning us with that message and stop build process. There is a variable in macro configuration to override that setting (stop build process) and continue ignoring warnings. I think it's better including files requested in rpm with 'file' macro section. Doing that we get rpm for wxBase finally.

more info: http://www.rpm.org/hintskinks/unpackaged-files/

Thanks all for replies.
Logged