Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908961 - app-editors/vim-core-9.0.2167: on musl msgfmt: Cannot convert from "CP932" to "UTF-8". msgfmt relies on iconv(), and iconv() does not support this conversion
Summary: app-editors/vim-core-9.0.2167: on musl msgfmt: Cannot convert from "CP932" to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Oskari Pirhonen
URL:
Whiteboard:
Keywords:
: 921318 (view as bug list)
Depends on:
Blocks: 908875
  Show dependency tree
 
Reported: 2023-06-21 13:54 UTC by David Carlos Manuelda
Modified: 2024-01-19 07:34 UTC (History)
8 users (show)

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


Attachments
build.log (build.txt,59.54 KB, text/plain)
2023-06-21 21:40 UTC, James McGeehan IV
Details
emerge --info (info.txt,17.84 KB, text/plain)
2023-06-21 21:42 UTC, James McGeehan IV
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2023-06-21 13:54:03 UTC
vim-core can not be compiled with nls enabled and thus that flag should be masked in those profiles.

The failure is:

msgfmt: Cannot convert from "CP932" to "UTF-8". msgfmt relies on iconv(), and iconv() does not support this conversion.

I think the rest of build log is unrelevant but can be attached if requested
Comment 1 Mike Gilbert gentoo-dev 2023-06-21 17:59:52 UTC
Yes, please attach the build log and provide emerge --info.
Comment 2 James McGeehan IV 2023-06-21 21:40:24 UTC
Created attachment 864380 [details]
build.log
Comment 3 James McGeehan IV 2023-06-21 21:42:19 UTC
Created attachment 864381 [details]
emerge --info
Comment 4 James McGeehan IV 2023-06-21 21:43:15 UTC
I am running into same issue. Also clang/musl profile. I've attached build.log and emerge --info
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-21 21:45:12 UTC
This is likely gettext-0.22 combined with musl.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-09 19:28:45 UTC
I suspect Bruno's comment to me is applicable here as well:
<bhaible[m]> About https://bugs.gentoo.org/908863: The error message "msgfmt: present charset "ISO-8859-16" is not a portable encoding name" is clear. The PO file should be converted to another encoding, e.g. through msgconv. Too few platforms support this encoding, see https://www.haible.de/bruno/charsets/conversion-tables/ISO-8859-16.html

(He was talking about another bug.)

This should probably be reported upstream to vim as well.
Comment 7 Toralf Förster gentoo-dev 2023-08-15 17:19:54 UTC
same here at 17.0_musl_hardened-20230814-144751/
Comment 8 orbea 2023-09-03 20:42:34 UTC
Maybe obvious, but USE=-nls is a temporary workaround.
Comment 10 Fabian Groffen gentoo-dev 2023-12-30 07:55:46 UTC
same error for musl-gcc
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-03 22:53:01 UTC
*** Bug 921318 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2024-01-11 19:28:09 UTC
The bug has been referenced in the following commit(s):

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

commit aea8deb234226dd8b318d720a7b2a6f963408791
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-01-11 19:27:19 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-01-11 19:28:06 +0000

    profiles/features/musl: mask latest Vim
    
    Fails to compile
    
    Bug: https://bugs.gentoo.org/908961
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 profiles/features/musl/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-11 19:29:44 UTC
It's probably better to just mask USE=nls for musl instead, given I don't think most musl users worry about it much.
Comment 14 Fabian Groffen gentoo-dev 2024-01-16 12:24:26 UTC
What Exherbo is doing is much less affecting than masking entire USE=nls.  Are there concerns for doing that in a elibc_musl block in the three ebuilds?
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-17 04:16:18 UTC
(In reply to Fabian Groffen from comment #14)
> What Exherbo is doing is much less affecting than masking entire USE=nls. 
> Are there concerns for doing that in a elibc_musl block in the three ebuilds?

fine with me, i think the proxied maint is away atm on holiday
Comment 16 Agostino Sarubbo gentoo-dev 2024-01-18 08:18:27 UTC
tinderbox_musl has reproduced this issue with version 9.0.2167 - Updating summary.
Comment 17 Larry the Git Cow gentoo-dev 2024-01-19 07:34:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83d72770bcd85405144b4a6ad2b427abc11fe62c

commit 83d72770bcd85405144b4a6ad2b427abc11fe62c
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-01-19 07:33:03 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-01-19 07:34:44 +0000

    app-editors/{vim-core,vim,gvim}: disable CP932 for musl builds
    
    Closes: https://bugs.gentoo.org/908961
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 app-editors/gvim/gvim-9.0.2167.ebuild         | 5 +++++
 app-editors/gvim/gvim-9999.ebuild             | 5 +++++
 app-editors/vim-core/vim-core-9.0.2167.ebuild | 5 +++++
 app-editors/vim-core/vim-core-9999.ebuild     | 5 +++++
 app-editors/vim/vim-9.0.2167.ebuild           | 5 +++++
 app-editors/vim/vim-9999.ebuild               | 5 +++++
 6 files changed, 30 insertions(+)