From 14ffec8edac0342c695855679fc7bbb1dc770f00 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Wed, 15 Jul 2026 19:13:52 +0200 Subject: [PATCH] Rebuild golang-github-openprinting-ipp-usb for updated golang Resolves: RHEL-167359 Resolves: RHEL-167515 Resolves: RHEL-166317 Resolves: RHEL-156594 Resolves: RHEL-156593 Resolves: RHEL-167515 Resolves: RHEL-177143 Resolves: RHEL-187166 Resolves: RHEL-189828 Rebuild golang-github-openprinting-ipp-usb against updated golang. The Release field is bumped from 5 to 6 and a changelog entry is added to document the rebuild. Dependency: golang This commit was created by Ymir, a Red Hat Enterprise Linux software maintenance AI agent. Authored and adjusted by: Zdenek Dohnal Assisted-by: Ymir --- golang-github-openprinting-ipp-usb.spec | 9 ++++++++- ....9.27-quirks-remove-redundant-condition.patch | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 ipp-usb-0.9.27-quirks-remove-redundant-condition.patch diff --git a/golang-github-openprinting-ipp-usb.spec b/golang-github-openprinting-ipp-usb.spec index e0d1874..c929a97 100644 --- a/golang-github-openprinting-ipp-usb.spec +++ b/golang-github-openprinting-ipp-usb.spec @@ -24,13 +24,14 @@ Requires: pkgconfig(libusb-1.0) >= 1.0 } Name: %{goname} -Release: 5%{?dist} +Release: 6%{?dist} Summary: HTTP reverse proxy, backed by IPP-over-USB connection to device # Upstream license specification: BSD-2-Clause License: BSD-2-Clause URL: %{gourl} Source0: %{gosource} +Patch0: ipp-usb-0.9.27-quirks-remove-redundant-condition.patch # needed for registering device on localhost BuildRequires: pkgconfig(avahi-client) >= 0.7 @@ -61,6 +62,9 @@ Requires: systemd-udev %prep %goprep +# golang 1.26.0 introduces mandatory redundancy check, which makes ipp-usb fail to build from source. +# This is downstream patch, upstream fixed it by code refactoring. +%patch -P 0 -p1 -b .redundant-cond %build %gobuild -o %{gobuilddir}/bin/ipp-usb %{goipath} @@ -114,6 +118,9 @@ install -m 0644 -vp ipp-usb-quirks/* %{buildroot}%{_datadir}/ipp-usb/quirks %gopkgfiles %changelog +* Wed Jul 15 2026 RHEL Packaging Agent - 0.9.27-6 +- Rebuild for golang-1.26.4-1.el10 to fix CVEs + * Wed Feb 25 2026 Zdenek Dohnal - 0.9.27-5 - rebuilt to fix CVE-2025-68121 and CVE-2025-61726 diff --git a/ipp-usb-0.9.27-quirks-remove-redundant-condition.patch b/ipp-usb-0.9.27-quirks-remove-redundant-condition.patch new file mode 100644 index 0000000..b378916 --- /dev/null +++ b/ipp-usb-0.9.27-quirks-remove-redundant-condition.patch @@ -0,0 +1,16 @@ +--- a/quirks.go ++++ b/quirks.go +@@ -101,13 +101,12 @@ func (q *Quirks) empty() bool { + // empty returns true, if Quirks are actually empty + func (q *Quirks) empty() bool { + return !q.Blacklist && + len(q.HTTPHeaders) == 0 && +- !q.Blacklist && + q.BuggyIppRsp == QuirksBuggyIppRspUnset && + !q.DisableFax && + !q.IgnoreIppStatus && + q.InitDelay == 0 && + q.InitReset == QuirksResetUnset && + q.RequestDelay == 0 && + q.UsbMaxInterfaces == 0 + }