LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-02-2009, 09:14 AM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 394
Blog Entries: 1

Rep: Reputation: 35
where is the source codes for the open source drivers for each linux distros


This is a question related to linux in general. I hope someone can
provide some hints to that.

We all know we can install a linux system such as Fedora 10 and use it.
Being linux, one should in principle get the source codes for everything that has been precompiled (except the proprietary drivers such as nvidia) in the installation DVDs/CDs. Where are the source codes ? Is there a place I can download them ?
To avoid confusion, I am not referring to the kernel source that can be compiled to
give a linux kernel, but that does not include the drivers, such as intel_drv.so.

To be more specific, the intel graphic i810 driver has been built into any linux system, but where is the exact source? One answer may be that primary source
intellinuxgraphics.com. However, if anyone tries to download the every changing (i.e., keep updated almost every single day) driver source codes from freedesktop.org, it is almost certain that the source codes will not
be the same as the one that is finalized in Fedora 10.

Thanks for sharing your answers.
 
Old 01-02-2009, 10:01 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
on Fedora:
yumdownloader --source package
on Debian:
apt-get source package
on gentoo:
emerge --fetchonly package
Mandriva:
urpmi --src package
Slackware, LFS, etc : Oops, no package manager
wget url_of_package

Last edited by Agrouf; 01-02-2009 at 10:02 AM.
 
Old 01-02-2009, 10:02 AM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
If you want the source used for hte Fedora package then you would download it from Fedoras website.. or though the package took as Agrouf demonstrated.

You can download the Source isos for fedora 10 - I have no clue what source files ar on which disk, although X and it's drivers are most likely on disk 1..
ftp://ftp.mirrorservice.org/sites/do...ra/source/iso/

and of course if you go to the source directory you can download individual source packages.. like xorg-x11-drv-i810-2.5.0-3.fc10.src.rpm

ftp://ftp.mirrorservice.org/sites/do...3.fc10.src.rpm
 
Old 01-02-2009, 10:47 AM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 394
Blog Entries: 1

Original Poster
Rep: Reputation: 35
Thanks for the prompt and useful replies.

I tried to do this but fail, why ?

[root@centos52-64-fuj ~]# rpm -ivh xorg-x11-drv-i810-1.6.5-9.13.el5.src.rpm
1:xorg-x11-drv-i810 warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
...

Another question: Can I extract the content of a rpm file without actually install it, something like try to peep what is inside ?

Last edited by centguy; 01-02-2009 at 10:51 AM.
 
Old 01-02-2009, 10:51 AM   #5
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
It also would seem you are mixing two types of sources. Released versions of code and revisions (like SVN, CVS, etc). If you go to freedesktop and grab the latest version with all the changes since the last release, you would indeed get an entirely different set of source files. But there are also released versions (that you can grab using the same tools) that are a "snapshot in time" of the source. Those files will not change, those are static. The same can apply using in-between-revisions as well. For example, if you were to grab svn revision 3101 that is the latest release today and contains an entirely up-to-date source tree. In 4 years when you grab svn revision 3101 it would be identical. If you just updated to the latest source in 4 years though, then it would be entirely different as you've noted.

Hope that helps!

-Chad
 
Old 01-02-2009, 10:55 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Any file ending in .src.rpm is not an install file as such. That is an rpm of the sources and you would use it to create an install file which may be compiled for your architecture (possibly improving speed ever so slightly) or with unusual compile options. There are instructions for using those files here: http://www.rpm.org/max-rpm/s1-rpm-mi...nia-srpms.html
 
Old 01-02-2009, 10:56 AM   #7
centguy
Member
 
Registered: Feb 2008
Posts: 394
Blog Entries: 1

Original Poster
Rep: Reputation: 35
useradd mockbuild seems to solve the problem.

[root@centos52-64-fuj ~]# useradd mockbuild
[root@centos52-64-fuj ~]# passwd mockbuild
Changing password for user mockbuild.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@centos52-64-fuj ~]# rpm -ivh xorg-x11-drv-i810-1.6.5-9.13.el5.src.rpm
1:xorg-x11-drv-i810 ########################################### [100%]


But where are the files ?
 
Old 01-02-2009, 11:04 AM   #8
centguy
Member
 
Registered: Feb 2008
Posts: 394
Blog Entries: 1

Original Poster
Rep: Reputation: 35
Probably I need to slow a little bit.
Before my second last post, I did something wrong earlier that may cause a huge problem later on..
I tried to put the f10 rpm in CentOS5.2..

[root@centos52-64-fuj ~]# rpm -ivh xorg-x11-drv-i810-2.5.0-3.fc10.src.rpm
warning: xorg-x11-drv-i810-2.5.0-3.fc10.src.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
1:xorg-x11-drv-i810 warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root

Does this have a side effect ??
I hope my mistake does not cause any harm in the future ...
 
Old 01-02-2009, 11:05 AM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Read the link I posted - it tells you all about the files and where they go and what they do.
 
Old 01-02-2009, 11:14 AM   #10
centguy
Member
 
Registered: Feb 2008
Posts: 394
Blog Entries: 1

Original Poster
Rep: Reputation: 35
Thanks! I found it. Will have to spend time reading the stuff you point to.

[root@centos52-64-fuj SOURCES]# pwd
/usr/src/redhat/SOURCES
[root@centos52-64-fuj SOURCES]# ls
blank-on-init.patch i810.xinf intel-lvds-detection.patch
FileZilla_3.0.11.1_src.tar.bz2 i965-xv-hang-fix.patch intel-no-exa.patch
FileZilla_3.0.11-rc1-system.patch intel-1.5-compat.patch intel-redetect-on-acpi.patch
FileZilla_3.0.1_src.tar.bz2 intel-1.5-misc.patch intel-stub.c
i810-1.6.5-965-update.patch intel-2.1.1-fix-xv-reset.patch intel-version.patch
i810-1.6.5-bearlake.patch intel-2.4.2-dell-quirk.patch xf86-video-i810-1.6.5.tar.bz2
i810-1.6.5-bridge-id-fix.patch intel-2.5.0-no-legacy-3d.patch xf86-video-intel-2.2.1.tar.bz2
i810-1.6.5-to-git-20060911.patch intel-disable-rotation.patch xf86-video-intel-2.5.0.tar.bz2
i810-match-server-sync-ranges.patch intel-dri.patch
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
source codes for c compiler in linux dningale Linux - Software 3 09-22-2008 04:33 AM
LXer: AMD makes codes open source for multicore development LXer Syndicated Linux News 0 02-22-2008 08:11 AM
LXer: Too Many Linux Distros Make For Open Source Mess LXer Syndicated Linux News 0 07-21-2007 05:16 AM
Linux and Open Source Conference Discount Codes jeremy Linux - News 1 06-07-2007 11:03 PM
Do You Write Open Source Codes? halfpower General 7 10-09-2006 12:59 AM


All times are GMT -5. The time now is 03:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration