Package Details: ocaml-pcre 7.5.0-3

Git Clone URL: https://aur.archlinux.org/ocaml-pcre.git (read-only, click to copy)
Package Base: ocaml-pcre
Description: Perl compatible regular expressions for OCaml
Upstream URL: http://mmottl.github.io/pcre-ocaml
Keywords: ocaml pcre perl regexp
Licenses: custom:LGPL2.1 with linking exception
Conflicts: pcre-ocaml
Provides: pcre-ocaml
Replaces: pcre-ocaml
Submitter: None
Maintainer: fungible
Last Packager: fungible
Votes: 74
Popularity: 0.000022
First Submitted: 2011-09-17 10:16 (UTC)
Last Updated: 2022-11-14 05:12 (UTC)

Latest Comments

1 2 3 4 Next › Last »

pricechrispy commented on 2022-10-16 07:14 (UTC) (edited on 2022-10-16 07:16 (UTC) by pricechrispy)

Package not installing correctly, please apply the following patch:


diff --git a/PKGBUILD b/PKGBUILD
index 0e3782c..9e0c875 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,21 +24,17 @@ sha256sums=('671142f40b6d86171cbc067253faadf903019161d57488bd0fb6c5456c2cbd1a')
 build() {
     cd "${srcdir}/pcre-${pkgver}"

-    dune build @install
+    export OCAMLPATH="$(ocamlfind printconf destdir)"
+
+    dune build -p "pcre"
 }

 package() {
     cd "${srcdir}/pcre-${pkgver}"

-    install -d "${pkgdir}/usr/share/doc"          \
-        "${pkgdir}/usr/share/licenses/${pkgname}" \
-        "${pkgdir}/$(ocamlfind -printconf destdir)"
-
-    dune install --prefix "${pkgdir}/usr/share" \
-                 --libdir "${pkgdir}$(ocamlfind printconf destdir)"
+    dune install "pcre" --destdir="${pkgdir}" --prefix="/usr" --libdir="$(ocamlfind printconf destdir)"

-    mv "${pkgdir}/usr/share/doc/pcre" "${pkgdir}/usr/share/doc/${pkgname}"
+    install -dm755 "${pkgdir}/usr/share/"

-    mv "${pkgdir}/usr/share/doc/${pkgname}/LICENSE.md" \
-       "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+    mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
 }

patlefort commented on 2021-12-23 10:20 (UTC)

I found my problem, disregard my last comment.

fungible commented on 2021-12-23 09:01 (UTC) (edited on 2021-12-23 09:10 (UTC) by fungible)

@patlefort

I don't know what to tell you, I just tested building this in a clean chroot and it worked. Are you using the correct version of dune from the community repository? It seems your dune was improperly linked, did you build it from source? Do you have all the dependencies installed like ocaml and ocaml-base?

All the PKGBUILD really does is call dune build and dune install and it doesn't seem like your dune program is working correctly.

patlefort commented on 2021-12-22 02:22 (UTC)

Does not build for me:

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
/usr/bin/ld: /tmp/builda7a02b.dune/camlstartup1ec061.o: in function `caml_program':
:(.text+0xc): undefined reference to `caml_globals_inited'
/usr/bin/ld: :(.text+0x1c): undefined reference to `caml_globals_inited'
/usr/bin/ld: :(.text+0x2c): undefined reference to `caml_globals_inited'
/usr/bin/ld: :(.text+0x3c): undefined reference to `caml_globals_inited'
/usr/bin/ld: :(.text+0x4c): undefined reference to `caml_globals_inited'
/usr/bin/ld: /tmp/builda7a02b.dune/camlstartup1ec061.o::(.text+0x5c): more undefined references to `caml_globals_inited' follow
... and more

oriba commented on 2020-05-13 19:13 (UTC)

Problem with this package:


File "src/config/dune", line 3, characters 18-35: 3 | (libraries base dune.configurator) ^^^^^^^^^^^^^^^^^ Error: Library "dune.configurator" not found. Hint: try: dune external-lib-deps --missing @@default ==> ERROR: A failure occurred in build(). Aborting...


J5lx commented on 2018-07-10 16:40 (UTC) (edited on 2018-07-10 16:41 (UTC) by J5lx)

@Kunda If you are building ocaml-base via plain makepkg or devtools, that is to be expected since those tools can only install packages from binary repositories automatically and not those from the AUR. If you are using some AUR helper, though, it is indeed weird and you should probably report it on their bug tracker. Anyway I'm glad you could solve your issue!

Kunda commented on 2018-07-10 15:34 (UTC) (edited on 2018-07-10 15:42 (UTC) by Kunda)

@J5lx Why isn't there a ocaml-sexplib0 AUR package? I'd be happy to install it.

Edit: I found it but it's weird that it didn't automagically find and install it. Thanks. Issue solved.

J5lx commented on 2018-07-03 06:55 (UTC)

@Kunda ocaml-base depends on ocaml-sexplib0, as shown on its AUR page. Therefore, you must build and install ocaml-sexplib0 in order to build ocaml-base.