gutenprint: rewrite recipe and update
PATCH v2 1/2 gutenprint: rewrite recipe and update
From: Ross Burton <[email protected]>
There hasn't been a gutenprint upgrade for quite a while, but a lot of fixes upstream, so grab the latest SHA.
This means we can now do out-of-tree builds, so drop the use of autotools-brokensep. Also stop autogen.sh from running configure as we run it again.
Clean up build dependencies.
Enable NLS, as there's no reason to disable it.
Remove the explicit gutenprint-native recipe, instead use class extension and build as little as possible in the native do_compile.
--- .../gutenprint/gutenprint-native_git.bb | 42 ------------- .../gutenprint/gutenprint.inc | 22 ------- .../gutenprint/gutenprint_git.bb | 60 +++++++++++++------ 3 files changed, 43 insertions(+), 81 deletions(-) delete mode 100644 meta-oe/recipes-printing/gutenprint/gutenprint-native_git.bb delete mode 100644 meta-oe/recipes-printing/gutenprint/gutenprint.inc
meta-oe/recipes-printing/gutenprint/gutenprint-native_git.bb deleted +0 -42
@@ -1,42 +0,0 @@ -# Recipe for building gutenprint-native -# -# Native part is for generating strings - xmli18n-tmp.h used by target recipe -# We don't depend on cups as this is for generating the string header. -# -# Copyright (c) Ambu A/S - All rights reserved -# SPDX-License-Identifier: MIT -# -# Author(s) -# [email protected] (Claus Stovgaard) -# - -require gutenprint.inc - -# We could consider switching to BBCLASSEXTEND native instead of inherit -# Using devtool with this results in warning, as devtool append externalsrc to -# inheritance, making native not being inherited last. -inherit autotools-brokensep pkgconfig native - -SECTION = "libs" - -# binutils is for xz etc. -# gettext-native for configuration -# flex-native is used for compilation -# byacc-native is for yacc command (compilation) -DEPENDS += "binutils-native gettext-native flex-native byacc-native" - -EXTRA_OECONF = "--without-doc --without-cups" - -# gutenprint does not have a configure file in its root folder. -# Rather it has a autogen.sh in its root folder. We just use it -do_configure() { - ${S}/autogen.sh || bbnote "${PN} failed to autogen.sh" - oe_runconf -} - -# Currently we only uses the string header, even though we compile the complete -# native version of the library. So we limit the install to the needed. -do_install() { - install -d ${D}${datadir}/gutenprint/ - install -m644 ${B}/src/xml/xmli18n-tmp.h ${D}${datadir}/gutenprint/ -}
meta-oe/recipes-printing/gutenprint/gutenprint.inc deleted +0 -22
@@ -1,22 +0,0 @@ -# common part for gutenprint-native / gutenprint -# -# As we are using the native part for generating string header to the target -# version, it is important they use the same version. -# So we set the SRC_URI and SRCREV here. -# -# Copyright (c) Ambu A/S - All rights reserved -# SPDX-License-Identifier: MIT -# -# Author(s) -# [email protected] (Claus Stovgaard) -# - -DESCRIPTION = "Gutenprint printer drivers" -HOMEPAGE = "http://gimp-print.sourceforge.net/" -LICENSE = "GPL-2.0-or-later" - -SRC_URI = "git://git.code.sf.net/p/gimp-print/source;protocol=https;branch=master" -SRCREV = "8e47dc44dd7738302ba9e8fbc1f918461fed0236" -S = "${WORKDIR}/git" - -LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
meta-oe/recipes-printing/gutenprint/gutenprint_git.bb +43 -17
82 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 2/2 gutenprint: match ownership on /etc/cups
From: Ross Burton <[email protected]>
This recipe currently uses DIRFILES to work around the fact that both cups and gutenprint ship /etc/cups but with different ownership.
Instead of having mismatching ownership, we can simply match the ownership in gutenprint.
--- meta-oe/recipes-printing/gutenprint/gutenprint_git.bb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
meta-oe/recipes-printing/gutenprint/gutenprint_git.bb +6 -4
@@ -51,6 +51,8 @@ do_configure() { do_install:append() { # This file contains build paths and isn't very useful, remove it rm -f ${D}${libdir}/gutenprint/*/config.summary + # Match ownership to cups + chgrp lp ${D}${sysconfdir}/cups } do_compile:class-native() {
@@ -65,8 +67,8 @@ do_install:class-native() { FILES:${PN} += "${datadir}/cups/*" RDEPENDS:${PN} = "perl" -# Install in /etc/cups when RPM needs DIRFILES to not conflict -# https://stackoverflow.com/questions/44762430/why-do-i-get-etc-cups-conflicts-between-attempted-installs-in-yocto -DIRFILES = "1" - BBCLASSEXTEND = "native" + +# Pull in base-passwd for the lp user +DEPENDS:append:class-target = " base-passwd" +PACKAGE_WRITE_DEPS += "base-passwd"
Signature · 1 line
2.34.1