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

How to provide duplicate (but older) package version? #1377

Open
ckoehler opened this issue Oct 29, 2024 · 0 comments
Open

How to provide duplicate (but older) package version? #1377

ckoehler opened this issue Oct 29, 2024 · 0 comments

Comments

@ckoehler
Copy link

I have a custom build of libpcap, packaged as libpcap-1.9.1-r0. But when I specify this in a build, it still conflicts with the Wolfi version:

solving "so:libpcap.so.1" constraint:   libpcap-1.10.3-r0.apk disqualified because libpcap-1.9.1-r0.apk already provides so:libpcap.so.1
  libpcap-1.10.4-r0.apk disqualified because libpcap-1.9.1-r0.apk already provides so:libpcap.so.1
  libpcap-1.10.4-r1.apk disqualified because libpcap-1.9.1-r0.apk already provides so:libpcap.so.1
  libpcap-1.10.4-r2.apk disqualified because libpcap-1.9.1-r0.apk already provides so:libpcap.so.1
  libpcap-1.10.4-r3.apk disqualified because libpcap-1.9.1-r0.apk already provides so:libpcap.so.1
  libpcap-1.10.5-r0.apk disqualified because libpcap-1.9.1-r0.apk already provides so:libpcap.so.1

I tried specifying the exact version, but still get an error:

solving "so:libpcap.so.1" constraint:   libpcap-1.10.3-r0.apk disqualified because "1.10.3-r0" does not satisfy "libpcap=1.9.1-r0@local"
  libpcap-1.10.4-r0.apk disqualified because "1.10.4-r0" does not satisfy "libpcap=1.9.1-r0@local"
  libpcap-1.10.4-r1.apk disqualified because "1.10.4-r1" does not satisfy "libpcap=1.9.1-r0@local"
  libpcap-1.10.4-r2.apk disqualified because "1.10.4-r2" does not satisfy "libpcap=1.9.1-r0@local"
  libpcap-1.10.4-r3.apk disqualified because "1.10.4-r3" does not satisfy "libpcap=1.9.1-r0@local"
  libpcap-1.10.5-r0.apk disqualified because "1.10.5-r0" does not satisfy "libpcap=1.9.1-r0@local"

This is run from Melange; the relevant parts of the config are:

environment:
  contents:
    keyring:
      - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
    repositories:
      - '@local /sensor-pfring/packages/'
      - https://packages.wolfi.dev/os
    packages: 
      # snip
      - libpcap=1.9.1-r0@local

The path to the local repo is the output of another Melange build that provides my version of libpcap.

Any idea on how to make this work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant