GithubHelp home page GithubHelp logo

Comments (5)

COM8 avatar COM8 commented on September 16, 2024

I run into the same error as you. The problem is as follows:

  1. During compose you install akmod-nvidia.
  2. akmod-nvidia will run as part of the %post section during RPM install the build of nvidia-kmod which defines gcc, kernel-devel-uname-r and some others. 3. Although they might be already installed on the system (I suspect) the RPM DB is not yet updated to reflect them being installed, leading to the system thinking they are not and then failing.
  3. I'm currently working on a patched akmod-nvidia RPM that is able to be installed during OSTree compose. This involves moving nvidia-kmod BuildRequires into akmod-nvidia Requires definitions.

In my eyes this is not the optimal solution since I would expect rpm-ostree compose handling this as it's done on all other systems as well. This would then allow installation of any other akmod kernel module during compose as well without having to patch it first.

from rpm-ostree.

COM8 avatar COM8 commented on September 16, 2024

Here is a fixed RPM that works during rpm-ostree compose: https://github.com/COM8/nvidia-kmod

from rpm-ostree.

travier avatar travier commented on September 16, 2024

rpm-ostree will not pull BuildRequires dependencies as those are only installed when the package is built, not on normal installations.

from rpm-ostree.

COM8 avatar COM8 commented on September 16, 2024

@travier I'm fine with closing this, but this is not the point.

The point is, you define something as Requires or even Requires(post) in an RPM spec. Then, inside the %post section of that RPM, you call rpmbuild (e.g. the process that happens during an akmod install) and there it fails to find the RPM dependency you previously defined as Requires(post) during the BuildRequires check of the RPM you are building.

from rpm-ostree.

travier avatar travier commented on September 16, 2024

Ah, I think I understand what you meant now.

from rpm-ostree.

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.