Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
harfbuzz and freetype circular dependency -- unable to fix
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bigjew222
n00b
n00b


Joined: 07 Jul 2021
Posts: 12

PostPosted: Wed Jul 07, 2021 7:20 pm    Post subject: Reply with quote

fedeliallalinea wrote:
bigjew222 wrote:
command and it returned the following:

This is true because I forgot the dependencies
Code:
# USE="-harfbuzz" emerge -1 virtual/libintl app-arch/bzip2 virtual/libiconv media-libs/libpng dev-libs/libpcre media-libs/freetype media-gfx/graphite2 sys-apps/util-linux dev-libs/glib media-libs/harfbuzz --nodeps
# emerge -1 media-libs/freetype media-libs/harfbuz

create backup with quickpkg


You are a gentleman and a scholar, sir! :D The above 2 commands resolved the issue.

One last question - now that the circular dependency has been resolved & all packages emerged, is there a specific emerge command I should run? Such as "$ emerge --ask --verbose --update --newuse --deep @world" , etc. ?


And just a tiny little nitpick of your post, for the benefit of future readers of this thread -- your last command has a typo (missing one last 'z' at the end of harfbuzz: "harfbuz") ;)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30914
Location: here

PostPosted: Wed Jul 07, 2021 7:47 pm    Post subject: Reply with quote

bigjew222 wrote:
One last question - now that the circular dependency has been resolved & all packages emerged, is there a specific emerge command I should run? Such as "$ emerge --ask --verbose --update --newuse --deep @world" , etc. ?

After sync for update my system I use emerge --ask --verbose --update --changed-use --deep @world, usually is better --changed-use instead of --newuse (see man emerge for more information)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Wed Jul 07, 2021 10:03 pm    Post subject: Reply with quote

bigjew222 wrote:
And just a tiny little nitpick of your post, for the benefit of future readers of this thread -- your last command has a typo (missing one last 'z' at the end of harfbuzz: "harfbuz") ;)
Fixed.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sun Jul 11, 2021 9:29 am    Post subject: Reply with quote

I do currently try
Code:
USE="-X -cairo -glib -graphite -harfbuzz -icu -introspection -png -truetype" emerge media-libs/freetype media-libs/harfbuzz
here at the tinderbox to repair auto.setup of new images.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30914
Location: here

PostPosted: Sun Jul 11, 2021 9:38 am    Post subject: Reply with quote

toralf,
I don't think your solution works, the problem is that OP has changed abi_x86_32 in a second moment but there are some package compiled only with 64bit that need media-libs/harfbuzz[truetype] or media-libs/freetype[harfbuzz]
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drift244
n00b
n00b


Joined: 11 Jul 2021
Posts: 8

PostPosted: Sun Jul 11, 2021 7:52 pm    Post subject: Reply with quote

I am having the exact same problem on a fresh install of gentoo. When I change my profile

from [1] default/linux/amd64/17.1 (stable)

to [5] default/linux/amd64/17.1/desktop (stable)

and run

Code:

emerge --ask --verbose --update --deep --newuse @world


I get
Code:
 * Error: circular dependencies:

