Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896440 - x11-misc/xscreensaver-6.0.5-r1 compile error due to locale
Summary: x11-misc/xscreensaver-6.0.5-r1 compile error due to locale
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Pascal Jäger
URL:
Whiteboard:
Keywords: PullRequest
: 913902 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-25 09:16 UTC by Francisco Lloret
Modified: 2023-09-14 06:44 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,690.64 KB, text/x-log)
2023-02-26 10:45 UTC, Francisco Lloret
Details
Emerge --info (emerge.info,6.63 KB, text/plain)
2023-02-26 10:51 UTC, Francisco Lloret
Details
modified ca.po (ca.po,224.43 KB, text/plain)
2023-04-29 19:33 UTC, Jordi PM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Lloret 2023-02-25 09:16:18 UTC
xscreensaver-6.0.5-r1 (currently stable) d0n't copile with ca_ES locale. This is because the file ca.po in xscreensaver source has ISO-8859 text format instead of UTF-8.

The compilation crashes with some errors of 

ca.po:XX:XX: sucesión de multibyte inválida

i solved it adding two lines in ebuil to convert the file to proper UTF-8 codification, just after the "default" in src_prepare.

src_prepare() {
        default

    mv po/ca.po po/ca.po.old
    iconv -f ISO-8859-15 -t UTF-8 po/ca.po.old >po/ca.po

        sed -i configure.ac -e '/^ALL_LINGUAS=/d' || die
...
...
...
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 23:05:28 UTC
Please include the full build.log & emerge --info of failure.
Comment 2 Francisco Lloret 2023-02-26 10:45:24 UTC
Created attachment 854810 [details]
Build log

Build log
Comment 3 Francisco Lloret 2023-02-26 10:51:47 UTC
Created attachment 854814 [details]
Emerge --info

Contents of emerge --info
Comment 4 Jordi PM 2023-04-29 19:33:48 UTC
Created attachment 860943 [details]
modified ca.po

I've converted the file and now it compiles, I hope it helps.
Comment 5 Larry the Git Cow gentoo-dev 2023-09-06 10:51:39 UTC
The bug has been closed via the following commit(s):

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

commit b0c684e2e738b135418c214badafa93a7b02ea4c
Author:     Pascal Jäger <pascal.jaeger@leimstift.de>
AuthorDate: 2023-09-05 12:29:59 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-09-06 10:49:20 +0000

    x11-misc/xscreensaver: add 6.07
    
    Closes: https://bugs.gentoo.org/894700
    Closes: https://bugs.gentoo.org/896440
    Closes: https://bugs.gentoo.org/908509
    Closes: https://bugs.gentoo.org/912075
    
    Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
    Closes: https://github.com/gentoo/gentoo/pull/32628
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 x11-misc/xscreensaver/Manifest                     |   1 +
 .../files/xscreensaver-6.07-allow-no-pam.patch     |  18 ++
 .../xscreensaver-6.07-fix-desktop-files.patch      |  31 +++
 .../xscreensaver/files/xscreensaver-6.07-gcc.patch |  24 ++
 ...7-service-remove-Alias-org.jwz.xscreensav.patch |  13 +
 x11-misc/xscreensaver/xscreensaver-6.07.ebuild     | 265 +++++++++++++++++++++
 6 files changed, 352 insertions(+)
Comment 6 Pascal Jäger 2023-09-14 06:44:54 UTC
*** Bug 913902 has been marked as a duplicate of this bug. ***