Forums

Skip to content

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

harfbuzz and freetype circular dependency -- unable to fix

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
62 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
Author
Message
bigjew222
n00b
n00b
Posts: 12
Joined: Wed Jul 07, 2021 3:39 pm

  • Quote

Post by bigjew222 » Wed Jul 07, 2021 7:20 pm

fedeliallalinea wrote:
bigjew222 wrote:command and it returned the following:
This is true because I forgot the dependencies

Code: Select all

# 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") ;)
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Jul 07, 2021 7:47 pm

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.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Hu
Administrator
Administrator
Posts: 24386
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Jul 07, 2021 10:03 pm

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.
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Sun Jul 11, 2021 9:29 am

I do currently try

Code: Select all

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.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Jul 11, 2021 9:38 am

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.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
drift244
n00b
n00b
Posts: 8
Joined: Sun Jul 11, 2021 7:41 pm

  • Quote

Post by drift244 » Sun Jul 11, 2021 7:52 pm

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: Select all

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

Code: Select all

 * 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]
Top
drift244
n00b
n00b
Posts: 8
Joined: Sun Jul 11, 2021 7:41 pm

  • Quote

Post by drift244 » Sun Jul 11, 2021 10:15 pm

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

Code: Select all



[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.
Top
Fauchmatte
n00b
n00b
Posts: 4
Joined: Sat Jul 03, 2021 3:23 pm

  • Quote

Post by Fauchmatte » Mon Jul 12, 2021 11:39 am

toralf wrote:I do currently try

Code: Select all

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.
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Wed Jul 14, 2021 12:17 pm

Fauchmatte wrote:
toralf wrote:I do currently try

Code: Select all

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: Select all

USE="-X -cairo -fontconfig -graphite -harfbuzz -icu -png -truetype" emerge -u media-libs/freetype media-libs/harfbuzz
Top
Linx_
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Sun Jul 01, 2018 4:23 pm

  • Quote

Post by Linx_ » Thu Jul 15, 2021 12:51 am

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.
Go get me a beer. Ok then, sudo go get me a beer.
Top
Blind_Sniper
Guru
Guru
Posts: 373
Joined: Fri Apr 20, 2018 9:48 am

  • Quote

Post by Blind_Sniper » Thu Jul 15, 2021 11:57 am

Had the same issue.
Solved by removing both conflicting packages (freetype and harfbuzz)

Code: Select all

emerge --unmerge freetype harfbuzz
and the emerging them again

Code: Select all

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
Top
Kollin
Veteran
Veteran
User avatar
Posts: 1139
Joined: Sat Feb 25, 2006 12:42 am
Location: Sofia/Bulgaria

  • Quote

Post by Kollin » Thu Jul 15, 2021 1:38 pm

For me worked:

Code: Select all

emerge -C freetype harfbuzz

Code: Select all

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

Code: Select all

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..."
Top
tomtom69
Apprentice
Apprentice
Posts: 263
Joined: Tue Nov 09, 2010 9:29 am
Location: Bavaria

  • Quote

Post by tomtom69 » Thu Jul 15, 2021 7:17 pm

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: Select all

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.
Top
tomtom69
Apprentice
Apprentice
Posts: 263
Joined: Tue Nov 09, 2010 9:29 am
Location: Bavaria

  • Quote

Post by tomtom69 » Thu Jul 15, 2021 7:24 pm

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

Code: Select all

~ # 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.
Top
Linx_
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Sun Jul 01, 2018 4:23 pm

  • Quote

Post by Linx_ » Fri Jul 16, 2021 1:45 am

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.
Go get me a beer. Ok then, sudo go get me a beer.
Top
denn0n
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun May 24, 2020 6:49 pm

Fresh Install emerge --ask --verbose --update --changed-use

  • Quote

Post by denn0n » Sat Jul 17, 2021 11:19 pm

Fails on

Code: Select all

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

 * Error: circular dependencies:
just after

Code: Select all

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: Select all

emerge --ask --verbose --update --changed-use --deep @world
without

Code: Select all

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 / #
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sun Jul 18, 2021 9:48 am

For new installs this works for me

Code: Select all

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.
:)
Top
denn0n
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun May 24, 2020 6:49 pm

  • Quote

Post by denn0n » Sun Jul 18, 2021 5:54 pm

fedeliallalinea wrote:
bigjew222 wrote:command and it returned the following:
This is true because I forgot the dependencies

Code: Select all

# 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: Select all

USE="-harfbuzz" emerge -1 media-gfx/graphite2 
and

Code: Select all

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.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Jul 18, 2021 6:16 pm

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.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
vojeroen
n00b
n00b
Posts: 3
Joined: Thu Jul 22, 2021 6:23 pm

  • Quote

Post by vojeroen » Thu Jul 22, 2021 6:32 pm

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.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Jul 22, 2021 6:42 pm

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.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
mega_flow
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 100
Joined: Sun Jun 26, 2016 9:54 pm
Location: Belgium

  • Quote

Post by mega_flow » Thu Jul 22, 2021 6:53 pm

USE="-gtk -harfbuzz" emerge media-libs/harfbuzz work for me
next add "media-libs/freetype harfbuzz" to /etc/portage/package.use
Legion Slim 5 16ARP9
Top
ozric
n00b
n00b
Posts: 38
Joined: Fri Oct 13, 2006 12:18 pm
Location: Örebro, Sweden

  • Quote

Post by ozric » Wed Sep 01, 2021 8:31 am

alamahant wrote:For new installs this works for me

Code: Select all

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.
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Wed Sep 01, 2021 8:36 am

ozric
Glad it worked out for you..
:)
:)
Top
archenroot
Apprentice
Apprentice
User avatar
Posts: 218
Joined: Tue Dec 13, 2011 10:04 pm
Location: Lake Macha, Czech republic
Contact:
Contact archenroot
Website

  • Quote

Post by archenroot » Mon Sep 20, 2021 12:17 pm

Or in my case with more use flags enabled I had to do:

Code: Select all

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
Top
Post Reply

62 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

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