Bump CUPS to the latest version
cover Bump CUPS to the latest version
CUPS went though a lot of changes lately, therefore bumping to the latest version wasn't as straightforward as I hoped.
Angelo Compagnucci (5):
package/libppd: new package
package/libcupsfilters: new package
package/qpdf: bump to version 12.2.0
package/cups-filters: bump to version 2.0.1
package/cups: bump to version 2.4.12
DEVELOPERS | 3 + package/Config.in | 2 + ...ecv-instead-of-system-CVE-2023-24805.patch | 208 ------------------ package/cups-filters/Config.in | 16 +- package/cups-filters/cups-filters.hash | 2 +- package/cups-filters/cups-filters.mk | 70 +----- package/cups/cups.hash | 4 +- package/cups/cups.mk | 2 +- package/libcupsfilters/Config.in | 34 +++ package/libcupsfilters/libcupsfilters.hash | 3 + package/libcupsfilters/libcupsfilters.mk | 93 ++++++++ package/libppd/Config.in | 8 + package/libppd/libppd.hash | 4 + package/libppd/libppd.mk | 22 ++ package/qpdf/qpdf.hash | 4 +- package/qpdf/qpdf.mk | 26 +-- 16 files changed, 194 insertions(+), 307 deletions(-) delete mode 100644 package/cups-filters/0001-beh-backend-Use-execv-instead-of-system-CVE-2023-24805.patch create mode 100644 package/libcupsfilters/Config.in create mode 100644 package/libcupsfilters/libcupsfilters.hash create mode 100644 package/libcupsfilters/libcupsfilters.mk create mode 100644 package/libppd/Config.in create mode 100644 package/libppd/libppd.hash create mode 100644 package/libppd/libppd.mk
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/5 package/libppd: new package
This package contains PPD library for newer versions of cups supporting more than ~10000 printer models.
--- DEVELOPERS | 1 + package/Config.in | 2 ++ package/libppd/Config.in | 8 ++++++++ package/libppd/libppd.hash | 4 ++++ package/libppd/libppd.mk | 22 ++++++++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/libppd/Config.in create mode 100644 package/libppd/libppd.hash create mode 100644 package/libppd/libppd.mk
DEVELOPERS +1 -0
@@ -221,6 +221,7 @@ F: package/jq/ F: package/libapparmor/ F: package/libb64/ F: package/libdill/ +F: package/libppd/ F: package/mender/ F: package/mender-artifact/ F: package/mono/
package/Config.in +2 -0
@@ -352,7 +352,9 @@ comment "Graphic libraries" source "package/freerdp/Config.in" source "package/graphicsmagick/Config.in" source "package/imagemagick/Config.in" + source "package/libcupsfilters/Config.in" source "package/libglvnd/Config.in" + source "package/libppd/Config.in" source "package/mesa3d/Config.in" source "package/mesa3d-headers/Config.in" source "package/ocrad/Config.in"
package/libppd/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBPPD + bool "libppd" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_LIBCUPSFILTERS + help + The Common Unix Printing System + + ~10000 printer models are supported with PPD-file-based classic CUPS drivers.
package/libppd/libppd.hash new file +4 -0
@@ -0,0 +1,4 @@ +# Locally calculated: +sha256 b356aeed1335ef0ca7f799741782a2544e7acee63fb4b047b94e4e0395a9cb62 libppd-2.1.1.tar.gz +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE +sha256 977206f041b9a6f47ac00531e1242c0fab7063da71178f8d868b167b70866b6d NOTICE
package/libppd/libppd.mk new file +22 -0
@@ -0,0 +1,22 @@ +################################################################################ +# +# libppd +# +################################################################################ + +LIBPPD_VERSION = 2.1.1 +LIBPPD_SOURCE = libppd-$(LIBPPD_VERSION).tar.gz +LIBPPD_SITE = https://github.com/OpenPrinting/libppd/releases/download/$(LIBPPD_VERSION) +LIBPPD_LICENSE = Apache-2.0 with GPL-2.0/LGPL-2.0 exception +LIBPPD_LICENSE_FILES = LICENSE NOTICE +LIBPPD_CPE_ID_VENDOR = openprinting +LIBPPD_SELINUX_MODULES = cups +LIBPPD_INSTALL_STAGING = YES +LIBPPD_AUTORECONF = YES + +LIBPPD_DEPENDENCIES = cups libcupsfilters + +LIBPPD_CONF_OPTS = \ + --with-cups-config=$(STAGING_DIR)/usr/bin/cups-config + +$(eval $(autotools-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/5] package/libppd: new package
Hi Angelo,
Quoted 32 lines · Angelo Compagnucci
This package contains PPD library for newer versions of cups supporting more than ~10000 printer models.
Signed-off-by Angelo Compagnucci <[email protected]>--- DEVELOPERS | 1 + package/Config.in | 2 ++ package/libppd/Config.in | 8 ++++++++ package/libppd/libppd.hash | 4 ++++ package/libppd/libppd.mk | 22 ++++++++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/libppd/Config.in create mode 100644 package/libppd/libppd.hash create mode 100644 package/libppd/libppd.mkDEVELOPERS +1
-0@@ -221,6 +221,7 @@ F: package/jq/ F: package/libapparmor/ F: package/libb64/ F: package/libdill/ +F: package/libppd/ F: package/mender/ F: package/mender-artifact/ F: package/mono/package/Config.in +0
-0
package/Config.in comment "Graphic libraries" · line 355
Quoted 4 lines
package/Config.in +1
-0@@ -352,7 +352,9 @@ comment "Graphic libraries" source "package/freerdp/Config.in" source "package/graphicsmagick/Config.in" source "package/imagemagick/Config.in" + source "package/libcupsfilters/Config.in"
This belongs to the next patch.
Quoted 40 lines
package/Config.in +1
-0source "package/libglvnd/Config.in" + source "package/libppd/Config.in" source "package/mesa3d/Config.in" source "package/mesa3d-headers/Config.in" source "package/ocrad/Config.in"package/libppd/Config.in new file +8
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBPPD + bool "libppd" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_LIBCUPSFILTERS + help + The Common Unix Printing System + + ~10000 printer models are supported with PPD-file-based classic CUPS drivers.package/libppd/libppd.hash new file +4
-0@@ -0,0 +1,4 @@ +# Locally calculated: +sha256 b356aeed1335ef0ca7f799741782a2544e7acee63fb4b047b94e4e0395a9cb62 libppd-2.1.1.tar.gz +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE +sha256 977206f041b9a6f47ac00531e1242c0fab7063da71178f8d868b167b70866b6d NOTICEpackage/libppd/libppd.mk new file +5
-0@@ -0,0 +1,22 @@ +################################################################################ +# +# libppd +# +################################################################################
package/libppd/libppd.mk line 15
Quoted 10 lines
package/libppd/libppd.mk new file +10
-0+ +LIBPPD_VERSION = 2.1.1 +LIBPPD_SOURCE = libppd-$(LIBPPD_VERSION).tar.gz +LIBPPD_SITE = https://github.com/OpenPrinting/libppd/releases/download/$(LIBPPD_VERSION) +LIBPPD_LICENSE = Apache-2.0 with GPL-2.0/LGPL-2.0 exception +LIBPPD_LICENSE_FILES = LICENSE NOTICE +LIBPPD_CPE_ID_VENDOR = openprinting +LIBPPD_SELINUX_MODULES = cups +LIBPPD_INSTALL_STAGING = YES +LIBPPD_AUTORECONF = YES
Why is this needed?
package/libppd/libppd.mk line 17
Quoted 2 lines
package/libppd/libppd.mk new file +2
-0+ +LIBPPD_DEPENDENCIES = cups libcupsfilters
libcupsfilters doesn't exist yet. You should probably reverse the order of patches in this series.
package/libppd/libppd.mk line 22
Quoted 5 lines
package/libppd/libppd.mk new file +5
-0+ +LIBPPD_CONF_OPTS = \ + --with-cups-config=$(STAGING_DIR)/usr/bin/cups-config + +$(eval $(autotools-package))
baruch
Signature · 7 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildrootPATCH 2/5 package/libcupsfilters: new package
In reply to Angelo CompagnucciNewer versions of cups-filters split several parts of the main software into external libraries. This is the main filters library.
--- DEVELOPERS | 1 + package/libcupsfilters/Config.in | 34 ++++++++ package/libcupsfilters/libcupsfilters.hash | 3 + package/libcupsfilters/libcupsfilters.mk | 93 ++++++++++++++++++++++ 4 files changed, 131 insertions(+) create mode 100644 package/libcupsfilters/Config.in create mode 100644 package/libcupsfilters/libcupsfilters.hash create mode 100644 package/libcupsfilters/libcupsfilters.mk
DEVELOPERS +1 -0
@@ -220,6 +220,7 @@ F: package/i2c-tools/ F: package/jq/ F: package/libapparmor/ F: package/libb64/ +F: package/libcupsfilters F: package/libdill/ F: package/libppd/ F: package/mender/
package/libcupsfilters/Config.in new file +34 -0
@@ -0,0 +1,34 @@ +config BR2_PACKAGE_LIBCUPSFILTERS + bool "libcupsfilters" + # needs fork() + depends on BR2_USE_MMU + depends on BR2_INSTALL_LIBSTDCPP # qpdf + depends on !BR2_STATIC_LIBS + depends on BR2_USE_WCHAR # libglib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 + depends on BR2_PACKAGE_CUPS + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # qpdf + depends on BR2_TOOLCHAIN_HAS_ATOMIC # qpdf + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_FONTCONFIG + select BR2_PACKAGE_FREETYPE + select BR2_PACKAGE_LCMS2 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_QPDF + help + This project provides backends, filters, and other software + that was once part of the core CUPS distribution but is no + longer maintained by Apple Inc. + This package provides the libcupsfilters library, which in + its 2.x version contains all the code of the filters of the + former cups-filters package as library functions, + the so-called filter functions. + + http://www.linuxfoundation.org/collaborate/workgroups/openprinting/libcupsfilters + +comment "libcupsfilters needs a toolchain w/ wchar, C++, threads and dynamic library, gcc >= 5" + depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_ATOMIC + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR || BR2_STATIC_LIBS || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_5
package/libcupsfilters/libcupsfilters.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed: +sha256 ff31778a438bf335ceed254ccc706d5cd0eee55f608fcf567d88699b15f4fa9e libcupsfilters-2.1.1.tar.gz +sha256 38192ffdaca98b718f78b2d4abc38bb087f0bbcc9a16d212c98b903b985f900f COPYING
package/libcupsfilters/libcupsfilters.mk new file +93 -0
93 lines not on this page · raw message
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/5 package/qpdf: bump to version 12.2.0
In reply to Angelo CompagnucciChangelog:
https://qpdf.readthedocs.io/en/stable/release-notes.html
Updating source URL (Github) and updating build system to cmake.
--- DEVELOPERS | 1 + package/qpdf/qpdf.hash | 4 ++-- package/qpdf/qpdf.mk | 26 ++++++++++---------------- 3 files changed, 13 insertions(+), 18 deletions(-)
DEVELOPERS +1 -0
@@ -235,6 +235,7 @@ F: package/python-pillow/ F: package/python-pydal/ F: package/python-spidev/ F: package/python-web2py/ +F: package/qpdf/ F: package/qt5/qt5coap/ F: package/qt5/qt5knx/ F: package/qt5/qt5mqtt/
package/qpdf/qpdf.hash +2 -2
@@ -1,5 +1,5 @@ -# From https://sourceforge.net/projects/qpdf/files/qpdf/10.5.0/qpdf-10.5.0.sha256/download -sha256 88257d36a44fd5c50b2879488324dd9cafc11686ae49d8c4922a4872203ce006 qpdf-10.5.0.tar.gz +# From https://sourceforge.net/projects/qpdf/files/qpdf/12.2.0/qpdf-12.2.0.sha256/download +sha256 b3d1575b2218badc3549d6977524bb0f8c468c6528eebc8967bbe3078cf2cace qpdf-12.2.0.tar.gz # Locally computed: sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE.txt sha256 fb929ac30decb4dc3a2eea2bec6c43296a797c5d2d602deb3784ee39430583d5 Artistic-2.0
package/qpdf/qpdf.mk +10 -16
@@ -4,36 +4,30 @@ # ################################################################################ -QPDF_VERSION = 10.5.0 -QPDF_SITE = http://downloads.sourceforge.net/project/qpdf/qpdf/$(QPDF_VERSION) +QPDF_VERSION = 12.2.0 +QPDF_SITE = https://github.com/qpdf/qpdf/releases/download/v$(QPDF_VERSION) QPDF_INSTALL_STAGING = YES QPDF_LICENSE = Apache-2.0 or Artistic-2.0 QPDF_LICENSE_FILES = LICENSE.txt Artistic-2.0 QPDF_CPE_ID_VALID = YES QPDF_DEPENDENCIES = host-pkgconf zlib jpeg +QPDF_SUPPORTS_IN_SOURCE_BUILD = NO -QPDF_CONF_OPTS = --with-random=/dev/urandom - -ifeq ($(BR2_USE_WCHAR),) -QPDF_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -DQPDF_NO_WCHAR_T" -endif +QPDF_CONF_OPTS = -DSKIP_OS_SECURE_RANDOM=ON \ + -DUSE_IMPLICIT_CRYPTO=OFF -DREQUIRE_CRYPTO_NATIVE=ON ifeq ($(BR2_PACKAGE_GNUTLS),y) -QPDF_CONF_OPTS += --enable-crypto-gnutls +QPDF_CONF_OPTS += -DREQUIRE_CRYPTO_GNUTLS=ON QPDF_DEPENDENCIES += gnutls else -QPDF_CONF_OPTS += --disable-crypto-gnutls +QPDF_CONF_OPTS += -DREQUIRE_CRYPTO_GNUTLS=OFF endif ifeq ($(BR2_PACKAGE_OPENSSL),y) -QPDF_CONF_OPTS += --enable-crypto-openssl +QPDF_CONF_OPTS += -DREQUIRE_CRYPTO_OPENSSL=ON QPDF_DEPENDENCIES += openssl else -QPDF_CONF_OPTS += --disable-crypto-openssl -endif - -ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) -QPDF_CONF_ENV += LIBS=-latomic +QPDF_CONF_OPTS += -DREQUIRE_CRYPTO_OPENSSL=OFF endif -$(eval $(autotools-package)) +$(eval $(cmake-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/5 package/cups-filters: bump to version 2.0.1
In reply to Angelo CompagnucciChangelog:
https://github.com/OpenPrinting/cups-filters/releases/tag/2.0.1
This version makes use of two ancillary libraries split from the main code. Those libraries are:
* libcupsfilters
* libppd
This required a major rework of the package because most of the dependencies were moved those new libraries.
--- ...ecv-instead-of-system-CVE-2023-24805.patch | 208 ------------------ package/cups-filters/Config.in | 16 +- package/cups-filters/cups-filters.hash | 2 +- package/cups-filters/cups-filters.mk | 70 +----- 4 files changed, 10 insertions(+), 286 deletions(-) delete mode 100644 package/cups-filters/0001-beh-backend-Use-execv-instead-of-system-CVE-2023-24805.patch
package/cups-filters/0001-beh-backend-Use-execv-instead-of-system-CVE-2023-24805.patch deleted +0 -208
@@ -1,208 +0,0 @@ -From 93e60d3df358c0ae6f3dba79e1c9684657683d89 Mon Sep 17 00:00:00 2001 -From: Till Kamppeter <[email protected]> -Date: Wed, 17 May 2023 11:11:29 +0200 -Subject: [PATCH] beh backend: Use execv() instead of system() - CVE-2023-24805 - -With execv() command line arguments are passed as separate strings and -not the full command line in a single string. This prevents arbitrary -command execution by escaping the quoting of the arguments in a job -with a forged job title. - -In addition, done the following fixes and improvements: - -- Do not allow '/' in the scheme of the URI (= backend executable - name), to assure that only backends inside /usr/lib/cups/backend/ - are used. - -- URI must have ':', to split off scheme, otherwise error out. - -- Check return value of snprintf() to create call path for backend, to - error out on truncation of a too long scheme or on complete failure - due to a completely odd scheme. - -- Use strncat() instead of strncpy() for getting scheme from URI, the latter - does not require setting terminating zero byte in case of truncation. - -- Also exclude "." or ".." as scheme, as directories are not valid CUPS - backends. - -- Do not use fprintf() in sigterm_handler(), to not interfere with a - fprintf() which could be running in the main process when - sigterm_handler() is triggered. - -- Use "static volatile int" for global variable job_canceled. - -Upstream: https://github.com/OpenPrinting/cups-filters/commit/93e60d3df358c0ae6f3dba79e1c9684657683d89 -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - backend/beh.c | 107 +++++++++++++++++++++++++++++++++++++++----------- - 1 file changed, 84 insertions(+), 23 deletions(-) - -diff --git a/backend/beh.c b/backend/beh.c -index 225fd27d5..8d51235b1 100644 ---- a/backend/beh.c -+++ b/backend/beh.c -@@ -22,12 +22,13 @@ - #include "backend-private.h" - #include <cups/array.h> - #include <ctype.h> -+#include <sys/wait.h> - - /* - * Local globals... - */ - --static int job_canceled = 0; /* Set to 1 on SIGTERM */ -+static volatile int job_canceled = 0; /* Set to 1 on SIGTERM */ - - /* - * Local functions... -@@ -213,21 +214,40 @@ call_backend(char *uri, /* I - URI of final destination */ - char **argv, /* I - Command-line arguments */ - char *filename) { /* I - File name of input data */ - const char *cups_serverbin; /* Location of programs */ -+ char *backend_argv[8]; /* Arguments for backend */ - char scheme[1024], /* Scheme from URI */ - *ptr, /* Pointer into scheme */ -- cmdline[65536]; /* Backend command line */ -- int retval; -+ backend_path[2048]; /* Backend path */ -+ int pid = 0, /* Process ID of backend */ -+ wait_pid, /* Process ID from wait() */ -+ wait_status, /* Status from child */ -+ retval = 0; -+ int bytes; - - /* - * Build the backend command line... - */ - -- strncpy(scheme, uri, sizeof(scheme) - 1); -- if (strlen(uri) > 1023) -- scheme[1023] = '\0'; -+ scheme[0] = '\0'; -+ strncat(scheme, uri, sizeof(scheme) - 1); - if ((ptr = strchr(scheme, ':')) != NULL) - *ptr = '\0'; -- -+ else { -+ fprintf(stderr, -+ "ERROR: beh: Invalid URI, no colon (':') to mark end of scheme part.\n"); -+ exit (CUPS_BACKEND_FAILED); -+ } -+ if (strchr(scheme, '/')) { -+ fprintf(stderr, -+ "ERROR: beh: Invalid URI, scheme contains a slash ('/').\n"); -+ exit (CUPS_BACKEND_FAILED); -+ } -+ if (!strcmp(scheme, ".") || !strcmp(scheme, "..")) { -+ fprintf(stderr, -+ "ERROR: beh: Invalid URI, scheme (\"%s\") is a directory.\n", -+ scheme); -+ exit (CUPS_BACKEND_FAILED); -+ } - if ((cups_serverbin = getenv("CUPS_SERVERBIN")) == NULL) - cups_serverbin = CUPS_SERVERBIN; - -@@ -235,16 +255,29 @@ call_backend(char *uri, /* I - URI of final destination */ - fprintf(stderr, - "ERROR: beh: Direct output into a file not supported.\n"); - exit (CUPS_BACKEND_FAILED); -- } else -- snprintf(cmdline, sizeof(cmdline), -- "%s/backend/%s '%s' '%s' '%s' '%s' '%s' %s", -- cups_serverbin, scheme, argv[1], argv[2], argv[3], -- /* Apply number of copies only if beh was called with a -- file name and not with the print data in stdin, as -- backends should handle copies only if they are called -- with a file name */ -- (argc == 6 ? "1" : argv[4]), -- argv[5], filename); -+ } -+ -+ backend_argv[0] = uri; -+ backend_argv[1] = argv[1]; -+ backend_argv[2] = argv[2]; -+ backend_argv[3] = argv[3]; -+ /* Apply number of copies only if beh was called with a file name -+ and not with the print data in stdin, as backends should handle -+ copies only if they are called with a file name */ -+ backend_argv[4] = (argc == 6 ? "1" : argv[4]); -+ backend_argv[5] = argv[5]; -+ backend_argv[6] = filename; -+ backend_argv[7] = NULL; -+ -+ bytes = snprintf(backend_path, sizeof(backend_path), -+ "%s/backend/%s", cups_serverbin, scheme); -+ if (bytes < 0 || bytes >= sizeof(backend_path)) -+ { -+ fprintf(stderr, -+ "ERROR: beh: Invalid scheme (\"%s\"), could not determing backend path.\n", -+ scheme); -+ return (CUPS_BACKEND_FAILED); -+ } - - /* - * Overwrite the device URI and run the actual backend... -@@ -253,18 +286,44 @@ call_backend(char *uri, /* I - URI of final destination */ - setenv("DEVICE_URI", uri, 1); - - fprintf(stderr, -- "DEBUG: beh: Executing backend command line \"%s\"...\n", -- cmdline); -+ "DEBUG: beh: Executing backend command line \"%s '%s' '%s' '%s' '%s' '%s' %s\"...\n", -+ backend_path, backend_argv[1], backend_argv[2], backend_argv[3], -+ backend_argv[4], backend_argv[5], backend_argv[6]); - fprintf(stderr, - "DEBUG: beh: Using device URI: %s\n", - uri); - -- retval = system(cmdline) >> 8; -+ if ((pid = fork()) == 0) { -+ /* -+ * Child comes here... -+ */ -+ -+ /* Run the backend */ -+ execv(backend_path, backend_argv); - -- if (retval == -1) - fprintf(stderr, "ERROR: Unable to execute backend command line: %s\n", - strerror(errno)); - -+ exit(1); -+ } else if (pid < 0) { -+ /* -+ * Unable to fork! -+ */ -+ -+ return (CUPS_BACKEND_FAILED); -+ } -+ -+ while ((wait_pid = wait(&wait_status)) < 0 && errno == EINTR); -+ -+ if (wait_pid >= 0 && wait_status) { -+ if (WIFEXITED(wait_status)) -+ retval = WEXITSTATUS(wait_status); -+ else if (WTERMSIG(wait_status) != SIGTERM) -+ retval = WTERMSIG(wait_status); -+ else -+ retval = 0; -+ } -+ - return (retval); - } - -@@ -277,8 +336,10 @@ static void - sigterm_handler(int sig) { /* I - Signal number (unused) */ - (void)sig; - -- fprintf(stderr, -- "DEBUG: beh: Job canceled.\n"); -+ const char * const msg = "DEBUG: beh: Job canceled.\n"; -+ /* The if() is to eliminate the return value and silence the warning -+ about an unused return value. */ -+ if (write(2, msg, strlen(msg))); - - if (job_canceled) - _exit(CUPS_BACKEND_OK);
package/cups-filters/Config.in +6 -10
@@ -2,19 +2,15 @@ config BR2_PACKAGE_CUPS_FILTERS bool "cups-filters" # needs fork() depends on BR2_USE_MMU - depends on BR2_INSTALL_LIBSTDCPP # qpdf + depends on BR2_TOOLCHAIN_HAS_ATOMIC + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_WCHAR depends on !BR2_STATIC_LIBS - depends on BR2_USE_WCHAR # libglib2 - depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 depends on BR2_PACKAGE_CUPS + depends on BR2_PACKAGE_LIBCUPSFILTERS + depends on BR2_PACKAGE_LIBPPD depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # qpdf - depends on BR2_TOOLCHAIN_HAS_ATOMIC # qpdf - select BR2_PACKAGE_JPEG - select BR2_PACKAGE_FONTCONFIG - select BR2_PACKAGE_FREETYPE - select BR2_PACKAGE_LCMS2 - select BR2_PACKAGE_LIBGLIB2 - select BR2_PACKAGE_QPDF help This project provides backends, filters, and other software that was once part of the core CUPS distribution but is no
package/cups-filters/cups-filters.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed: -sha256 01a2acbd6bb78f09638047e4e9ce305d7e5ef4cb9ed6949672b5d901b7321dd4 cups-filters-1.28.17.tar.gz +sha256 3de1cbb889d06e5a6a945dcb921292544477ab89da95ca89f1eec2de29937afb cups-filters-2.0.1.tar.gz sha256 38192ffdaca98b718f78b2d4abc38bb087f0bbcc9a16d212c98b903b985f900f COPYING
package/cups-filters/cups-filters.mk +3 -67
85 lines not on this page · raw message
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 5/5 package/cups: bump to version 2.4.12
In reply to Angelo CompagnucciChangelog:
https://github.com/OpenPrinting/cups/releases/tag/v2.4.12
--- package/cups/cups.hash | 4 ++-- package/cups/cups.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
package/cups/cups.hash +2 -2
@@ -1,4 +1,4 @@ # Locally calculated: -sha256 9a88fe1da3a29a917c3fc67ce6eb3178399d68e1a548c6d86c70d9b13651fd71 cups-2.4.11-source.tar.gz +sha256 b1dde191a4ae2760c47220c82ca6155a28c382701e6c1a0159d1054990231d59 cups-2.4.12-source.tar.gz sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE -sha256 5320b6e3c252423e4153eb2dd63e57e3b630afb21139f44e43b02d85fe33e279 NOTICE +sha256 977206f041b9a6f47ac00531e1242c0fab7063da71178f8d868b167b70866b6d NOTICE
package/cups/cups.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -CUPS_VERSION = 2.4.11 +CUPS_VERSION = 2.4.12 CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.gz CUPS_SITE = https://github.com/OpenPrinting/cups/releases/download/v$(CUPS_VERSION) CUPS_LICENSE = Apache-2.0 with GPL-2.0/LGPL-2.0 exception
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 5/5] package/cups: bump to version 2.4.12
Hi Angelo,
Quoted 4 lines · Angelo Compagnucci
Changelog:
https://github.com/OpenPrinting/cups/releases/tag/v2.4.12Signed-off-by Angelo Compagnucci <[email protected]>
I already applied your first cups bump submission in next:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
https://gitlab.com/buildroot.org/buildroot/-/commit/f6be007591f504516fef6434e29c2ca9246ac5a7
I checked it was building, but we don't have a runtime test (yet).
Do I need to revert it?
Alternatively, we can wait for this series to be merged.
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 5/5] package/cups: bump to version 2.4.12
Il giorno mer 20 ago 2025 alle ore 16:33 Julien Olivain <[email protected]> ha scritto:
Quoted 12 lines
Hi Angelo,
Quoted 4 lines · Angelo Compagnucci
Changelog:
https://github.com/OpenPrinting/cups/releases/tag/v2.4.12Signed-off-by Angelo Compagnucci <[email protected]>I already applied your first cups bump submission in next:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Quoted 8 lines
https://gitlab.com/buildroot.org/buildroot/-/commit/f6be007591f504516fef6434e29c2ca9246ac5a7
I checked it was building, but we don't have a runtime test (yet).
Do I need to revert it?
Alternatively, we can wait for this series to be merged.
I think the patch in next is ok, I forget to already have sent it. I'll respin the series without the cups bump. Cups-filters is not mandatory for cups.
Best regards,
Quoted 3 lines
Julien.
Signature · 1 line
Profile: http://it.linkedin.com/in/compagnucciangelo
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot