View previous topic :: View next topic |
Author |
Message |
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Mon Sep 20, 2021 5:26 pm Post subject: |
|
|
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 |
|
|
Radioface n00b
Joined: 11 Sep 2018 Posts: 4
|
Posted: Sat Sep 25, 2021 10:48 am Post subject: |
|
|
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 |
|
|
greyspoke Apprentice
Joined: 08 Jan 2010 Posts: 171
|
Posted: Thu Oct 07, 2021 12:46 pm Post subject: |
|
|
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 |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4683 Location: Germany
|
Posted: Thu Oct 07, 2021 2:38 pm Post subject: |
|
|
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 |
|
|
petrasl n00b
Joined: 18 May 2004 Posts: 69 Location: Swiss
|
Posted: Sat Oct 09, 2021 4:24 pm Post subject: |
|
|
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 |
|
|
greyspoke Apprentice
Joined: 08 Jan 2010 Posts: 171
|
Posted: Sun Oct 10, 2021 4:39 pm Post subject: |
|
|
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 |
|
|
44616e n00b
Joined: 14 Oct 2021 Posts: 1
|
Posted: Sat Oct 16, 2021 5:16 pm Post subject: |
|
|
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 |
|
|
mark4 n00b
Joined: 26 Feb 2011 Posts: 58
|
Posted: Sun Oct 17, 2021 12:25 am Post subject: none of these solutions seems to work for me |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22958
|
Posted: Sun Oct 17, 2021 1:01 am Post subject: |
|
|
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 |
|
|
mark4 n00b
Joined: 26 Feb 2011 Posts: 58
|
Posted: Sun Oct 17, 2021 1:13 am Post subject: |
|
|
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 |
|
|
archenroot Apprentice
Joined: 13 Dec 2011 Posts: 218 Location: Lake Macha, Czech republic
|
Posted: Sat Jan 15, 2022 2:08 pm Post subject: |
|
|
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 |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2076
|
Posted: Mon Jan 17, 2022 5:20 am Post subject: |
|
|
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 |
|
|
|