mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 09:32:12 +02:00
cups: make cups-config a multilib script
cups-config encodes the library dir in the script. (From OE-Core rev: 0e19b25fbf1d760c06dd6a2cb8e291c7482330c4) Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4c745fb712
commit
8f796d8e8e
@@ -22,7 +22,7 @@ LEAD_SONAME = "libcupsdriver.so"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
inherit autotools-brokensep binconfig useradd systemd pkgconfig
|
||||
inherit autotools-brokensep binconfig useradd systemd pkgconfig multilib_script
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
GROUPADD_PARAM_${PN} = "--system lpadmin"
|
||||
@@ -100,6 +100,8 @@ FILES_${PN} += "${datadir}/doc/cups/images \
|
||||
"
|
||||
CONFFILES_${PN} += "${sysconfdir}/cups/cupsd.conf"
|
||||
|
||||
MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/cups-config"
|
||||
|
||||
SYSROOT_PREPROCESS_FUNCS += "cups_sysroot_preprocess"
|
||||
cups_sysroot_preprocess () {
|
||||
sed -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/cups-config -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:' -e 's:cups_serverbin=.*:cups_serverbin=${libexecdir}/cups:'
|
||||
|
||||
Reference in New Issue
Block a user