Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915709 - 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
Summary: dev-embedded/openocd-0.12.0: linuxgpiod.c:283:19: error: 'GPIOD_LINE_REQUEST_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-10-14 05:10 UTC by yongxiang
Modified: 2023-11-14 11:14 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,9.51 KB, text/plain)
2023-10-14 05:11 UTC, yongxiang
Details
build.log (build.log,74.35 KB, text/x-log)
2023-10-14 05:11 UTC, yongxiang
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)