Package Details: ocaml-pcre 7.2.3-1

Git Clone URL: https://aur.archlinux.org/ocaml-pcre.git (read-only)
Package Base: ocaml-pcre
Description: Perl compatible regular expressions for OCaml
Upstream URL: http://mmottl.github.io/pcre-ocaml
Licenses: LGPL
Conflicts: pcre-ocaml
Replaces: pcre-ocaml
Submitter: None
Maintainer: J5lx
Last Packager: J5lx
Votes: 52
Popularity: 0.569589
First Submitted: 2011-09-17 10:16
Last Updated: 2016-03-23 10:52

Latest Comments

J5lx commented on 2015-12-01 08:23

EUREKA! https://bugs.archlinux.org/task/42748

Seemingly this bug is caused by hardening-wrapper. After removing the hardening wrapper from $PATH building ocaml packages works just fine (uninstalling should do, too, of course). However, I haven't yet looked into the -runtime-variant _pic option. As soon as I have time again I'll check that out and update the package accordingly if it works (as well as my 68 other ocaml packages :P).

J5lx commented on 2015-12-01 08:11

Since a few weeks I'm getting those errors as well when building OCaml packages. In those cases I was always able to build the package using `extra-x86_64-build`, so it’s probably some kind of a configuration error or something. However, playing with the make -j parameter like @oriba suggested did not help (at least not for me).

oriba commented on 2015-11-30 12:08

It builds here with OCaml version 4.02.3.

Maybe MAKEFLAGS, -j parameter set to parallel compilation
might be problematic. ( /etc/makepkg.conf )

bidulock commented on 2015-11-30 12:01

Won't compile with a current version of ocaml. Anyone know what the problem is?

+ /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
/usr/bin/ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/ocaml/libasmrun.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
E: Failure("Command ''/usr/bin/ocamlbuild' lib/libpcre_stubs.a lib/dllpcre_stubs.so lib/pcre.cma lib/pcre.cmxa lib/pcre.a lib/pcre.cmxs examples/cloc/cloc.native examples/count_hash/count_hash.native examples/pcregrep/pcregrep.native examples/subst/subst.native' terminated with error code 10")
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 1
==> ERROR: A failure occurred in build().
Aborting...

leonardder commented on 2014-07-16 06:59

Thanks for the info. Updated accordingly

rafaelff commented on 2014-07-16 02:22

New version 7.1.1

Also 'url' and 'source' changed (bitbucket -> github):

pkgver=7.1.1
url="http://mmottl.github.io/pcre-ocaml"
source=("https://github.com/mmottl/pcre-ocaml/releases/download/v$pkgver/pcre-ocaml-$pkgver.tar.gz")
md5sums=('7e5193553778803af71cc6a3cea242cc')

oriba commented on 2014-01-06 17:26

Get pcre-ocaml-7.0.4.tar.gz (83.0 KB).
2013-12-16
https://bitbucket.org/mmottl/pcre-ocaml

oriba commented on 2014-01-05 22:56

If staticlibs-option is, what you want to add, then it would be this line, that is needed:

options=('!strip' 'staticlibs')

leonardder commented on 2013-12-06 22:41

Could you please put ocaml in the makedepends array? According to namcap, ocaml isn't a runtime dependency.

leonardder commented on 2013-11-18 16:37

This package is quite useless without staticlibs enabled

xaocon commented on 2013-11-04 23:55

should have staticlibs option enabled.

oriba commented on 2013-06-15 11:05

problems with building the package:


(...)
ocamldoc: ............................................ /usr/bin/ocamldoc

+ /usr/bin/ocamlopt.opt -I /usr/lib/ocaml/ocamlbuild unix.cmxa /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
sh: as: Kommando nicht gefunden.
File "myocamlbuild.ml", line 1:
Error: Assembler error, input left in file /tmp/camlasm5d36a1.s
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
E: Failure("Command ''/usr/bin/ocamlbuild' lib/libpcre_stubs.a lib/dllpcre_stubs.so lib/pcre.cma lib/pcre.cmxa lib/pcre.a lib/pcre.cmxs examples/cloc/cloc.native examples/count_hash/count_hash.native examples/pcregrep/pcregrep.native examples/subst/subst.native' terminated with error code 10")
make: *** [all] Fehler 1
==> FEHLER: Ein Fehler geschah in build().
Breche ab ...

Anonymous comment on 2012-05-26 15:43

