Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 852956 - dev-java/cpptasks-1.0_beta5-r1 Invalid byte 1 of 1-byte UTF-8 sequence. when locale is not UTF8
Summary: dev-java/cpptasks-1.0_beta5-r1 Invalid byte 1 of 1-byte UTF-8 sequence. when ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-06-18 19:52 UTC by Alessandro Barbieri
Modified: 2024-07-17 09:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2022-06-18 19:52:09 UTC
This happens when the locale is set to some non UTF8 locale like en_US or en_US.iso88591
It doesn't happen with locale set to C.utf8 or it_IT.UTF8

# ACCEPT_LICENSE="tau OSGi-Specification-2.0" USE="threads X dot -python_single_target_pypy3 python_single_target_python3_8 -python_single_target_python3_9 -python_single_target_python3_10 python unsupported cups" emerge -1v --jobs cpptasks

These are the packages that would be merged, in order:

Calculating dependencies  
 * IMPORTANT: 1 news items need reading for repository 'science'.
 * IMPORTANT: 1 news items need reading for repository 'sage-on-gentoo'.
 * Use eselect news read to view new items.

... done!
[ebuild  N     ] dev-java/cpptasks-1.0_beta5-r1::gentoo  USE="-doc -examples -source -test" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB
>>> Verifying ebuild manifests

>>> Jobs: 0 of 1 complete, 1 running                Load avg: 4.75, 3.20, 2.88
>>> Emerging (1 of 1) dev-java/cpptasks-1.0_beta5-r1::gentoo
>>> Jobs: 0 of 1 complete, 1 running                Load avg: 4.75, 3.20, 2.88
>>> Failed to emerge dev-java/cpptasks-1.0_beta5-r1, Log file:
>>> Jobs: 0 of 1 complete, 1 running                Load avg: 4.61, 3.20, 2.88
>>>  '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 running                Load avg: 4.61, 3.20, 2.88
>>> Jobs: 0 of 1 complete, 1 running, 1 failed      Load avg: 4.61, 3.20, 2.88
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 4.61, 3.20, 2.88

 * Package:    dev-java/cpptasks-1.0_beta5-r1
 * Repository: gentoo
 * Maintainer: java@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   fakeroot network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
 * Using: openjdk-8
>>> Unpacking source...
>>> Unpacking cpptasks-1.0b5.tar.gz to /var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work
tar: A lone zero block at 25805
>>> Source unpacked in /var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work
>>> Preparing source in /var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5 ...
Rewriting attributes
Rewriting ./src/samples/hello/build.xml
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5 ...
 * Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5/build.xml

BUILD FAILED
Error reading project file /var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5/build.xml: Invalid byte 1 of 1-byte UTF-8 sequence.

Total time: 0 seconds
 * ERROR: dev-java/cpptasks-1.0_beta5-r1::gentoo failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3035:  Called java-pkg-2_src_compile
 *   environment, line 1384:  Called eant 'jars' '-f' 'build.xml'
 *   environment, line  552:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/cpptasks-1.0_beta5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/cpptasks-1.0_beta5-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-8  CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-8"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac"
and of course, the output of emerge --info =cpptasks-1.0_beta5
 * The complete build log is located at '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5'
 * S: '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5'
 * Messages for package dev-java/cpptasks-1.0_beta5-r1:
 * ERROR: dev-java/cpptasks-1.0_beta5-r1::gentoo failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 3035:  Called java-pkg-2_src_compile
 *   environment, line 1384:  Called eant 'jars' '-f' 'build.xml'
 *   environment, line  552:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/cpptasks-1.0_beta5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/cpptasks-1.0_beta5-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5'
 * S: '/var/tmp/portage/dev-java/cpptasks-1.0_beta5-r1/work/cpptasks-1.0b5'
Comment 1 Alessandro Barbieri 2022-06-18 19:58:57 UTC
The build.xml xml header is saying that the file encoding is utf8 but 'file' say that the encoding is actually iso 88591
Comment 2 Larry the Git Cow gentoo-dev 2024-06-17 09:00:11 UTC
The bug has been referenced in the following commit(s):

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

commit f1b06e6b7b9ba5e501d7085ffaeb0a03356fce88
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-06-05 07:49:30 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-06-17 08:58:46 +0000

    dev-java/cpptasks: rewrite with java-pkg-simple, #852956
    
    Bug: https://bugs.gentoo.org/852920
    Bug: https://bugs.gentoo.org/852956
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/36770/commits/3fefd512ff4d9716fc9f7af3b1d7e6c07f7cae52
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/cpptasks/cpptasks-1.0_beta5-r3.ebuild     | 50 ++++++++++++++++++++++
 .../files/cpptasks-1.0_beta5-test-classpath.patch  | 33 --------------
 2 files changed, 50 insertions(+), 33 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-07-17 09:47:16 UTC
The bug has been closed via the following commit(s):

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

commit 0e53a66dca08ee97028eac56d41783fb6b67d1a8
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-07-17 07:16:54 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-07-17 09:47:07 +0000

    dev-java/cpptasks: drop 1.0_beta5-r2
    
    Closes: https://bugs.gentoo.org/852956
    Closes: https://bugs.gentoo.org/852920
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/37585
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/cpptasks/cpptasks-1.0_beta5-r2.ebuild | 64 --------------------------
 1 file changed, 64 deletions(-)