Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926829 - net-misc/r8152: does not build with Kernel >=6.8: call to undeclared library function 'strlcpy'
Summary: net-misc/r8152: does not build with Kernel >=6.8: call to undeclared library ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jay Faulkner
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2024-03-12 09:36 UTC by Christian Bricart
Modified: 2024-03-29 13:55 UTC (History)
3 users (show)

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


Attachments
use strscpy instead of strlcpy (strlcpy-fix-6.8.patch,1.08 KB, patch)
2024-03-12 09:36 UTC, Christian Bricart
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Bricart 2024-03-12 09:36:25 UTC
Created attachment 887456 [details, diff]
use strscpy instead of strlcpy

Linux 6.8 removed strlcpy, so using strscpy is necessary on newer
kernels.
Comment 1 Jay Faulkner gentoo-dev 2024-03-25 22:21:15 UTC
Sorry I missed this; the upstream patched repo I'm using didn't have this change split out. Your patch looks good and I'll PR it.
Comment 2 Larry the Git Cow gentoo-dev 2024-03-29 13:55:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=458ac56c274e347c83fc5b87ea376fc1b57ef3a2

commit 458ac56c274e347c83fc5b87ea376fc1b57ef3a2
Author:     Jay Faulkner <jay@jvf.cc>
AuthorDate: 2024-03-25 22:34:35 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-03-29 13:54:42 +0000

    net-misc/r8152: fix bug 926829; build on kernel >=6.8
    
    Imports patch from bug 926829 to fix build issues on linux kernels 6.8
    or newer.
    
    Closes: https://bugs.gentoo.org/926829
    Signed-off-by: Jay Faulkner <jay@jvf.cc>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../files/r8152-2.17.1-kernel-6.8-strscpy.patch    | 32 ++++++++++++++++++++++
 net-misc/r8152/r8152-2.17.1.ebuild                 |  3 +-
 2 files changed, 34 insertions(+), 1 deletion(-)