The paths in 'build' and 'package' still refer to the 'release' part of the name, so the build just fails with cd complaining about no such file or directory.

Anonymous comment on 2012-05-26 14:08

Thanks, PKGBUILD updated!

Anonymous comment on 2012-05-26 04:01

Author's source tarball seems to have moved. This seems to let it build for me:

--- PKGBUILD.orig 2012-05-25 20:58:39.190988600 -0700
+++ PKGBUILD 2012-05-25 21:00:08.718966472 -0700
@@ -11,17 +11,17 @@
makedepends=('ocaml-findlib')
replaces=('pcre-ocaml')
conflicts=('pcre-ocaml')
-source=(http://hg.ocaml.info/release/pcre-ocaml/archive/release-$pkgver.tar.bz2)
-sha256sums=('7c999e2cd9bccd815682eee155ad76e78c99d790f855b1ce562ddd54ae803d72')
+source=(https://bitbucket.org/mmottl/pcre-ocaml/downloads/pcre-ocaml-$pkgver.tar.gz)
+sha256sums=('f1774028a4525d22d1f4cf4ce0121c99d85a75aed7a498c3e8ab0f5e39888e47')
options=(!strip)

build() {
- cd "$srcdir/pcre-ocaml-release-$pkgver"
+ cd "$srcdir/pcre-ocaml-$pkgver"
make all htdoc
}

package() {
- cd "$srcdir/pcre-ocaml-release-$pkgver"
+ cd "$srcdir/pcre-ocaml-$pkgver"
export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
install -dm 755 "$OCAMLFIND_DESTDIR/stublibs"
make install

oriba commented on 2012-04-14 23:26

This should make it:

(diff -u Makefile.in Makefile.in.NEW)

==========================================================
--- Makefile.in 2009-11-07 22:05:52.000000000 +0100
+++ /tmp/Makefile.in 2012-04-15 01:21:04.052428350 +0200
@@ -40,9 +40,9 @@
@$(MAKE) depend
@$(MAKE) targets

-targets: $(TARGETS) examples
+targets: examples

-examples:
+examples: $(TARGETS)
(cd examples; $(MAKE))

curl.cma: $(CURLBCOBJS) libcurl-helper.a
==========================================================

oriba commented on 2012-04-14 23:15

doing makepkg -s three times, will create the package.

The problem seens to be, that examples is a dependency for
the "targets" target.

Line 43 in the Makefile.

First removing the "examples" and compiling then
and afterwards adding the examples makes things working.

So, the order must be, first to create the targets - without examples
as dependency, and then later make the examples, with the build
stuff as depenedncy.

Seens just to be the wrong order...
library is dependent on the examples, instead of examples
are dependent on the built lib/binding.

Anonymous comment on 2011-12-23 09:16

Thanks, updated to 6.4.2; as for the package, you should probably send a deletion request to the mailing list.

oriba commented on 2011-12-23 03:22

Hello, I didn't saw that there already is a package for Ocaml && PCRE,
so I created my own:

https://aur.archlinux.org/packages.php?ID=55215

ooops

stativ commented on 2011-09-17 11:00

Removing, replaced by the ocaml-pcre package.

magus commented on 2010-11-23 07:57

New version, 6.1.1-1 uploaded.

magus commented on 2010-11-08 08:10

Here's an updated PKGBUILD+patch (mentioned below): http://paste.pocoo.org/show/287676/

magus commented on 2010-11-08 08:05

Yes, out-of-date, and I've had issues with the package on 64-bit. A hackish solution to it:

--- pcre-ocaml.orig/src/pcre-ocaml-release-6.1.1/lib/Makefile
+++ pcre-ocaml/src/pcre-ocaml-release-6.1.1/lib/Makefile
@@ -3,7 +3,7 @@ OCAMLMAKEFILE = ../OCamlMakefile
SOURCES := pcre.mli pcre.ml pcre_stubs.c
CFLAGS := -O2 $(shell pcre-config --cflags)
PCRE_FLAGS := $(shell pcre-config --libs)
-OCAMLLDFLAGS := -cclib "$(PCRE_FLAGS)"
+OCAMLLDFLAGS := -cclib -lpcre_stubs -cclib "$(PCRE_FLAGS)"
OCAMLMKLIB_FLAGS := $(PCRE_FLAGS)
RESULT := pcre

zorun commented on 2010-11-02 15:01

Version 6.1.1 is out, and is needed to work properly with the new 3.12 release of Ocaml.