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  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Mon Sep 20, 2021 5:26 pm    Post subject: Reply with quote

My fix on an amd64 17.1 profile desktop from stage 3 -- and I tip hat to toralph for the more elegant "minus-USE" that touches the same bases.

Code:
emerge -q1 x11-libs/libX11 dev-util/cmake sys-libs/slang virtual/libelf \
dev-libs/icu x11-libs/cairo

USE="-harfbuzz" emerge -q1 --nodeps 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


I'm fairly experienced with portage (close to 20 years Gentoo only), not great but have a fair understanding, and this circular dependency drove me nuts for a few hours just this month. If I was a new user, I'd run like hell from gentoo on hitting this on a stage 3 install. Most of the solutions that pop up in online and other searches flat do not work.
Back to top
View user's profile Send private message
Radioface
n00b
n00b


Joined: 11 Sep 2018
Posts: 4

PostPosted: Sat Sep 25, 2021 10:48 am    Post subject: Reply with quote

For me it broke when I needed ABI_X86_32. I could fix it by disabling all other use flags and then oneshot-compiling them (the only remaining dependency was zlib).

Code:

USE="abi_x86_32 -harfbuzz -truetype -png -cleartype-hinting -bzip2 -adobe-cff -X -cairo -glib -graphite -icu -introspection" emerge -a1v zlib freetype harfbuzz --nodeps

_________________
Gentoo can do
Back to top
View user's profile Send private message
greyspoke
Apprentice
Apprentice


Joined: 08 Jan 2010
Posts: 171

PostPosted: Thu Oct 07, 2021 12:46 pm    Post subject: Reply with quote

I had the abi_x86_32 issue when wanting to install wine, like @Linx_. I am not sure if this solution is like his. The problem is that the long list of packages (which include the culprits) whose uses need to change need to be emerged in some order, as some of them depend at build time on others being already compiled with abi_x86_32. Well I got compile errors anyhow. So if you try to emerge just freetype or harfbuzz, the emerge fails. Here is what worked for me:
Code:

emerge --unmerge freetype harfbuzz
emerge --pretend --deep --update --changed-use @world > filestoemerge
vim filestoemerge
# or your favourite text editor.
# Need to edit the file to reduce each line to a simple package name, without the pre-amble or the USE= postamble.
# Probably there is a way of telling portage to output a nicer list for this?
emergelist=$(< filestoemerge)
emerge --oneshot --nodeps ${emergelist}

This got everything emerged OK, then I could go on and emerge wine.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4683
Location: Germany

PostPosted: Thu Oct 07, 2021 2:38 pm    Post subject: Reply with quote

In most cases the new
RDEPEND="
>=media-libs/freetype-2.5.0.1:2=[harfbuzz,png,${MULTILIB_USEDEP}]
dep in x11-libs/pango is why USE="-harfbuzz" emerge ...
don't work for portage.

Workaround: Using temporally a older x11-libs/pango version for resolving the circular dependencies,
like
Code:
USE="-harfbuzz" emerge -av1 media-libs/freetype media-libs/harfbuzz "=x11-libs/pango-1.48.5-r1"
emerge -avuDU @world
works for me.
(without the ugly nodeps hack :)

Example output: https://dpaste.com/9GVY9T9L6
Back to top
View user's profile Send private message
petrasl
n00b
n00b


Joined: 18 May 2004
Posts: 69
Location: Swiss

PostPosted: Sat Oct 09, 2021 4:24 pm    Post subject: Reply with quote

Josef.95 wrote:
In most cases the new
RDEPEND="
>=media-libs/freetype-2.5.0.1:2=[harfbuzz,png,${MULTILIB_USEDEP}]
dep in x11-libs/pango is why USE="-harfbuzz" emerge ...
don't work for portage.

Workaround: Using temporally a older x11-libs/pango version for resolving the circular dependencies,
like
Code:
USE="-harfbuzz" emerge -av1 media-libs/freetype media-libs/harfbuzz "=x11-libs/pango-1.48.5-r1"
emerge -avuDU @world
works for me.
(without the ugly nodeps hack :)

Example output: https://dpaste.com/9GVY9T9L6


Worked for me too. Thanks!
Back to top
View user's profile Send private message
greyspoke
Apprentice
Apprentice


Joined: 08 Jan 2010
Posts: 171

PostPosted: Sun Oct 10, 2021 4:39 pm    Post subject: Reply with quote

I agree @Josef.95 your method is neater (though I have no idea if it would have worked for me, and I don't intend to go through all that again to find out!) I think I had a few more non-optional harfbuzz dependencies than Pango (pretty sure gtk+ was one).

I would point out that my use of --nodeps is just convenience, not necessary, in the second line of my code above all the packages needed with dependencies were calculated, so emerging them explicitly does not require dependency calculation, using --nodeps just saves portage some time.
Back to top
View user's profile Send private message
44616e
n00b
n00b


Joined: 14 Oct 2021
Posts: 1

PostPosted: Sat Oct 16, 2021 5:16 pm    Post subject: Reply with quote

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

This fixed the issue for me as well. Once freetype was installed, @world update worked for me.
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 58

PostPosted: Sun Oct 17, 2021 12:25 am    Post subject: none of these solutions seems to work for me Reply with quote

Im trying to install wine and im getting this horrendous circular dependency error, i cant emerge harfbuzz without freetype and i cant emerge freetype wtihout harfbuzz. all of the suggestions in this thread have failed me

if these two are dependent on each other then they SHOULD BE ONE PACKAGE!!!!!!!!!!!!
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22958

PostPosted: Sun Oct 17, 2021 1:01 am    Post subject: Reply with quote

media-libs/harfbuzz only depends on media-libs/freetype if you set USE=truetype.
media-libs/freetype only depends on media-libs/harfbuzz if you set USE=harfbuzz.

Therefore, they do not unconditionally depend on each other, in either direction.
Back to top
View user's profile Send private message
mark4
n00b
n00b


Joined: 26 Feb 2011
Posts: 58

PostPosted: Sun Oct 17, 2021 1:13 am    Post subject: Reply with quote

Hu wrote:
media-libs/harfbuzz only depends on media-libs/freetype if you set USE=truetype.
media-libs/freetype only depends on media-libs/harfbuzz if you set USE=harfbuzz.

Therefore, they do not unconditionally depend on each other, in either direction.



Understood but I already stated that I cannot compile either one without the dependency on the other. I will try adding -freetype -truetype and -harfbuzz to my global use flags...

ty for the reply
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: Sat Jan 15, 2022 2:08 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Ok then try with
Code:
# USE="-harfbuzz" emerge -1 media-libs/harfbuzz media-libs/freetype


I was able to move one step closer to wine installation with above command on my installation. thx but this nasty problem with harfbuzz is there already for very long time...
_________________
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
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2076

PostPosted: Mon Jan 17, 2022 5:20 am    Post subject: Reply with quote

archenroot wrote:
fedeliallalinea wrote:
Ok then try with
Code:
# USE="-harfbuzz" emerge -1 media-libs/harfbuzz media-libs/freetype


I was able to move one step closer to wine installation with above command on my installation. thx but this nasty problem with harfbuzz is there already for very long time...


Should actually be worked around now as Pango was updated to avoid it, but see here.
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
Page 3 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