Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922138 - app-editors/neovim-9999: build failure (caused by -DLUA_PRG in ebuild)
Summary: app-editors/neovim-9999: build failure (caused by -DLUA_PRG in ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Brahmajit Das
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-01-14 23:44 UTC by Vadim A. Misbakh-Soloviov (mva)
Modified: 2024-01-23 03:00 UTC (History)
5 users (show)

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


Attachments
fix finding luajit in live (0001-app-editors-neovim-fix-finding-luajit-in-live.patch,1.09 KB, patch)
2024-01-16 06:08 UTC, Brahmajit Das
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2024-01-14 23:44:24 UTC
Hi there!
For now, =neovim-9999 fails to build, throwing an errors and statig that it trying to use 
>   /var/tmp/portage/app-editors/neovim-9999/work/neovim-9999_build/luajit
as Lua interpreter (where `luajit` comes from `-DLUA_PRG="${ELUA}"` in ebuild).

It seems, previously it was just using the value of LUA_PRG, and now - somewhy appends it to $BUILD_DIR.

Bisecting showed that such breakage was introduced here: https://github.com/neovim/neovim/commit/c50951a4d0cf480aa138a2ed2bd2deedebeb0dec


So, we need to think about fix, as next release (0.9.6) will inherit that behaviour.


I can create a PR on GH fith fix, but I think, we need to decide about what would be the right way to fix that.

I already said my thoughts on IRC on #gentoo-vim, but will repeat here in #c1

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-14 23:45:23 UTC
(In reply to Vadim A. Misbakh-Soloviov (mva) from comment #0)
> So, we need to think about fix, as next release (0.9.6) will inherit that
> behaviour.

You sure? 0.9.x is branched. 0.9.x releases were already made since that commit landed.
Comment 2 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2024-01-15 00:10:22 UTC
(I'm late to #c1, but anyway):

I think about following solution:
As `lua-single.eclass` already sets up wrapper at `${T}/${ELUA}/bin/lua` (and adds it to $PATH (just neovim somewhy don't want to use $PATH and uses $BUILD_DIR to append LUA_PRG value).

So, -DLUA_PRG="${T}/${ELUA}/bin/lua" looks like a way to go (I already locally tested it, and it fixes the problem, so we just need to decide if it is okay, and I can then fix 9999 ebuild, if nobody objects.



WDYT?
Comment 3 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2024-01-15 00:16:11 UTC
(In reply to Sam James from comment #1)
> (In reply to Vadim A. Misbakh-Soloviov (mva) from comment #0)
> > So, we need to think about fix, as next release (0.9.6) will inherit that
> > behaviour.
> 
> You sure? 0.9.x is branched. 0.9.x releases were already made since that
> commit landed.

Well, yes, probably that would be 0.10 (which anyway there are rumors about).

I am, of course, can't be 100% sure this commit be merged to `release-0.9` branch (as I can't also be sure otherwise), but since 0.10 is still not branched, I pretty sure it will take this commit when it will be.

SO, we will anyway need to fix that.

And, anyway, suggested fix don't break any comatibility (and will anyway be only applied to 9999 for now), so I'd vote for it :shrug:
Comment 4 Brahmajit Das 2024-01-16 06:08:37 UTC
Created attachment 882376 [details, diff]
fix finding luajit in live

@Vadim we have seen this issue before, @Sam had helped me fix this but I'm not sure how this commit got lost/reverted. Can you please try out this patch and see if the live ebuild is buildable.
Comment 5 Brahmajit Das 2024-01-16 06:20:17 UTC
(In reply to listout from comment #4)
> Created attachment 882376 [details, diff] [details, diff]
> fix finding luajit in live
> 
> @Vadim we have seen this issue before, @Sam had helped me fix this but I'm
> not sure how this commit got lost/reverted. Can you please try out this
> patch and see if the live ebuild is buildable.

Must have been this commit [1] from last week

[1]: https://github.com/gentoo/gentoo/commit/beea6ed74eb77f3f16cb60e441cf51afd08ccc71
Comment 6 Larry the Git Cow gentoo-dev 2024-01-16 06:38:40 UTC
The bug has been closed via the following commit(s):

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

commit b603c4da67de50aca62559471bf59b72f9f4059d
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2024-01-16 06:27:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-16 06:38:01 +0000

    app-editors/neovim: fix finding luajit in live
    
    Commit 7b054106ef5a1fd742fb23886173d8c5a842d715 was lost with commit
    beea6ed74eb77f3f16cb60e441cf51afd08ccc71, thus introducing bug 922138.
    
    Closes: https://bugs.gentoo.org/922138
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34833
    Signed-off-by: Sam James <sam@gentoo.org>

 app-editors/neovim/neovim-9999.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 7 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2024-01-23 03:00:53 UTC
@listout, @sam

Btw, is it any advantages of this way (symlink) over changing -DLUA_PRG value?