Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788634 - app-emulation/libguestfs-1.38.6-r103 fails on dependency for <dev-ml/ocaml-gettext-0.4.2
Summary: app-emulation/libguestfs-1.38.6-r103 fails on dependency for <dev-ml/ocaml-ge...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-06 20:36 UTC by Ian Pickworth
Modified: 2021-06-07 22:49 UTC (History)
4 users (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 Ian Pickworth 2021-05-06 20:36:40 UTC
When attempting to emerge app-emulation/libguestfs-1.38.6-r103 portage produces the following error:

ian2 ~ # emerge -pv app-emulation/libguestfs

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

Calculating dependencies   [ ok ]

emerge: there are no ebuilds to satisfy "<dev-ml/ocaml-gettext-0.4.2".
(dependency required by "app-emulation/libguestfs-1.38.6-r103::gentoo" [ebuild])
(dependency required by "app-emulation/libguestfs" [argument])
ian2 ~ #


There is a work around, which is to emerge dev-ml/ocaml-gettext-stub-0.4.2-r1

After doing this, the app-emulation/libguestfs emerge works.

Filing a bug, since there is no way someone would think this was an option unless they were told :-)

And, the e-build for libguestfs should either make this a formal dependency, or fix the dependency on a version of ocaml-gettext that doesn't exist in portage.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-06 21:39:28 UTC
It's a bit busy over here at the moment but off the top of my head, I have no idea why the ocaml-gettext-stub which is already in the ebuild doesn't work.

emerge --info would help. If you're on a stable system, you may have needed to modify package.accept_keywords for gettext-stub which is why it wasn't considered automatically?
Comment 2 Ian Pickworth 2021-05-07 10:48:06 UTC
That is correct. I have the following in accept keywords:

----------------------------------
# VM File inspection/access tools
app-emulation/libguestfs
app-emulation/libguestfs-appliance
app-misc/hivex

dev-ml/ocaml-gettext
dev-ml/ocaml-gettext-stub
dev-ml/ocaml-fileutils
dev-ml/dune
dev-ml/dune-private-libs
dev-ml/dune-configurator
---------------------------------

app-emulation/libguestfs has to be in accept keywords, and hence all its dependencies that are not on stable as well. I suspect it resolved dev-ml/ocaml-gettext and thus din't look any further.
Comment 3 Ian Pickworth 2021-05-07 10:49:36 UTC
Here is emerge --info:

Portage 3.0.18 (python 3.9.4-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r7, 5.12.1-gentoo x86_64)
=================================================================
System uname: Linux-5.12.1-gentoo-x86_64-AMD_Ryzen_7_2700_Eight-Core_Processor-with-glibc2.32
KiB Mem:    65827168 total,  36274800 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Thu, 06 May 2021 23:15:01 +0000
Head commit of repository gentoo: 1020ddf819abb175199b9ffa9fe673469ab06a4e
Head commit of repository hhoffstaette: a2e111b66b2dc8c5088ae0a4d8fc8e00b94a87ee

Timestamp of repository steam-overlay: Wed, 05 May 2021 20:20:25 +0000
Head commit of repository steam-overlay: 60a569b430b18257e092e620a873fdaa03679d8a

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.9_p2::gentoo, 3.9.4_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.22::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.uk.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 0
    sync-rsync-extra-opts: 

hhoffstaette
    location: /var/db/repos/hhoffstaette/portage
    sync-type: git
    sync-uri: git://github.com/hhoffstaette/portage.git
    masters: gentoo

