From: Adolf Belka <adolf.belka@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: libnfnetlink and libmnl
Date: Wed, 06 Apr 2022 18:52:22 +0200 [thread overview]
Message-ID: <23823e37-ef7e-eae7-015c-4dd6a018d3ea@ipfire.org> (raw)
In-Reply-To: <52ec4aad-7ed8-fb3d-05e4-7f16e53bbd53@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 2800 bytes --]
Hi Michael,
On 06/04/2022 17:38, Adolf Belka wrote:
> Hi Michael,
>
> On 06/04/2022 16:42, Michael Tremer wrote:
>> Hello Adolf,
>>
>>> On 6 Apr 2022, at 14:18, Adolf Belka <adolf.belka(a)ipfire.org> wrote:
>>>
>>> Hi All,
>>>
>>> We have both libnfnetlink and libmnl in IPFire. I have just done an update of libmnl.
>>> There is an update of libnfnetlink but it also says that libnfnetlink is still deprecated and should preferably be replaced by libmnl
>>
>> Oh this is very interesting.
>>
>> It looks like libmnl was introduced for conntrack-tools in this commit:
>>
>> commit a10733a5d8580b6ab8cff46235daab6547723781
>> Author: Arne Fitzenreiter <Arne_F(a)ipfire.org>
>> Date: Thu Jan 3 14:27:11 2013 +0100
>>
>> conntrack-tools: add conntrack and needed deps.
>>
>> You can try to comment out libnfnetlink and libmnl and run a clean build and see if it goes through. If so, then we can safely drop them.
>>
It didn't go clean. It looks like libnetfilter_queue requires both libmnl and libnfnetlink for compiling/building different parts of libnetfilter_queue. I don't know if it is required for running but it wouldn't surprise me so both these will have to stay.
It's interesting that the group that says libmnl should be used in preference to libnfnetlink then go and require both to still be used for one of their programs.
I will continue looking through other files that you highlighted.
Regards,
Adolf.
>>> I have run ./make.sh find-dependencies on both libmnl.so.0.2.0 and libnfnetlink.so.0.2.0 and neither came up with anything. Doing a grep on the git repository for mnl or nfnetlink also didn't indicate anything using these.
>>> How are they being used and what needs to be done to change the usage of libnfnetlink to libmnl?
>>
>> See above.
>>
>> I believe there are a couple of other candidates for this which we should have a look at. There is libdnet that I noticed a little while ago, but I am sure there will be plenty more when looking through the package list:
>>
>> libaio
>> libart
>> libnet
>> libnl (and if something depends on it, can it not use libnl-3?)
>> libpri (if I remember correctly this was a dependency of asterisk)
>> libsolv can absolutely go for the moment, we don’t need it
>> netpbm?
>> pigz (we don’t use it anywhere since we are compressing images with XZ b302b9a695e391477eab0cb2343f3ba1b1ba1989)
>> sdparm
>>
>> If you have the time, maybe you can have a look at what is used somewhere and what can be dropped?
> I will give that a go and use your inputs as starting points.
>
> Regards,
> Adolf
>>
>> This won’t shrink the distribution by a massive amount, but why should we carry around dead code?
>>
>> Best,
>> -Michael
>>
>>> Regards,
>>> Adolf
>>
next prev parent reply other threads:[~2022-04-06 16:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-06 13:18 Adolf Belka
2022-04-06 14:42 ` Michael Tremer
2022-04-06 15:20 ` Tom Rymes
2022-04-06 15:54 ` Michael Tremer
2022-04-06 15:38 ` Adolf Belka
2022-04-06 16:52 ` Adolf Belka [this message]
2022-04-06 17:02 ` Michael Tremer
2022-04-07 11:19 ` Adolf Belka
2022-04-07 15:37 ` Tom Rymes
2022-04-07 15:43 ` Adolf Belka
2022-04-07 15:53 ` Michael Tremer
2022-04-07 15:59 ` Adolf Belka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23823e37-ef7e-eae7-015c-4dd6a018d3ea@ipfire.org \
--to=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox