Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional Dependencies? #114

Open
sheepman4267 opened this issue Mar 17, 2025 · 0 comments
Open

Conditional Dependencies? #114

sheepman4267 opened this issue Mar 17, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@sheepman4267
Copy link
Member

Thinking out loud here. How hard would it be to implement conditional dependencies in eopkg? This would also require changes to build tooling, but could be super useful for kernel module packages. I'm not promising to build it, but this issue can serve as a center for discussion around the feasibility of this idea.

Initial idea for package.yml syntax:

rundeps:  # traditional rundeps
  - package1
  - package2
conditional-rundeps:
  linux-lts:  # if this package is installed...
    - my-lts-counterpart  # ...then depend on these packages.
    - my-other-lts-dependency
  linux-current:  # elif this package is installed...
    - my-current-counterpart  # ...then depend on these instead.
    - my-other-current-dependency

Knowing how long the project has been around, I doubt this is the first go-round for the idea, and it's probably prohibitively complicated. I still intend to look into it when I have spare time. Please comment your thoughts!

@sheepman4267 sheepman4267 added the enhancement New feature or request label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant