]> code.ossystems Code Review - openembedded-core.git/commit
cups: Fix missing installation of cups sysv init scripts
authorClaus Stovgaard <clst@ambu.com>
Sat, 13 Nov 2021 21:37:13 +0000 (22:37 +0100)
committerSteve Sakoman <steve@sakoman.com>
Sat, 27 Nov 2021 16:47:47 +0000 (06:47 -1000)
commita4c8e2abb7d71697c8d0c53894e82bf2790ae5ac
treef75da1dc540ac37158f8bedc377291b2a5689396
parenta1bb6b60bbde7da4496db1a2f7e48bbfb637fa4e
cups: Fix missing installation of cups sysv init scripts

The packageconfig needs to be --disable-systemd as documented in
configure file for cups. With the current value "--without-systemd" the
SYSTEM_DIR variable ends up being set to "no"

It is caused by the --without-* section in configure file resulting in
eval with_$ac_useropt=no ;;

$ac_useropt is "systemd" causing the variable $with_systemd to be set
to "no", because of below test

if test ${with_systemd+y}
then :
  withval=$with_systemd; SYSTEMD_DIR="$withval"
else $as_nop
  SYSTEMD_DIR=""
fi

cups configure test for i if SYSTEMD_DIR is empty to decide if the init
scripts need to be installed. A value of "no" results in that no init
scripts is installed.

With --disable-systemd it works as expected - installing the init files.
Though cups should properly improve their configure script.

Signed-off-by: Claus Stovgaard <clst@ambu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 967fdd2ba12f22d8e46600ff085833993a32cfeb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-extended/cups/cups.inc