Skip to content

Add conf-taglib_c #28001

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions packages/conf-taglib_c/conf-taglib_c.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
opam-version: "2.0"
maintainer: "https://github.com/ocaml/opam-repository/issues"
homepage: "https://taglib.org/"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
authors: "taglib maintainers"
license: ["LGPL-2.1-or-later" "MPL-1.1"]
# https://www.mozilla.org/en-US/MPL/2.0/Revision-FAQ/#upgrading-someone-elses-code
build: ["pkg-config" "--atleast-version" "1.0.0" "--exists" "taglib_c"]
depends: [
"conf-pkg-config" {build}
]
depexts: [
["libtagc0-dev"] {os-family = "debian" | os-family = "ubuntu"}
["taglib-dev"] {os-family = "alpine"}
["libtag-devel"] {os-family = "suse" | os-family = "opensuse"}
["taglib"] {os-family = "arch" | os = "freebsd" | os-distribution = "nixos"}
["taglib"] {os = "macos" & os-distribution = "homebrew"}
["taglib"] {os = "macos" & os-distribution = "macports"}
["taglib-devel"] {os-distribution="centos" | os-family = "fedora"}
]
synopsis: "Virtual package relying on taglib_c"
description:
"This package can only install if the taglib_c library is installed on the system."
flags: conf

25 changes: 25 additions & 0 deletions packages/conf-taglib_c/conf-taglib_c.2/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
opam-version: "2.0"
maintainer: "https://github.com/ocaml/opam-repository/issues"
homepage: "https://taglib.org/"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
authors: "taglib maintainers"
license: ["LGPL-2.1-or-later" "MPL-1.1"]
# https://www.mozilla.org/en-US/MPL/2.0/Revision-FAQ/#upgrading-someone-elses-code

build: ["pkg-config" "--atleast-version" "2.0.0" "--exists" "taglib_c"]
depends: [
"conf-pkg-config" {build}
]
depexts: [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why there are less depexts than above?
I think libtag-c-dev should be there for ubumtu for example: https://packages.ubuntu.com/plucky/libtag-c-dev

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not an issue that the package libtag-c-dev only seems to exist in the latest version of ubuntu (25.04) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, I didn't know that the latest version of ubuntu had this version.
I removed fedora since the taglib package https://packages.fedoraproject.org/pkgs/taglib/taglib-devel/ doesn't provide the required version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or should I still put the package ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact that is only in a recent version is not a problem, there is a way to filter the package name by os version in those cases: https://opam.ocaml.org/doc/Manual.html#opamvar-os-version

Copy link
Contributor Author

@EruEri EruEri Jun 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So for packages not yet up to date into distribution repos, should I filter using the opam variable os-version ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is a choice of name to be made, I'd say yes

["libtag-c-dev"] { os-family = "ubuntu" }
["taglib-dev"] {os-family = "alpine"}
["libtag-devel"] {os-family = "suse" | os-family = "opensuse"}
["taglib"] {os-family = "arch" | os = "freebsd" | os-distribution = "nixos"}
["taglib"] {os = "macos" & os-distribution = "homebrew"}
["taglib"] {os = "macos" & os-distribution = "macports"}
]
synopsis: "Virtual package relying on taglib_c"
description:
"This package can only install if the taglib_c library is installed on the system."
flags: conf

Loading