mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
cups: fix crossscripts
Fix crossscripts to report the correct "serverbin" value. While the packaged "cups-config --serverbin" reported "/usr/libexec/cups" the crossscripts version reported "/usr/lib/cups", causing packaging issues when building for example cups-filters. Also fix FILES_${PN} to use ${libexecdir}; previously it was working just because "${libexecdir}/*" was part of the default values in bitbake.conf. (From OE-Core rev: 2ce6ef29b9bb4f16ed9d78e166d455b7a6d968bf) Signed-off-by: Diego Rondini <diego.rondini@kynetics.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
019f8d3c00
commit
1128c128ce
|
@ -84,12 +84,7 @@ do_install () {
|
|||
PACKAGES =+ "${PN}-lib ${PN}-libimage"
|
||||
|
||||
RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'procps', '', d)}"
|
||||
FILES_${PN} += "${libdir}/cups/backend \
|
||||
${libdir}/cups/cgi-bin \
|
||||
${libdir}/cups/filter \
|
||||
${libdir}/cups/monitor \
|
||||
${libdir}/cups/notifier \
|
||||
${libdir}/cups/daemon \
|
||||
FILES_${PN} += "${libexecdir}/cups/ \
|
||||
"
|
||||
|
||||
FILES_${PN}-lib = "${libdir}/libcups.so.*"
|
||||
|
@ -107,5 +102,5 @@ CONFFILES_${PN} += "${sysconfdir}/cups/cupsd.conf"
|
|||
|
||||
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=${libdir}/cups:'
|
||||
sed -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/cups-config -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:' -e 's:cups_serverbin=.*:cups_serverbin=${libexecdir}/cups:'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user