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

2
votes
2answers
112 views

bash source script.sh with exit 0

I use a lot of external files in my scripts. But I have a problem, that if I source a file with exit in the contents of the file, the script exits from loading and the strings that I want to use are ...
-1
votes
2answers
52 views

Where to find the source code for the Almquist Shell?

I'm learning the Unix shell command language looking for a repository that contains the source code for the Almquist shell ("ash" / "dash") but I could not find it. Can you help me find the source? ...
0
votes
2answers
45 views

Systemd bash builtins

I have an application that needs to use the commando source for setting his environment file. [Unit] Description=Programname After=syslog.target network.target [Service] User=root ...
2
votes
1answer
2k views

Build Chromium from source

I'm using Fedora 16 and I've successfully compiled Chromium from source (the first time I compiled something from source) a while back following these instructions: ...
1
vote
1answer
74 views

Why do the Linux kernel headers contain references to nonexistent headers?

I'm trying to build IBCS (source here) on Ubuntu 15.10 (Linux 4.2.35). This module is obviously pretty old, because its CONFIG.i386 file gives gcc an option -m486, which doesn't exist anymore, but ...
1
vote
2answers
44 views

OpenBSD: is safe to delete /usr/src?

After I successfully upgraded OpenBSD, I wanted to upgrade my sources. I want to know, is it safer to delete /usr/src and then extract src.tar.gz, or is it better to preserve the already existing ...
0
votes
2answers
86 views

JDK 1.4.2 - where can I download the source?

I want to install Java JRE 1.4.2 or JDK 1.4.2 on a recent Amazon Linux server. The best option so far seems to install from source. However - where can I download this? I believe 1.4 is still from the ...
0
votes
1answer
20 views

Where is the kernel source for a cross-complied kernel rpi

I have cross-compiled and installed the Linux kernel with the real-time patch, version 3.18.16-rt13-v7+, on a raspberrypi but then I can't find the current kernel source in /usr/src. Then I tried the ...
0
votes
0answers
22 views

Installing specific version of python and its dependencies in chroot enviroment

I'm trying to install python from source on chroot environment in CentOS 7.1, If I'm using ./configure --prefix=/chroot but I need to find the dependencies and copy them to chroot directory also, How ...
0
votes
2answers
626 views

Can't find source package with apt-get source on Debian Squeeze

I have an old server running Debian Squeeze. I'm trying to download the source of some package so that I can patch it manually. However, apt-get source fails for every package I try. An example: ...
0
votes
1answer
29 views

What is a kernel-source-tree?

What is the Linux kernel source tree? What does it contain and what is its purpose? I'm trying to build an external module and the tutorial I'm using says to make sure that a kernel source tree is ...
0
votes
1answer
42 views

How to change Linux kernel version

I have downloaded and unzipped the Linux Kernel. What file(s) in kernel source file(s) are responsible for displaying Version string in uname ? I want set version to 10, without dots 10.0.5 # uname ...
0
votes
3answers
29 views

See content of sourced script

When I source a script in bash, is there a possibility to look at the script, that I just sourced, without accessing the script itself?
24
votes
5answers
6k views

What is the difference between building from source and using an install package?

I was wondering: when installing something, there's an easy way of double clicking an install executable file, and on the other hand, there is a way of building it from source. The latter one, ...
0
votes
1answer
19 views

Can't find GNU Icecat (or Firefox) source code

