added my Recipes
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From 104fba23b1c0c67c92777b3165c6dca99558a656 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 6 Feb 2023 18:13:52 -0800
|
||||
Subject: [PATCH] use noexcept(false) instead of throw() from c++17 onwards
|
||||
|
||||
C++17 removed dynamic exception specifications [1]
|
||||
they had been deprecated since C++11, replace
|
||||
throw(whatever) with noexcept(false).
|
||||
|
||||
[1] https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0003r5.html
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/OpenPrinting/cups-filters/pull/505]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
filter/pdftoraster.cxx | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/filter/pdftoraster.cxx b/filter/pdftoraster.cxx
|
||||
index e8af184fb..e91e22459 100755
|
||||
--- a/filter/pdftoraster.cxx
|
||||
+++ b/filter/pdftoraster.cxx
|
||||
@@ -2148,7 +2148,11 @@ int main(int argc, char *argv[]) {
|
||||
/* For compatibility with g++ >= 4.7 compilers _GLIBCXX_THROW
|
||||
* should be used as a guard, otherwise use traditional definition */
|
||||
#ifndef _GLIBCXX_THROW
|
||||
+#if __cplusplus < 201703L
|
||||
#define _GLIBCXX_THROW throw
|
||||
+#else
|
||||
+#define _GLIBCXX_THROW(x) noexcept(false)
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
void * operator new(size_t size) _GLIBCXX_THROW (std::bad_alloc)
|
||||
--
|
||||
2.39.1
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
DESCRIPTION = "CUPS backends, filters, and other software"
|
||||
HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters"
|
||||
|
||||
LICENSE = "GPL-2.0-only & LGPL-2.0-only & MIT & GPL-2.0-or-later & GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=2d77679ce6a2cc4d873d4ebbf2a401e6"
|
||||
|
||||
SECTION = "console/utils"
|
||||
|
||||
DEPENDS = "cups glib-2.0 glib-2.0-native dbus dbus-glib lcms poppler qpdf libpng libexif"
|
||||
DEPENDS:class-native = "poppler-native glib-2.0-native dbus-native pkgconfig-native gettext-native libpng-native"
|
||||
|
||||
SRC_URI = "https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \
|
||||
file://0001-use-noexcept-false-instead-of-throw-from-c-17-onward.patch"
|
||||
SRC_URI[sha256sum] = "270a3752a960368aa99d431fb5d34f4039b2ac943c576d840612d1d8185c9bb9"
|
||||
|
||||
inherit autotools-brokensep gettext pkgconfig github-releases
|
||||
|
||||
EXTRA_OECONF += " --disable-ldap \
|
||||
--with-pdftops=hybrid --enable-imagefilters \
|
||||
--enable-ghostscript --with-gs-path=${bindir}/gs \
|
||||
--with-pdftops-path=${bindir}/gs \
|
||||
--with-fontdir=${datadir}/fonts --with-rcdir=no \
|
||||
--with-cups-rundir=${localstatedir}/run/cups \
|
||||
--localstatedir=${localstatedir}/var \
|
||||
--with-rcdir=no \
|
||||
--without-php"
|
||||
|
||||
EXTRA_OECONF:class-native += " --with-pdftops=pdftops \
|
||||
--disable-avahi --disable-ghostscript \
|
||||
--disable-ldap \
|
||||
--with-png --without-jpeg --without-tiff"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg"
|
||||
PACKAGECONFIG[png] = "--with-png,--without-png,libpng"
|
||||
PACKAGECONFIG[tiff] = "--with-tiff,--without-tiff,tiff"
|
||||
|
||||
PACKAGECONFIG ??= "dbus ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)}"
|
||||
|
||||
PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi"
|
||||
PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,,dbus"
|
||||
|
||||
DIRFILES = "1"
|
||||
|
||||
PACKAGES =+ "\
|
||||
${PN}-gst \
|
||||
${PN}-data \
|
||||
"
|
||||
|
||||
FILES:${PN}-gst = "\
|
||||
${libexecdir}/cups/filter/gsto* \
|
||||
"
|
||||
RDEPENDS:${PN}-gst += "ghostscript"
|
||||
|
||||
FILES:${PN}-data = "\
|
||||
${datadir}/cups/data \
|
||||
"
|
||||
|
||||
FILES:${PN}-dbg += "\
|
||||
${libexecdir}/cups/backend/.debug \
|
||||
${libexecdir}/cups/driver/.debug \
|
||||
${libexecdir}/cups/filter/.debug \
|
||||
"
|
||||
|
||||
FILES:${PN} += "\
|
||||
${libexecdir}/cups \
|
||||
${datadir}/ppd/ \
|
||||
${datadir}/cups/charsets \
|
||||
${datadir}/cups/drv \
|
||||
${datadir}/cups/mime \
|
||||
${datadir}/cups/ppdc \
|
||||
${datadir}/cups/banners \
|
||||
"
|
||||
RDEPENDS:${PN} += "bash"
|
||||
RDEPENDS:${PN} += "ghostscript"
|
||||
|
||||
do_install:append() {
|
||||
# remove braille dir
|
||||
rm -rf ${D}${datadir}/cups/braille
|
||||
|
||||
# remove sysroot path contamination from pkgconfig file
|
||||
sed -i -e 's:${STAGING_DIR_TARGET}::' ${D}/${libdir}/pkgconfig/libcupsfilters.pc
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
--- a/src/meson.build 2023-01-24 09:22:59.874074134 +0100
|
||||
+++ b/src/meson.build 2023-01-24 09:27:00.494627305 +0100
|
||||
@@ -73,12 +73,12 @@
|
||||
|
||||
|
||||
# Translate and install policy file
|
||||
-i18n.merge_file (
|
||||
- input: 'org.opensuse.cupspkhelper.mechanism.policy.in',
|
||||
- output: 'org.opensuse.cupspkhelper.mechanism.policy',
|
||||
- type: 'xml',
|
||||
- data_dirs: join_paths (meson.source_root (), 'src'),
|
||||
- po_dir: join_paths (meson.source_root (), 'po'),
|
||||
- install: true,
|
||||
- install_dir: join_paths (prefix, datadir, 'polkit-1', 'actions')
|
||||
-)
|
||||
+#i18n.merge_file (
|
||||
+# input: 'org.opensuse.cupspkhelper.mechanism.policy.in',
|
||||
+# output: 'org.opensuse.cupspkhelper.mechanism.policy',
|
||||
+# type: 'xml',
|
||||
+# data_dirs: join_paths (meson.source_root (), 'src'),
|
||||
+# po_dir: join_paths (meson.source_root (), 'po'),
|
||||
+# install: true,
|
||||
+# install_dir: join_paths (prefix, datadir, 'polkit-1', 'actions')
|
||||
+#)
|
||||
@@ -0,0 +1,23 @@
|
||||
DESCRIPTION = "CUPS polkit helper"
|
||||
HOMEPAGE = "https://www.freedesktop.org/software/cups-pk-helper/releases/"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
DEPENDS = "cups polkit glib-2.0"
|
||||
|
||||
inherit meson pkgconfig gettext features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES ="polkit"
|
||||
|
||||
SRC_URI = " \
|
||||
https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${PV}.tar.xz \
|
||||
file://dont-localize-org.opensuse.CupsPkHelper.Mechanism.service.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "66070ddb448fe9fcee76aa26be2ede5a80f85563e3a4afd59d2bfd79fbe2e831"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${datadir}/polkit-1/actions
|
||||
install -m 644 ${S}/src/org.opensuse.cupspkhelper.mechanism.policy.in ${D}${datadir}/polkit-1/actions/org.opensuse.cupspkhelper.mechanism.policy
|
||||
}
|
||||
|
||||
FILES:${PN} += "${datadir}"
|
||||
@@ -0,0 +1,11 @@
|
||||
SUMMARY = "CUPS bindings for Python"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3961efb54421653518521529853444c4"
|
||||
|
||||
RDEPENDS:${PN} = "python3"
|
||||
|
||||
inherit setuptools3 pypi
|
||||
|
||||
PV = "2.0.1"
|
||||
|
||||
SRC_URI[sha256sum] = "e880d7d7147959ead5cb34764f08b97b41385b36eb8256e8af1ce163dbcccce8"
|
||||
@@ -0,0 +1,42 @@
|
||||
# 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)
|
||||
# clst@ambu.com (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/
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
# 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)
|
||||
# clst@ambu.com (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"
|
||||
@@ -0,0 +1,46 @@
|
||||
# Recipe for building gutenprint
|
||||
#
|
||||
# Uses the gutenprint-native extracted strings and disable local build stuff
|
||||
#
|
||||
# Copyright (c) Ambu A/S - All rights reserved
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# Author(s)
|
||||
# clst@ambu.com (Claus Stovgaard)
|
||||
#
|
||||
|
||||
require gutenprint.inc
|
||||
|
||||
inherit autotools-brokensep pkgconfig
|
||||
|
||||
DEPENDS += "cups gutenprint-native"
|
||||
|
||||
# cups-genppdupdate depend on perl
|
||||
# We also set the path to PERL as else the version in hosttools would be used
|
||||
# with full path
|
||||
RDEPENDS:${PN} = "perl "
|
||||
|
||||
EXTRA_OECONF = "--without-doc --disable-test --disable-nls PERL=/usr/bin/perl"
|
||||
|
||||
# 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
|
||||
# together with adapting for cross compilation
|
||||
do_configure() {
|
||||
# Disable the xmli18n-tmp.h rule
|
||||
# It depend on the local build extract-strings, we are not able to run this
|
||||
# So we are using the xmli18n-tmp.h created by gutenprint-native
|
||||
sed -i 's/all-local: xmli18n-tmp.h xml-stamp/all-local: xml-stamp/' ${S}/src/xml/Makefile.am
|
||||
sed -i 's/dist-hook: xmli18n-tmp.h xml-stamp/dist-hook: xml-stamp/' ${S}/src/xml/Makefile.am
|
||||
cp ${RECIPE_SYSROOT_NATIVE}${datadir}/gutenprint/xmli18n-tmp.h ${S}/src/xml/
|
||||
|
||||
${S}/autogen.sh || bbnote "${PN} failed to autogen.sh"
|
||||
oe_runconf
|
||||
}
|
||||
|
||||
# gutenprint install the calibrate.ppm and net.sf.gimp-print.usb-quirks in
|
||||
# /usr/share/cups
|
||||
FILES:${PN} += "${datadir}/cups/*"
|
||||
|
||||
# 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"
|
||||
@@ -0,0 +1,33 @@
|
||||
DESCRIPTION = "PDF transformation/inspection software"
|
||||
HOMEPAGE = "http://qpdf.sourceforge.net"
|
||||
LICENSE = "Artistic-2.0"
|
||||
SECTION = "libs"
|
||||
DEPENDS = "libpcre zlib libjpeg-turbo"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/qpdf/qpdf-${PV}.tar.gz"
|
||||
SRC_URI[sha256sum] = "e8fc23b2a584ea68c963a897515d3eb3129186741dd19d13c86d31fa33493811"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://Artistic-2.0;md5=7806296b9fae874361e6fb10072b7ee3"
|
||||
|
||||
inherit autotools-brokensep gettext
|
||||
|
||||
# disable random file detection for cross-compile
|
||||
EXTRA_OECONF = "--without-random \
|
||||
--disable-static \
|
||||
--disable-check-autofiles \
|
||||
"
|
||||
|
||||
LDFLAGS:append:mipsarch = " -latomic"
|
||||
LDFLAGS:append:riscv32 = " -latomic"
|
||||
|
||||
S="${WORKDIR}/${BPN}-${PV}"
|
||||
|
||||
# avoid Makefile returning error on 'make clean' before configure was run
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
DEBIAN_NOAUTONAME:libqpdf = "1"
|
||||
|
||||
PACKAGES =+ "libqpdf"
|
||||
FILES:libqpdf = "${libdir}/libqpdf.so.*"
|
||||
|
||||
RDEPENDS:${PN} = "libqpdf"
|
||||
Reference in New Issue
Block a user