Package Details: ocaml-camlzip 1.11-1

Git Clone URL: https://aur.archlinux.org/ocaml-camlzip.git (read-only, click to copy)
Package Base: ocaml-camlzip
Description: ZIP and gzip library for OCaml
Upstream URL: https://github.com/xavierleroy/camlzip
Licenses: GPL
Conflicts: ocaml-zip
Provides: ocaml-zip
Replaces: ocaml-zip
Submitter: Forty-Bot
Maintainer: Forty-Bot
Last Packager: Forty-Bot
Votes: 12
Popularity: 0.000000
First Submitted: 2021-02-12 18:32 (UTC)
Last Updated: 2023-02-12 16:11 (UTC)

Latest Comments

1 2 Next › Last »

Forty-Bot commented on 2021-02-12 19:10 (UTC)

The new package provides/conflicts/replaces this one, so you Should (TM) just be able to upgrade over.

oriba commented on 2021-02-12 19:07 (UTC)

As I just saw, you created ocaml-camlzip. That is the correct name for the package. That was, what I had in mind. So, thats fine. ocaml-zip could be removed then. Maybe it make sense to inforn the people on the "renaming" before removing the ill-named package, so that people can switch over.

Forty-Bot commented on 2021-02-12 18:04 (UTC)

This needs a rebuild due to Ocaml upgrade

Not sure what action you would like me to take. If you want to rebuild the package, feel free to do so at your leisure ;)

oriba commented on 2020-09-22 10:50 (UTC)

The name of the library-/module is camlzip.

"For libraries, use ocaml-modulename." https://wiki.archlinux.org/index.php/OCaml_package_guidelines

Hence this package's name should be ocaml-camlzip.

gsnedders commented on 2020-08-16 15:30 (UTC)

This needs a rebuild due to Ocaml upgrade

oriba commented on 2020-06-19 00:40 (UTC)

FYI: there is another package that provides camlzip, I think it's maintained better: https://aur.archlinux.org/packages/ocaml-zip/

DHouck commented on 2020-02-28 02:44 (UTC)

Created as https://github.com/xavierleroy/camlzip/pull/30

I’m sorry for mis-identifying this as a packaging issue and posting about it here instead of opening a GitHub issue.

Forty-Bot commented on 2020-02-28 02:35 (UTC)

LGTM

DHouck commented on 2020-02-28 02:27 (UTC)

I think I’ve got it: the zip.cmxs target, which is the one that failed, requires libcamlzip.$(EXT_LIB) to already exist, but this isn’t actually reported in the Makefile. For some reason, for me, make decided to try building zip.cmxs first, and this caused the build to fail.

I don’t think I have parallel make enabled here, so I don’t know why it’s choosing that order for me and nobody else, but adding

prepare() {
    cd "$srcdir/camlzip-$_pkgver"
    sed -i '/^zip.cmxs/ s/$/ libcamlzip$(EXT_LIB)/' Makefile
}

fixed it.

If this sounds right to you and I haven’t fooled myself by not knowing that much about OCaml builds, I’ll submit a PR upstream to fix it.

DHouck commented on 2020-02-28 01:50 (UTC)

I wasn’t sure which of those two lines you meant (presumably the cmx one?), so I did both just in case. I also added -verbose to the failing ocamlfind ocamlopt command:

[builduser@dhouck camlzip-rel110]$ ocamlfind ocamlmklib -v -o zip -oc camlzip zlib.cmo zip.cmo gzip.cmo -lz
+ ocamlc.opt -a    -o zip.cma  zlib.cmo zip.cmo gzip.cmo -dllib -lcamlzip -cclib -lcamlzip   -cclib -lz 
[builduser@dhouck camlzip-rel110]$ ocamlfind ocamlmklib -v -o zip -oc camlzip zlib.cmx zip.cmx gzip.cmx -lz
+ ocamlopt.opt -a   -o zip.cmxa  zlib.cmx zip.cmx gzip.cmx -cclib -lcamlzip   -cclib -lz 
[builduser@dhouck camlzip-rel110]$ ocamlfind ocamlopt -verbose -safe-string -shared -linkall -I ./ -o zip.cmxs zip.cmxa
Effective set of compiler predicates: autolink,native
+ ocamlopt.opt -verbose -safe-string -shared -linkall -I ./ -o zip.cmxs zip.cmxa
+ as  -o 'zip.cmxs.startup.o' '/tmp/camlstartupcb2faa.s'
+ gcc -shared -o 'zip.cmxs'  '-L./' '-L/usr/lib/ocaml'  'zip.cmxs.startup.o' 'zip.a' '-lcamlzip' '-lz' 
/usr/bin/ld: cannot find -lcamlzip
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
ocamlopt.opt returned with exit code 2

There is no libcamlzip.a or libcamlzip.so file in the build directory:

[builduser@dhouck camlzip-rel110]$ ls
Changes   gzip.cmx  gzip.o    META-camlzip  test     zip.cmi  zip.cmxa       zip.mli   zlib.cmo  zlib.mli     zlibstubs.o
gzip.cmi  gzip.ml   LICENSE   META-zip     zip.a    zip.cmo  zip.cmxs.startup.o  zip.o     zlib.cmx  zlib.o
gzip.cmo  gzip.mli  Makefile  README       zip.cma  zip.cmx  zip.ml      zlib.cmi  zlib.ml   zlibstubs.c