[lfs-dev] [LFS Trac] #3098: udev/systemd 183 is out

Bruce Dubbs bruce.dubbs at gmail.com
Wed May 30 20:56:37 PDT 2012


Bryan Kadzban wrote:
> Bruce Dubbs wrote:
>> You are not doing this in an LFS Chapter 6 type of environment.  I did 
>> this and immediately got:
> 
> Yeah, you're right, see my reply to Ken.  No system in the proper state
> to test that at the moment.  :-(
> 
>> Anouther problem is that src/shared/util.c is needed to build the udev 
>> programs but it needs to remove or comment out
>>   #include <sys/capability.h>
>> (line 53).
> 
> If none of the functions in util.c is called by anything in udev, then
> it may work to exclude src/shared/util.lo file from
> am_libsystemd_shared_la_OBJECTS, like I'm doing with libsystemd-label.la.

There are lots of functions used in that file:

startswith()
strappend()
split()
parse_env_file()
dirent_ensure_type()
...

lots more.  But it's not hard to write a sed to remove that capability line:

sed -i -e '/capability/d' src/shared/util.c

   -- Bruce




More information about the lfs-dev mailing list