Questions tagged [source-code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

What is the difference between the three files downloaded on running 'apt-get source {package-name}' ? Which is the actual source code of the package?

These four files/folders were downloaded after I ran apt-get source bash to get the source code of the package bash in Ubuntu. - bash-5.0 - bash_5.0-6ubuntu1.1.debian.tar.xz - bash_5.0-6ubuntu1.1.dsc -...
1
vote
1answer
57 views

Installing m4 on OpenBSD

I know I have a lot more to learn, but I'm stuck at with something; how would I go about install m4 (https://directory.fsf.org/wiki/M4#tab=Overview) in OpenBSD? The thing is, from everything I've read,...
1
vote
1answer
416 views

What is the correct way to enable source downloads in CentOS 8-stream?

So I tried to do this:- yumdownloader --source sendmail But hit this problem:- Last metadata expiration check: 0:08:48 ago on Wed 16 Dec 2020 10:34:00 AM GMT. No package sendmail-8.15.2-34.el8.src ...
3
votes
3answers
5k views

How to get all paths from a website using cURL

curl //website// will get me the source code but from there how would I filter our every unique path and obtain the number of them? the question: Use cURL from your machine to obtain the source code ...
0
votes
1answer
38 views

I am searching for the source code to a specific library

I am looking for the source code to libj2d-gtk-linux-i386-2.0.0.so which is reported to be contained in a file named GtkGraphics2DFactory.c. This library is an SWT 2 Java bit of glue that is found in ...
0
votes
0answers
80 views

How to compile driver for rtl8192eu and integrate it into the kernel during compilation?

So, i use dkms to load the driver for my usb wifi adapter(dwa-131), as the built in drivers in the linux kernel dont work well with dwa-131.I download the source code for the rtl8192eu(the chip inside ...
0
votes
1answer
48 views

If I create my own Linux distro, what is it's source code?

So I am creating my own live Linux distro based on Debian. If I am right, for it to be truly opensource I need to provide my distro's source code. So where is it? Is it the filesystem (I don't think ...
0
votes
1answer
15 views

Installing from source: helpful tools? and a few questions

a newbie here. There are some tools that you want to install from source but you do not know which libraries are needed because it is not mentioned in the Read-file. Installing from source bugs me ...
-2
votes
1answer
58 views

Text Editors with the smallest total LOC

I'm aware of certain Text Editors that would be called "small" in term of LOC, or "Line Of Code". I'm also aware it's no the best way to demonstrate (nor the only one) how small a ...
0
votes
0answers
135 views

Build popcorn time for raspberry pi from .Deb file

I would like to build popcorn time from source for raspberry pi but the source files are not up to date. Is it possible to unpack a Deb file and try to extract the source code from that so I can have ...
1
vote
0answers
33 views

Is it possible to make a database file out of a project directory(containing C files)?

My requirement is to improve time for a pattern search (using grep or any other search tool) in a source code directory containing mainly C source files. I have a big code base that makes it difficult ...
0
votes
1answer
51 views

How do linux distros like Debian, Red Hat make many binary packages from one source package? [closed]

I wonder how linux distros like Debian, Red Hat, Gentoo, Ubuntu make many binary packages from one package? When I compile package, they just become install all in one. So my questions are: How do ...
1
vote
0answers
136 views

Location of the system-wide file table and inode table structures in the kernel source

To better understanding of the file management in Linux kernel I want to find out three table declarations in the source: a single process file descriptor table system-wide table of open files inode ...
2
votes
1answer
121 views

Source code of arch command for macOS Catalina Version 10.15.3 (19D76)

I need to get the source code of the "arch" command located in /usr/bin/arch for macOS Catalina( see the output of sw_vers command below). macOS Catalina ProductName: Mac OS X ProductVersion: 10....
2
votes
0answers
1k views

Ubuntu apt-get source linux-image-$(uname -r) does not gives me kernel source

I am trying to download linux kernel source code for ubuntu distribution. I did this directly in my home folder. kerndev@kerndev-VirtualBox:~$ uname -r 5.0.0-37-generic kerndev@kerndev-VirtualBox:~$ ...
0
votes
1answer
30 views

Estimate number of LOC of namespaces implementation and bpf implementation

How can I estimate the LOC of a linux component? In this case I would compare the LOC number that implement namespaces with the number of LOC which implement BPF.
-1
votes
3answers
551 views

Is there a source code available for patch command in Linux?

I am looking for a source code for the patch command used in Linux. Does anyone know if there is one available? I am looking for a something which is compatible to POSIX or more specifically QNX v7.
4
votes
1answer
470 views

How to become a Linux source code maintainer?

According to this link, when changes to the Linux source code are submitted, they are reviewed by a hierarchy of maintainers, eventually concluding with Linus himself. How does one become such a ...
0
votes
1answer
171 views

What is the most similar distro/flavor to the original UNIX source code? [duplicate]

Just like Ubuntu, Arch, Red Hat etc are just modifications to the original Linux Kernel... macOS (XNU), Solaris etc are some variants of the closed source code of AT&T's UNIX. But what is the ...
-2
votes
1answer
466 views

What does (($count+1)) do in this script?

Can anyone tell me what the purpose/action is of this area right here circled in neon green color? I would like to know its purpose in terms of what it does in a script. while IꓝS= read -r line; do ...
0
votes
1answer
135 views

Necessary package for compiling libX11

I am currently trying to compile libX11 version 1.0.0 and during the configure process this error message shows up: checking for BIGREQS... configure: error: Package requirements (bigreqsproto) ...
0
votes
1answer
182 views

Installing gtkmm from source

I know that gtkmm can be installed using package manager, but here I am keen to install it from source. It requires me to install the Dependencies: libsigc++ 2.0 GTK+ 3.0 glibmm cairomm pangomm ...
1
vote
0answers
285 views

kernel TCP/IP implementation - about accept queue

I'm recently learning the TCP/IP implementation in linux kernel(version 4.4), and got really confused about the accept queue. I know there is a queue in struct inet_connection_sock which is called a ...
0
votes
1answer
106 views

Where can I find gtkmm4 sources?

I need to install gtkmm4 where do I find its sources. I am using archlinux.
1
vote
0answers
65 views

Is it possible to access linux/ramdisk code memory from its running system?

I'm working with an embedded Linux device that has to be auditioned by a regulatory agency. The agency will select a few devices in the field to check if the code running is the same as auditioned. ...
0
votes
1answer
153 views

Locating source code of the PureOS installer

I have been playing with PureOS installation options (the ultimate goal is to install it dual boot with MacOS on a MacBook Air, but this is out of the scope of this question). What I would like to ...
1
vote
1answer
2k views

dpkg-source: warning: failed to verify signature

System: Linux Mint 19 Cinnamon, based on Ubuntu 18.04. In this answer, I am being pointed at a different solution, other than installing directly from source. Since I haven't ever used dget, I must ...
0
votes
2answers
65 views

Where is the idiomatic place to put source code for my projects? [closed]

I'm a software developer and only in the last year or so have I been using Linux Mint over Windows as my working dev environment. For the last year I figured I'd do things my way and adapt as I learn ...
-2
votes
3answers
234 views

Linux Kernel code [duplicate]

Yesterday, I have seen Linux kernel source code. There were thousands of lines. Were all code written only by one person, Linus Torvalds?
0
votes
0answers
764 views

Where can I get the first edition of Minix OS?

I want to know where can I get the first edition of Minix OS? I would like to look at the source code of the first edition of Minix OS.
1
vote
0answers
500 views

Exact kernel source code on Fedora

Could you please share how to acquire the corresponding kernel source code for 4.5.5-300.fc24.x86_64? I cannot find it in /usr/src/kernels when installing that on Fedora 24.
0
votes
0answers
1k views

Install libstdc++ 4.9.x from source but compiled with glibc 2.14

I am on a Red Hat Enterprise Linux Server release 6.6 (Santiago) Linux version 2.6.32-696.20.1.el6.x86_64 (mockbuild@x86-042.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18)...
3
votes
1answer
1k views

How does providing an asc file ensure I'm downloading the intended source code?

I'm installing cmake from the cmake.org website and they provide two files that I believe are intended to verify the source code download cmake-3.11.0-rc3.tar.gz On the same page, they have links to ...
-2
votes
1answer
156 views

Where are stored sources of compiled programs? [closed]

I want to find exact source code of compiled program in Linux/Unix systems. for illustration: computer:/ username$ whereis ping /sbin/ping And the task is to find the source code of /sbin/ping.
1
vote
1answer
247 views

How does the X server emit a character when the keyboard is pressed? [duplicate]

This is actually a coding question. I know that the X server checks the active keyboard layout to figure out which character (supporting unicode) to emit. But I don't actually know how this is done, ...
3
votes
1answer
436 views

How to organize 3rd-party libraries for Python?

I am new in Python. I want to install many 3rd-party libraries (I think they are also called packages?) like, for example, "AstroPy". But I am not sure where the new source code will be stored (I mean,...
3
votes
2answers
2k views

Replacing backslashes with forward slash within double quotes

I have some C source code which was originally developed on Windows. Now I want to work on it in Linux. There are tons of include directives that should be changed to Linux format, e.g: #include "..\...
1
vote
0answers
132 views

CUPS source-code compiling error

I want to get printer state from CUPS. To do that , I am trying to customize CUPS's source code. So I can send a message to my front-end. I have downloaded CUPS repository from gitub Apple's CUPS ...
6
votes
4answers
5k views

Usage of Bang (!) in bash

I am reading the bash source code, and the BNF grammar for bash would be: <pipeline_command> ::= <pipeline> | '!' <pipeline> | <timespec&...
-1
votes
2answers
2k views

What are the tools in /tools folder?

In the kernel source tree /tools, there are many submodules. What are the tools available in this folder? I know perf tool. What else are they? How to build them? Are they, by default, integrated into ...
3
votes
1answer
814 views

How to find the source code by a simple method [closed]

As I know,the Linux is a open source project,which mean we can find all code that build this system. But that is too hard for me. Is there a simple method which can check the source code of any ...
0
votes
1answer
2k views

Latest kernel sources not available for installation? (Fedora 26 Beta)

I just stumbled across a problem where the installed kernel sources don't match the kernel that I'm actually running. I'm running 4.11.7-300.fc26.x86_64: [root@localhost VirtualBoxGuestAdditions]# ...
1
vote
1answer
586 views

Are there any unminify tools for shell scripting?

Various minifier scripts exist for shell code, (e.g. bash-minifier), but how about the reverse? Are there any shell-centric utils or scripts to automatically turn a one-liner like this: echo foo;...
13
votes
2answers
5k views

How do I look at the source code for a command? [closed]

I suddenly decided I'd like to look at the source code for 'echo' $ which echo /usr/bin/echo so $ ls -al /usr/bin/echo -rwxr-xr-x. 1 root root 32536 Oct 31 2016 /usr/bin/echo so $strings /usr/...
0
votes
2answers
1k views

How to solve building error where a variable “… was not declared in this scope”

I'm trying to install last TauDEM (Terrain Analysis Using Digital Elevation Models) release in GNU/Linux Debian for using with Python Processing in QGIS. Installing instructions can be watched here. ...
0
votes
1answer
136 views

sloccount or similar tool which can work on .deb packages without decompression?

AFAIK deb packages are ar archives. ┌─[shirish@debian] - [~/games/example] - [10297] └─[$] ls libcpuid14_0.4.0_amd64.deb ┌─[shirish@debian] - [~/games/example] - [10298] └─[$] ar x libcpuid14_0.4....
2
votes
2answers
2k views

Remove comments in a C file [duplicate]

I am trying to remove comments from a file which may be in any part of a line and span multiple lines. struct my_struct{ field1; field2; /** comment 1 */ field3; /* comment 2 */ } ...
2
votes
1answer
2k views

How to download a whole raspbian source code?

I'm new to linux and my teacher asked me to learn about how to build Raspbian from the source code. From what read in other questions, I need to download the Raspbian source code first. In some ...
0
votes
2answers
100 views

How can I protect my robot code?

I want to build a robot using some mini-computers like Raspberry-Pi, and using Linux OS upon. I think those boards (RPi, NanoPi, etc) have external SD card to boot OS from, and my code will go there (...
0
votes
1answer
600 views

Where is the __sysctl function defined in FreeBSD?

I am reading the source code to understand sysctl in FreeBSD. It looks like the most important function int __sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp, const void *newp, ...