The officially official Devuan Forum!

You are not logged in.

#1 2025-05-07 01:52:20

igorzwx
Member
Registered: 2024-05-06
Posts: 174  

The road to freedom

Knowledge and ignorance—
        a man who knows them both together,
    Passes beyond death by ignorance,
        and by knowledge attains immortality.
            Isha Upanishad, Verse 12

The road to freedom is short and straightforward. Read PKGBUILs of AUR packages, and do the same on Devuan.

It doesn't always work. Sometimes it is much better with Debian sources, if you know the secret commands. Debian packaging is a sacred ritual, not a secular one. It requires initiation into secret knowledge. If you are not initiated, you are doomed to dwell in ignorance and doubt. In essence, initiation is a rite of passage marking entrance into a sort of esoteric society. In particular, it signifies a transformation in which the initiate is 'reborn' into a new role.

Step 1: Install a secret package

sudo apt-get install packaging-dev 

Step 2: Download the source you need. For example:

Debian testing (Trixie)
_https://packages.debian.org/source/testing/gnuplot

Source Package: gnuplot (6.0.2+dfsg1-1)

Debian Package Source Repository (Browsable)

https://salsa.debian.org/science-team/gnuplot 
mkdir BUILD_GIT

cd BUILD_GIT

git clone https://salsa.debian.org/science-team/gnuplot.git --depth 1 
$ ls
gnuplot

$ du -sh *
17M	gnuplot

Step 3: Install "Build-Depends"

cd gnuplot

mk-build-deps
$ ls *.deb
gnuplot-build-deps_6.0.2+dfsg1-1_all.deb 

Install gnuplot-build-deps*.deb

sudo dpkg -i gnuplot-build-deps_6.0.2+dfsg1-1_all.deb 

You may notice a problem:

$ sudo dpkg -i gnuplot-build-deps_6.0.2+dfsg1-1_all.deb
...
dpkg: error processing package gnuplot-build-deps (--install):
 dependency problems - leaving unconfigured 

Fix it with a magic command:

sudo apt -f install

It may remove "emacs-gtk" and install "emacs-nox" instead. You can reinstall it later, or remove them both.

Emacs - Installation options on Linux and Lucid Emacs vs. XEmacs
_https://youtu.be/ugFtz7XOOWU?t=25s

$ mv -v gnuplot-build-deps_6.0.2+dfsg1-1_all.deb ../ 

Step 4: Prepare the source

Execute secret commands:

export QUILT_PATCHES=debian/patches

quilt push -a 

The output on terminal should look like this:

$ quilt push -a
Applying patch 04_fix_libexecdir.diff
patching file src/Makefile.am
...
Applying patch 50_no-webp_figures-in-documentation.patch
patching file docs/Makefile.am

Now at patch 50_no-webp_figures-in-documentation.patch 

Step 5: Build GnuPlot

dpkg-buildpackage -b 
$ ls -1 ../*.deb
../gnuplot_6.0.2+dfsg1-1_all.deb
../gnuplot-build-deps_6.0.2+dfsg1-1_all.deb
../gnuplot-data_6.0.2+dfsg1-1_all.deb
../gnuplot-doc_6.0.2+dfsg1-1_all.deb
../gnuplot-nox_6.0.2+dfsg1-1_amd64.deb
../gnuplot-nox-dbgsym_6.0.2+dfsg1-1_amd64.deb
../gnuplot-qt_6.0.2+dfsg1-1_amd64.deb
../gnuplot-qt-dbgsym_6.0.2+dfsg1-1_amd64.deb
../gnuplot-x11_6.0.2+dfsg1-1_amd64.deb
../gnuplot-x11-dbgsym_6.0.2+dfsg1-1_amd64.deb 

Step 6: Install GnuPlot

cd ../
sudo dpkg -i gnuplot_6.0.2+dfsg1-1_all.deb gnuplot-data_6.0.2+dfsg1-1_all.deb gnuplot-qt_6.0.2+dfsg1-1_amd64.deb 

Step 7: Test

You can test GnuPlot with Maxima

$ maxima

(%i1) plot2d([tanh(20*sin(x))], [x,-10*%pi,10*%pi], [y,-1.1,1.1], [plot_format, gnuplot])$

(%i3) quit(); 

You can export plots from GnuPlot window to SVG format. It works with gnuplot-qt
Click on "Export" icon (the top left corner of GnuPlot window), and select "Export to SVG" in drop down menu.

Doing Graphics with Maxima - Maxima Tutorial

http://www.bildungsgueter.de/MaximaEN/Pages/GraphicsSurvey01.htm

Last edited by igorzwx (2025-05-07 03:25:39)

Offline

#2 2025-06-29 23:16:53

tux_99
Member
Registered: 2025-06-17
Posts: 9  

Re: The road to freedom

Hi Igor, unfortunaltely already the first step doesn't work for me:

root@vm:~# apt-get install packaging-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package packaging-dev
root@vm:~#

I'm on Excalibur, does this guide maybe not apply to Excalibur?

Offline

#3 2025-06-29 23:48:38

igorzwx
Member
Registered: 2024-05-06
Posts: 174  

Re: The road to freedom

It is not a problem. It is a meta-package.
You can install everything you need manually

➤ apt info packaging-dev
Package: packaging-dev
...
Depends: build-essential, debhelper, devscripts, dput-ng | dput | dupload, lintian, sbuild | cowbuilder | pbuilder, quilt
Recommends: apt-file, autoconf, automake, autopkgtest, autotools-dev, bzr-debian, cdbs, cmake, debian-policy, developers-reference | developers-reference-de | developers-reference-fr | developers-reference-ja, dh-autoreconf, dh-make, git-buildpackage, gnome-pkg-tools, gnupg, libtool, piuparts, pkg-kde-tools, svn-buildpackage
Suggests: mercurial-buildpackage

You need "Depends" and "Recommends".

Do not forget quilt

sudo apt install quilt
➤ dpkg -l | grep dput
ii  dput             1.1.3           all          Debian package upload tool
➤ dpkg -l | grep sbuild
ii  libsbuild-perl         0.85.0            all          Library for building Debian binary packages from Debian sources
ii  sbuild                 0.85.0            all          Tool for building Debian binary packages from Debian sources

The available Build-Deps for gtk3-nocsd can be installed with "apt build-dep"

apt build-dep gtk3-nocsd --simulate
sudo apt build-dep gtk3-nocsd

Last edited by igorzwx (2025-06-30 00:28:06)

Offline

Board footer