Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698686 - dev-java/commons-io-2.4 - src_configure(): /usr/lib/python-exec/python3.6/build-xml-rewrite: TypeError: write() argument must be str, not bytes
Summary: dev-java/commons-io-2.4 - src_configure(): /usr/lib/python-exec/python3.6/bui...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 698844
  Show dependency tree
 
Reported: 2019-10-27 19:49 UTC by charles17
Modified: 2019-10-29 21:08 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,3.15 KB, text/plain)
2019-10-27 19:49 UTC, charles17
Details
patch in /etc/portage/patches/dev-java/javatoolkit/ (foobar.patch,388 bytes, patch)
2019-10-29 18:05 UTC, charles17
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description charles17 2019-10-27 19:49:00 UTC
Created attachment 594186 [details]
build.log

* ERROR: dev-java/commons-io-2.4::gentoo failed (configure phase):
 *   build-xml-rewrite failed
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_configure
 *   environment, line 3917:  Called java-ant-2_src_configure
 *   environment, line 1592:  Called java-ant_bsfix
 *   environment, line 1610:  Called java-ant_bsfix_files './build.xml'
 *   environment, line 1644:  Called die
 * The specific snippet of code:
 *               ${rewriter4} ${gcp} ${enc} -c "${JAVA_PKG_BSFIX_SOURCE_TAGS}" source ${want_source} -c "${JAVA_PKG_BSFIX_TARGET_TAGS}" target ${want_target} "${@}" || die "build-xml-rewrite failed";
Comment 1 charles17 2019-10-27 19:52:49 UTC
emerge --info '=dev-java/commons-io-2.4::gentoo'
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop, gcc-8.3.0, glibc-2.29-r2, 4.19.72-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.72-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.6
KiB Mem:    16336064 total,   8692640 free
KiB Swap:   17577980 total,  17530720 free
Timestamp of repository gentoo: Sun, 27 Oct 2019 17:45:01 +0000
Head commit of repository gentoo: 3af0f77eea2f43c43ca7682e2cdc880a22d432a6
Head commit of repository brother-overlay: 8a501eaf1f47c7b52aa0f350829a79d252d9f72f

Head commit of repository vortex: 287fbe29e0b813a4c865dc60329bc59b6146e9d5

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

brother-overlay
    location: /var/db/repos/brother-overlay
    sync-type: git
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay
    masters: gentoo

testing
    location: /var/db/repos/testing
    masters: gentoo

vortex
    location: /var/db/repos/vortex
    sync-type: git
    sync-uri: https://github.com/nE0sIghT/vortex-overlay
    masters: gentoo

Installed sets: @thunderbird
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://ftp.halifax.rwth-aachen.de/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 jpeg lcms libtirpc mad mng mp3 mp4 mpeg multilib ncurses nptl ogg opengl openmp pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



emerge -pqv '=dev-java/commons-io-2.4::gentoo'
[ebuild  N    ] dev-java/commons-io-2.4  USE="-doc -source -test"



GENTOO_VM=icedtea-8  CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea8"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
Comment 2 charles17 2019-10-29 18:05:21 UTC
Created attachment 594356 [details, diff]
patch in /etc/portage/patches/dev-java/javatoolkit/

Putting this path in /etc/portage/patches/dev-java/javatoolkit/ solves the problem.
Comment 3 Larry the Git Cow gentoo-dev 2019-10-29 20:54:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/javatoolkit.git/commit/?id=2d88e7483b4048f793c30f48203c7a9565bdc048

commit 2d88e7483b4048f793c30f48203c7a9565bdc048
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2019-10-29 20:52:58 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2019-10-29 20:53:50 +0000

    fixes bug #698686
    
    Bug: https://bugs.gentoo.org/698686
    Fix by charles17@arcor.de
    
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 src/py/build-xml-rewrite | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2019-10-29 21:08:09 UTC
The bug has been closed via the following commit(s):

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

commit 867fbc1e50fe20bdf415c859bcdd9551ae4d05ab
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2019-10-29 21:07:44 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2019-10-29 21:08:02 +0000

    dev-java/javatoolkit-0.6.1: bump
    
    Closes: https://bugs.gentoo.org/698686
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/javatoolkit/Manifest                                         | 2 +-
 .../{javatoolkit-0.6.0.ebuild => javatoolkit-0.6.1.ebuild}            | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)