Re: [ANNOUNCE] udev 048 release

Greg KH
2004-12-08T22:06:47Z

On Wed, Dec 08, 2004 at 10:56:27PM +0100, Tomasz K?oczko wrote:
>
> First: is it any real reason for use by udev private copy libsysfs which
> is statically linked with udev ?

Yes, the "system" version of libsysfs is not always the same one that
udev wants. Over the past year or so, sometimes it has varied a lot.
Hopefully now we are properly synced up, but I still trust our own
version, not any other version (this really matters on boxes that have
older versions of libsysfs, like SLES 9 and friends.)

> I'm using udev with shared libsysfs for a months and all works correcly.

Great. Notice any code size savings? Yeah, it's not really all that
much. You also need static linking when using klibc to get a very tiny
udev for your boot initramfs image.

> If no reasons patches for using system avalaible libsysfs for udev 048
> can be downloaded from:
>
> http://cvs.pld.org.pl/SOURCES/udev-uses_system_libsysfs.patch?rev=1.7
> http://cvs.pld.org.pl/SOURCES/udev-extras_scsi_id_sysfs.patch?rev=1.1
>
> Also after aplying this patches libsysfs/ subdirectory can be removed from
> udev source tree.

Will it still properly build with klibc?

Also, please realize that libsysfs is really not on many machines, due
to it only being used by 1 other program at this time. So any memory
size savings is very limited.

> Second: in current udev Makefile is used direct stripping linked binaries.
> Why ?

Smaller size :)

> It makes harder packaging udev if someone will try generate udev in
> for example rpm form with debug info in separated udev-debug package.

I'm sure those who package up rpms of udev have dealt with this properly
somehow. For the rest of the world, I'd prefer to keep the current way.

thanks,

greg k-h