irp-overlay
    location: /var/lib/irp-overlay
    masters: gentoo

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

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/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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-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 qa-unresolved-soname-deps sandbox sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
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 alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cli crypt cups dbus dri drm dts dvb dvb_cards_dibusb-usb1 dvb_cards_dibusb-usb2 elogind encode exif fbcondecor flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms ldap libglvnd libnotify libtirpc mad mmx mng mp3 mpeg multilib ncurses netirfc nls nptl ogg opengl openmp pam pango pcre pdf png policykit pulseaudio readline sdl seccomp split-usr sse sse2 ssl svg tcpd text tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis vulkan vulkan-overlay x264 xattr xml 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="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="coreboot efi-32 efi-64 pc" INPUT_DEVICES="libinput joystick" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_8 python3_9" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi v4l" XFCE_PLUGINS="brightness clock multiload-nandhp power trash xmonad" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto 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, RUSTFLAGS
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-07 10:51:29 UTC
(In reply to Ian Pickworth from comment #2)
> That is correct. I have the following in accept keywords:
> 
> ----------------------------------
> # VM File inspection/access tools
> app-emulation/libguestfs
> app-emulation/libguestfs-appliance
> app-misc/hivex
> 
> dev-ml/ocaml-gettext
> dev-ml/ocaml-gettext-stub
> dev-ml/ocaml-fileutils
> dev-ml/dune
> dev-ml/dune-private-libs
> dev-ml/dune-configurator
> ---------------------------------
> 
> app-emulation/libguestfs has to be in accept keywords, and hence all its
> dependencies that are not on stable as well. I suspect it resolved
> dev-ml/ocaml-gettext and thus din't look any further.

The problem is that, as you’ve seen, the first dep isn’t resolvable, so should be skipped. Are you sure you had gettext-stub in there when you had that first error?

We can update the build to drop the old dep but I don’t get what’s happened here.

Thanks for being detailed by the way!
Comment 5 Ian Pickworth 2021-05-07 16:07:36 UTC
Sorry, misunderstanding.

When I first reported the problem, (i.e. <dev-ml/ocaml-gettext-0.4.2 not resolvable) I did not have the stub module installed.

I installed the stub module following your advice (and hence had to accept keywords for it), and only then did the emerge work.

I know nothing of how ebuild dependencies are resolved, but it seems to me that it failed to find "<dev-ml/ocaml-gettext-0.4.2" and then also failed to find "dev-ml/ocaml-gettext-stub" (because it was not in accept keywords at the first attempt). So, since they both failed, it looks looks portage just reported on the first one that didn't work.

It's not wrong - but it's also not helpful :-)
Comment 6 Zac Medico gentoo-dev 2021-05-07 22:24:27 UTC
(In reply to Ian Pickworth from comment #0)
> When attempting to emerge app-emulation/libguestfs-1.38.6-r103 portage
> produces the following error:
> 
> ian2 ~ # emerge -pv app-emulation/libguestfs
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies   [ ok ]
> 
> emerge: there are no ebuilds to satisfy "<dev-ml/ocaml-gettext-0.4.2".
> (dependency required by "app-emulation/libguestfs-1.38.6-r103::gentoo"
> [ebuild])
> (dependency required by "app-emulation/libguestfs" [argument])
> ian2 ~ #
> 
> 
> There is a work around, which is to emerge dev-ml/ocaml-gettext-stub-0.4.2-r1

This is the same issue as bug 327177.
Comment 7 Larry the Git Cow gentoo-dev 2021-06-07 22:49:48 UTC
The bug has been closed via the following commit(s):

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

commit 6baee4934267902830386919bf7470a9574b5dc4
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-07 22:49:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-07 22:49:15 +0000

    dev-ml/ocaml-gettext: Revert "drop 0.3.7-r3"
    
    This reverts commit 5f94abf337d587ca1b72bd13bc10c6c255ba81e1.
    It's useful to keep this older version around for now to ease
    upgrades for users.
    
    Closes: https://bugs.gentoo.org/788634
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ml/ocaml-gettext/Manifest                      |  1 +
 .../ocaml-gettext/files/ocaml-unsafe-string.patch  | 17 +++++
 dev-ml/ocaml-gettext/ocaml-gettext-0.3.7-r3.ebuild | 76 ++++++++++++++++++++++
 3 files changed, 94 insertions(+)