(media-libs/harfbuzz-2.8.1:0/0.9.18::gentoo, ebuild scheduled for merge) depends on
 (media-libs/freetype-2.10.4:2/2::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
  (media-libs/harfbuzz-2.8.1:0/0.9.18::gentoo, ebuild scheduled for merge) (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.


[Moderator edit: changed [topic] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
drift244
n00b
n00b


Joined: 11 Jul 2021
Posts: 8

PostPosted: Sun Jul 11, 2021 10:15 pm    Post subject: Reply with quote

I was able the fix the circular dependencies by installing grub as grub installs freetype.

Code:



[ebuild  N     ] media-libs/libpng-1.6.37-r2:0/16::gentoo  USE="-apng -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse" 989 KiB
[ebuild  N     ] media-libs/freetype-2.10.4:2::gentoo  USE="adobe-cff bzip2 cleartype_hinting png -X -bindist -brotli -debug -doc -fontforge -harfbuzz (-infinality) -static-libs -utils" ABI_X86="(64) -32 (-x32)" 2,360 KiB
[ebuild  N     ] sys-libs/efivar-37:0/1::gentoo  107 KiB
[ebuild  N     ] sys-boot/efibootmgr-17::gentoo  41 KiB
[ebuild  N     ] sys-boot/grub-2.06:2/2.06::gentoo  USE="fonts nls themes -device-mapper -doc -efiemu -libzfs -mount -sdl (-test) -truetype" GRUB_PLATFORMS="efi-64 -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -pc -qemu -qemu-mips -uboot -xen -xen-32 -xen-pvh" 8,140 KiB


Strange, as this has never happened before.
Back to top
View user's profile Send private message
Fauchmatte
n00b
n00b


Joined: 03 Jul 2021
Posts: 4

PostPosted: Mon Jul 12, 2021 11:39 am    Post subject: Reply with quote

toralf wrote:
I do currently try
Code:
USE="-X -cairo -glib -graphite -harfbuzz -icu -introspection -png -truetype" emerge media-libs/freetype media-libs/harfbuzz
here at the tinderbox to repair auto.setup of new images.


Thank You. I have the same problem on a fresh install on testing branch and this works for me.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Wed Jul 14, 2021 12:17 pm    Post subject: Reply with quote

Fauchmatte wrote:
toralf wrote:
I do currently try
Code:
USE="-X -cairo -glib -graphite -harfbuzz -icu -introspection -png -truetype" emerge media-libs/freetype media-libs/harfbuzz
here at the tinderbox to repair auto.setup of new images.


Thank You. I have the same problem on a fresh install on testing branch and this works for me.
Nice, I slightly reduced the # of masked flags in the meanwhile, this is currently sufficient for the tinderbox:
Code:
USE="-X -cairo -fontconfig -graphite -harfbuzz -icu -png -truetype" emerge -u media-libs/freetype media-libs/harfbuzz
Back to top
View user's profile Send private message
Linx_
n00b
n00b


Joined: 01 Jul 2018
Posts: 63

PostPosted: Thu Jul 15, 2021 12:51 am    Post subject: Reply with quote

I'm having the same issue. I was able to get around it initially by using these tips, but now I'm emerging packages like wine and ffmpeg that want to rebuild harfbuzz and freetype with ABI_X86="32" and for the life of me I can't get it to work. Is there a patch or something for this? This is crazy.
_________________
I occasionally post sober.
My overlay of Mate tools and desktop apps is here.
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 340

PostPosted: Thu Jul 15, 2021 11:57 am    Post subject: Reply with quote

Had the same issue.
Solved by removing both conflicting packages (freetype and harfbuzz)
Code:
emerge --unmerge freetype harfbuzz

and the emerging them again
Code:
emerge freetype harfbuzz


No need to change flags (neither with USE= nor with package.use). It will lead to problems with other packages like ffmpeg, which depends on specific features enabled by these flags
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Thu Jul 15, 2021 1:38 pm    Post subject: Reply with quote

For me worked:

Code:
emerge -C freetype harfbuzz


Code:
USE="-truetype -harfbuzz" emerge -1 freetype harfbuzz


Code:
emerge -1 freetype harfbuzz

_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 245
Location: Bavaria

PostPosted: Thu Jul 15, 2021 7:17 pm    Post subject: Reply with quote

Had the same here, but only on 2 of 4 machines. For me changing package.use according to the output of "emerge -uav freetype"
Code:

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

worked.
However I have to keep this entry in package.use for the moment, removing it after emerging freetype results in the same error.
Back to top
View user's profile Send private message
tomtom69
Apprentice
Apprentice


Joined: 09 Nov 2010
Posts: 245
Location: Bavaria

PostPosted: Thu Jul 15, 2021 7:24 pm    Post subject: Reply with quote

I forgot to mention:
the need for setting "+harfbuzz" seems strange to me, because it should be already set?
Code:

~ # equery depends freetype
 * These packages depend on freetype:
[...]
x11-libs/pango-1.48.7 (>=media-libs/freetype-2.5.0.1:2[harfbuzz,png,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?])

So i would expect the installed package "x11-libs/pango" should force the +harfbuzz use flag for freetype.
Back to top
View user's profile Send private message
Linx_
n00b
n00b


Joined: 01 Jul 2018
Posts: 63

PostPosted: Fri Jul 16, 2021 1:45 am    Post subject: Reply with quote

I finally got my situation resolved , but I tried so many things I'm not sure which one actually did it. I'm currently forcing freetype and harfbuzz on each other and abi_x86_32 on both. It seems to be happy for the moment.
_________________
I occasionally post sober.
My overlay of Mate tools and desktop apps is here.
Back to top
View user's profile Send private message
denn0n
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2020
Posts: 87

PostPosted: Sat Jul 17, 2021 11:19 pm    Post subject: Fresh Install emerge --ask --verbose --update --changed-use Reply with quote

Fails on
Code:
Total: 38 packages (35 new, 3 reinstalls), Size of downloads: 327287 KiB

 * Error: circular dependencies:


just after
Code:
eselect profile list
  [1]   default/linux/amd64/17.1 (stable)
  [2]   default/linux/amd64/17.1/selinux (stable)
  [3]   default/linux/amd64/17.1/hardened (stable)
  [4]   default/linux/amd64/17.1/hardened/selinux (stable)
  [5]   default/linux/amd64/17.1/desktop (stable)
  [6]   default/linux/amd64/17.1/desktop/gnome (stable) *
  [7]   default/linux/amd64/17.1/desktop/gnome/systemd (stable)
  [8]   default/linux/amd64/17.1/desktop/plasma (stable)
  [9]   default/linux/amd64/17.1/desktop/plasma/systemd (stable)
  [10]  default/linux/amd64/17.1/desktop/systemd (stable)
  [11]  default/linux/amd64/17.1/developer (stable)
  [12]  default/linux/amd64/17.1/no-multilib (stable)
  [13]  default/linux/amd64/17.1/no-multilib/hardened (stable)
  [14]  default/linux/amd64/17.1/no-multilib/hardened/selinux (stable)
  [15]  default/linux/amd64/17.1/no-multilib/systemd (dev)
  [16]  default/linux/amd64/17.1/systemd (stable)
  [17]  default/linux/amd64/17.0 (dev)
  [18]  default/linux/amd64/17.0/selinux (dev)
  [19]  default/linux/amd64/17.0/hardened (dev)
  [20]  default/linux/amd64/17.0/hardened/selinux (dev)
  [21]  default/linux/amd64/17.0/desktop (dev)
  [22]  default/linux/amd64/17.0/desktop/gnome (dev)
  [23]  default/linux/amd64/17.0/desktop/gnome/systemd (dev)
  [24]  default/linux/amd64/17.0/desktop/plasma (dev)
  [25]  default/linux/amd64/17.0/desktop/plasma/systemd (dev)
  [26]  default/linux/amd64/17.0/developer (dev)
  [27]  default/linux/amd64/17.0/no-multilib (dev)
  [28]  default/linux/amd64/17.0/no-multilib/hardened (dev)
  [29]  default/linux/amd64/17.0/no-multilib/hardened/selinux (dev)
  [30]  default/linux/amd64/17.0/systemd (dev)
  [31]  default/linux/amd64/17.0/x32 (dev)
  [32]  default/linux/amd64/17.0/musl (exp)
  [33]  default/linux/amd64/17.0/musl/hardened (exp)
  [34]  default/linux/amd64/17.0/musl/hardened/selinux (exp)
  [35]  default/linux/amd64/17.0/uclibc (exp)
  [36]  default/linux/amd64/17.0/uclibc/hardened (exp)


even if i change the desktop to plasma I can't execute
Code:
emerge --ask --verbose --update --changed-use --deep @world
without
Code:
BI_X86="(64) -32 (-x32)" 2360 KiB

Total: 38 packages (35 new, 3 reinstalls), Size of downloads: 327287 KiB

 * Error: circular dependencies:

(media-libs/freetype-2.10.4:2/2::gentoo, ebuild scheduled for merge) depends on
 (media-libs/harfbuzz-2.8.1:0/0.9.18::gentoo, ebuild scheduled for merge) (buildtime)
  (media-libs/freetype-2.10.4:2/2::gentoo, ebuild scheduled for merge) (buildtime_slot_op)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
(chroot) livecd / #
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jul 18, 2021 9:48 am    Post subject: Reply with quote

For new installs this works for me
Code:

emerge --sync
eselect profile set 1
env-update
USE="-truetype" emerge -1av freetype harfbuzz
USE="truetype harfbuzz" emerge -1av freetype harfbuzz
echo "media-libs/freetype   harfbuzz" > /etc/portage/package.use/freetype
eselect profile set <some-desktop>
env-update
emerge -uDNav @world

_________________
:)


Last edited by alamahant on Sun Jul 18, 2021 6:16 pm; edited 2 times in total
Back to top
View user's profile Send private message
denn0n
Tux's lil' helper
Tux's lil' helper


Joined: 24 May 2020
Posts: 87

PostPosted: Sun Jul 18, 2021 5:54 pm    Post subject: Reply with quote

fedeliallalinea wrote:
bigjew222 wrote:
command and it returned the following:

This is true because I forgot the dependencies
Code:
# USE="-harfbuzz" emerge -1 virtual/libintl app-arch/bzip2 virtual/libiconv media-libs/libpng dev-libs/libpcre media-libs/freetype media-gfx/graphite2 sys-apps/util-linux dev-libs/glib media-libs/harfbuzz --nodeps
# emerge -1 media-libs/freetype media-libs/harfbuzz

create backup with quickpkg


In a Fresh install media-gfx/graphite2 and dev-libs/glib give some error, I did emerge them whit the command

I'm not sure if it's necessary the USE FLAG but this is what I did

Code:
USE="-harfbuzz" emerge -1 media-gfx/graphite2

and

Code:
USE="-harfbuzz" emerge -1 dev-libs/glib


They complete and the rest is easy :oops:


Last edited by denn0n on Sun Jul 18, 2021 7:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30914
Location: here

PostPosted: Sun Jul 18, 2021 6:16 pm    Post subject: Reply with quote

denn0n wrote:
In a Fresh install media-gfx/graphite2 and dev-libs/glib give some error, if you emerge them whit the command

This command is work only if you have exactly same situation (error, use flags eanbled,..) as OP.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
vojeroen
n00b
n00b


Joined: 22 Jul 2021
Posts: 3

PostPosted: Thu Jul 22, 2021 6:32 pm    Post subject: Reply with quote

Hi, does anyone know if this is considered a bug and will be fixed in the portage tree?

There are workarounds available (in fact on my own machine I have had the same issue and fixed it), but when building using the gentoo/stage3 docker images, it would mean I need to apply these fixes every time on the images before it can be used to build something that depends on freetype or harfbuzz.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30914
Location: here

PostPosted: Thu Jul 22, 2021 6:42 pm    Post subject: Reply with quote

vojeroen wrote:
Hi, does anyone know if this is considered a bug and will be fixed in the portage tree?

No isn't a bug but a problem of dependencies caused by use flag settings, so you should compile package(s) first time without some use flags for to be able to then compile it with all the desired use flags.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
mega_flow
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2016
Posts: 84
Location: Belgium

PostPosted: Thu Jul 22, 2021 6:53 pm    Post subject: Reply with quote

USE="-gtk -harfbuzz" emerge media-libs/harfbuzz work for me
next add "media-libs/freetype harfbuzz" to /etc/portage/package.use
_________________
Intel(R) Core(TM) i7-10875H - GeForce GTX 1660 Ti Mobile
Back to top
View user's profile Send private message
ozric
n00b
n00b


Joined: 13 Oct 2006
Posts: 38
Location: Örebro, Sweden

PostPosted: Wed Sep 01, 2021 8:31 am    Post subject: Reply with quote

alamahant wrote:
For new installs this works for me
Code:

emerge --sync
eselect profile set 1
env-update
USE="-truetype" emerge -1av freetype harfbuzz
USE="truetype harfbuzz" emerge -1av freetype harfbuzz
echo "media-libs/freetype   harfbuzz" > /etc/portage/package.use/freetype
eselect profile set <some-desktop>
env-update
emerge -uDNav @world


Let me just express my humble gratitude towards you for making the above quoted post.
I have not been using Gentoo for about ten years or so, and around a month ago I started a fresh install to catch up and have some genuine FUN with computing. There has been no fun what so ever up until today:

I got completely stuck at the circular dependencies (harfbuzz, freetype). Reinstalled my system several times as I had no idea what went wrong all the time.
This morning - in desperation, anger, despair, torn out hair and clothes, crying - I stumbled on your post.

Lets just say you made - not only my day - but a whole month. Thank you very much.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Sep 01, 2021 8:36 am    Post subject: Reply with quote

ozric
Glad it worked out for you..
:)
_________________
:)
Back to top
View user's profile Send private message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 218
Location: Lake Macha, Czech republic

PostPosted: Mon Sep 20, 2021 12:17 pm    Post subject: Reply with quote

Or in my case with more use flags enabled I had to do:
Code:
USE="-harfbuzz" emerge -1 dev-libs/icu dev-libs/libffi virtual/libintl app-arch/bzip2 virtual/libiconv media-libs/libpng dev-libs/libpcre media-libs/freetype media-gfx/graphite2 sys-apps/util-linux dev-libs/glib media-libs/harfbuzz --nodeps

_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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