On Mon, Apr 30, 2001 at 05:28:38PM -0700, John Clark wrote:
> "Hanske;Stefan" wrote:
> > I don't think you need to compile all the stuff again, there must be
> > thousands of people who did that already.
> 
> Well, while I agree that it may be a waste to recompile the world, I have
> had trouble hunting down various sources for some of the
> tools that I'm currently using getting my hardware up.
> 
> For example, while I would like to use fdisk straight out of the
> binary box, I did need to see exactly what it was calling, to better
> understand my current 'scsi' problem.

fdisk lives in util-linux.

> What is my model here would be say the various *BSD distributions
> that do sort of have the source hierarchy following the
> eventual binary hierarchy. This of course has some amount
> of variability, but I have not found where in the linux world there's
> a similar sort of lay out to gzipped tar archives.

That works with *BSD because user- and kernel land are strongly bound.
Linux is different: each distribution uses a standard kernel, but is
free to use whatever userland sources it likes.

> In the Redhat world, it did take me a number of tries to get
> the sources to some particular tool that was found in the
> basic installation tool set. I think it was something like login... it's
> neither here nor there exactly which one it was, it was just
> difficult to find the source of what I consider to be
> pretty basic.

"rpm -qf /bin/login" will tell you that login lives in util-linux. Get
the srpm for util-linux and you're set.

IMHO using Debian on your workstation is ideal in this kind of
situations:

- Lookup to which package /bin/login belongs:
    erik@arthur:/tmp> dpkg -S /bin/login
    login: /bin/login
- Get the source package:
    erik@arthur:/tmp> apt-get source login
    Reading Package Lists... Done
    Building Dependency Tree... Done
    Need to get 796kB of source archives.
    Get:1 http://ftp.nl.debian.org testing/main shadow 20000902-3.1 (dsc) [673B]
    Get:2 http://ftp.nl.debian.org testing/main shadow 20000902-3.1 (tar) [734kB]
    Get:3 http://ftp.nl.debian.org testing/main shadow 20000902-3.1 (diff) [61.1kB]
    Fetched 796kB in 1s (794kB/s)  
    dpkg-source: extracting shadow in shadow-20000902
  There you go, the source is in /tmp/shadow-20000902.

If you don't have a Debian system, you can still use the packages
search engine at http://packages.debian.org/ . Use the "search
contents" field, type "/bin/login", click search, wait, now click
"base/login", and you'll get a pages with all information including the
links to the source files (right under the "go to download page" button).


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to