The officially official Devuan Forum!

You are not logged in.

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

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

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

Board footer