Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gimp-help emerge failure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Fri Dec 22, 2023 4:00 pm    Post subject: gimp-help emerge failure Reply with quote

gimp-help emerge fails. Maybe this is more of a python problem than a gimp problem.

configure: checking for a Python 3 interpreter with version >= 3.6.0 among: python3 python python3.10 python3.9 python3.8 python3.7 python3.6
checking python3 version... 3.12.1
checking whether python3 version >= 3.6.0... yes
checking if python3 can import module libxml2... no
checking python version... 3.12.1
checking whether python version >= 3.6.0... yes
checking if python can import module libxml2... no
checking python3.10 version... 3.10.13
checking whether python3.10 version >= 3.6.0... yes
checking if python3.10 can import module libxml2... no
.....
* ERROR: app-doc/gimp-help-2.10.34-r2::gentoo failed (configure phase):
* econf failed


here's the emerge --info for this one:

Portage 3.0.57 (python 3.11.6-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r7, 6.1.67-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.1.67-gentoo-x86_64-Intel-R-_Core-TM-_i3-2100_CPU_@_3.10GHz-with-glibc2.37
KiB Mem: 16370640 total, 188652 free
KiB Swap: 33246204 total, 29368360 free
Timestamp of repository gentoo: Sun, 17 Dec 2023 12:30:01 +0000
Head commit of repository gentoo: c23d15ecafdc6423b7c814f66929506d5d1f6693
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-java/java-config: 2.3.1-r1::gentoo
dev-lang/perl: 5.38.0-r1::gentoo
dev-lang/python: 3.10.13::gentoo, 3.11.6::gentoo, 3.12.1::gentoo
dev-lang/rust: 1.71.1::gentoo
dev-util/cmake: 3.27.7::gentoo
dev-util/meson: 1.2.3::gentoo
sys-apps/baselayout: 2.14-r1::gentoo
sys-apps/openrc: 0.48::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake: 1.16.5-r1::gentoo
sys-devel/binutils: 2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 16.0.6::gentoo
sys-devel/gcc: 13.2.1_p20230826::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/lld: 16.0.6::gentoo
sys-devel/llvm: 16.0.6::gentoo
sys-devel/make: 4.4.1-r1::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.37-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cl
i-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
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_D
ATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox n
ews parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv us
ersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
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=/loc
al --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 apache2 apng bzip2 cairo cgi cli crypt cups dbus dri elogind ffmpeg fortran fpm gd gdbm gentoo-vm gtk heif iconv icu imagemagick ipv6 jpeg jpeg2k libtirpc motif mplayer multilib m
ysql mysqli ncurses nls nptl nss ogg opengl openmp openssl pam pcre pcre32 pdf php png postproc qt5 readline seccomp secure-delete split-usr ssl svg test-rust text unicode webp x265 xattr xml zlib" ABI
_X86="64" ADA_TARGET="gnat_2021" 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 aut
hz_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 stat
us 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 mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt
ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_
TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nouveau" 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, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READEL
F, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31267
Location: here

PostPosted: Fri Dec 22, 2023 4:02 pm    Post subject: Reply with quote

Can you post emerge -pv libxml2 and grep -ri python /etc/portage output?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Fri Dec 22, 2023 4:13 pm    Post subject: Reply with quote

emerge -pv libxml2:

[ebuild R ] dev-libs/libxml2-2.11.5:2::gentoo USE="ftp icu python readline -debug -examples -lzma -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10 (-python3_12)" 0 KiB

grep -ri python /etc/portage:

- no output
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31267
Location: here

PostPosted: Fri Dec 22, 2023 4:36 pm    Post subject: Reply with quote

You can post also emerge -cp dev-lang/python:3.10 command output?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Fri Dec 22, 2023 4:49 pm    Post subject: Reply with quote

emerge -cp dev-lang/python:3.10

- no real output, just this:

Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed: 1086
Packages in world: 277
Packages in system: 49
Required packages: 1086
Number to remove: 0
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31267
Location: here

PostPosted: Sat Dec 23, 2023 10:55 am    Post subject: Reply with quote

Strange your emerge --info says python:3.10 is installed while depclean says otherwise.
Code:
checking if python3.10 can import module libxml2... no

and python:3.10 seems to be the problem.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1919

PostPosted: Sat Dec 23, 2023 2:11 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Strange your emerge --info says python:3.10 is installed while depclean says otherwise.
Code:
checking if python3.10 can import module libxml2... no

and python:3.10 seems to be the problem.

Use --verbose on --pretend --depclean or else nothing will show if a dependency exists.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22650

PostPosted: Sat Dec 23, 2023 4:18 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Strange your emerge --info says python:3.10 is installed while depclean says otherwise.
Code:
checking if python3.10 can import module libxml2... no
and python:3.10 seems to be the problem.
python:3.10 is installed, but libxml2 is not installed for PYTHON_TARGETS=python3_10, so python3.10 -c 'import libxml2' will fail:
dilbot wrote:
emerge -pv libxml2:
Code:
[ebuild   R    ] dev-libs/libxml2-2.11.5:2::gentoo  USE="ftp icu python readline -debug -examples -lzma -static-libs -test" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_11 -python3_10 (-python3_12)" 0 KiB
It looks to me like the issue is that gimp-help does not try python3.11 explicitly, and that is the only version of python for which this system can successfully import libxml2. gimp-help tries python and python3, both of which are python3.12 (for which libxml2 is not installed, and that PYTHON_TARGETS value is presently masked on this system); it tries python3.10, which fails as above, then tries various even older python versions that will not work either.

As regards --depclean, the output implicitly tells us python3.10 is installed. On my system:
Code:
# emerge -pc dev-lang/python:3.8
--- Couldn't find 'dev-lang/python:3.8' to depclean.
>>> No packages selected for removal by depclean
# emerge -pc dev-lang/python:3.10

Calculating dependencies... done!
>>> No packages selected for removal by depclean
When I try to depclean something that is not installed, I get a diagnostic saying so. dilbot received no such diagnostic, so we can see that python:3.10 is installed there, but not eligible for removal.
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Sat Dec 23, 2023 6:59 pm    Post subject: Reply with quote

Thanks everyone.

If I force this with USE="python_targets_python3_12" emerge libxml2, and
then emerge gimp-help I get:

checking python version... 3.12.1
checking whether python version >= 3.6.0... yes
checking if python can import module libxml2... no
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22650

PostPosted: Sat Dec 23, 2023 7:10 pm    Post subject: Reply with quote

Yes, that is expected from your earlier output. As I mentioned above, PYTHON_TARGETS does not allow python3_12 at this time on that system, so your emerge libxml2 changed nothing.

This looks like it might be a bug, in my opinion. python3_12 is masked:
profiles/base/use.stable.mask:
# Michał Górny <mgorny@gentoo.org> (2023-05-23)
# Mask until dev-lang/python:3.12 becomes stable.
python_targets_python3_12
python_single_target_python3_12
However, python3.12 is stable on amd64 and x86:
dev-lang/python/python-3.12.1.ebuild:
31:KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
According to the comment in the mask file, I would have expected that mask to be removed when python3.12 was promoted to stable.

[TRACKER] python3_12 target unmasking may be related.

It looks to me like gimp-help tries to BDEPEND on libxml2 having a supported Python implementation, but the maintainer marked that it is compatible with Python3.11. That seems wrong to me, since the configure script does not attempt python3.11 -c 'import libxml2' as part of its checks. If gimp-help's PYTHON_COMPAT said it supported only up through 3.10 (to match what the upstream configure script actually tests), then the dependency resolver would have forced you to go back and add 3.10 to libxml2.
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1962

PostPosted: Sat Dec 23, 2023 8:29 pm    Post subject: Reply with quote

The issue is that the ebuild's pkg_setup doesn't call python-any-r1_pkg_setup which is responsible in this case for picking a Python which matches the dependencies, rather than some other Python. Note that the ebuild uses python-any-r1 and hence PYTHON_TARGETS and PYTHON_SINGLE_TARGET are mostly irrelevant (apart from what is enabled for libxml2 which is sort of tangential as the ebuild dependencies ensure at least one libxml2 is fine, but it wasn't checking if the Python used matches it). The dependencies are correct otherwise.

I'll fix that now.

(With regard to unmasking: no, it needs a consistent depgraph in stable wrt the USE flag and we're not quite there yet. It'll be done soon. dev-lang/python:3.12 being stable is necessary but not sufficient.)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22650

PostPosted: Sat Dec 23, 2023 11:23 pm    Post subject: Reply with quote

I was relying on dilbot's output above. I see now looking at the gimp-help configure script that if $PYTHON is set, it will use that instead of the built-in version list. Presumably (I don't need this package, so did not check) your change to cause $PYTHON to be set to point to Python 3.11 will cause gimp-help to try python3.11, which dilbot's output suggests will be able to load libxml2. dilbot: if you sync to include sam_'s change, does the build work for you now?

I can see the need for a consistent dependency graph for that flag, and thus the need not to remove the mask yet. However, as someone who does normally deal with the graph, the mask message reads to me as if stabilizing python3.12 is a sufficient condition for removal of the mask, hence my prior post.
Back to top
View user's profile Send private message
dilbot
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 153
Location: Canada

PostPosted: Sun Dec 24, 2023 2:01 am    Post subject: Reply with quote

gimp-help is emerging OK after sync with new changes. Thanks!


* gimp-help-2.10.34.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ]
* Checking whether python3_11 is suitable ...
* dev-lang/python:3.11 ... [ ok ]
* python_check_deps ...
* dev-libs/libxml2[python,python_targets_python3_11(-)] ... [ ok ]
* Using python3.11 to build (via PYTHON_COMPAT iteration)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31267
Location: here

PostPosted: Sun Dec 24, 2023 8:03 am    Post subject: Reply with quote

sam_ wrote:
The issue is that the ebuild's pkg_setup doesn't call python-any-r1_pkg_setup which is responsible in this case for picking a Python which matches the dependencies, rather than some other Python.

Thanks for the explanation it seemed to me in fact that OP had installed everything correctly, I did not think of a problem in the ebuild.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum