Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] harfbuzz freetype circular dependencies
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
koslowj
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2005
Posts: 100

PostPosted: Sun Jul 21, 2024 8:59 pm    Post subject: [SOLVED] harfbuzz freetype circular dependencies Reply with quote

Trying to emerge wine-vanilla on my recently freshly re-installed system (Linux 6.6.30-gentoo-x86_64) resulted in a long list of re-builds and the following error:
Quote:
Total: 35 packages (17 new, 18 reinstalls), Size of downloads: 121963 KiB

* Error: circular dependencies:

(media-libs/harfbuzz-8.5.0:0/6.0.0::gentoo, ebuild scheduled for merge) depends on
(media-libs/freetype-2.13.2:2/2::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
(media-libs/harfbuzz-8.5.0:0/6.0.0::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- media-libs/freetype-2.13.2 (Change USE: -harfbuzz)
(This change might require USE changes on parent packages.)
Note that this change can be reverted, once the package has been installed.

The attempt to emerge freetype via
Quote:
USE="-harfbuzz" emerge --ask media-libs/freetype

only resulted in
Quote:
[ebuild R ] sys-libs/zlib-1.3.1-r1 ABI_X86="32*"
[ebuild R ] media-libs/libpng-1.6.43 ABI_X86="32*"
[ebuild R ] app-arch/bzip2-1.0.8-r5 ABI_X86="32*"
[ebuild R ] media-libs/freetype-2.13.2 USE="-harfbuzz*" ABI_X86="32*"

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/freetype:2

(media-libs/freetype-2.13.2:2/2::gentoo, ebuild scheduled for merge) USE="X adobe-cff bzip2 cleartype-hinting png svg -brotli -debug -doc -fontforge -harfbuzz -static-libs -utils" ABI_X86="32 (64) (-x32)" pulled in by
media-libs/freetype (Argument)

(media-libs/freetype-2.13.2:2/2::gentoo, installed) USE="X adobe-cff bzip2 cleartype-hinting harfbuzz png svg -brotli -debug -doc -fontforge -static-libs -utils" ABI_X86="(64) -32 (-x32)" pulled in by
>=media-libs/freetype-2.13.2[harfbuzz?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (media-libs/sdl2-ttf-2.22.0:0/0::gentoo, installed) USE="X harfbuzz -static-libs" ABI_X86="(64) -32 (-x32)"
^^^^^^^^^

It might be possible to solve this slot collision
by applying all of the following changes:
- media-libs/freetype-2.13.2 (Change USE: +harfbuzz)

So what am I supposed to do now? Here is my make.conf:
Quote:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j9"
# FEATURES="splitdebug"

# NOTE: This stage was builtO with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

USE="-kde -minimal -consolekit alsa bus cdr colord dbus dvd elogind ffmpeg flac gdbm gnome-keyring gtk gtk3 icu javafx jpeg libmov lock mad mp3 ogg opencl opus png pulseaudio scrypt sdl session startup-notification tiff thunar tor-hardening udev vorbis vulkan wavpack webp X xft xml zstd"

GENTOO_MIRRORS="https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
GRUB_PLATFORMS="efi-64"

VIDEO_CARDS="nvidia"
INPUT_DEVICES="evdev"
LINGUAS="en"

ACCEPT_LICENSE="* -@EULA"


Last edited by koslowj on Fri Jul 26, 2024 2:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
eschwartz
Developer
Developer


Joined: 29 Oct 2023
Posts: 214

PostPosted: Sun Jul 21, 2024 9:28 pm    Post subject: Reply with quote

The sdl2-ttf package must also be rebuilt without harfbuzz support, in order to compile freetype with USE="-harfbuzz".
Back to top
View user's profile Send private message
koslowj
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2005
Posts: 100

PostPosted: Mon Jul 22, 2024 4:38 pm    Post subject: Reply with quote

Rebuilding sdl2-ttf without harfbuzz support worked fine, but didn't help with rebuilding freetype. I now get
Quote:
[ebuild R ] sys-libs/zlib-1.3.1-r1 ABI_X86="32*"
[ebuild R ] media-libs/libpng-1.6.43 ABI_X86="32*"
[ebuild R ] app-arch/bzip2-1.0.8-r5 ABI_X86="32*"
[ebuild R ] media-libs/freetype-2.13.2 USE="-harfbuzz*" ABI_X86="32*"

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

media-libs/freetype:2

(media-libs/freetype-2.13.2:2/2::gentoo, ebuild scheduled for merge) USE="X adobe-cff bzip2 cleartype-hinting png svg -brotli -debug -doc -fontforge -harfbuzz -static-libs -utils" ABI_X86="32 (64) (-x32)" pulled in by
media-libs/freetype (Argument)

(media-libs/freetype-2.13.2:2/2::gentoo, installed) USE="X adobe-cff bzip2 cleartype-hinting harfbuzz png svg -brotli -debug -doc -fontforge -static-libs -utils" ABI_X86="(64) -32 (-x32)" pulled in by
>=media-libs/freetype-2.13.2[harfbuzz?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (media-libs/sdl2-ttf-2.22.0:0/0::gentoo, installed) USE="X harfbuzz -static-libs" ABI_X86="(64) -32 (-x32)"

which looks quite similar to the previous error message.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22618

PostPosted: Mon Jul 22, 2024 4:45 pm    Post subject: Reply with quote

As eschwartz said above, sdl2-ttf must also be rebuilt without harfbuzz support. Your output shows that was not done. How did you rebuild it?

As an etiquette matter, please use [code] tags for program output, to preserve output layout.
Back to top
View user's profile Send private message
koslowj
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2005
Posts: 100

PostPosted: Fri Jul 26, 2024 2:14 pm    Post subject: Reply with quote

Not sure what went wrong when I first tried to emerge sdl2-ttf without harfbuzz support. After trying a second time and verifying it, I was able to update my system again. As this was a rather new re-installation (about 3 weeks old), I'm somewhat surprised at these circular dependencies.
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 439
Location: Naarm/Melbourne, Australia

PostPosted: Mon Jul 29, 2024 12:51 am    Post subject: Reply with quote

This is a long-standing issue not specific to Gentoo; here's the relevant issue in the harfbuzz repo on GitHub, which is still open after having been created four years ago.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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