Giter Club home page Giter Club logo

Comments (10)

Tachi107 avatar Tachi107 commented on August 26, 2024 1

Thanks for the info! I've made the switch :)

I've noticed an issue with the inih wrap though, as it references a "inireader_dep" dependency that doesn't exist. It's called "INIReader_dep". I think it should be fixed in https://github.com/mesonbuild/wrapdb/blob/master/subprojects/inih.wrap

from cloudflare-ddns.

Tachi107 avatar Tachi107 commented on August 26, 2024

Thanks for pointing it out. I haven't used wraps in a while though, how do they handle projects that do not use Meson (like curl and simdjson)?

I believe that I originally chose not to use wraps because I couldn't get them to work with the curl subproject, so I preferred to keep things consistent and only use git submodules (yeah they require git, but Meson can init them when needed just like wraps and that's handy).

If wraps work with simdjson and curl too I'd be happy to switch :)

from cloudflare-ddns.

stephanlachnit avatar stephanlachnit commented on August 26, 2024

Thanks for pointing it out. I haven't used wraps in a while though, how do they handle projects that do not use Meson (like curl and simdjson)?

For those you would still have to use git submodules.

I believe that I originally chose not to use wraps because I couldn't get them to work with the curl subproject, so I preferred to keep things consistent and only use git submodules (yeah they require git, but Meson can init them when needed just like wraps and that's handy).

Hm, I guess it's not consistent, and if that bothers you feel free to close the issue. Compared to submodules they offer some advantages when it comes to building from tarballs, as git submodules are usually not included in those (e.g. on GitHub, but also when running git archive).

from cloudflare-ddns.

eli-schwartz avatar eli-schwartz commented on August 26, 2024

You can have a wrap that is also a submodule, and in that case Meson will use git submodule update --init to try to retrieve it.

The url in the wrap file is still used in the event that you build from a tarball instead of a git checkout. Or, you can exclusively use the url in the wrap file for consistency between git and tarball builds.

The difference between cmake-type and meson-type subprojects is not important here. The former should work with wrap files just as well, the only difference being that it cannot use wrap dependency fallback (and thus cannot have a [provide] section) and must still use an explicit cmake.subproject() to run the wrap resolver.

from cloudflare-ddns.

stephanlachnit avatar stephanlachnit commented on August 26, 2024

I've noticed an issue with the inih wrap though, as it references a "inireader_dep" dependency that doesn't exist. It's called "INIReader_dep". I think it should be fixed in https://github.com/mesonbuild/wrapdb/blob/master/subprojects/inih.wrap

Thanks for catching! I opened a PR: mesonbuild/wrapdb#338

from cloudflare-ddns.

eli-schwartz avatar eli-schwartz commented on August 26, 2024

I've noticed an issue with the inih wrap though, as it references a "inireader_dep" dependency that doesn't exist. It's called "INIReader_dep". I think it should be fixed in https://github.com/mesonbuild/wrapdb/blob/master/subprojects/inih.wrap

Did you try it first? :)

from cloudflare-ddns.

Tachi107 avatar Tachi107 commented on August 26, 2024

Did you try it first? :)

Yep, it doesn't work. The meson.build files creates the INIReader_dep object, and the inireader = inireader_dep line in the wrap file points to an object that doesn't exist

from cloudflare-ddns.

stephanlachnit avatar stephanlachnit commented on August 26, 2024

You can fix it locally by changing inireader = inireader_dep to inireader = INIReader_dep in the wrap file if it's urgent.

from cloudflare-ddns.

eli-schwartz avatar eli-schwartz commented on August 26, 2024

There are two wrapdb PRs to fix it, the first of which tried to fix the key and the second of which tries to fix the value.

The key is fine, the value isn't.

from cloudflare-ddns.

Tachi107 avatar Tachi107 commented on August 26, 2024

You can fix it locally by chaing inireader = inireader_dep to inireader = INIReader_dep in the wrap file if it's urgent.

Nah that's not that big of a deal, I can always do dependency('INIReader', fallback: ['inih', 'INIReader_dep']). It was just to let you know that the wrap is partially broken :)

from cloudflare-ddns.

Related Issues (8)

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.