Skip to content

Commit

Permalink
cups: fix crossscripts
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Diego Rondini <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
diegorondini authored and rpurdie committed Jan 10, 2020
1 parent f599b6c commit 2ce6ef2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions meta/recipes-extended/cups/cups.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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.*"
Expand All @@ -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:'
}

0 comments on commit 2ce6ef2

Please sign in to comment.