How to install src packages?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

How to install src packages?

Postby kemra102 » Sep 4th, '11, 20:17

I tried installing the src package for drakconf via:

Code: Select all
urpri --install-src drakconf

but it is not available. Is there a separate repo for src packages?
kemra102
 
Posts: 5
Joined: Sep 4th, '11, 20:14
Location: Derbyshire, UK.

Re: How to install src packages?

Postby doktor5000 » Sep 4th, '11, 20:45

Yes, there are seperate repos which you need to add manually, but you can also download and install them, maybe faster:
This would be the src.rpm for drakconf in Mageia 1 ftp://ftp.mandrivauser.de/mirrors/Magei ... a1.src.rpm

May i ask why you want to install the source package for drakconf?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to install src packages?

Postby kemra102 » Sep 4th, '11, 20:58

Thanks for the link: is there a link that shows which repos to add?

I was interested in looking at the src as I had heard the GUI was done in GTK and wondered how much work it was to write a Qt version. I'm not very experienced so it may be a bit beyond me but thought it was at least worth a look.
kemra102
 
Posts: 5
Joined: Sep 4th, '11, 20:14
Location: Derbyshire, UK.

Re: How to install src packages?

Postby doktor5000 » Sep 4th, '11, 21:03

Well, here you can see the available repos in general: http://mageia.org/wiki/doku.php?id=mirrors_policy
Don't you have already setup some repos automatically when starting software management for the first time?
Or do you mean specifically SRPMs repos with your question?

If anything is unclear or if you need some help, don't hesitate to ask again.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to install src packages?

Postby kemra102 » Sep 4th, '11, 21:15

Sorry my response wasn't very clear. I have the normal set of repos as you would expect (Core, non-Free & Tainted). What I want is the src repos adding if possible.
kemra102
 
Posts: 5
Joined: Sep 4th, '11, 20:14
Location: Derbyshire, UK.

Re: How to install src packages?

Postby doktor5000 » Sep 4th, '11, 21:40

You can add them automatically with
Code: Select all
urpmi.addmedia --distrib --mirrorlist --all-media

or if you prefer a specific mirror with
Code: Select all
urpmi.addmedia --distrib --all-media URL_of_mirror/Mageia/distrib/1/SRPMS/

Both gives you another complete set of repos, but additionally adds SRPMS repos.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to install src packages?

Postby kemra102 » Sep 4th, '11, 23:18

That works great thanks. One more question: where are the src packages un-archived to? Normally in other distros I'd expect this to be /usr/src but if I install one I get the following :

Code: Select all
[root@localhost Downloads]# urpmi --install-src drakconf


    $MIRRORLIST: media/../../SRPMS/core/release/drakconf-12.21.9-2.mga1.src.rpm
   1:drakconf               warning: user iurt does not exist - using root
warning: group iurt does not exist - using root
warning: user iurt does not exist - using root97%)
warning: group iurt does not exist - using root
########################################### [100%]

but if I look in /usr/src it's not there:

Code: Select all
[root@localhost ~]# ll /usr/src
total 12
drwxr-xr-x 24 root root 4096 Sep  4 19:58 linux-2.6.38.8-desktop-4.mga/
drwxr-xr-x  5 root root 4096 Sep  4 19:55 vboxadditions-4.0.6-4.mga1/
drwxr-xr-x  5 root root 4096 Sep  4 19:57 virtualbox-4.0.6-4.mga1/
kemra102
 
Posts: 5
Joined: Sep 4th, '11, 20:14
Location: Derbyshire, UK.

Re: How to install src packages?

Postby doktor5000 » Sep 4th, '11, 23:34

Hmmm, good question.
Normally you don't install src.rpms as root, because you also don't build rpms as root.
Will have to look at it.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18054
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron