Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908863 - games-engines/fheroes2-1.0.5 - msgfmt: present charset "ISO-8859-16" is not a portable encoding name
Summary: games-engines/fheroes2-1.0.5 - msgfmt: present charset "ISO-8859-16" is not a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexey
URL: https://github.com/ihhub/fheroes2/iss...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 908875
  Show dependency tree
 
Reported: 2023-06-20 07:25 UTC by Toralf Förster
Modified: 2023-07-06 06:24 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.68 KB, text/plain)
2023-06-20 07:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,87.17 KB, text/plain)
2023-06-20 07:25 UTC, Toralf Förster
Details
environment (environment,129.64 KB, text/plain)
2023-06-20 07:25 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,780 bytes, application/x-xz)
2023-06-20 07:25 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,10.04 KB, application/x-xz)
2023-06-20 07:25 UTC, Toralf Förster
Details
games-engines:fheroes2-1.0.5:20230620-002303.log (games-engines:fheroes2-1.0.5:20230620-002303.log,9.53 KB, text/plain)
2023-06-20 07:25 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,30.62 KB, application/x-xz)
2023-06-20 07:25 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-06-20 07:25:43 UTC
too long lines were shrinked:

msgfmt: present charset "ISO-8859-16" is not a portable encoding name
make: *** [Makefile:55: ro.mo] Error 1
[2/227] /usr/bin/x86_64-pc-linux-gnu-gcc  -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/thirdparty/libsmacker  -O2 -pipe -march=native -fno-diagnostics-color -fno-diagnostics-color -MD -MT src/thirdparty/CMakeFiles/smacker.dir/libsmacker/smacker.c.o -MF src/thirdparty/CMake
[3/227] /usr/bin/x86_64-pc-linux-gnu-g++ -DWITH_IMAGE -I/usr/include/SDL2 -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/engine -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/thirdparty/libsmacker  -O2 -pipe -march=native -fno-diagnostics-color -std=
[4/227] /usr/bin/x86_64-pc-linux-gnu-g++ -DWITH_IMAGE -I/usr/include/SDL2 -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/engine -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/thirdparty/libsmacker  -O2 -pipe -march=native -fno-diagnostics-color -std=
[5/227] /usr/bin/x86_64-pc-linux-gnu-g++ -DWITH_IMAGE -I/usr/include/SDL2 -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/engine -I/var/tmp/portage/games-engines/fheroes2-1.0.5/work/fheroes2-1.0.5/src/thirdparty/libsmacker  -O2 -pipe -march=native -fno-diagnostics-color -std=
ninja: build stopped: subcommand failed.
 * ERROR: games-engines/fheroes2-1.0.5::gentoo failed (compile phase):
 *   ninja -v -j5 -l0 failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_systemd-20230618-180609

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.6
Python 3.11.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.69.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

php cli (if any):
go version go1.20.5 linux/amd64

  HEAD of ::gentoo
commit 13be311ed58b7d1b50b7c6bb942e3c57c0aa9f51
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jun 19 23:46:57 2023 +0000

    2023-06-19 23:46:56 UTC

emerge -qpvO games-engines/fheroes2
[ebuild  N    ] games-engines/fheroes2-1.0.5  USE="-tools" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12"
Comment 1 Toralf Förster gentoo-dev 2023-06-20 07:25:44 UTC
Created attachment 864268 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-06-20 07:25:45 UTC
Created attachment 864269 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-06-20 07:25:47 UTC
Created attachment 864270 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-06-20 07:25:47 UTC
Created attachment 864271 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-06-20 07:25:48 UTC
Created attachment 864272 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-06-20 07:25:49 UTC
Created attachment 864273 [details]
games-engines:fheroes2-1.0.5:20230620-002303.log
Comment 7 Toralf Förster gentoo-dev 2023-06-20 07:25:50 UTC
Created attachment 864274 [details]
temp.tar.xz
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-20 07:26:53 UTC
new gettext?
Comment 9 Alexey 2023-06-21 08:16:30 UTC
Tangentially relevant: https://github.com/ihhub/fheroes2/issues/5735 though that was about some implementations of iconv which failed, which is called before msgfmt. I should check whether it works on musl though.
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-30 11:25:29 UTC
I asked Bruno Haible about this and he said:
>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
Comment 11 Alexey 2023-07-03 01:01:21 UTC
They actually convert it from UTF-8 to these encodings, because original game files' fonts use these encodings.
Comment 12 Larry the Git Cow gentoo-dev 2023-07-06 06:24:10 UTC
The bug has been closed via the following commit(s):

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

commit 0ae9e85dc71b138b604bf8491f2de8897ee13b2e
Author:     Alexey Sokolov <alexey+gentoo@asokolov.org>
AuthorDate: 2023-07-03 19:28:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-07-06 06:24:02 +0000

    games-engines/fheroes2: fix build with gettext 0.22
    
    Closes: https://bugs.gentoo.org/908863
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Closes: https://github.com/gentoo/gentoo/pull/31730
    Signed-off-by: Sam James <sam@gentoo.org>

 games-engines/fheroes2/fheroes2-1.0.5.ebuild              |  1 +
 games-engines/fheroes2/files/fheroes2-1.0.5-gettext.patch | 15 +++++++++++++++
 2 files changed, 16 insertions(+)