[OE-core] [PATCH 3/6] foomatic-filters: Disable filter checking

Richard Purdie richard.purdie at linuxfoundation.org
Thu Sep 22 04:16:40 UTC 2011


On Wed, 2011-09-21 at 20:47 -0500, Mark Hatle wrote:
> Disable a few checks, and hard code the values for a few other items
> to work around potential host contamination issues.  We also default
> to the cups configuration for items.
> 
> Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
> ---
>  .../foomatic/foomatic-filters_4.0.7.bb             |   21 ++++++++++++++-----
>  1 files changed, 15 insertions(+), 6 deletions(-)
> 
> diff --git a/meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb b/meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb
> index 9627187..856f5ac 100644
> --- a/meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb
> +++ b/meta/recipes-extended/foomatic/foomatic-filters_4.0.7.bb
> @@ -10,7 +10,7 @@ format using a printer-specific, but spooler-independent PPD file. \
>  "
>  
>  DEPENDS += "cups perl libxml2"
> -PR = "r1"
> +PR = "r2"
>  
>  LICENSE = "GPLv2+"
>  LIC_FILES_CHKSUM = "file://${WORKDIR}/foomatic-filters-${PV}/COPYING;md5=393a5ca445f6965873eca0259a17f833"
> @@ -20,11 +20,20 @@ SRC_URI = "http://www.openprinting.org/download/foomatic/foomatic-filters-${PV}.
>  SRC_URI[md5sum] = "20abd25c1c98b2dae68709062a132a7d"
>  SRC_URI[sha256sum] = "090313fae40b177f505d9c9b93d7a4d7188b6d5d18b6ae41ab24903ac983478d"
>  
> -do_install_append_linuxstdbase() {
> -    install -d ${D}${libdir}/cups/filter
> -    ln -sf ${bindir}/foomatic-rip ${D}${libdir}/cups/filter
> +inherit autotools
> +
> +EXTRA_OECONF += "--disable-file-converter-check --with-file-converter=texttops"
> +
> +do_configure_prepend() {
> +    export LIB_CUPS=/usr/lib/cups               # /usr/lib NOT libdir
> +    export CUPS_BACKENDS=/usr/lib/cups/backend  # /usr/lib NOT libdir
> +    export CUPS_FILTERS=/usr/lib/cups/filter    # /usr/lib NOT libdir
> +    export CUPS_PPDS=%{_datadir}/cups/model
>  }
>  
> -FILES_${PN}_append_linuxstdbase += "${libdir}/cups/filter/foomatic-rip"
> +do_install_append_linuxstdbase() {
> +    install -d ${D}/usr/lib/cups/filter
> +    ln -sf ${bindir}/foomatic-rip ${D}/usr/lib/cups/filter
> +}
>  
> -inherit autotools
> +FILES_${PN}_append_linuxstdbase += "/usr/lib/cups/filter/foomatic-rip"

This needs a little more explaintion. What happens for the micro (or
minimal, I forget which) distro where they don't have /usr/ ?

I suspect you mean to use ${exec_prefix}/lib above...

Cheers,

Richard






More information about the Openembedded-core mailing list