Jump to content

new tool for fedora: install from sources


Guest asprayama
 Share

Recommended Posts

Guest asprayama

http://www.geocities.com/asprayama/if-so/if-so.html

 

What is if-so ?

if-so is abbreviation of words 'install from - sources'.

Some people who use redhat/fedora based systems wants to install software from sources, compile with desired cpu opts, and don't have troubles with package management.

rpm and apt give You exellent and pleasure possibility to manage _binary_ packages.

But some things apt doesn't do: it can't recursive fetch sources, build and install compiled rpms.

On debian based machines there is apt-build package, but if You work with redhat like system, it will not help You.

So, this is an utility I wrote in a free time that can do all that staff.

Of cource it open-source and licensed under GPL. You can change sources for Your needs.

 

How it works

First if-so asks apt about desired package runtime deps, then download build deps for that runtime dependencies, then download all dependency sources, compile and install them. After that if-so downloads desired package source, and build deps, compiles and install it.

Then if-so removes just used build dependencies.

if-so written completely with freepascal, so it doesn't have any dependency except rpm and apt.

 

How to use

if-so <packagename> <architecture>

<architecture> value may be athlon, i386, i486, i586, i686.

If this value don't entered, if-so by default will compile package for i386.

if-so --help

or

if-so will print help screen

 

Examples:

if-so mpg321 i686

if-so mpg321

Link to comment
Share on other sites

Welcome to the board.

It sounds great! thanks for writing it and letting us all know. :thumbs:

 

Could you get it to work for Mandrake?

EDIT

There is an apt for MDK in Contrib, Hmmm......i wonder if....

Link to comment
Share on other sites

Guest asprayama
Welcome to the board.

It sounds great! thanks for writing it and letting us all know. :thumbs:

 

Thank You very much

Could you get it to work for Mandrake?

 

Yes, sure, I can get it work with MDK ;)

Just now it requires recompilation of sources, but in version 1.1 there will be configuration file, and it woll be more simpler to get it work with MDK and any other rpm distribution ;)

Just now I can recompile it for MDK but

I need some info for it.

if Your work with rpmbuild --rebuild somepackage.src.rpm, which is the path MDK stores compiled binaries by default?

Link to comment
Share on other sites

Its /usr/src/RPM/SRPMS /i656/i386 etc.

I tried out if-so after creating a /usr/src/redhat/SRPMS directory. But the biggest problem i found is that hardly any mandrake mirrors carry the hdlists for srpms. In fact i only found one mirror and that was for cooker only. So unless mandrake start adding hdlists for source rpms no one can use if-so. :sad:

Link to comment
Share on other sites

/me way of the source

 

up2date --get-source <filename>

rpm -ivh /were/i/put/it

rpmbuild -ba --target=whatever/i'm/on <filename>

 

Most of the time I do it that way because I edit the spec file.

 

But if-so looks cool. thx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...