Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909201 - media-sound/audacity-3.2.5-r1 ... locale/be.po:3100: 'msgstr' is not a valid C format string
Summary: media-sound/audacity-3.2.5-r1 ... locale/be.po:3100: 'msgstr' is not a valid ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL: https://github.com/audacity/audacity/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 908875
  Show dependency tree
 
Reported: 2023-06-26 17:15 UTC by Amit Ugol
Modified: 2023-06-30 12:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (media-sound_audacity-3.2.5-r1_temp_build.log,880.49 KB, text/x-log)
2023-06-26 17:48 UTC, Amit Ugol
Details
added fuzzy to be, fa and fr (po_fuzzy.patch,1.10 KB, patch)
2023-06-26 18:34 UTC, Amit Ugol
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Ugol 2023-06-26 17:15:48 UTC
Compilation fails for locales in the media-sound/audacity with the error:

FAILED: bin/RelWithDebInfo/locale/be/LC_MESSAGES/audacity.mo /var/tmp/portage/media-sound/audacity-3.2.5-r1/work/audacity-Audacity-3.2.5_build/bin/RelWithDebInfo/locale/be/LC_MESSAGES/audacity.mo 
cd /var/tmp/portage/media-sound/audacity-3.2.5-r1/work/audacity-Audacity-3.2.5_build/locale && /usr/bin/cmake -E make_directory /var/tmp/portage/media-sound/audacity-3.2.5-r1/work/audacity-Audacity-3.2.5_build/bin/RelWithDebInfo/locale/be/LC_MESSAGES && /usr/bin/msgfmt --check-format -o /var/tmp/portage/media-sound/audacity-3.2.5-r1/work/audacity-Audacity-3.2.5_build/bin/RelWithDebInfo/locale/be/LC_MESSAGES/audacity.mo /var/tmp/portage/media-sound/audacity-3.2.5-r1/work/audacity-Audacity-3.2.5/locale/be.po
/var/tmp/portage/media-sound/audacity-3.2.5-r1/work/audacity-Audacity-3.2.5/locale/be.po:3100: 'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 1, the argument size specifier is invalid.
/usr/bin/msgfmt: found 1 fatal error

Reproducible: Always

Steps to Reproduce:
1.have latest gettext 0.22-r1
2. try to build media-sound/audacity
3.
Actual Results:  
build fails


a valid workaround is to tag the problematic locale as fuzzy
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-26 17:18:08 UTC
Please attach the full build.log (compressed if necessary; no external links as they expire) and include emerge --info as a comment.
Comment 2 Amit Ugol 2023-06-26 17:48:43 UTC
Created attachment 864664 [details]
build log

full build log
Comment 3 Amit Ugol 2023-06-26 18:34:37 UTC
Created attachment 864665 [details, diff]
added fuzzy to be, fa and fr

Adding fuzzy to be.po, fa.po and fr.po at specific errors seems to have fixed this issue for this package.
Comment 4 cyrillic 2023-06-27 01:04:38 UTC
(In reply to Amit Ugol from comment #0)
> a valid workaround is to tag the problematic locale as fuzzy

Actually this only fixes the build, the format string will still be broken at runtime.
Comment 5 Larry the Git Cow gentoo-dev 2023-06-30 12:31:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59188fa2f4f5c378c475a2d687dedf7b746453bf

commit 59188fa2f4f5c378c475a2d687dedf7b746453bf
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-06-30 12:31:11 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-06-30 12:31:11 +0000

    media-sound/audacity: fix gettext 0.22 breakage
    
    Closes: https://bugs.gentoo.org/909201
    Signed-off-by: David Seifert <soap@gentoo.org>

 media-sound/audacity/audacity-3.2.5-r1.ebuild      |  3 ++
 .../files/audacity-3.2.5-gettext-0.22.patch        | 36 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)