<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 30, 2020 at 6:40 PM Michael Biebl <<a href="mailto:biebl@debian.org" target="_blank">biebl@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Felipe<br>
<br>
Am 30.01.20 um 22:30 schrieb Felipe Sateler:<br>
> <br>
> <br>
> On Thu, Jan 30, 2020 at 1:39 PM Michael Biebl <<a href="mailto:biebl@debian.org" target="_blank">biebl@debian.org</a><br>
> <mailto:<a href="mailto:biebl@debian.org" target="_blank">biebl@debian.org</a>>> wrote:<br>
> <br>
>Â Â Â Am 28.01.20 um 17:27 schrieb Ansgar:<br>
>Â Â Â > On Tue, 2020-01-28 at 16:51 +0100, Michael Biebl wrote:<br>
>Â Â Â >> Am 28.01.20 um 14:59 schrieb Ansgar:<br>
>Â Â Â >>> I tried linking systemd-{sysusers,tmpfiles} statically against<br>
>   >>> systemd's private library earlier this month. It increases the<br>
>Â Â Â >>> binaries size by ~100 kB (compared to Installed-Size: 14.2 MB of<br>
>Â Â Â >>> systemd that is just one percent).<br>
>Â Â Â >><br>
>Â Â Â >> Is that 100K per binary?<br>
>Â Â Â ><br>
>Â Â Â > I checked my notes at it was 100 kB per binary: they are 212 kB larger<br>
>   > (sysusers 51 kB → 137 kB, tmpfiles 84 kB → 212 kB); I tested with<br>
>Â Â Â > systemd 243-8.<br>
>Â Â Â ><br>
>Â Â Â > It might be possible to make it a bit smaller if one was to somehow<br>
>Â Â Â > link libsystemd0 for functions available there (libsystemd-shared<br>
>Â Â Â > currently duplicates those).<br>
> <br>
> <br>
> That is not possible. There is global state that is not to be shared.<br>
> See <a href="https://github.com/systemd/systemd/pull/3516#issuecomment-227482524" rel="noreferrer" target="_blank">https://github.com/systemd/systemd/pull/3516#issuecomment-227482524</a><br>
<br>
What's your thought on how to solve this libsystemd-shared issue should<br>
we consider splitting out systemd-{sysusers,tmpfiles}<br>
<br>
- link statically (and carry a downstream patch for eternity)<br>
- move libsystemd-shared to systemd-utils and risk the breakage that can<br>
result from a partial/aborted upgrade<br>
- copy, instead of move, the binaries + libsystemd-shared and make the<br>
resulting systemd-utils package Conflict with systemd (instead of having<br>
systemd depend on systemd-utils)<br>
- something else?<br></blockquote><div><br></div><div>I tried linking statically the "can run without systemd-pid1 tools" with the attached patch.</div><div><br></div><div>Disk usage appears to increase by about 400 kb:</div><div>% dpkg --info systemd_244.1-1_amd64.deb|grep Installed                        <br> Installed-Size: 13908<br>% dpkg --info ../systemd_244-3_amd64.deb|grep Installed <br> Installed-Size: 14319<br></div></div><div><br></div>Maybe upstream can be persuaded to merge something like this?<br clear="all"><div><br></div>-- <br><div dir="ltr"><br>Saludos,<br>Felipe Sateler</div></div>