Coder Social home page Coder Social logo

Comments (9)

martin-belanger avatar martin-belanger commented on June 20, 2024

Have you tried the latest code? This should have been fixed by #267 which came after 2.0-rc5.

from nvme-stas.

martin-belanger avatar martin-belanger commented on June 20, 2024

BTW, this dependency is only needed to run the tests. We added required: false to the dependency, which should solve this issue.

from nvme-stas.

tbzatek avatar tbzatek commented on June 20, 2024

I did, it's not fatal anymore but the fallback doesn't work either.

from nvme-stas.

tbzatek avatar tbzatek commented on June 20, 2024

Oh, I see, the meson fallback option is used to build a subproject in case of an missing dependency. That's obviously disabled within buildsystem env, forbidding internet access or embedding libraries in general. In any case the python3-libnvme pkg-config module requirement is an issue.

from nvme-stas.

martin-belanger avatar martin-belanger commented on June 20, 2024

Are you running the unit tests as part of the buildsystem? If you are not running the tests, then it's not an issue.

The tests depend on python3-libnvme being installed. Or maybe the issue is that meson cannot find Python packages because they don't usually come with a .pc file. Is that the issue?

There's another way I can check for the presence of python3-libnvme, but it's not going to be a meson approach, and if the library is missing the tests will be skipped.

I'm open to suggestions.

from nvme-stas.

martin-belanger avatar martin-belanger commented on June 20, 2024

Fixed by #275

@tbzatek - Please check that the above pull request fixes the issue. Thanks.

from nvme-stas.

tbzatek avatar tbzatek commented on June 20, 2024

Nope, that made things actually worse. The test subdir and its meson.build file suggests that this target is always enabled, failing the basic build:

$ meson --wrap-mode=nodownload -Dman=true -Dhtml=true .build
The Meson build system
Version: 0.63.2
Source dir: /tmp/nvme-stas
Build dir: /tmp/nvme-stas/.build
Build type: native build
Project name: nvme-stas
Project version: 2.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 (lxml) found: YES (/usr/bin/python3) modules: lxml
Configuring nvme-stas.spec using configuration
Configuring .coveragerc using configuration
Configuring coverage.sh using configuration
Configuring defs.py using configuration
Configuring __init__.py using configuration
Configuring org.nvmexpress.staf.conf using configuration
Configuring org.nvmexpress.stac.conf using configuration
Configuring stafd.service using configuration
Configuring stacd.service using configuration
Configuring stas-config.target using configuration

test/meson.build:13:0: ERROR: Automatic wrap-based subproject downloading is disabled

I guess the --wrap-mode=nodownload meson argument should be crucial for a final test before making a release. It's a default of many distribution buildsystems. We don't need to run unit tests during the build. For the record, this is how the default Fedora meson command expansion looks like:

/usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . redhat-linux-build -Dman=true -Dhtml=true

(we've only added -Dman=true -Dhtml=true there)

from nvme-stas.

martin-belanger avatar martin-belanger commented on June 20, 2024

Hi @tbzatek - Thanks for mentioning the --wrap-mode= option. With that I was able to reproduce the problem you mentioned. Hopefully this latest pull request will fix the issue once and for all.

Fixed by #279

from nvme-stas.

tbzatek avatar tbzatek commented on June 20, 2024

Tested git master, everything works without any issue. Thanks!

from nvme-stas.

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.