1 |
On Wed, Nov 9, 2016 at 2:11 AM, Zac Medico <zmedico@g.o> wrote: |
2 |
> On 11/08/2016 10:44 PM, Daniel Campbell wrote: |
3 |
>> On 11/08/2016 05:02 PM, Rich Freeman wrote: |
4 |
>>> On Tue, Nov 8, 2016 at 7:54 PM, Patrick McLean <chutzpah@g.o> wrote: |
5 |
>>>> On Tue, 8 Nov 2016 17:41:02 -0600 |
6 |
>>>> William Hubbs <williamh@g.o> wrote: |
7 |
>>>>> |
8 |
>>>>> The plan, once the first release is out, is to rewrite this utility |
9 |
>>>>> in a better language. I'm considering C, but if I am comfortable by |
10 |
>>>>> that time in Go or Rust, I may use one of them. |
11 |
>>>>> |
12 |
>>>> |
13 |
>>>> For a low-level utility that is likely going to be in the default |
14 |
>>>> @system set, please use C. Adding dependencies on the go or rust |
15 |
>>>> compilers for this is not very nice. |
16 |
>>>> |
17 |
>>> |
18 |
>>> Assuming I'm looking at the right sources, the actual systemd |
19 |
>>> implementation is only 2342 lines of C. Glancing at the includes, I'm |
20 |
>>> not convinced it even requires systemd to run. |
21 |
>>> |
22 |
>>> You might want to take a look at either just creating a split ebuild, |
23 |
>>> or tweaking it to work standalone if necessary. |
24 |
>>> |
25 |
>> Is that including any headers and/or libraries shared by the systemd |
26 |
>> umbrella? |
27 |
>> |
28 |
> |
29 |
> It has a huge list of includes for internal libraries, from acl-util.h |
30 |
> to util.h: |
31 |
> |
32 |
> https://github.com/systemd/systemd/blob/master/src/tmpfiles/tmpfiles.c |
33 |
|
34 |
Also, it is linked against libsystemd-shared.so, which is a 2.1 M blob |
35 |
on my system. For comparison, libc-2.23.so is 1.7 M. |