]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemd.bbclass: Check for existence of the symlink too
authorPavel Zhukov <pavel@zhukoff.net>
Fri, 9 Feb 2024 19:27:28 +0000 (20:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 10 Feb 2024 14:12:54 +0000 (14:12 +0000)
commite2b638dcd6b7c51f7ee2cd4bc051d6b12e642d6c
tree4d4aef89abf65f951b5b79cd8a5ed99c002eeacb
parentce8f7bb81598aecafe486a461c94254b97518832
systemd.bbclass: Check for existence of the symlink too

If the packages' service file is a link to parameterized service file
provided by different package [1] then link is dangling link at
do_package stage and os.path.exists(path) returns False even if the link
exists. Replace os.path.exists with lexists to fix this issue.

[1]
An example:
  Package A provides myservice@.service

  Package B depends and rdepends on A and provides:
  myservice@B.service -> myservice@.service

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/systemd.bbclass