Questions tagged [source-code]

The tag has no usage guidance.

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

Install mmdebstrap from source

I am trying to install mmdebstrap from source. I cannot find any instructions online nor file any Makefiles and such in the repo
  • 35
0 votes
2 answers
73 views

Rely on the existence of a package manager or install package via downloading the source?

I'd like to create a script that is able to install my desired set of packages in any Linux distro (initially create it to run in Ubuntu and later expand it to whichever) and basically function as an ...
0 votes
1 answer
52 views

Why is "struct pid" member `numbers` defined as an array of size 1?

I noticed that, in struct pid in pid.h, the member numbers is defined as an array of size 1. struct pid { refcount_t count; unsigned int level; spinlock_t lock; /* lists of tasks that ...
0 votes
0 answers
29 views

Inode structure in the kernel

I'm trying to understand the generic Inode structure definition in the kernel source code. Is there a good documentation that explains these fields and helps in understanding them. Specifically, I'm ...
0 votes
0 answers
33 views

How can I find find how the link status is read from the PHY?

I'm working on a project with the Microsemi PHY VCS8531 and am wondering how Linux retrieves the link state from it. I found that the driver is in drivers/net/phy/mscc.c and that the vsc85xx_driver ...
1 vote
1 answer
100 views

Where can I get the current source code for SUSE SLES products?

I'm having a critical support issue with SLES that doesn't make any measurable progress (for months now). So I wanted to have a look at the source code myself; maybe I can spot the issue. (It seems a ...
  • 1,048
2 votes
1 answer
7k views

git clone from https URL fails, says it's 'remote-https' is not a git command and that templates werent' found

I'm working on a CentOS 7.9 GNU/Linux system. I've built and installed a newer version of git (2.34.1 instead of 1.8.3.1 that's bundled with the distribution) under /opt/git/2.34.1, with a symlink to ...
  • 8,193
2 votes
2 answers
1k views

How can I get glibc/libstdc++ sources and set them up for gdb to find?

I'm debugging this program which raises an exception. This makes my debugger look for some source code, e.g. ../sysdeps/unix/sysv/linux/raise.c - and fail to find it. Now, I realize it's not necessary ...
  • 8,193
0 votes
1 answer
285 views

How would I go about compiling GNUzilla/Icecat from source in support for my specific ARM CPU?

I recently picked up the Pine H64 which has the Allwinner “H6” Quad-Core ARM Cortex A53 64-Bit Processor. How would I go about compiling Icecat in support for this on Manjaro ARM?
0 votes
2 answers
188 views

How would I print only the main function from a C source file?

For example, cat foo.c would print the whole file, cat foo.c | grep main will print the line where the main function is defined. So how would I print the entire main function? (I am on Ubuntu)
2 votes
1 answer
207 views

Does checkinstall command add dependencies in the package?

I learned about checkinstall today. I installed mdp on Linux Lite installed on VirtualBox using checkinstall. mdp depends on a package called libncursesw5-dev, which wasn't installed on my machine. ...
0 votes
0 answers
289 views

How to Change VL53L0X(TOF) sensor I2C address using c language on BeagleBone Black

Aim: To read Data from 4 VL53L0X(TOF) sensors using I2C communication in C language on BeagleBone Black Board (Debian OS). I have implement c code for a single VL53L0X(TOF) sensor which is: https://...
0 votes
1 answer
224 views

how to setup terraform on MACOS for remote KVM host?

I'm trying to configure this KVM provider on MAC, so I can provision VMs on a remote KVM server. name: terraform-provider-libvirt URL: https://formulae.brew.sh/formula/terraform-provider-libvirt ...
  • 1,833
2 votes
1 answer
335 views

In what circumstances will a process be in state X (dead)?

According to fs/proc/array.c:130, the following array defines various process states: /* * The task state array is a strange "bitmap" of * reasons to sleep. Thus "running" is ...
  • 2,402
1 vote
1 answer
35 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
1 answer
145 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
1 answer
1k 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 ...
  • 179
8 votes
5 answers
25k 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 ...
  • 313
0 votes
1 answer
67 views

I am searching for the source code to libj2d-gtk-linux-i386-2.0.0.so

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
1 answer
389 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
1 answer
22 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
1 answer
289 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
0 answers
38 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 ...
  • 209
0 votes
1 answer
128 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 ...
2 votes
0 answers
783 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 ...
  • 3,965
2 votes
1 answer
375 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
0 answers
2k 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
1 answer
35 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.
  • 109
-1 votes
3 answers
1k 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
1 answer
983 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 ...
user avatar
0 votes
1 answer
230 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
1 answer
1k 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 ...
  • 473
0 votes
1 answer
286 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
1 answer
326 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,530
1 vote
0 answers
431 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 ...
  • 11
0 votes
1 answer
130 views

Where can I find gtkmm4 sources?

I need to install gtkmm4 where do I find its sources. I am using archlinux.
1 vote
0 answers
101 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
1 answer
245 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
1 answer
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
2 answers
102 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
3 answers
281 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
0 answers
1k 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
0 answers
758 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
0 answers
2k 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)...
  • 171
4 votes
1 answer
2k 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
1 answer
231 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
1 answer
389 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
1 answer
489 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,...
  • 131
3 votes
2 answers
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,466
1 vote
0 answers
145 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 ...