<?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=3560&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Why apt still links to libsystemd0?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3560</link>
		<description><![CDATA[The most recent posts in Why apt still links to libsystemd0?.]]></description>
		<lastBuildDate>Fri, 05 Jun 2020 18:11:16 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22398#p22398</link>
			<description><![CDATA[<div class="quotebox"><cite>criminalscum wrote:</cite><blockquote><div><p>They are attempting (not necessarily successfully) to prevent shutdowns/reboots while package manager is running</p></div></blockquote></div><p>Ah, interesting. Thanks!</p><div class="quotebox"><cite>criminalscum wrote:</cite><blockquote><div><p>i don&#039;t know how elogind is going to prevent shutdown/reboot if init system isn&#039;t systemd</p></div></blockquote></div><p>It probably won&#039;t. AFAIUI the developers have made the decision to stub out most of the (unwanted) extra functionality offered by systemd.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 05 Jun 2020 18:11:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22398#p22398</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22396#p22396</link>
			<description><![CDATA[<p>Hi</p><p>Devuan is based on Debian. The goal of Devuan is to be free of systemd in order to let people decide which init system to use. That is why libsystemd0 is an empty package. The other goal is to keep things simple (it means not to maintain to many packages). It is in the mind of the developers of apt (which of course is from debian and ubuntu) that the decisions of what apt should depend upon is taking place. I am sure you can find more information on debians apt-devel mailing list. It will be a lot of work with no practical benefit to remove the empty systemd0 package. If it easy to do without removing a lot of packages I am sure it was already done.</p><p>I hope this answer was helpfull</p><p>Have a nice day<br />Lars H</p>]]></description>
			<author><![CDATA[dummy@example.com (larsH)]]></author>
			<pubDate>Fri, 05 Jun 2020 17:21:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22396#p22396</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22395#p22395</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>bgstack15 wrote:</cite><blockquote><div><p>would you know any of the motivations of the apt maintainers who made the choice to link apt to libsystemd0?</p></div></blockquote></div><p>No but I would hazard a guess that it is related to the systemd timers now supplied with the package (or perhaps the new sandboxing feature).</p></div></blockquote></div><p>They are attempting (not necessarily successfully) to prevent shutdowns/reboots while package manager is running, but that code depends on systemd-logind (or maybe elogind) and doesn&#039;t work if, for example, dbus isn&#039;t running or something else went wrong. Also i don&#039;t know how elogind is going to prevent shutdown/reboot if init system isn&#039;t systemd.</p><p>The code is here: <a href="https://github.com/Debian/apt/blob/cb608f5c1e8af4f6fe68bc31cb96013308a4003b/apt-pkg/contrib/fileutl.cc#L3444" rel="nofollow">https://github.com/Debian/apt/blob/cb60 … l.cc#L3444</a></p><p>Another thing they do with systemd is that they track if package manager was invoked in interactive mode/shell or not and include that info into HTTP requests to repo servers. That code is also completely depends on systemd and won&#039;t work if you are not running systemd.</p><p><a href="https://github.com/Debian/apt/blob/cb608f5c1e8af4f6fe68bc31cb96013308a4003b/methods/http.cc#L981" rel="nofollow">https://github.com/Debian/apt/blob/cb60 … tp.cc#L981</a></p><p>Besides that i didn&#039;t find any more systemd call in apt.</p>]]></description>
			<author><![CDATA[dummy@example.com (criminalscum)]]></author>
			<pubDate>Fri, 05 Jun 2020 17:17:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22395#p22395</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22391#p22391</link>
			<description><![CDATA[<div class="quotebox"><cite>bgstack15 wrote:</cite><blockquote><div><p>would you know any of the motivations of the apt maintainers who made the choice to link apt to libsystemd0?</p></div></blockquote></div><p>No but I would hazard a guess that it is related to the systemd timers now supplied with the package (or perhaps the new sandboxing feature).</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 05 Jun 2020 16:37:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22391#p22391</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22379#p22379</link>
			<description><![CDATA[<p>@Head_on_a_Stick, thank you! I know the term dynamic linking, but that page has more information than I&#039;ll be able to absorb for a long, long time! But specifically, would you know any of the motivations of the apt maintainers who made the choice to link apt to libsystemd0?</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Fri, 05 Jun 2020 12:17:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22379#p22379</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22370#p22370</link>
			<description><![CDATA[<div class="quotebox"><cite>bgstack15 wrote:</cite><blockquote><div><p>Would anyone well-versed in the subject try to explain it to me?</p></div></blockquote></div><p>Not sure about &quot;well versed&quot; but I can tell you that the apt binary is linked to /lib/x86_64-linux-gnu/libsystemd.so.0 during compilation — this is because GNU/Linux uses <a href="https://www.sciencedirect.com/topics/computer-science/dynamic-linking" rel="nofollow">dynamic linking</a>.</p><p>In Devuan&#039;s case /lib/x86_64-linux-gnu/libsystemd.so.0 is symlinked to /usr/lib/x86_64-linux-gnu/libelogind.so.0 so at no point is systemd invoked in any way.</p><p>EDIT: better link.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 05 Jun 2020 09:50:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22370#p22370</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22363#p22363</link>
			<description><![CDATA[<div class="quotebox"><cite>bgstack15 wrote:</cite><blockquote><div><p>I am concerned that apt has been modified to use systemd. Would anyone well-versed in the subject try to explain it to me? I will also at some point to try to look at the source, but if anybody could summarize, that would help everyone else out!</p></div></blockquote></div><p>Apt has not been modified to use systemd. I have no trace of sysemd on my computer (running beowulf), not even libsystemd0, and apt works just fine. I really don&#039;t know what else to say.</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Fri, 05 Jun 2020 00:13:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22363#p22363</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22360#p22360</link>
			<description><![CDATA[<div class="quotebox"><cite>criminalscum wrote:</cite><blockquote><div><p>Does it link to libsystemd0 because apt in Devuan is build from older source code or is that because apt in Devuan is built on Debian that has systemd?</p></div></blockquote></div><p>The <strong>apt</strong> package in Devuan comes directly from Debian; it is an unmodified Debian package.</p><p>Phil</p>]]></description>
			<author><![CDATA[dummy@example.com (pcalvert)]]></author>
			<pubDate>Thu, 04 Jun 2020 23:07:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22360#p22360</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22357#p22357</link>
			<description><![CDATA[<p>I am concerned that apt has been modified to use systemd. Would anyone well-versed in the subject try to explain it to me? I will also at some point to try to look at the source, but if anybody could summarize, that would help everyone else out!</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Thu, 04 Jun 2020 22:42:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22357#p22357</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22356#p22356</link>
			<description><![CDATA[<div class="quotebox"><cite>criminalscum wrote:</cite><blockquote><div><p>It&#039;s installed by libelogind0.</p><div class="codebox"><pre><code>$ ldd $(which apt) | grep -i systemd
$ dpkg -S /usr/lib/x86_64-linux-gnu/libsystemd.so.0</code></pre></div></div></blockquote></div><p>That&#039;s not a problem. It&#039;s essentially a &quot;fake&quot; systemd component -- libelogind0 put that there because some software expects libsystemd0 to be present. The software &quot;thinks&quot; it&#039;s &quot;talking&quot; to libsystemd0, but it&#039;s really &quot;talking&quot; to libelogind0.</p><p>Phil</p>]]></description>
			<author><![CDATA[dummy@example.com (pcalvert)]]></author>
			<pubDate>Thu, 04 Jun 2020 22:24:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22356#p22356</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22354#p22354</link>
			<description><![CDATA[<div class="quotebox"><cite>anticapitalista wrote:</cite><blockquote><div><p>Isn&#039;t it a symbolic link to libelogind.so.0?</p></div></blockquote></div><p>Yes, you are correct.</p><p>Phil</p>]]></description>
			<author><![CDATA[dummy@example.com (pcalvert)]]></author>
			<pubDate>Thu, 04 Jun 2020 22:14:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22354#p22354</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22312#p22312</link>
			<description><![CDATA[<p>Nice. Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (criminalscum)]]></author>
			<pubDate>Thu, 04 Jun 2020 16:04:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22312#p22312</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22309#p22309</link>
			<description><![CDATA[<p>This problem is fixed in Chimaera and will be also in the Beowulf point release (coming soon) iirc</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Thu, 04 Jun 2020 15:41:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22309#p22309</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22308#p22308</link>
			<description><![CDATA[<div class="quotebox"><cite>HevyDevy wrote:</cite><blockquote><div><p>I dont think there is any way of getting around this as devuan is a fork of debian. I believe it would require a rewrite of the code and a massive downgrade of binaries in the repos.</p></div></blockquote></div><p>No, it appears to be just a matter of recompiling apt with `HAVE_SYSTEMD` unset. It is unset when systemd isn&#039;t present. I have compiled apt from source code on Devuan (Beowulf) and apt doesn&#039;t link to libsystemd0 anymore.</p><p>You can try it yourself, source code is here: <a href="https://github.com/Debian/apt" rel="nofollow">https://github.com/Debian/apt</a></p><p>You will need `triehash` somewhere in your path, utility itself is here: <a href="https://github.com/julian-klode/triehash" rel="nofollow">https://github.com/julian-klode/triehash</a>, then `ln -sf /path/triehash.pl /otherpath/bin/triehash` and `/otherpath/bin` has to be in $PATH so cmake can see it when configuring apt build. The rest of the packages needed for build can be installed from Devuan repos.</p>]]></description>
			<author><![CDATA[dummy@example.com (criminalscum)]]></author>
			<pubDate>Thu, 04 Jun 2020 15:38:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22308#p22308</guid>
		</item>
		<item>
			<title><![CDATA[Re: Why apt still links to libsystemd0?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=22307#p22307</link>
			<description><![CDATA[<p>Isn&#039;t it a symbolic link to libelogind.so.0?</p>]]></description>
			<author><![CDATA[dummy@example.com (anticapitalista)]]></author>
			<pubDate>Thu, 04 Jun 2020 15:31:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=22307#p22307</guid>
		</item>
	</channel>
</rss>
