Bug 2226064

Summary: openocd: FTBFS in Fedora rawhide/f39
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: openocdAssignee: Jiri Kastner <cz172638>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: awilliam, cz172638, jeremy.linton, maggu2810, renault
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openocd-0.12.0-3.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-16 02:36:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2168842, 2169551, 2231791    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2023-07-25 18:50:23 UTC
openocd failed to build from source in Fedora rawhide/f39

https://koji.fedoraproject.org/koji/taskinfo?taskID=103640028


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Please fix openocd at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
openocd will be orphaned. Before branching of Fedora 40,
openocd will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2023-07-25 18:50:28 UTC
Created attachment 1978593 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2023-07-25 18:50:31 UTC
Created attachment 1978594 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2023-07-25 18:50:34 UTC
Created attachment 1978595 [details]
state.log

Comment 4 Fedora Release Engineering 2023-08-16 07:59:51 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 5 Adam Williamson 2023-08-26 00:59:28 UTC
This looks like it's due to libgpiod going from 1.6 to 2.0, I think.

Comment 6 Adam Williamson 2023-08-26 01:02:42 UTC
https://sourceforge.net/p/openocd/tickets/306/ - pbrobinson pinged it in March, but no response yet.

Comment 7 Markus Rathgeb 2023-10-10 19:10:45 UTC
Until this is resolved (e.g. if upstream moves from libgpiod 1.6 to 2.0), would it be an option to remove "BuildRequires: libgpiod-devel" and replace "--enable-linuxgpiod" with "--disable-linuxgpiod" (or just remove the enable argument)? I did it in a COPR build for myself and so I could use openocd installed by the package manager again.

Comment 8 Jeremy Linton 2023-10-26 17:29:20 UTC
I would disable the gpiod support, as I don't imagine to many people are using it that way. Or at least not for long/seriously because AFAIK the GPIO adapter is fairly slow, and for just a few dollars can be replaced with a hardware JTAG adapter that runs an order of magnitude faster (Ex: I have a busblaster which has a CPLD to drive the JTAG signalling, current price $34).

Comment 9 Jeremy Linton 2023-10-26 17:57:39 UTC
Even on the rpi, which I'm assuming might be one of the more popular GPIO adapters, there is a custom bcm2835gpio driver, which doesn't appear to depend on libgpiod.

Comment 10 Fedora Update System 2023-11-07 20:31:00 UTC
FEDORA-2023-41222ff8dd has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-41222ff8dd

Comment 11 Fedora Update System 2023-11-08 02:58:41 UTC
FEDORA-2023-41222ff8dd has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-41222ff8dd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-41222ff8dd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2023-11-16 02:36:05 UTC
FEDORA-2023-41222ff8dd has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.