Bug 411520 - musl based system: no time and date is shown
Summary: musl based system: no time and date is shown
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock (show other bugs)
Version: 5.16.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-02 10:37 UTC by Bart Ribbers
Modified: 2019-09-09 13:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing the issue (155.44 KB, image/png)
2019-09-02 10:37 UTC, Bart Ribbers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Ribbers 2019-09-02 10:37:32 UTC
Created attachment 122453 [details]
Screenshot showing the issue

SUMMARY

The widget appears completely empty in the panel, it's just a blank spot. When clicking on it to show the calendar, all values that should normally contain date or time strings are empty. See the attached screenshot.

STEPS TO REPRODUCE
1. Get a Musl based system like Alpine Linux or Gentoo Musl
2. Enable the digital clock widget

OBSERVED RESULT

Widget is completely empty in the panel, all date and time strings in the opened widget are gone.

EXPECTED RESULT

Widget to show the date and time normally, and have a working calendar when opened.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 4.19.68
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION

The system is Musl based and has no locale support because of it (that's a glibc thing).
Comment 1 David Edmundson 2019-09-02 10:48:58 UTC
Please run 

"ls -l /etc/localtime" and paste the full result
Comment 2 Bart Ribbers 2019-09-02 13:01:37 UTC
Thanks for your quick response!

▶ ls -l /etc/localtime
lrwxrwxrwx 1 root root 30 Jul  1 17:19 /etc/localtime -> /etc/zoneinfo/Europe/Amsterdam
Comment 3 Alexey Min 2019-09-04 14:27:02 UTC
> has no locale support

What is this then? https://git.musl-libc.org/cgit/musl/tree/src/locale

Needs some more minimal example to reproduce, what was it, "plasmaengineexplorer time" from plasma-sdk?
Comment 4 Bart Ribbers 2019-09-07 19:57:20 UTC
There might be some support for it in the source, but I meant there is no `locale` command like glibc has.

I'm not sure what you want to know from `plasmaengineexplorer time`? It says there are 41 data sources, and selecting "time" in the dropdown makes several timezones show (UTC-14:00 to UTC+14:00 and "Local").
Comment 5 David Edmundson 2019-09-09 13:03:39 UTC
https://codereview.qt-project.org/c/qt/qtbase/+/273335