Bug 484877 - DEBUGINFOD_URLS environment variable is incorrectly set
Summary: DEBUGINFOD_URLS environment variable is incorrectly set
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 16:04 UTC by bruno
Modified: 2024-04-02 15:44 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bruno 2024-04-01 16:04:06 UTC
SUMMARY
DEBUGINFOD_URLS environment variable is incorrectly set.

STEPS TO REPRODUCE
1. Fire up a new shell
2. Run "echo $DEBUGINFOD_URLS"

OBSERVED RESULT
The output is "https://debuginfod.neon.kde.org/:". Note the colon (:) at the end, usually used as a separator for multiple URLs but wrong in this case where we only have a single URL. Since it's at the end of the string, it's interpreted as a part of the URL and makes all debuginfod downloads broken since it tries to fetch them all from https://debuginfod.neon.kde.org/:/ instead of just https://debuginfod.neon.kde.org/ .

EXPECTED RESULT
The output is "https://debuginfod.neon.kde.org/" Note the lack of colon (:) at the end.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 6.0.3
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
/
Comment 1 bruno 2024-04-01 22:22:29 UTC
i found the offending file: https://invent.kde.org/neon/neon/settings/-/blob/Neon/unstable/usr/lib/environment.d/90-neon-debuginfod.conf?ref_type=heads
but i'm not sure how to go on about it, because i don't think these environment .conf files work like traditional scripts, so there's no way to check if $DEBUGINFOD_URLS is empty before adding the URL and colon behind it. could someone please share their thoughts? maybe it would be better if it could be moved to /etc/profile.d or something similar
Comment 2 Carlos De Maine 2024-04-02 12:58:06 UTC
hopefully fixed in https://invent.kde.org/neon/neon/settings/-/commit/a52201dae927b7f718935fdf2411d6243eadc9e4  the new neon-settings-2 will be available immediately in unstable and testing.  user will be available with the next snapshot.
Comment 3 bruno 2024-04-02 15:44:29 UTC
thank you! :)