Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Python itsttol became broken by libxml2 missing USE flag

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

Python itsttol became broken by libxml2 missing USE flag

  • Quote

Post by jlpoole » Sat Dec 27, 2025 10:36 am

I was trying to build media-gfx/openscad-2025.05.01_pre-r1 which depends on /usr/bin/itstool ( dev-util/itstool) which is written in Python and, in turn, imports libxml2.

I received an error message during the install phase of openSCAD:

Code: Select all

>>> Install media-gfx/openscad-2025.05.01_pre-r1 into /var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/image
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/work/openscad-f3cac59bf973502ad4b278fd3f20298f9bc2fc84"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/work/openscad-f3cac59bf973502ad4b278fd3f20298f9bc2fc84_build"
ninja -v -l0 -j30 install
[0/1] cd /var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/work/openscad-f3cac59bf973502ad4b278fd3f20298f9bc2fc84_build && /usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "RelWithDebInfo"
-- Installing: /var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/image/usr/bin/openscad
-- Installing: /var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/image/usr/share/man/man1/openscad.1
CMake Error at cmake_install.cmake:79 (file):
  file INSTALL cannot find
  "/var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/work/openscad-f3cac59bf973502ad4b278fd3f20298f9bc2fc84/openscad.appdata.xml":
  No such file or directory.


FAILED: [code=1] CMakeFiles/install.util 
cd /var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/work/openscad-f3cac59bf973502ad4b278fd3f20298f9bc2fc84_build && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
 * ERROR: media-gfx/openscad-2025.05.01_pre-r1::gentoo failed (install phase):
 *   ninja -v -l0 -j30 install failed
 * 
 * Call stack:
 *     ebuild.sh, line  143:  Called src_install
 *   environment, line 2678:  Called cmake_src_install
 *   environment, line 1578:  Called cmake_build 'install'
 *   environment, line 1330:  Called eninja 'install'
 *   environment, line 1677:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/openscad-2025.05.01_pre-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/openscad-2025.05.01_pre-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/work/openscad-f3cac59bf973502ad4b278fd3f20298f9bc2fc84_build'
 * S: '/var/tmp/portage/media-gfx/openscad-2025.05.01_pre-r1/work/openscad-f3cac59bf973502ad4b278fd3f20298f9bc2fc84'
I determined the problem was the itstool required the libxml2 module and my libxml2 (dev-libs/libxml2) did not have the USE flag "python" activated. So I added the use flag "python" to dev-libs/libxml2:

Code: Select all

cat /etc/portage/package.use/libxml2 |grep -v '#'
dev-libs/libxml2 python
and re-emerged dev-libs/libxml2. After that, I was able to successfully install openscad. The problem was my system which was recently updated as of 12/04/25 with 310 upgrades and everything seemed fine, but somehow my itstool became broken.

I have the openscard build tree preserved, but that really is not the problem, it is just symptomatic of another problem which I do not know how to categorize.

Should I dismiss this as something unique to my machine, or pursue trying to determine where the failure occurred so others do not run into the same problem?
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sat Dec 27, 2025 10:40 am

Newer itstool doesn't need libxml2[python]. We need to see emerge --info and the itstool, libxml2 versions.
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Sat Dec 27, 2025 10:47 am

sam_ wrote:Newer itstool doesn't need libxml2[python]. We need to see emerge --info and the itstool, libxml2 versions.
Per your request:

Code: Select all

