Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 935641

Summary: tree-sitter.eclass: installs neovim libraries as broken symlinks
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: EclassesAssignee: Matthew Smith <matthew>
Status: CONFIRMED ---    
Severity: normal CC: arthurzam, matthew, mva
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-07-06 06:46:00 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/tree-sitter-cmake-0.4.1 installs files with broken symlink.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#QA0023
Comment 1 Agostino Sarubbo gentoo-dev 2024-07-06 06:46:01 UTC
Created attachment 897143 [details]
build.log

build log and emerge --info
Comment 2 Matthew Smith gentoo-dev 2024-07-07 06:38:39 UTC
I think the path used by dosym is incorrect.

> /usr/lib/tree-sitter/parser/cmake.so points to /usr/lib/tree-sitter/libtree-sitter-cmake.so.14 which does not exist.

Should just be /usr/lib/libtree-sitter-cmake.so.14
Comment 3 Matthew Smith gentoo-dev 2024-07-07 06:39:55 UTC
*** Bug 935642 has been marked as a duplicate of this bug. ***
Comment 4 Matthew Smith gentoo-dev 2024-07-07 06:40:08 UTC
*** Bug 935643 has been marked as a duplicate of this bug. ***
Comment 5 Matthew Smith gentoo-dev 2024-07-07 06:40:14 UTC
*** Bug 935644 has been marked as a duplicate of this bug. ***
Comment 6 Matthew Smith gentoo-dev 2024-07-07 06:40:19 UTC
*** Bug 935645 has been marked as a duplicate of this bug. ***
Comment 7 Matthew Smith gentoo-dev 2024-07-07 06:40:27 UTC
*** Bug 935646 has been marked as a duplicate of this bug. ***
Comment 8 Matthew Smith gentoo-dev 2024-07-07 06:40:32 UTC
*** Bug 935647 has been marked as a duplicate of this bug. ***
Comment 9 Matthew Smith gentoo-dev 2024-07-07 06:40:41 UTC
*** Bug 935648 has been marked as a duplicate of this bug. ***
Comment 10 Matthew Smith gentoo-dev 2024-07-07 06:40:47 UTC
*** Bug 935649 has been marked as a duplicate of this bug. ***
Comment 11 Matthew Smith gentoo-dev 2024-07-07 06:40:51 UTC
*** Bug 935650 has been marked as a duplicate of this bug. ***
Comment 12 Matthew Smith gentoo-dev 2024-07-07 06:40:56 UTC
*** Bug 935651 has been marked as a duplicate of this bug. ***
Comment 13 Matthew Smith gentoo-dev 2024-07-07 06:41:02 UTC
*** Bug 935652 has been marked as a duplicate of this bug. ***
Comment 14 Matthew Smith gentoo-dev 2024-07-07 06:41:07 UTC
*** Bug 935653 has been marked as a duplicate of this bug. ***
Comment 15 Matthew Smith gentoo-dev 2024-07-07 06:41:12 UTC
*** Bug 935654 has been marked as a duplicate of this bug. ***
Comment 16 Matthew Smith gentoo-dev 2024-07-07 06:41:18 UTC
*** Bug 935655 has been marked as a duplicate of this bug. ***
Comment 17 Larry the Git Cow gentoo-dev 2024-07-07 06:45:14 UTC
The bug has been referenced in the following commit(s):

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

commit cd426afc7f32ac84206f4156fc8ed0d20bd79246
Author:     Matthew Smith <matthew@gentoo.org>
AuthorDate: 2024-07-07 06:42:17 +0000
Commit:     Matthew Smith <matthew@gentoo.org>
CommitDate: 2024-07-07 06:45:07 +0000

    Revert "tree-sitter-grammar.eclass: extended packaging"
    
    This reverts commit fbe4bc7b9dc970271127a5f167c95da78e32e282.
    
    The previous change does not install the NeoVim symlinks correctly as they
    point to /usr/lib/tree-sitter/liblang.so instead of /usr/lib/liblang.so.
    
    Also the query files are not installed in per-package directories and have
    common names (e.g. highlight.scm) which is causing file collisions.
    
    To be fixed in a follow up commit which will introduce
    tree-sitter-grammar-r1.eclass, so that ebuilds can be rev-bumped so that
    users can rebuild and get the changes.
    
    Bug: https://bugs.gentoo.org/935631
    Bug: https://bugs.gentoo.org/935641
    Signed-off-by: Matthew Smith <matthew@gentoo.org>

 eclass/tree-sitter-grammar.eclass | 13 -------------
 1 file changed, 13 deletions(-)