Git Product home page Git Product logo

Comments (7)

dg0yt avatar dg0yt commented on July 30, 2024

Slightly different results for pkgconf 2.1.0, but confirming the problem. (freetype too late.)

-L/opt/devkitpro/portlibs/ppc/lib -lpng16 -lm -lz -lm -L/opt/devkitpro/portlibs/ppc/lib -lpng16 -lm -lz -lharfbuzz -lm -lfreetype -lbz2

With 2.1.1, I see -freetype twice:

-L/opt/devkitpro/portlibs/ppc/lib -lfreetype -lbz2 -lpng16 -lm -lz -lharfbuzz -lm -L/opt/devkitpro/portlibs/ppc/lib -lfreetype -lbz2

Digraph for 2.1.0:
img-2 1 0

Digraph for 2.1.1:
img-2 1 1

from pkgconf.

dg0yt avatar dg0yt commented on July 30, 2024

... so this might be resolved in 2.1.1.

from pkgconf.

kaniini avatar kaniini commented on July 30, 2024

It would be nice to have additional test cases. Cyclical dependencies were not really ever clearly considered as part of the original pkg-config design. In my opinion, allowing them was a mistake.

from pkgconf.

WinterMute avatar WinterMute commented on July 30, 2024

With 2.1.1, I see -freetype twice:

-L/opt/devkitpro/portlibs/ppc/lib -lfreetype -lbz2 -lpng16 -lm -lz -lharfbuzz -lm -L/opt/devkitpro/portlibs/ppc/lib -lfreetype -lbz2

This is probably correct given the circular dependency between harfbuzz & freetype

from pkgconf.

kaniini avatar kaniini commented on July 30, 2024

Can we test and see if this generates expected output on 2.2.0? @dg0yt did a lot of work on the solver.

from pkgconf.

dg0yt avatar dg0yt commented on July 30, 2024

On linux/macOS PKG_CONFIG_PATH=pkgconfig pkg-config --libs --static freetype2 gives output of -L/opt/devkitpro/portlibs/ppc/lib -lfreetype -lbz2 -lpng16 -lz -lm -lz -lharfbuzz -lm

On windows with pkgconf 2.1.0 the output is -L/opt/devkitpro/portlibs/ppc/lib -lpng16 -lm -lz -lharfbuzz -lm -L/opt/devkitpro/portlibs/ppc/lib -L/opt/devkitpro/portlibs/ppc/lib -lz -lfreetype -lbz2

pkgconfig-test.zip

With pkgconf 2.2.0:

$ PKG_CONFIG_PATH=/tmp/pkgconfig ./installed/x64-linux/tools/pkgconf/pkgconf --libs --static freetype2
-L/opt/devkitpro/portlibs/ppc/lib -lfreetype -lbz2 -lpng16 -lm -lz -lharfbuzz -lm

LGTM. (One -lz merged.)

from pkgconf.

kaniini avatar kaniini commented on July 30, 2024

Closing then!

from pkgconf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.