Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 844883 - sys-apps/plocate-1.1.15: broken message during checking kernel configuration
Summary: sys-apps/plocate-1.1.15: broken message during checking kernel configuration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Arsen Arsenović
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-05-15 13:07 UTC by lekto
Modified: 2022-05-18 10:37 UTC (History)
4 users (show)

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 lekto 2022-05-15 13:07:56 UTC
Hi, I'm updating for fun my old iBook G4 (PowerPC arch), that was last time used in 2017. During emerging (with -io_uring) I got two weird messages about kernel configuration, at the beginning:
> * Determining the location of the kernel source code
> * Found kernel source directory:
> *     /usr/src/linux
> * Found sources for kernel version:
> *     4.9.16-gentoo
> * Checking for suitable kernel configuration options ...
> *   required for USE=io-uring                                                                                                                                                                              >[ !! ]
> * Please check to make sure these options are set correctly.
> * Failure to do so may cause unexpected problems.

At the end:
> * Messages for package sys-apps/plocate-1.1.15:
> 
> *   required for USE=io-uring
> * Please check to make sure these options are set correctly.
> * Failure to do so may cause unexpected problems.
> * The database for the locate command is generated daily by a cron job,
> * if you install for the first time you can run the updatedb command manually now.
> * 

Since I don't have io_uring flag set, I think it shouldn't check if it is set in kernel configuration. Also, message don't really tell what it expect to be set in kernel.
Comment 1 Florian Schmaus gentoo-dev 2022-05-16 16:58:02 UTC
I think we should make the kernel configuration check conditionally, based on the io-uring USE flag, probably using linux_config_exists and linux_chkconfig_present from the linux-info.eclass.
Comment 2 Larry the Git Cow gentoo-dev 2022-05-18 10:37:53 UTC
The bug has been closed via the following commit(s):

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

commit f908799e1426c93655cbbab52652ae8ca28e7b89
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2022-05-18 07:25:17 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-18 10:37:48 +0000

    sys-apps/plocate: only check for io-uring kernel config if USE enabled
    
    Closes: https://bugs.gentoo.org/844883
    Closes: https://github.com/gentoo/gentoo/pull/25546
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 sys-apps/plocate/plocate-1.1.15.ebuild | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)