| Summary: | dev-embedded/openocd-0.12.0: linuxgpiod.c:283:19: error: 'GPIOD_LINE_REQUEST_DIRECTION_INPUT' undeclared (first use in this function); did you mean 'GPIOD_LINE_DIRECTION_INPUT'? with >dev-libs/libgpiod-1.6.4 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | yongxiang <tanekliang> |
| Component: | Current packages | Assignee: | Embedded Gentoo Team <embedded> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dlan, fercerpav, jstein |
| Priority: | Normal | Keywords: | PullRequest |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://github.com/gentoo/gentoo/pull/33792 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
emerge --info
build.log |
||
Created attachment 872745 [details]
emerge --info
Created attachment 872746 [details]
build.log
When downgrading dev-libs/libgpiod to 1.6.4, openocd compiles fine. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4731731d4af17fc08f2ce920c8d1370ccfdfd102 commit 4731731d4af17fc08f2ce920c8d1370ccfdfd102 Author: Yongxiang Liang <tanekliang@gmail.com> AuthorDate: 2023-11-13 15:33:33 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2023-11-14 11:12:35 +0000 dev-embedded/openocd: add libgpiod subslot dep the openocd doesn't support new APIs for libpgiod-2.* so let's force it to depend on libgpiod-1.6.* Link: https://sourceforge.net/p/openocd/mailman/message/37389960/ Closes: https://bugs.gentoo.org/915709 Signed-off-by: Yongxiang Liang <tanekliang@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org> dev-embedded/openocd/{openocd-0.12.0.ebuild => openocd-0.12.0-r1.ebuild} | 1 + 1 file changed, 1 insertion(+) |
src/jtag/drivers/linuxgpiod.c: In function 'helper_get_line': src/jtag/drivers/linuxgpiod.c:283:19: error: 'GPIOD_LINE_REQUEST_DIRECTION_INPUT' undeclared (first use in this function); did you mean 'GPIOD_LINE_DI RECTION_INPUT'? 283 | int dir = GPIOD_LINE_REQUEST_DIRECTION_INPUT, flags = 0, val = 0, retval; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | GPIOD_LINE_DIRECTION_INPUT Reproducible: Always