[Bug 953022] New: Base:System/grub2: Bug pkg install fails to install '.../en*'/LC_MESSAGES/grub2.mo locale files,
http://bugzilla.opensuse.org/show_bug.cgi?id=953022 Bug ID: 953022 Summary: Base:System/grub2: Bug pkg install fails to install '.../en*'/LC_MESSAGES/grub2.mo locale files, Classification: openSUSE Product: openSUSE.org Version: unspecified Hardware: Other OS: Other Status: NEW Severity: Critical Priority: P5 - None Component: 3rd party software Assignee: jslaby@suse.com Reporter: 9b3e05a5@opayq.com QA Contact: opensuse-communityscreening@forge.provo.novell.com CC: arvidjaar@gmail.com, mchang@suse.com Found By: --- Blocker: --- I'm building a grub2 memdisk image. Exec of grub2-mkstandalone \ --compress=no \ --locales="en@quot" \ --fonts="unicode" \ --themes="" \ -O x86_64-xen \ -o grub-x86_64-xen \ boot/grub/grub.cfg fails grub2-mkstandalone: error: cannot find locale `en@quot'. This is because the required grub2.mo for en@quote is missing tree /usr/share/locale/en@quot/ /usr/share/locale/en@quot/ └── LC_MESSAGES find /usr/share/locale -type f -name grub2.mo | grep -i en (empty) Only find /usr/share/locale* -type f -name grub2.mo /usr/share/locale/pa/LC_MESSAGES/grub2.mo /usr/share/locale/ca/LC_MESSAGES/grub2.mo /usr/share/locale/zh_CN/LC_MESSAGES/grub2.mo /usr/share/locale/de/LC_MESSAGES/grub2.mo /usr/share/locale/vi/LC_MESSAGES/grub2.mo /usr/share/locale/tr/LC_MESSAGES/grub2.mo /usr/share/locale/id/LC_MESSAGES/grub2.mo /usr/share/locale/nl/LC_MESSAGES/grub2.mo /usr/share/locale/lt/LC_MESSAGES/grub2.mo /usr/share/locale/sl/LC_MESSAGES/grub2.mo /usr/share/locale/da/LC_MESSAGES/grub2.mo /usr/share/locale/ast/LC_MESSAGES/grub2.mo /usr/share/locale/fr/LC_MESSAGES/grub2.mo /usr/share/locale/hu/LC_MESSAGES/grub2.mo /usr/share/locale/ja/LC_MESSAGES/grub2.mo /usr/share/locale/uk/LC_MESSAGES/grub2.mo /usr/share/locale/fi/LC_MESSAGES/grub2.mo /usr/share/locale/es/LC_MESSAGES/grub2.mo /usr/share/locale/ru/LC_MESSAGES/grub2.mo /usr/share/locale/sv/LC_MESSAGES/grub2.mo /usr/share/locale/gl/LC_MESSAGES/grub2.mo /usr/share/locale/it/LC_MESSAGES/grub2.mo /usr/share/locale/pl/LC_MESSAGES/grub2.mo /usr/share/locale/nb/LC_MESSAGES/grub2.mo /usr/share/locale/eo/LC_MESSAGES/grub2.mo /usr/share/locale/zh_TW/LC_MESSAGES/grub2.mo /usr/share/locale/pt_BR/LC_MESSAGES/grub2.mo are available, where rpm -q --whatprovides /usr/share/locale/*/LC_MESSAGES/grub2.mo | uniq grub2-2.02~beta2-20.10.1.x86_64 Testing with upstream source git clone git://git.savannah.gnu.org/grub.git cd grub git reflog 1 2066766 HEAD@{0}: clone: from git://git.savannah.gnu.org/grub.git ./linguas.sh ./autogen.sh ./configure --prefix=/usr/local/grub2-test ... config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile ******************************************************* GRUB2 will be compiled with following components: Platform: i386-pc With devmapper support: No (need libdevmapper header) With memory debugging: No With disk cache statistics: No With boot time statistics: No efiemu runtime: Yes grub-mkfont: Yes grub-mount: No (need FUSE library) starfield theme: Yes With DejaVuSans font from /usr/share/fonts/truetype/DejaVuSans.ttf With libzfs support: No (need zfs library) Build-time grub-mkfont: Yes With unifont from /usr/share/fonts/uni/unifont.pcf.gz With liblzma from -llzma (support for XZ-compressed mips images) ******************************************************* The .mo files are built/installed cd po make make install find /usr/local/grub2-test/ -type f -name '*grub*' | grep "en" /usr/local/grub2-test/share/locale/en@piglatin/LC_MESSAGES/grub.mo /usr/local/grub2-test/share/locale/en@greek/LC_MESSAGES/grub.mo /usr/local/grub2-test/share/locale/en@hebrew/LC_MESSAGES/grub.mo /usr/local/grub2-test/share/locale/en@quot/LC_MESSAGES/grub.mo /usr/local/grub2-test/share/locale/en@arabic/LC_MESSAGES/grub.mo /usr/local/grub2-test/share/locale/en@cyrillic/LC_MESSAGES/grub.mo No idea where the *rest* of the locales, e.g. { en, en_US, en_GB, en_CA } are ... In any case, the grub2 pkg should install a *complete* set of locales. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022 http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c1 --- Comment #1 from boo35 boo35 <9b3e05a5@opayq.com> --- fyi, for a clean, upstream source build git clone git://git.savannah.gnu.org/grub.git cd grub ./linguas.sh ./autogen.sh ./configure \ --prefix=/usr/local/grub2-test \ --with-gnu-ld make make install cd /usr/local/grub2-test/share/locale find . -name grub.mo | sort ./ast/LC_MESSAGES/grub.mo ./ca/LC_MESSAGES/grub.mo ./da/LC_MESSAGES/grub.mo ./de_CH/LC_MESSAGES/grub.mo ./de@hebrew/LC_MESSAGES/grub.mo ./de/LC_MESSAGES/grub.mo ./en@arabic/LC_MESSAGES/grub.mo ./en@cyrillic/LC_MESSAGES/grub.mo ./en@greek/LC_MESSAGES/grub.mo ./en@hebrew/LC_MESSAGES/grub.mo ./en@piglatin/LC_MESSAGES/grub.mo ./en@quot/LC_MESSAGES/grub.mo ./eo/LC_MESSAGES/grub.mo ./es/LC_MESSAGES/grub.mo ./fi/LC_MESSAGES/grub.mo ./fr/LC_MESSAGES/grub.mo ./gl/LC_MESSAGES/grub.mo ./hu/LC_MESSAGES/grub.mo ./id/LC_MESSAGES/grub.mo ./it/LC_MESSAGES/grub.mo ./ja/LC_MESSAGES/grub.mo ./lt/LC_MESSAGES/grub.mo ./nb/LC_MESSAGES/grub.mo ./nl/LC_MESSAGES/grub.mo ./pa/LC_MESSAGES/grub.mo ./pl/LC_MESSAGES/grub.mo ./pt_BR/LC_MESSAGES/grub.mo ./ru/LC_MESSAGES/grub.mo ./sl/LC_MESSAGES/grub.mo ./sr/LC_MESSAGES/grub.mo ./sv/LC_MESSAGES/grub.mo ./tr/LC_MESSAGES/grub.mo ./uk/LC_MESSAGES/grub.mo ./vi/LC_MESSAGES/grub.mo ./zh_CN/LC_MESSAGES/grub.mo ./zh_TW/LC_MESSAGES/grub.mo -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c2
--- Comment #2 from Andrei Borzenkov
http://bugzilla.opensuse.org/show_bug.cgi?id=953022 http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c3 --- Comment #3 from boo35 boo35 <9b3e05a5@opayq.com> ---
Please explain why do you need this locale?
You mean apart from the fact that that it's supposed to be installed, as evidenced by the upstream build? (1) I'm in an en@ locale. (2) I want to create a minimal grub2 image, with only the needed locale -- not populated with unnecessary bloat of unneeded locales, which is what you get if you do not specify a single locale
It is disabled due to this error during build
There's no such error when building upstream source. It's clearly an artifact of the pkg'ing build. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c4
--- Comment #4 from Michael Chang
It is disabled due to this error during build:
Thanks. Let me check the error. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c5
--- Comment #5 from Andrei Borzenkov
Thanks. Let me check the error.
The error is due to Makefile explicitly setting C.UTF-8 which does not exist in (open)SUSE. It seems more Debianism/Ubuntu. As I have no idea what these special locales do nor why would anyone need them I simply disabled them. I still have not received explanation why exactly this en@quot is needed, what it contains, how it differs from built-in English strings. Fact it, nobody missed these files in the past 3+ years. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c6
--- Comment #6 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c7
--- Comment #7 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c8
--- Comment #8 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c9
--- Comment #9 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c10
Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=953022 http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c11 boo35 boo35 <9b3e05a5@opayq.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(9b3e05a5@opayq.co | |m) | --- Comment #11 from boo35 boo35 <9b3e05a5@opayq.com> ---
Please help to explain why en@quot is needed?
The primary reason is simply that it's supposed to be there, as it is in upstream. What's "your" legitimate reasoning for removing upstream functinoality? I need one locale, and I need it to be en locale. Not only has opensuse' grub2 not provided en@auote -- it's provied *no* en locale. en@quot is the appropriate one for the grub2 image (https://www.gnu.org/software/gettext/manual/html_node/po_002fLINGUAS.html). That it's not been an issue 'for three years' is a ridiculous argument against fixing something that's clearly broken. I noticed it specifically when creating a custom, standalone pvgrub2 image for launching a Xen DomU because Opensuse's method is currently broken. If you do not fix this appropriately, then you'll need to address why the other utils that grub2 ships that expect the availability of the locale , e.g., gtub2-mkstanadalone.
Are you building on openSUSE,
Yes, in the current example.
if yes how can you avoid unsupported LC_ALL=C.UTF-8 in po's Makefile ?
Sry, I have no idea what you're asking here. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022 boo35 boo35 <9b3e05a5@opayq.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carnold@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c12
--- Comment #12 from Andrei Borzenkov
Are you building on openSUSE, if yes how can you avoid unsupported LC_ALL=C.UTF-8 in po's Makefile ?
When building from dist tar po files are not rebuilt, so this issue is not seen. We update translation in our package. I re-enabled en@quot, it builds. SR#342138. Other extra catalogs still fail to build. C.UTF-8 is not present in upstream gettext, it was added with extra catalogs by Vladimir. I'll ask upstream. (In reply to boo35 boo35 from comment #11)
That it's not been an issue 'for three years' is a ridiculous argument against fixing something that's clearly broken.
This plays a role in deciding how urgent and important it is to fix it. Anyway, I hope you are satisfied now. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c13
--- Comment #13 from Michael Chang
(In reply to Michael Chang from comment #10)
Are you building on openSUSE, if yes how can you avoid unsupported LC_ALL=C.UTF-8 in po's Makefile ?
When building from dist tar po files are not rebuilt, so this issue is not seen. We update translation in our package.
Well. I was based on his comment#1 that he's using upstream source build. Anyway it's not worth much discussion as it's just my curiosity.
I re-enabled en@quot, it builds. SR#342138. Other extra catalogs still fail to build.
Thanks a lot, the SR is accepted to factory.
C.UTF-8 is not present in upstream gettext, it was added with extra catalogs by Vladimir. I'll ask upstream.
Again, Thanks for bringing this up on grub2 upstream ML. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022
http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c14
Andrei Borzenkov
http://bugzilla.opensuse.org/show_bug.cgi?id=953022 http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c15 boo35 boo35 <9b3e05a5@opayq.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(arvidjaar@gmail.c | |om) --- Comment #15 from boo35 boo35 <9b3e05a5@opayq.com> --- Does 'accepted into TW' imply it'll move automatically into 13.2 & Leap, so it's testable/usable? Or does that request need to be made additionally/separately? I can just wait, or make that request ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=953022 http://bugzilla.opensuse.org/show_bug.cgi?id=953022#c16 boo35 boo35 <9b3e05a5@opayq.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@suse.com Flags| |needinfo?(jslaby@suse.com), | |needinfo?(mchang@suse.com) --- Comment #16 from boo35 boo35 <9b3e05a5@opayq.com> --- When will this fix be available in Opensuse 13.2 & Leap repos? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com