ocaml-lz4 icon indicating copy to clipboard operation
ocaml-lz4 copied to clipboard

Doesn't build using PKGSRC package manager.

Open rneswold opened this issue 10 years ago • 4 comments

I tried building the library on a NetBSD system (which uses PKGSRC for its 3rd-party package installer.) All packages installed by this manager are placed in /usr/pkg/*. The build fails because it can't find lz4.h (since it's not looking in /usr/pkg/include.) The build would also have to find and specify the library in /usr/pkg/lib.

How do we add a search path? I didn't see a config-lz4 in OPAM.

rneswold avatar Dec 03 '15 17:12 rneswold

Hmmm, I'm not up to date with OPAM best practices on this topic. @avsm?

whitequark avatar Dec 04 '15 08:12 whitequark

I sort of assume the way to go these days is to depend on a (currently hypothetical) package called conf-lz4 and use something like Configurator to discover locations?

Leonidas-from-XIV avatar Jun 11 '18 07:06 Leonidas-from-XIV

I'm even less up to date with OPAM best practices now :)

whitequark avatar Jun 11 '18 12:06 whitequark

@rneswold there is a conf-lz4 in opam:

# opam info --raw conf-lz4
opam-version: "2.0"
name: "conf-lz4"
version: "1.0.0"
synopsis: "Virtual package requiring the lz4 command to be available"
maintainer: "https://github.com/ocaml/opam-repository/issues"
authors: "Yann Collet"
license: ["GPL-2.0-only" "BSD-2-Clause"]
homepage: "http://lz4.org"
bug-reports: "https://github.com/ocaml/opam-repository/issues"
build: ["lz4" "-V"]
depexts: [
  ["liblz4-tool"] {os-family = "debian"}
  ["lz4"] {os-distribution = "centos"}
  ["lz4"] {os-distribution = "rhel"}
  ["lz4"] {os-distribution = "fedora"}
  ["lz4"] {os-distribution = "alpine"}
  ["lz4"] {os-family = "suse"}
  ["lz4"] {os = "macos" & os-distribution = "homebrew"}
]

I am unsure if any of the conf-* opam packages handles NetBSD.

UnixJunkie avatar Aug 04 '20 06:08 UnixJunkie