jlpoole@ryzdesk ~/bugs/Gentoo/openscad_Dec_2025/openscad-2025.05.01_pre-r1 $ sudo su
ryzdesk /home/jlpoole/bugs/Gentoo/openscad_Dec_2025/openscad-2025.05.01_pre-r1 # emerge --info
Portage 3.0.72 (python 3.13.5-final-0, default/linux/amd64/23.0/split-usr/desktop/plasma, gcc-15, glibc-2.41-r6, 6.6.74-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.6.74-gentoo-x86_64-x86_64-AMD_Ryzen_9_7950X_16-Core_Processor-with-glibc2.41
KiB Mem:    64096852 total,  50829216 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 03 Dec 2025 00:45:00 +0000
Head commit of repository gentoo: b24fb048d33687e80749962a9338f4b3e1d9c6b3
Timestamp of repository mv: Fri, 31 Oct 2025 23:33:38 +0000
Head commit of repository mv: 0f2a2f289c9c1df13b10699d2a391b59cdbda38f

sh bash 5.3_p3-r3
ld GNU ld (Gentoo 2.44 p4) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.3_p3-r3::gentoo
dev-build/autoconf:        2.72-r4::gentoo
dev-build/automake:        1.17-r2::gentoo, 1.18.1::gentoo
dev-build/cmake:           4.1.2-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r102::gentoo
dev-build/meson:           1.9.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/erlang:           28.1::gentoo
dev-lang/perl:             5.42.0-r1::gentoo
dev-lang/python:           3.11.14::gentoo, 3.12.11_p1::gentoo, 3.13.5_p1::gentoo, 3.14.0::gentoo
dev-lang/rust-bin:         1.88.0::gentoo, 1.89.0::gentoo, 1.91.0::gentoo
llvm-core/llvm:            20.1.8::gentoo
sys-apps/baselayout:       2.18::gentoo
sys-apps/openrc:           0.62.10::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.44-r3::gentoo, 2.45-r1::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc:             15.2.1_p20251122::gentoo
sys-devel/gcc-config:      2.12.2::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://ares/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /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="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j30"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="bzip2"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 avif bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg jpegxl kde kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 qt6 readline screencast sdl seccomp semantic-desktop sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland webp widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

ryzdesk /home/jlpoole/bugs/Gentoo/openscad_Dec_2025/openscad-2025.05.01_pre-r1 # 

Code: Select all

jlpoole@ryzdesk ~/bugs/Gentoo/openscad_Dec_2025/openscad-2025.05.01_pre-r1 $ eix -I itstool
[I] dev-util/itstool
     Available versions:  2.0.7-r2 ~2.0.7_p20250326 {PYTHON_SINGLE_TARGET="python3_11 python3_12 python3_13 python3_14"}
     Installed versions:  2.0.7-r2(08:54:30 PM 05/17/2025)(PYTHON_SINGLE_TARGET="python3_13 -python3_11 -python3_12")
     Homepage:            https://itstool.org/
     Description:         Translation tool for XML documents that uses gettext files and ITS rules

jlpoole@ryzdesk ~/bugs/Gentoo/openscad_Dec_2025/openscad-2025.05.01_pre-r1 $ eix -I libxml
[?] dev-libs/libxml2
     Available versions:  (2) 2.13.9^t 2.14.6(2/16)^t ~2.15.0-r1(2/16)^t ~2.15.1(2/16)^t **9999(2/16)*l^t
       {doc examples icu lzma (+)python readline static-libs test ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" PYTHON_TARGETS="python3_11 python3_12 python3_13 python3_14"}
     Installed versions:  2.15.0-r1(2/16)^t(04:17:48 PM 12/26/2025)(icu python readline -doc -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python3_13 -python3_11 -python3_12 -python3_14")
     Homepage:            https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home
     Description:         XML C parser and toolkit

[I] dev-libs/libxml2-compat
     Available versions:  (2) 2.13.9^t
       {icu lzma readline test ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  2.13.9(2)^t(09:23:28 AM 11/03/2025)(icu readline -lzma -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home
     Description:         XML C parser and toolkit

Found 2 matches
jlpoole@ryzdesk ~/bugs/Gentoo/openscad_Dec_2025/openscad-2025.05.01_pre-r1 $ 
Top
sam_
Developer
Developer
User avatar
Posts: 2817
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sat Dec 27, 2025 10:50 am

I suspect you hit an issue where itstool[python] was unsatisfied because of a Portage bug (which is known but difficult), but it can't happen again in future for newer itstool (which is stable since bug 966478) because that dependency happens to be gone.

Anyway, there's nothing to do on your end. You should sync though and do a world upgrade.
Top
jlpoole
Guru
Guru
User avatar
Posts: 495
Joined: Tue Nov 01, 2005 5:07 am
Location: Salem, OR

  • Quote

Post by jlpoole » Sat Dec 27, 2025 11:10 am

sam_ wrote:I suspect you hit an issue where itstool[python] was unsatisfied because of a Portage bug (which is known but difficult), but it can't happen again in future for newer itstool (which is stable since bug 966478) because that dependency happens to be gone.

Anyway, there's nothing to do on your end. You should sync though and do a world upgrade.
Thank you. Sam. Proceeding with upgrade: 295 packages (on a Plasma desktop).
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic