Package Details: camlidl 1.06-3

Git Clone URL: https://aur.archlinux.org/camlidl.git (read-only)
Package Base: camlidl
Description: A stub code generator and COM binding for Objective Caml (OCaml)
Upstream URL: https://github.com/xavierleroy/camlidl
Licenses: custom
Submitter: simon04
Maintainer: simon04
Last Packager: simon04
Votes: 42
Popularity: 0.669395
First Submitted: 2010-01-23 12:37
Last Updated: 2018-02-09 20:27

Latest Comments

TimmyWeerwag commented on 2018-02-12 10:57

Thanks! The package works wonderful again. =)

simon04 commented on 2018-02-09 20:27

@gudwin: Thanks. I overlooked the version in the META file. Should be fixed with 1.06-3.

gudwin commented on 2018-02-08 14:31

It seems that META.camlidl needs an update. It currently says: version = "1.05" But probably it should be changed to version = "1.06"

simon04 commented on 2018-02-08 06:39

@TimmyWeerwag: thanks a lot for the patch. The issue should be fixed in 1.06-2

mydongistiny commented on 2018-02-08 06:26

@TimmyWeerwag Your pkgbuild patch worked. Thanks

TimmyWeerwag commented on 2018-02-05 09:55

The META file is not being installed properly. A possible fix (including corrected quoting):

diff --git a/PKGBUILD b/PKGBUILD
index b54ff14..ff83861 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ url="https://github.com/xavierleroy/camlidl"
 license=('custom')
 depends=('ocaml')
 options=(staticlibs)
-source=(https://github.com/xavierleroy/$pkgname/archive/$pkgname$_pkgver.tar.gz
+source=("https://github.com/xavierleroy/$pkgname/archive/$pkgname$_pkgver.tar.gz"
         META.camlidl)

 build() {
@@ -24,14 +24,14 @@ build() {
 package() {
   cd "$srcdir/$pkgname-$pkgname$_pkgver"

-  local _bindir=$pkgdir/usr/bin
-  local _ocamldir=$pkgdir/$(ocamlc -where)
-  mkdir -p $_bindir $_ocamldir/{caml,stublibs,$pkgname}
+  local _bindir="$pkgdir/usr/bin"
+  local _ocamldir="$pkgdir/$(ocamlc -where)"
+  mkdir -p "$_bindir" "$_ocamldir"/{caml,stublibs,"$pkgname"}

-  make BINDIR=$_bindir OCAMLLIB=$_ocamldir install
+  make BINDIR="$_bindir" OCAMLLIB="$_ocamldir" install

-  install -Dm644 ${srcdir}/META.camlidl ${pkgdir}/${_ocamldir}/${pkgname}/META
-  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 "${srcdir}/META.camlidl" "${_ocamldir}/${pkgname}/META"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

 sha1sums=('674c75608faa841caea5a3d3c75dc8ff58d5c5a4'

simon04 commented on 2017-10-31 08:24

@kynikos, yan12125: Thanks for investigating. I added the following line for 1.05-7:
> directory = "^"

Btw: the project moved to GitHub → https://github.com/xavierleroy/camlidl

yan12125 commented on 2017-10-05 11:54

I got the same issue as @kynikos. I guess the problem is in META.camlidl. In the Ubuntu package [1], the content of /usr/lib/ocaml/METAS/META.camlidl is:

# Courtesy of GODI
description = "Stub generator"
version = "1.05"
directory = "^"
archive(byte) = "com.cma"
archive(native) = "com.cmxa"

I add directory = "^" to META.camlidl, and google-drive-ocamlfuse builds fine.

[1] http://mirrors.kernel.org/ubuntu/pool/universe/c/camlidl/camlidl_1.05-15_amd64.deb

radek_r commented on 2017-09-30 12:34

Please add achitecture "armv7h" to the PKGBUILD.

kynikos commented on 2017-02-10 10:56

Thanks simon04 for looking into this :) Somehow though google-drive-ocamlfuse builds now at least for me even without those symlinks.

simon04 commented on 2017-02-09 19:47

@kynikos: Inspecting the file list of the Ubuntu package (http://packages.ubuntu.com/yakkety/amd64/camlidl/filelist) shows that the files of interest are also located in /usr/lib/ocaml/com.* only.

kynikos commented on 2017-02-03 10:08

Hi, according to the AUR database, only google-drive-ocamlfuse actually requires this package, indirectly through ocamlfuse.

Currently google-drive-ocamlfuse doesn't build though because it expects at least two of the files provided by this package in a different directory, see also the comments in its AUR page.

A temporary workaround is to fix this PKGBUILD by adding the following in the package() function:

ln -s /usr/lib/ocaml/com.a ${pkgdir}/usr/lib/ocaml/camlidl/
ln -s /usr/lib/ocaml/com.cmxa ${pkgdir}/usr/lib/ocaml/camlidl/

I was wondering if there is a more proper way to update this PKGBUILD to make it compatible with google-drive-ocamlfuse, cheers.

ryanswrt commented on 2016-09-10 14:16

What the heck - after messing around with a custom pkgbuild (not touching anything in /usr/) it built and installed successfully? Not sure what could have changed to affect it; does the build process somehow pull ocaml deps?

ryanswrt commented on 2016-09-10 12:54

Failing to build with ocaml 4.02.3

patching file config/Makefile.unix
patching file lib/Makefile
patching file runtime/Makefile.unix
cd compiler; make all
make[1]: Entering directory '/tmp/yaourt-tmp-ryan/aur-camlidl/src/camlidl-1.05/compiler'
rm -f config.ml
ocamlc -g -c config.mli
ocamlc -g -c utils.mli
sed -e 's|%%CPP%%|/usr/bin/cpp|' \
config.mlp > config.ml
ocamlc -g -c idltypes.mli
ocamllex linenum.mll
ocamlc -g -c linenum.mli
ocamlyacc -v parser_midl.mly
ocamlyacc -v parser_midl.mly
12 shift/reduce conflicts.
16 states, 331 transitions, table size 1420 bytes
ocamllex lexer_midl.mll
12 shift/reduce conflicts.
ocamlc -g -c clflags.ml
ocamlc -g -c utils.ml
ocamlc -g -c linenum.ml
chmod -w config.ml
ocamlc -g -c config.ml
ocamlc -g -c prefix.mli
ocamlc -g -c lexpr.mli
ocamlc -g -c cvttyp.mli
ocamlc -g -c variables.mli
ocamlc -g -c enum.mli
File "lexpr.mli", line 39, characters 14-22:
Error: Unbound module Prefix
make[1]: *** [Makefile:78: lexpr.cmi] Error 2
make[1]: *** Waiting for unfinished jobs....
File "utils.ml", line 51, characters 15-28:
Warning 3: deprecated: String.create
Use Bytes.create instead.
129 states, 1747 transitions, table size 7762 bytes
make[1]: Leaving directory '/tmp/yaourt-tmp-ryan/aur-camlidl/src/camlidl-1.05/compiler'
make: *** [Makefile:18: all] Error 2
==> ERROR: A failure occurred in build().

simon04 commented on 2014-05-06 10:41

1.05-4: added "options=(staticlibs)" according to clockish – thank you!

clockish commented on 2014-05-03 20:24

"options=(staticlibs)" should probably be added to the PKGBUILD. This installs the /usr/lib/ocaml/camlidl/*.a files, and the Arch ocaml-* packages typically include these.

simon04 commented on 2013-11-03 08:28

1.05-3: updated according to flocke – thank you!

flocke commented on 2013-10-02 10:07

I patched the build system to install it to /usr/lib/ocaml/camlidl and added a META file (the patch is loosely based on the debian patches).

PKGBUILD: http://bpaste.net/show/137185/
META.camlidl: http://bpaste.net/show/137186/
arch-build-system-fix.patch: http://bpaste.net/show/137187/

But I have no interest in maintaining it since I don't use Arch Linux on my main system anymore. I just fixed it up to get google-drive-ocamlfuse to compile.

aws commented on 2013-09-02 10:43

@hobarrera I think you need a META file, like the one at https://github.com/OCamlPro/opam-repository/blob/master/packages/camlidl.1.05/files/META . I'm not sure where it is supposed to go. I suspect that it'll work if you create the directory /usr/lib/ocaml/camlidl and shove all the library files and META into it. Myself, I ended up using OPAM to install google-drive-ocamlfuse.

aws commented on 2013-09-02 10:42

@hobarrera I think you need a META file, like the [one in the camlidl OPAM package](https://github.com/OCamlPro/opam-repository/blob/master/packages/camlidl.1.05/files/META). I'm not sure where it is supposed to go. I suspect that it'll work if you create the directory /usr/lib/ocaml/camlidl and shove all the library files and META into it. Myself, I ended up using OPAM to install google-drive-ocamlfuse.

simon04 commented on 2013-08-20 19:27

I'm not sure at all. The package fulfilled my needs when I needed it some time ago, but I don't know whether that is still the case.
I'm happy to disown the package in case you'd like to maintain it. :-)

WhyNotHugo commented on 2013-08-20 05:43

Are you sure this PKGBUILD is ok?
The debian package includes several dozen files (contrary to this one), and also, ocamlfind query camlidl report camlidl as not-installed.

I'm trying to get google-drive-ocaml-fuse installed as a package, and I'm getting this error.

simon04 commented on 2013-02-23 22:09

1.05-2: fix path of cpp