Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926768 - dev-debug/scap-driver-0.29.3-r5: build error on kernel 6.8 due to removal of strlcpy
Summary: dev-debug/scap-driver-0.29.3-r5: build error on kernel 6.8 due to removal of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-03-11 14:31 UTC by Holger Hoffstätte
Modified: 2024-03-12 02:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2024-03-11 14:31:58 UTC
6.8 removed strlcpy, which - of course - scap-driver uses:

../scap-driver-0.29.3-r5/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/ppm_events.c:627:44: error: implicit declaration of function 'strlcpy'; did you mean 'strscpy'? [-Werror=implicit-function-declaration]
  627 |                                 len = (int)strlcpy(args->buffer + args->arg_data_offset,
      |                                            ^~~~~~~
      |                                            strscpy


Reproducible: Always

Steps to Reproduce:
1. try to build scap-driver against kernel-6.8 
2. build failure
Comment 1 Holger Hoffstätte 2024-03-11 14:32:46 UTC
I'm working on the usual backport.
Comment 2 Larry the Git Cow gentoo-dev 2024-03-12 02:53:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8534c90299b019823f5f221a0875786e64e8c03c

commit 8534c90299b019823f5f221a0875786e64e8c03c
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2024-03-11 15:34:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-12 02:50:32 +0000

    dev-debug/scap-driver: fix build on kernel 6.8
    
    Closes: https://bugs.gentoo.org/926768
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/35712
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/0.29.3-fix-kmod-build-on-6.8+.patch      | 44 ++++++++++++++++++
 dev-debug/scap-driver/scap-driver-0.29.3-r6.ebuild | 53 ++++++++++++++++++++++
 2 files changed, 97 insertions(+)