Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [source]

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

0
votes
0answers
23 views

What is the entry point of a so (shared object?)'s source code?

Specifically I'm trying to port libcroco's functionality to a cross-platform BASIC dialect and need to know where to start looking at the code. In short, what is the equivalent of Window's DLLMAIN?
1
vote
1answer
32 views

How to source inline text

When you are creating tutorials online for people to use in a single terminal sometimes it's nice to source inline code...however none of these worked as I would expect. I would expect foo to be "bar" ...
0
votes
0answers
19 views

RPM making error from

When I am building drbd-utils-9.5.0 rpms from source offline and I am getting error "No such file or directory" as follows. So how can I build rpms offline resolving the issue ? [root@db1 drbd-...
0
votes
1answer
82 views

Building sstp-client on Kali Linux from Source: dpkg errors

I am following the commands below--modified from the answer here--in hopes of building a .deb package of sstp-client for my Kali Linux build. I eventually want a username/password-authenticated SSTP ...
-1
votes
1answer
83 views

Manjaro 18 (Arch) Installing Packages Outside Repository

So I recently switched to Manjaro. I am having an issue with installing MegaSync from mega.nz. When I download their package for Arch it gives me a .tar.xz file. I'm not familiar with .xz but it's an ...
1
vote
0answers
33 views

Compiling a program from a source in GuixSD

I installed GuixSD and was looking for a way to install mega.nz syncing program. Perheaps the only way is to do it from a source. I found some info of it on Github: https://github.com/meganz/...
-1
votes
1answer
30 views

Privoxy Installation of source code will not work

I am trying to install Privoxy from source code (3.0.28 (stable)), but it dose not work. I followed the INSTALL instruction, but the program won´t install. GNUmakefile:835: recipe for target 'install'...
1
vote
1answer
49 views

Where is mosquitto source directory located?

I want to compile mosquitto-auth-plugin, which requires configuration of config.mk file, where one of the required parameter is to Specify the path to the Mosquitto sources MOSQUITTO_SRC =.Could you ...
26
votes
5answers
3k views

Do the common programs (for example: “ls”, “cat”) in Linux and BSD come from the same source code? [duplicate]

Both Linux and BSD have common programs like ls and cat and echo and kill. Do they come from the same source code, or do both and Linux and BSD own their own unique source code for these programs?
0
votes
1answer
18 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
14 views

What microarchitecture are packages on apt/yum typically built/tuned for?

I'm just learning a bit about lower-level languages and I've noticed that gcc you can specify -march and -mtune parameters to optimise the software for particular CPU families. But I've also found ...
1
vote
0answers
23 views

Where can I find the source code specifically for the minimal debian installer cd?

I want to distribute a debian virtual machine as a OVA file, in order to comply with the GPL I want to provide the source code for debian alongside the debian virtual machine. Instead of downloading ...
1
vote
1answer
49 views

How can I source a base 64 encoded file in bash?

Is there a way to source a base64 encoded file in bash instead of doing this? cat $DIR/data/saves/$savegame | base64 --decode > $DIR/data/saves/$savegame.decoded . $DIR/data/saves/$savegame....
0
votes
0answers
53 views

Centos: no such package(s) for specific nginx version

I tried to build a customized nginx with specific nginx version with module in https://github.com/anomalizer/ngx_aws_auth I setup the nginx repo # nginx.repo [nginx] name=nginx repo baseurl=http://...
0
votes
0answers
49 views

Sourced .bashrc detection

At the user level is there a way for me to craft a sort of 'tripwire' in my .bashrc file to detect if another user has sourced my .bashrc? What I would like to do is have some sort of log created ...
0
votes
0answers
68 views

How to trace a specific historic file in the Linux kernel tree: Git question

I'm currently manually building a Linux image with some specific drivers for a Xilinx Zynqmp device. Aside from the main Linux tree, there are 2 other mirrored Linux repositories, one from Xilinx and ...
5
votes
0answers
49 views

Possible to “build world” in FreeBSD without root? [duplicate]

The FreeBSD jail manpage has instructions on building a jail distribution tree: D=/here/is/the/jail cd /usr/src mkdir -p $D make world DESTDIR=$D make distribution DESTDIR=$D Is it possible to ...
0
votes
0answers
103 views

When I try to configure RStudio for installation on Linux Mint I get a libcurl error

I'm trying to install the newest versions of R and RStudio on Linux Mint version Sylvia, and it seems I also have some Ubuntu repositories on version Xenial. I have tried using the package manager ...
0
votes
1answer
48 views

confused about lfs sources installation

I started to homemode Linux build using LFS book. I came to Part II. - Chapter 5 about "Constracting a Temporary System". I downloaded all needed sources to /mnt/lfs/sources. When i want to start ...
0
votes
1answer
63 views

source bash string instead of file

I want to source a bash function from a string instead of a file at the command line, so instead of this: source file.sh I want to do something like: source `cat <<EOF some_func(){ echo ...
0
votes
1answer
55 views

How to ingore rpmfusion source repos when downloading source package

I have few rpm repos in my Fedora installation and I've want to download source package and got error that synchronization of rpmfusion-free-updates-source and rpmfusion-nonfree-updates-source failed. ...
0
votes
1answer
57 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 ...
0
votes
2answers
494 views

Using source command in script but defining the input file in the command line of a terminal

I have a script at the moment that reads in variables and then operates on them like the following; #!bin/bash a=10 b=15 c=20 d=a*b+c echo $d However I would like to split this up into an input ...
0
votes
1answer
26 views

Configure mount to recognize self compiled fuse exfat

after removing the default exfat-fuse package version 1.2.5 from my Debian Stretch system and replacing it with version 1.3.0, compiled from source, running mount using type exfat results to an ...
2
votes
1answer
329 views

Sourcing a script containing `echo ${BASH_SOURCE[0]}` still shows the pathname of the sourced script

I have a bash script, which outputs the pathname of the script itself $ cat f4.sh #! /bin/bash echo "${BASH_SOURCE[0]}" I imagine that if I source the script in another script and run the other ...
0
votes
1answer
42 views

How is source code reviewed/audited, prior to inclusion in linux mainline?

An answer to this question would provide insight and references about how the linux kernel source code is reviewed prior to be released? Particular interesting aspect of this question to me are: Who ...
1
vote
1answer
37 views

Locating source files for arch linux executables

Is there a simple way to retrieve the source files that built a given /usr/bin/* command (meaning also those placed there via AUR)? Is there a command I can issue through maybe a pacman wrapper that ...
1
vote
1answer
43 views

Difference in openjdk-6, openjdk-7, and openjdk-8 in terms of SLOC count?

I'm calculating SLOC (Source Lines of Code) count of some of the packages for my research purposes. I'm downloading source of packages for different years from Debian snapshots. For most of the ...
0
votes
0answers
124 views

Adding some alias with bash script and sourcing the .bashrc file from within the script

Hi I am trying to automate some post-installation tasks and to have them documented on my github account. That's why I am writing a script to install some additional packets and to add couple of new ...
0
votes
2answers
87 views

Where should I put my source code? [duplicate]

I am using multiple tools developed by the suckless people which are not configured via a config file but via their source code (in this case C) and then simply installed through make install. So I am ...
0
votes
1answer
141 views

How to automate a source command

I have to run a command every morning after I log on to the server to enable certain company specific functionalities. The command looks like this: source /data/dev/int/default/somethingsomething.env ...
1
vote
0answers
539 views

Could NOT find LLVM (missing: LLVM_DIR)

I'm trying to install darktable from source on Fedora 27. I've installed all dependencies, but when I run cmake I got error: -- Could NOT find LLVM (missing: LLVM_DIR) CMake Warning at CMakeLists.txt:...
0
votes
1answer
96 views

The command can't execute in vim environment

The mycommand is a function in my lib/work.sh file. cat .bashrc source /home/lib/work.sh It means that mycommand was sourced in automatically. mycommand can execute in terminal. Now to edit a file ...
0
votes
1answer
144 views

Ubuntu from scratch

Is it possible to compile each and every package (that come up with Ubuntu Installation ISO) from scratch and come up with home-made-compiled Ubuntu variant ? Where I can see, what config parameters/...
2
votes
2answers
57 views

Source of Debian packages older than 2005

I want to download packages for years 2000, 2001, 2002, 2003 and 2004 but Debian snapshots are maintained from March 2005 only. How can I get the source of packages before 2005?
3
votes
2answers
460 views

How to correctly install Git 2.17.1 from source on CentOS 7.4?

I to install the latest available git today (git-2.17.1), on CentOS 7.4, because some applications are complaining for it, and not only. I'm trying to install git-2.17.1 from source on CentOS 7.4. ...
1
vote
1answer
49 views

Does `exec < somefile` behave the same as `source somefile`

$ cat somefile sleep 100 $ exec < somefile $ sleep 100 Does exec < somefile behave the same as source somefile except that its invoking process terminates upon its completion? Thanks.
0
votes
1answer
129 views

Error Whle compiling software. “Unable to find the 'dump_syms'”

I am trying to compile the Atom text editor from source, and I'm stuck at the following error. I think it's related to java. I've looked online for information on this particular error, but I haven't ...
0
votes
5answers
98 views

Strategy for forgetting to run a script with `source`?

I would like to write a script to access the state of an interactive bash shell, e.g. the script contains commands such as jobs, dirs, pushd and popd. So my strategy is to source the script in the ...
0
votes
0answers
24 views

How can we get the pathname to a script within itself, when `source` it? [duplicate]

I have a script to verify the positional parameters it receives $ cat myscript #! /bin/bash echo $0 echo $1 echo $2 When I run it via different ways $ ./myscript ./myscript $ bash ./myscript ....
0
votes
1answer
95 views

What's the best, secure way to share some .bashrc source between users and root?

How's the best, secure way to have /root/.bashrc and /home/user/.bashrc include a common .bash.shared file? In other words like this: /root/.bashrc --sources--> .bash.shared <--sources-- /...
2
votes
1answer
9k views

How to Change Mirrors in sources.list Automatically? [duplicate]

This is what my sources.list looks like currently: deb http://ftp.us.debian.org/debian/ jessie main deb-src http://ftp.us.debian.org/debian/ jessie main deb http://security.debian.org/ jessie/...
0
votes
1answer
57 views

Bash function call from script file fails, while call from terminal succeeds

In Ubuntu 16.04 with Bash I created a file $HOME/ulcwe/software_internal.sh that contains a function rse() without a call. The file is sourced in ~/.bashrc (which was sourced by itself) and I can can ...
-2
votes
1answer
57 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
votes
1answer
65 views

Correct way to call a Bash function from all sessions

I use Ubuntu with Bash and I have a file hosting a script with 5 functions. Sometimes I want to call some function of these functions (but not all of them), directly from the CLI. I could say it's ...
-1
votes
1answer
51 views

I source a file each day - is it dangerous by means of filling up the disk drive? [closed]

I source a file each day - is it dangerous by means of filling up the disk drive (if something is written anywhere)? Someone once criticized me here in StackExchange for sourcing a file each minute (...
1
vote
1answer
297 views

Debian script to download source of installed packages fails

I used the next script from askububtu to automate the download of all installed packages in a fresh debian 9.3 LXDE installation. From here: #!/bin/bash dpkg --get-selections | while read line do ...
0
votes
0answers
68 views

How does FreeBSD create regional files used to define charset sort order (LC_COLLATE/locale/colldef)

Disclaimer: I am aware this is advanced stuff, "off the beaten track, and could blow up my system, cause a rain of frogs, or have unknowable strange unpredictable side effects. That said..... ...
1
vote
2answers
134 views

How to make apt read a different sources.list

I am trying to install a program for my user because I don't have sudo privileges. I tried to install dos2unix package as follows: apt-get source dos2unix ./configure --prefix=$HOME/myapps make ...
-2
votes
1answer
53 views

Sourcing works manually but fails when done from script [duplicate]

Using curl as in: bash <(curl -s https://raw.githubusercontent.com/user/repo/master/script.sh | tr -d '\r') I executed some remote script. The remote script includes the following two aspects: ...