I've been using GNU Icecat Browser (libre Firefox version made by Gnuzilla) for some weeks. I've been diving through its menus and I found an error: When I get into the 'Customize Mode' (the one that ...
1
vote
1answer
70 views

How to study the linux kernel source? [closed]

I have finished studying Operating Systems about a year ago, and now I'm interested in linux. So I plan to study Linux from the source code. But when I look at the source code, it is really big in ...
1
vote
1answer
22 views

Merging text file directories

I have two directories: Libc-825 and Libc-1044. Imagine that version 1044 is newer, but buggy. Is there a way to merge these file trees? I have there C sources with not so big differences. I have ...
0
votes
1answer
597 views

unpack and patch source rpm (rpmbuild -bp) safely

I want to unpack source RPM and apply patches to the upstream source. What is almost OK for me is rpm -i mypkg-*.src.rpm cd ~/rpmbuild rpmbuild -bp SPECS/mypkg.spec # frolic in BUILD/mypkg My ...
0
votes
0answers
20 views

Putting RPM files along with Proprietary source code in common repository

We have a large Repository of Proprietary source code (C, C++, PerlScripts, MakeFiles) which does not contain the compiled object files. When running the Build Process on a workspace, the object files ...
0
votes
0answers
16 views

problems installing Banshee from source

I'm running VOID linux on a HP 6930p laptop, and I am trying to install Banshee from source. As I am working on getting all of the depends installed When I run ./configure I now get this message. ...
3
votes
1answer
284 views

Source code location for debugging on Debian?

From Debian's DebugPackage, I know the debug information file for an executable goes in /usr/lib/debug when creating two part executables (i.e., stripping the executable of its symbols and placing ...
1
vote
1answer
52 views

Setting env variable through script on current session

Is there a possible way of setting env variable through script on current session. I have tried source option. But this works on the shell not through script. here is my script content source ...
3
votes
3answers
175 views

common environment variable to set dark or light terminal background

I have written a number of debuggers that all can colorize source code text shown in a terminal session. They all understand that some terminals have a dark background and some have a light background ...
0
votes
1answer
2k views

Mediatomb apt source on Debian Jessie

I would like to install Mediatomb on my Debian Jessie. I keep seeing everywhere that people install it as simple as sudo apt-get install mediatomb but apparently I don't have mediatomb in my ...
28
votes
10answers
3k views

Why are programs not distributed in compiled format?

But they give instructions like cd downloaded_program ./configure make install This creates the ELF that is needed, and probably some .so files. Why not put those inside a zip file for download, ...
0
votes
0answers
72 views

Difference between two almost same command

Please consider two following command: $ echo ls | xargs -I cmd echo cmd | source /dev/stdin $ echo ls | source /dev/stdin What's the difference between these commands? In my machine the result of ...
5
votes
4answers
5k views

Running “patch” without generating *.orig and *.rej files

Is it possible to tell patch not to generate .orig and .rej files? I find it extremely annoying that patch creates these.
6
votes
3answers
6k views

Where can I find the source code of libgio?

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

How can I build fdupes from source on Ubuntu?

I would like to make a few changes to the fdupes code. I know I can grab the source code from the website - but is there a better way on Ubuntu / Debian? After getting the source this way where is ...
1
vote
2answers
128 views

Unpacking source Debian package that has a tar.xz

I've download the .tar.gz, .dsc and .diff.gz of the bash package from Wheezy: https://packages.debian.org/wheezy/bash. Then I ran dpkg-source -x on the dsc file to unpack it, and this is the result: ...
1
vote
3answers
78 views

How do I find all and any 'C' files which are in Debian archive (either in source or in binary)

How do I find all the files either in source or in binary form in Debian package archive? I tried the following but results were not helpful at all: apt-file search *.c and apt-file search *.cc ...
4
votes
1answer
149 views

Is there any automatic tool for installing required libraries to compile a program from source?

I want to know if there is any tool that, given the output of configure, cmake, autoconf or whatever library/dependencies matcher you have; installs the required packages/sources for you from your ...
2
votes
1answer
207 views

Cross-compiling Slackware: is the build order listed anywhere?

I'm building a Slackware system from source and hitting a dependency wall here. (Before you ask: no, I'm not trying to "make it faster"; I'm building against a different C library.) Getting a ...
0
votes
1answer
685 views

What happen to outdates sources.list files?

I have an old Kali Linux 1.1.0a on an USB stick and tried to install today on an old laptop. During installation i get errors fetching from web mirror and also after rebooting into the newly installed ...
0
votes
1answer
272 views

Editing make process?

So.. I figure this is alright to ask around here. https://github.com/swarren/u-boot — I have this, need to get the binary so I can finally run something other than Raspbian on the Pi. The ...
6
votes
1answer
1k views

Where is `scanf` implementation source code?

I want to find C source code for scanf implementation on Linux machine. Googling to find scanf implementation does not tell me the way to find it. I tried to find that source code from gcc source tree ...
0
votes
1answer
141 views

Installing libusb 1.0.9 on Debian 8 Jessie

I am new to Linux so I don't really know how to install from source. I went to libusb.org and downloaded the latest version of libusb. Where do I put it? When I follow the install instructions, ...
0
votes
1answer
46 views

Building projects from source - determining / changing bin location?

I have pulled down a git repository for Ansible and followed the instructions to build it. I'm not familiar with the process of building from source and am somewhat confused. ...
322
votes
7answers
29k 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 ...
1
vote
1answer
58 views

How to find my CPU's drivers source?

I would like to read my CPU's open source drivers. I assume that drivers are located in kernel sources - how can I find out what driver is my CPU using, and where can I find this driver?
28
votes
5answers
9k views

Where does uname get its information from?

Where does uname really get its information from? I figure this is something that should be straightforward. Unfortunately, I can't find any header containing just that information. Say someone ...
6
votes
4answers
253 views

How to know the source repository of a package in debian?

In Debian, AFAIK some packages are maintained in subversion, while some are maintained in git, some are maintained in Subversion/SVN (famously team-pkg-gnome) and others in some other VCS. Is there ...
0
votes
0answers
189 views

Error while trying to compile/install kernel, 4.1.6 on Ubuntu 15.04

I'm trying kernel compilation in Linux for the first time. I'm using the guide here to learn the basics. I'm able to pull the source code from the git repository, and can compile it. However, I run ...
0
votes
0answers
98 views

Installing libx11-devel from source, error in string.h

I'm running Linux version 2.6.32-504.8.1.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) and trying to install libX11-devel from source on a ...
0
votes
1answer
52 views

/usr/share/src?

Source code is text; text is architecture-independent data (i.e., /usr/shareable). Would it be, for some reason, a bad idea to have /usr/src/ link into /usr/share/src in a Linux distro?
1
vote
0answers
588 views

Building HDF5 with GCC 4.7 and OpenMPI

I am trying to install hdf5 with GCC 4.7 from binary, because I do not have root permissions, using following script on a machine using CentOS release 5.6(AMD64bit): module purge module unload ...
2
votes
2answers
1k views

How to download Debian package's source code?

I want to read source code of some package in Debian, how can i do that?
1
vote
2answers
146 views

Best way to make variables local in a source'd bash script?

I have a bash script that generates a report on the progress of some long-running jobs on the machine. Basically, this parent script loops through a list of child scripts (calling them all with ...
1
vote
2answers
254 views

How to get the name of USB driver in use in linux

I'm running Ubuntu 14.04 on my laptop. I'm having USB related issues in my laptop. It works sometimes and sometimes doesn't. I thought of fixing the issue myself. So, I wanted to know if there is a ...
0
votes
0answers
44 views

Man-pages don't include all relevant information

Consider the man-page of this function: sysconf It doesn't have all the information that I need (e.g. all the system variables to be queried). This is an example of what I need: ...