Tags

  • AWS (7)
  • Apigee (3)
  • ArchLinux (5)
  • Array (6)
  • Backtracking (6)
  • BinarySearch (6)
  • C++ (19)
  • CI&CD (3)
  • Calculus (2)
  • DesignPattern (43)
  • DisasterRecovery (1)
  • Docker (8)
  • DynamicProgramming (20)
  • FileSystem (11)
  • Frontend (2)
  • FunctionalProgramming (1)
  • GCP (1)
  • Gentoo (6)
  • Git (15)
  • Golang (1)
  • Graph (10)
  • GraphQL (1)
  • Hardware (1)
  • Hash (1)
  • Kafka (1)
  • LinkedList (13)
  • Linux (27)
  • Lodash (2)
  • MacOS (3)
  • Makefile (1)
  • Map (5)
  • MathHistory (1)
  • MySQL (21)
  • Neovim (10)
  • Network (66)
  • Nginx (6)
  • Node.js (33)
  • OpenGL (6)
  • PriorityQueue (1)
  • ProgrammingLanguage (9)
  • Python (10)
  • RealAnalysis (20)
  • Recursion (3)
  • Redis (1)
  • RegularExpression (1)
  • Ruby (19)
  • SQLite (1)
  • Sentry (3)
  • Set (4)
  • Shell (3)
  • SoftwareEngineering (12)
  • Sorting (2)
  • Stack (4)
  • String (2)
  • SystemDesign (13)
  • Terraform (2)
  • Tree (24)
  • Trie (2)
  • TwoPointers (16)
  • TypeScript (3)
  • Ubuntu (4)
  • Home

    [Gentoo] Solve Circular Dependency for harfbuzz & freetype

    Published Jul 29, 2021 [  Gentoo  ]

    Error log

    Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB
    
     * 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.
    

    Directly remove harfbuzz USE flag for freetype doesn’t work.

           --oneshot, -1
                  Emerge as normal, but do not add the packages to the world file for later updating.
    
                  WARNING:  This option should only be used for packages that are reachable from the @world package set (those that would not be removed by --depclean), since dependencies of unreachable packages are allowed to be broken when satisfying dependencies of other packages.  Broken dependencies of this sort will invalidate assumptions that make it possible for
                  --deep to be disabled by default.
           --nodeps, -O
                  Merges specified packages without merging any dependencies.  Note that the build may fail if the dependencies aren't satisfied.
    

    So let’s install the dependencies manually and then reinstall harfbuzz & freetype

    # 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
    

    Reference

    • [https://forums.gentoo.org/viewtopic-p-8632444.html?sid=c7fa8cff642a2435e1dfbce7d9cef6ec][https://forums.gentoo.org/viewtopic-p-8632444.html?sid=c7fa8cff642a2435e1dfbce7d9cef6ec]