Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 915709

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 packagesAssignee: 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

Description yongxiang 2023-10-14 05:10:45 UTC
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
Comment 1 yongxiang 2023-10-14 05:11:17 UTC
Created attachment 872745 [details]
emerge --info
Comment 2 yongxiang 2023-10-14 05:11:39 UTC
Created attachment 872746 [details]
build.log
Comment 3 yongxiang 2023-10-14 05:21:31 UTC
When downgrading dev-libs/libgpiod to 1.6.4, openocd compiles fine.
Comment 4 Larry the Git Cow gentoo-dev 2023-11-14 11:14:01 UTC
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(+)