Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945008 - [guru] app-misc/yazi-0.3.3-r1 fails to compile: warning: onig_sys@69.8.1: regparse.c:588:5: error: initialization of int ()(void) from incompatible pointer type int ()(st_str_end_key , st_str_end_key ) [-Wincompatible-pointer-types]
Summary: [guru] app-misc/yazi-0.3.3-r1 fails to compile: warning: onig_sys@69.8.1: reg...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: f00wl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-26 08:29 UTC by Agostino Sarubbo
Modified: 2025-02-17 09:49 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,633.90 KB, text/plain)
2024-11-26 08:29 UTC, Agostino Sarubbo
Details
Working ebuild for current version from GURU with workaround included. (yazi-25.2.11-r1.ebuild,8.47 KB, application/vnd.gentoo.ebuild)
2025-02-15 08:21 UTC, NHO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-11-26 08:29:31 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-misc/yazi-0.3.3-r1 fails to compile.
Discovered on: amd64 (internal ref: guru_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0003
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-26 08:29:33 UTC
Created attachment 911959 [details]
build.log

build log and emerge --info
Comment 2 Karl-Johan Karlsson 2024-12-01 08:17:53 UTC
This looks like the same problem as bug 943785.

onig_sys includes an ancient snapshot of oniguruma, which isn't compatible with GCC 15 yet.

To make onig_sys use the system library instead of its included snapshot, depend on dev-libs/oniguruma and compile with "export RUSTONIG_SYSTEM_LIBONIG=1".
Comment 3 f00wl 2024-12-02 10:39:34 UTC
Thanks for the debug and the workaround ! I don't use GCC 15 as it is masked and I don't have necessary resources to set it up for now.

I reference here the issue you opened on rust-onig: https://github.com/rust-onig/rust-onig/issues/191
Comment 4 NHO 2025-02-15 08:04:39 UTC
Upstream for rust-onig appears to be dead or unresponsible.
Comment 5 NHO 2025-02-15 08:19:51 UTC
Workaround works.
Ebuild attached.
Comment 6 NHO 2025-02-15 08:21:45 UTC
Created attachment 918949 [details]
Working ebuild for current version from GURU with workaround included.
Comment 7 NHO 2025-02-15 21:23:46 UTC
Reported problem and workaround to yuzi upstream:
https://github.com/sxyazi/yazi/discussions/2344#

Workaround is in dev branch of guru
https://gitweb.gentoo.org/repo/proj/guru.git/commit/?h=dev&id=ac0e30777c8b84bb1a226280a36f1dbc6788e211
Comment 8 Larry the Git Cow gentoo-dev 2025-02-17 09:49:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ac0e30777c8b84bb1a226280a36f1dbc6788e211

commit ac0e30777c8b84bb1a226280a36f1dbc6788e211
Author:     demize <demize@unstable.systems>
AuthorDate: 2025-02-15 16:52:14 +0000
Commit:     demize <demize@unstable.systems>
CommitDate: 2025-02-15 16:54:11 +0000

    app-misc/yazi: use system libonig with rust-onig
    
    This fixes an issue compiling with GCC 15.
    
    Closes: https://bugs.gentoo.org/945008
    Signed-off-by: demize <demize@unstable.systems>

 app-misc/yazi/{yazi-25.2.11.ebuild => yazi-25.2.11-r1.ebuild} | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)