| Summary: | fonts-otf-source-han not included in live-media | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | You-Cheng Hsieh <yochenhsieh> |
| Component: | Release (media or process) | Assignee: | Martin Whitaker <mageia> |
| Status: | RESOLVED FIXED | QA Contact: | You-Cheng Hsieh <yochenhsieh> |
| Severity: | normal | ||
| Priority: | release_blocker | CC: | ennael1, isobuild, mageia, mageia, mageia, mageia, marja11, napcok, pterjan, sysadmin-bugs, thierry.vignaud, tmb |
| Version: | Cauldron | Keywords: | 6sta1 |
| Target Milestone: | Mageia 6 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://bugs.mageia.org/show_bug.cgi?id=17223 | ||
| Whiteboard: | |||
| Source RPM: | draklive-config | CVE: | |
| Status comment: | Fix committed, will be on sta2 ISOs | ||
|
Description
You-Cheng Hsieh
2016-07-04 07:46:10 CEST
See also https://bugs.mageia.org/show_bug.cgi?id=17223#c17 I can't now find that it was decided to not have that font on this iso, and re-add it later, but I do have a vague memory of such a decision. tmb will know :-) Setting to release blocker. Keywords:
(none) =>
6sta1 Hm, seems I forgot to fix the second part of this problem... The font is not installed on live media by default as it triggers a bug / slowdown in fontconfig cache that makes live boot stall in 30-40 seconds, appearing to have "hung" with no visible output at all... (and upstream fontconfig guys still dont have any idea of how to fix) So I moved the font to "Live Core" media so it would ship with live medias, with the intention to install it only for user selecting a language needing it... But I forgot to change the code to ensure it got installed it on language selection :/ for now you can "urpmi fonts-otf-source-han" even in live mode, and it will install it. Thanks for clarify. Install it for CJK languages would be nice indeed, hope you could finish it before next release.:)
Marja Van Waes
2016-07-10 13:16:05 CEST
Blocks:
(none) =>
15527 OpenMandriva use NotaSanscjk as default CJK font and therefore encounter similar problem. I think how they deal with this issue might worth taking a look: https://issues.openmandriva.org/show_bug.cgi?id=1764#c58 Attempt fix: https://github.com/OpenMandrivaAssociation/omdv-build-iso/commit/2ff0f766c060b37b134b7993f61dcb8c9805ceee (In reply to You-Cheng Hsieh from comment #4) > OpenMandriva use NotaSanscjk as default CJK font and therefore encounter > similar problem. I think how they deal with this issue might worth taking a > look: > https://issues.openmandriva.org/show_bug.cgi?id=1764#c58 > Attempt fix: > https://github.com/OpenMandrivaAssociation/omdv-build-iso/commit/ > 2ff0f766c060b37b134b7993f61dcb8c9805ceee Thanks :-) Did you already find the RedHat patch this one seems to (at least partly) come from? CC:
(none) =>
ennael1, mageia, mageia, pterjan, thierry.vignaud
It's not a patch as such, it's this part of the iso build scripts that should be adapted for mageia draklive config:
+ # set the timestamp on the directories to be a whole second
+ # fc-cache looks at the nano second portion which will otherwise be
+ # non-zero as we are on ext4, but then it will compare against the stamps
+ # on the squashfs live image, squashfs only has second level timestamp resolution
+ FCTIME=$(date +%Y%m%d%H%M.%S)
+ $SUDO chroot "$CHROOTNAME" find /usr/share/fonts -type d -exec touch -t $FCTIME {} \;
The fedora fix (stop systemd running the ldconfig cache) is this part:
+#
+ $SUDO echo 'File created by omdv-build-iso. See systemd-update-done.service(8).' \
+ | tee "$CHROOTNAME"/etc/.updated >"$CHROOTNAME"/var/.updated
+CC:
(none) =>
tmb Thanks, Thomas :-) (Even if we thought it was naughty of you to read bugs and comment in one :-þ ) CC'ing napcok, too, now, in case he'd like to help (and because of the experience he has building live isos) CC:
(none) =>
napcok Since Thomas' departure, I would like to brief current status of this issue: At first, font-otf-source-han was picked to cause boot lag because of long fc-cache time. The original approach of Thomas was to: 1) Move font-otf-source-han to a "live core" media. - done. 2) If user select Chinese, Japanese, Korean at language selection, install the font automatically. - not done yet. On the other hand, OpenMandriva devs found the cause of why live boot still run fc-cache when the font cache is available: a timestemp resolution issue. To resolve this bug in this approach, (I think) the work flow should be: 1) Install font-otf-source-han on live system by default instead of leave it in the "live core" media. 2) Adapt the way OpenMandriva fix the timestemp for mageia draklive config. 3) Build some live iso for testing. @Blino: if you could fix this one for next live isos... Assignee:
pkg-bugs =>
mageia
Samuel Verschelde
2016-09-12 16:25:55 CEST
Status comment:
(none) =>
Fix available from openMandriva but need to be adapt to draklive. Further info available at comment #8
Samuel Verschelde
2016-09-12 16:26:12 CEST
CC:
(none) =>
isobuild CC'ing Martin who was poking at live ISOs recently. CC:
(none) =>
mageia
Rémi Verschelde
2016-10-17 11:53:46 CEST
Target Milestone:
--- =>
Mageia 6 I've adapted and incorporated the OpenMandriva fix in draklive-config, and tested it works in my local build. Thanks! That's a really good news! I'll have to wait for sta2 iso to confirm the fix, but I can update the status comment now. Status comment:
Fix available from openMandriva but need to be adapt to draklive. Further info available at comment #8 =>
Fix incorporated and tested works in local build (In reply to Martin Whitaker from comment #11) > I've adapted and incorporated the OpenMandriva fix in draklive-config, and > tested it works in my local build. is it commited on our repos ? CC:
(none) =>
mageia (In reply to Nicolas Lécureuil from comment #13) > is it commited on our repos ? No. I'm still waiting to be given commit rights (and access to the rabbit/bcd servers, so I can release ISOs to QA). This was requested nearly a month ago, but as far as I can tell, never done. (In reply to Martin Whitaker from comment #14) > (In reply to Nicolas Lécureuil from comment #13) > > is it commited on our repos ? > > No. I'm still waiting to be given commit rights (and access to the > rabbit/bcd servers, so I can release ISOs to QA). This was requested nearly > a month ago, but as far as I can tell, never done. Afaik rabbit didn't come back up after last week's "Dirty cow" fix, but apart from that: I don't understand why, after all the good patches you've provided, you don't have git commit rights. now martin has access and rabbit is up. Please martin commit your fix on the git so we can close this bugreport. Assigning to Martin, if I understood correctly. Assignee:
mageia =>
mageia commit 8eb7d39964d283fa8f89699d2df626aca0f36a91
Author: Martin Whitaker <mageia@...>
Date: Tue Oct 25 20:53:01 2016 +0100
Reenable inclusion of fonts-otf-source-han (mga#18857)
Includes fix for slow boot (due to unnecessary font cache update)
ported from OpenMandriva.
---
Commit Link:
http://gitweb.mageia.org/software/build-system/draklive-config/commit/?id=8eb7d39964d283fa8f89699d2df626aca0f36a91
Martin Whitaker
2016-11-21 19:59:52 CET
Status comment:
Fix incorporated and tested works in local build =>
Fix committed, will be on sta2 ISOs closing then. Please reopen when sta2 will be out and if the bug is still valid Status:
NEW =>
RESOLVED
Samuel Verschelde
2017-01-17 10:29:39 CET
Blocks:
15527 =>
(none) |