<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7184&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Hacking Build-Depends of Debian source packages]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7184</link>
		<description><![CDATA[The most recent posts in Hacking Build-Depends of Debian source packages.]]></description>
		<lastBuildDate>Fri, 09 May 2025 11:40:35 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Hacking Build-Depends of Debian source packages]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55535#p55535</link>
			<description><![CDATA[<p>There might be obstacles on the road to freedom. You may get problems like this:</p><div class="codebox"><pre><code>$ dpkg-buildpackage -b
...
fatal error: toml++/toml.hpp: No such file or directory
    2 | #include &quot;toml++/toml.hpp&quot; </code></pre></div><p>To overcome this obstacle you can simply borrow &quot;toml++/toml.hpp&quot; from Debian testing and compile the package you need on Devuan stable. For some strange reason, this method usually works.</p><p>You can find &quot;toml++/toml.hpp&quot; in&#160; a Debian (testing=trixie) package:</p><p>Package: libtomlplusplus-dev (3.4.0+ds-0.2 and others)<br />_https://packages.debian.org/trixie/libtomlplusplus-dev</p><div class="codebox"><pre><code>$ tree -L 4 libtomlplusplus-dev_3.4.0+ds-0.2+b1_amd64
libtomlplusplus-dev_3.4.0+ds-0.2+b1_amd64
├── DEBIAN
│   ├── control
│   └── md5sums
└── usr
    ├── include
    │   └── toml++
    │       ├── impl
    │       ├── toml.h
    │       └── toml.hpp
    ├── lib
    │   └── x86_64-linux-gnu
    │       ├── cmake
    │       ├── libtomlplusplus.so -&gt; libtomlplusplus.so.3
    │       └── pkgconfig
    └── share
        ├── doc
        │   └── libtomlplusplus-dev
        └── doc-base
            └── libtomlplusplus-dev.tomlplusplus </code></pre></div><p>You can download this package, and extract &quot;usr&quot; to a folder like this:</p><div class="codebox"><pre><code>$HOME/.CTools/LIBS/
$HOME/.CTools/LIBS/usr/include/toml++/toml.hpp </code></pre></div><p>Then you can add &quot;$HOME/.CTools/LIBS/usr/include&quot; to $CPLUS_INCLUDE_PATH</p><p>The secret knowledge is here:<br />_https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html</p><p>It is very simple:</p><div class="codebox"><pre><code>$ echo $CPLUS_INCLUDE_PATH
                           # It is empty

$ export CPLUS_INCLUDE_PATH=&quot;$HOME/.CTools/LIBS/usr/include&quot; </code></pre></div><p>Verify the INCLUDE_PATH for g++ with a secret command:</p><div class="codebox"><pre><code>echo | gcc -Wp,-v -xc++ - -fsyntax-only</code></pre></div><div class="codebox"><pre><code>$ echo | gcc -Wp,-v -xc++ - -fsyntax-only
ignoring duplicate directory &quot;/usr/include/x86_64-linux-gnu/c++/12&quot;
ignoring nonexistent directory &quot;/usr/local/include/x86_64-linux-gnu&quot;
ignoring nonexistent directory &quot;/usr/lib/gcc/x86_64-linux-gnu/12/include-fixed&quot;
ignoring nonexistent directory &quot;/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include&quot;
#include &quot;...&quot; search starts here:
#include &lt;...&gt; search starts here:

 /home/&lt;YOUR USER NAME&gt;/.CTools/LIBS/usr/include
 /usr/include/c++/12
 /usr/include/x86_64-linux-gnu/c++/12
 /usr/include/c++/12/backward
 /usr/lib/gcc/x86_64-linux-gnu/12/include
 /usr/local/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list. </code></pre></div><p>Now everything works. The &quot;fatal error&quot; had gone away.</p><p>The question remains: why does this method work. It looks like they do not update software on Debian stable. They have restricted resources, and, of course, they have to fix problems caused by systemd, pipewire and pulseaudio.</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Fri, 09 May 2025 11:40:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55535#p55535</guid>
		</item>
	</channel>
</rss>
