macaroni-os / macaroni-os/mark-issues

[media-kit] media-libs/libmikmod installs wrong files (breaks sdl3-image)

Open
#440 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

emerge failure MARK mark-iii mark-unstable media-kit
Dominant language
No language data
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Trying to emerge `sdl3-image` I have an issue in the emerge phase where the cmake enters in a loop in the configure phase.

Adding the debug message in the file `PrivatedSdlFunctions.cmake`:
```
function(read_absolute_symlink DEST PATH)
message(STATUS "🔍 Resolving symlink: ${PATH}")
file(READ_SYMLINK ${PATH} p)
if(NOT IS_ABSOLUTE ${p})
get_filename_component(pdir ${PATH} DIRECTORY)
set(p ${pdir}/${p})
get_filename_component(p ${p} ABSOLUTE)
endif()
set(${DEST} ${p} PARENT_SCOPE)
endfunction()
```
I see this:
```
-- 🔍 Resolving symlink: /usr/lib64/libmhash.so.2
-- 🔍 Resolving symlink: /usr/lib64/libmikmod
-- 🔍 Resolving symlink: /usr/lib64/libmikmod
-- 🔍 Resolving symlink: /usr/lib64/libmikmod
-- 🔍 Resolving symlink: /usr/lib64/libmikmod
-- 🔍 Resolving symlink: /usr/lib64/libmikmod
-- 🔍 Resolving symlink: /usr/lib64/libmikmod
-- 🔍 Resolving symlink: /usr/lib64/libmikmod
```
And this is confirmed with anise files list too:
```
$> anise q files libmikmod
/usr/bin/libmikmod-config
/usr/include/mikmod.h
/usr/lib64/libmikmod
/usr/lib64/libmikmod.so
/usr/lib64/libmikmod.so.3
/usr/lib64/libmikmod.so.3.3.0
```
The ebuild of `libmikmod` installs a broken and wrong file `/usr/lib64/libmikmod` that stalled cmake of sdl3-image.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by emerging sdl3-image and inspect the libmikmod ebuild alongside the installed files listed by anise. Check PrivatedSdlFunctions.cmake while tracing /usr/lib64/libmikmod; done means the incorrect file is no longer installed and sdl3-image completes its configure phase without looping.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.