Everything that includes the source code of Unix programs for example compiling, installing or how to retrieve the code for studying.

learn more… | top users | synonyms

1
vote
2answers
2k views

How / where to get sources for kernel-2.6.36-gentoo-r4 in Gentoo Linux distribution?

How can I get (i.e. what command to use) sources for kernel-2.6.36-r4 (uname -a says that it is version 2.6.36-gentoo-r4), or where from I can download it? I want to compile the userside 'perf' ...
3
votes
1answer
128 views

Link a dependency in Synaptic to the one already installed from source

I want to install SVN version of Quantum GIS and already I have a SVN version of GRASS GIS. As instructed in QGIS Wiki here, I added the qgis repository to my sources.list file. Now I am able to see ...
5
votes
3answers
5k views

Where can I find the source code of libgio?

I want to study how its GFileInfo components works.
1
vote
1answer
98 views

Where can I find the source code of “GFileInfo” functions like “g_file_info_get_content_type”?

I want to read the source code of a GFileInfo function: g_file_info_get_content_type ( GFileInfo *info ); Could somebody tell me where to find the source code file? I search the glibc code by didn't ...
2
votes
2answers
322 views

OpenBSD patch system

If I install OpenBSD from CD-ROM: http://www.openbsd.org/ftp.html with install48.iso then is it patched? All 10 patches from here are in the ISO file? If those are not included, how can I apply ...
7
votes
2answers
1k views

What are the advantages of building tools/libs from source?

By building from source do you gain any benefits? Is the code better optimized to your hardware architecture? Is it optimized better in general? Why would someone choose to build from source rather ...
6
votes
2answers
2k views

Where can I find the source code for `uptime`?

I am learning Python. Till now I've been doing only basic Python coding. A day ago, I checked python implementation of tree command. Suddenly I thought of creating a Python clone for uptime. I don't ...
1
vote
2answers
180 views

How can I compile unclutter to my embedded linux? (newbie)

I got the source code of unclutter using apt-get source unclutter, and copied the files to my embedded system. Now, how can I compile it? --update I've tried this answer: How to compile and install ...
3
votes
2answers
7k views

Passing a variable to a bash script when sourcing it in another bash script?

Suppose I have in main.sh: $NAME="a string" if [ -f $HOME/install.sh ] . $HOME/install.sh $NAME fi and in install.sh: echo $1 This is supposed to echo "a string", but it echoes nothing. Why? ...
22
votes
6answers
9k views

determining path to sourced shell script

Is there a way for a sourced shell script to find out the path to itself? I'm mainly concerned with bash, though I have some coworkers who use tcsh. I'm guessing I may not have a ton of luck here, ...
1
vote
3answers
89 views

What's up with the metadata in the source? Are there tools for it?

I'm comparing two different kernel versions (one official, one from a manufacturer); there are thousands of file whose only difference is in metadata in the files. The metadata looks like '$:Key: ...
5
votes
4answers
109 views

Get list of required libraries when installing something from source

When installing something from source (say, Ruby 1.9.2), what command can I run to get a complete list of all the dependencies needed to install that application? Is this possible?
3
votes
3answers
107 views

Where can I find sources for

Emacs lisp source code for .elc files? e.g. cal-mayan.elc Files in the /bin directory? e.g. cat, split, and echo
291
votes
7answers
25k views

How can I find the implementations of Linux kernel system calls?

I am trying to understand how a function, say mkdir, works by looking at the kernel source. This is an attempt to understand the kernel internals and navigate between various functions. I know mkdir ...
3
votes
1answer
534 views

What does 'mergemaster' do that 'make distribution' doesn't?

After calling make installworld (or make world), there are two ways of updating source files in the new world: calling mergemaster -p or make distribution. I know that mergemaster calls make ...
15
votes
5answers
997 views

How to compile and install programs from source

This is an issue that really limits my enjoyment of Linux. If the application isn't on a repository or if it doesn't have an installer script, then I really struggle where and how to install an ...
15
votes
13answers
1k views

Distros that support compiling from source

A long time ago I used to use FreeBSD with its ports system and after that Gentoo for portage in order to install applications via compiling from source. I did this in order to directly target my ...