[Bug 43090] New: gettext broken on Ubuntu 24.04 (noble)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43090 Bug ID: 43090 Summary: gettext broken on Ubuntu 24.04 (noble) Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: jonathan.druart@gmail.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- `gulp po:update` fails with ``` warning: unterminated string Aborted (core dumped) ``` [...] koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/ModuleDashboard.vue:68: warning: unterminated string koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/WidgetDashboardWrapper.vue:32: warning: unterminated string koha-tmpl/intranet-tmpl/prog/js/vue/components/ModuleDashboard/WidgetDashboardWrapper.vue:34: warning: unterminated string Aborted (core dumped) at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:422:12) at ChildProcess.emit (node:events:524:28) at ChildProcess.emit (node:domain:552:15) at maybeClose (node:internal/child_process:1104:16) at Socket.<anonymous> (node:internal/child_process:456:11) at Socket.emit (node:events:524:28) at Socket.emit (node:domain:552:15) at Pipe.<anonymous> (node:net:343:12) [12:43:55] 'po:update' errored after 24 s Only on Ubuntu 24.04, ok on D13 (and I think on D12) I faced this when migrating the Weblate server from D12 to U24 I haven't found the root cause of the problem, but there are related JS changes in the changelog. D13 Version: 0.23.1-2 ldd "$(which xgettext)" linux-vdso.so.1 (0x00007ffccdb94000) libgettextsrc-0.23.1.so => /lib/x86_64-linux-gnu/libgettextsrc-0.23.1.so (0x000072eaec06f000) libgettextlib-0.23.1.so => /lib/x86_64-linux-gnu/libgettextlib-0.23.1.so (0x000072eaebff6000) libunistring.so.5 => /lib/x86_64-linux-gnu/libunistring.so.5 (0x000072eaebe0e000) libtextstyle.so.0 => /lib/x86_64-linux-gnu/libtextstyle.so.0 (0x000072eaebd6f000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000072eaebb79000) libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x000072eaeb9c1000) libacl.so.1 => /lib/x86_64-linux-gnu/libacl.so.1 (0x000072eaeb9b6000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000072eaeb8c6000) libattr.so.1 => /lib/x86_64-linux-gnu/libattr.so.1 (0x000072eaeb8be000) libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x000072eaeb886000) /lib64/ld-linux-x86-64.so.2 (0x000072eaec127000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x000072eaeb866000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x000072eaeb835000)  U24 Version: 0.21-14ubuntu2 linux-vdso.so.1 (0x00007ffc7d5f0000) libgettextsrc-0.21.so => /lib/x86_64-linux-gnu/libgettextsrc-0.21.so (0x000074dad4e41000) libgettextlib-0.21.so => /lib/x86_64-linux-gnu/libgettextlib-0.21.so (0x000074dad4e01000) libunistring.so.5 => /lib/x86_64-linux-gnu/libunistring.so.5 (0x000074dad4c54000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000074dad4a42000) libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x000074dad4860000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000074dad4775000) /lib64/ld-linux-x86-64.so.2 (0x000074dad4ee7000) libicuuc.so.74 => /lib/x86_64-linux-gnu/libicuuc.so.74 (0x000074dad4568000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x000074dad454c000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x000074dad451a000) libicudata.so.74 => /lib/x86_64-linux-gnu/libicudata.so.74 (0x000074dad27ba000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x000074dad253a000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000074dad250c000) D12 has Version: 0.21-12 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43090 --- Comment #1 from Jonathan Druart <jonathan.druart@gmail.com> --- Tried the new version and see the diff: cd misc/translator/po git reset --hard 5d048a6a51a950299e1d00c72efabb18fcdd0a92 # This is the last "Update from Koha" commit: 2026-07-02 03:03 +0000 Weblate o Update from Koha - b0fa3d7e6a Note the Koha's commit id cd /kohadevbox/koha git checkout b0fa3d7e6a gulp po:extract gulp po:update --generate-pot=never --lang fr-FR git -C misc/translator/po diff +#: koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportBuilder.vue:803 +#, fuzzy +msgid "Please enter a year with the format YYYY" +msgstr "Veuillez saisir l'année au format AAAA" +#: koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportBuilder.vue:981 +#, fuzzy +msgid "Report saved successfully" +msgstr "Le rapport a été supprimé" So it caught new valid sentences to translate. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43090 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |julian.maurice@biblibre.com --- Comment #2 from Jonathan Druart <jonathan.druart@gmail.com> --- I have a temporary solution for the translation server, I compiled 0.23: wget https://ftp.gnu.org/pub/gnu/gettext/gettext-0.23.1.tar.xz tar xf gettext-0.23.1.tar.xz cd gettext-0.23.1 ./configure --prefix=/usr/local/gettext-0.23.1 make -j$(nproc) /usr/local/gettext-0.23.1/bin/xgettext --version xgettext (GNU gettext-tools) 0.23.1 Then forced the PATH in koha-i18n + $cmd = sprintf "PATH=%s:%s %s", '/usr/local/gettext-0.23.1/bin', $ENV{PATH}, $cmd; -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43090 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=37397 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org