[lfs-dev] Mixing installation and configuration in eudev

Pierre Labastie pierre.labastie at neuf.fr
Sat Nov 29 10:18:09 PST 2014


Hi,

I am trying to update the "package management" (rather DESTDIR install + call
to packager) part of jhalfs, and it breaks in 6.27 Eudev because of the
instruction:
----------
udevadm hwdb --update
----------
just after "make install". The reason is that after a DESTDIR install, udevadm
is not in the path.

Actually, there is no reason to run "udevadm" just after "make install", and I
would say it pertains to udev configuration rather than udev installation: the
man page says:
"[udevadm hwdb --update compiles] the hardware database information located in
/usr/lib/udev/hwdb.d/, /etc/udev/hwdb.d/ and store it in /etc/udev/hwdb.bin.
This should be done after any update to the source files; it will not be
called automatically."

So /etc/udev/hwdb.bin is considered as a configuration file (may change even
if the package version does not change).

Also, I see that some directory creations are "remap='test'". This means that
those instructions are not run by jhalfs if tests are disabled. Of course, the
installation later creates almost all the directories, except /lib/firmware.
Actually, does the creation of /lib/firmware really pertain to this page?

I attach a patch, which creates /lib/firmware at "6.5-Creating directories",
and adds a "configuring" section to Eudev. It is just a proposition. At least,
it allows jhalfs to run with "package management".

Regards
Pierre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eudev-configuration.patch
Type: text/x-patch
Size: 2986 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20141129/108f5a21/attachment.bin>


More information about the lfs-dev mailing list