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 <zdohnal@redhat.com> Assisted-by: Ymir
This commit is contained in:
parent
be10afe00f
commit
14ffec8eda
@ -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 <redhat-ymir-agent@redhat.com> - 0.9.27-6
|
||||
- Rebuild for golang-1.26.4-1.el10 to fix CVEs
|
||||
|
||||
* Wed Feb 25 2026 Zdenek Dohnal <zdohnal@redhat.com> - 0.9.27-5
|
||||
- rebuilt to fix CVE-2025-68121 and CVE-2025-61726
|
||||
|
||||
|
||||
16
ipp-usb-0.9.27-quirks-remove-redundant-condition.patch
Normal file
16
ipp-usb-0.9.27-quirks-remove-redundant-condition.patch
Normal file
@ -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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user