Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907465 - media-radio/libax25-0.0.12_rc5 fails to install headers on MUSL systems
Summary: media-radio/libax25-0.0.12_rc5 fails to install headers on MUSL systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 907407 907408
  Show dependency tree
 
Reported: 2023-05-31 06:38 UTC by Thomas Beierlein
Modified: 2023-05-31 13:31 UTC (History)
0 users

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 Thomas Beierlein gentoo-dev 2023-05-31 06:38:15 UTC
Installing media-radio/libax25 does sometimes fail to install some relevant header files on MUSL based systems:

  netax25/ax25.h netrose/rose.h and netrom/netrom.h

Further inspection shows that the files are only missing if libax25 is already installed and the files got installed the first time. Repeating the installation every second install the files are missing.
Comment 1 Thomas Beierlein gentoo-dev 2023-05-31 06:52:35 UTC
Digging deeper:

Some libc variants (glibc as one of them) are providing the missing files by themself.
If not available libax25 provides replacements. These gets installed only if the files are missing before hand. That should do fine. 

As Gentoo allows to reinstall an already installed package it unluckily leads in every second install to the following:
 
- The check shows the file is already installed (from the first install)
- It decides that an install of the substitions files is not needed and leaves them out.
- During qmerge phase the old version is uninstalled together with the files in question and the new installed version does not have the files.

Next time it is the other way round - the files gets installed.
Comment 2 Larry the Git Cow gentoo-dev 2023-05-31 13:31:44 UTC
The bug has been closed via the following commit(s):

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

commit 1a7fbac540cd29d4a88d0067750dd60c606d614b
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2023-05-31 13:29:20 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2023-05-31 13:31:16 +0000

    dev-libs/libax25: Install missing headers unconditionally for MUSL based systems
    
    Closes: https://bugs.gentoo.org/907465
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 .../libax25/files/libax25-0.0.12_rc5-musl.patch    | 23 ++++++++++++++++++++++
 dev-libs/libax25/libax25-0.0.12_rc5.ebuild         | 10 +++++++++-
 2 files changed, 32 insertions(+), 1 deletion(-)