The static variant of libudev

Asked by Bram Stolk

Is there a reason that the package libudev-dev does not come with a static library?

I expect it to pack a libudev.a file, in addition to the shared objects.

Other libraries (like the libhidapi-hidraw that lives on top of libudev, e.g.) have a static variant in their dev package.

I wonder why this is not the case for libudev.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu systemd Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said :
#1

Which version of Ubuntu do you have?
Here is the packages for libudev:
https://packages.ubuntu.com/search?keywords=libudev&searchon=names&suite=focal&section=all
Here is the package for libhidapi-hidraw:
https://packages.ubuntu.com/focal/libhidapi-hidraw0

Revision history for this message
Bram Stolk (b-stolk) said :
#2

I have Ubuntu 21.10.

I am looking for the static library. The dev package does not have it.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

As far as I can see on launchpad, starting with Ubuntu precise (12.04) libudev was no longer built from the "udev" source, but has become part of "systemd".

It seems that from that moment onwards the libudev static library (.a and .la) was not made available any more.
Also in Debian the package does not contain a static library.

If you want that to be changed, you most probably have to start at Debian.

Revision history for this message
Bram Stolk (b-stolk) said :
#4

Thank you, I will file a bug report with Debian. I see no reason why there would not be a static lib for this.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

For reference the bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000600

quote:
upstream is strictly against static linking, thus there is no static library anymore and we won't patch downstream to add one.
Those marking as wontfix.

I assume that Ubuntu's point of view in that matter will not deviate from Debian.

Can you help with this problem?

Provide an answer of your own, or ask Bram Stolk for more information if necessary.

To post a message you must log in.