[arch-commits] Commit in camlp4/trunk (PKGBUILD configure.patch)

Jürgen Hötzel juergen at archlinux.org
Fri Oct 11 10:34:28 UTC 2019


    Date: Friday, October 11, 2019 @ 10:34:28
  Author: juergen
Revision: 514755

upgpkg: camlp4 4.08-3

Added:
  camlp4/trunk/configure.patch
Modified:
  camlp4/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    2 +-
 configure.patch |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-11 09:04:48 UTC (rev 514754)
+++ PKGBUILD	2019-10-11 10:34:28 UTC (rev 514755)
@@ -12,7 +12,7 @@
 makedepends=('git' 'ocamlbuild' 'ocaml-compiler-libs')
 options=('!makeflags' '!emptydirs' 'staticlibs')
 source=("https://github.com/ocaml/camlp4/archive/4.08+1.tar.gz" "configure.patch")
-sha256sums=('655cd3bdcafbf8435877f60f4b47dd2eb69feef5afd8881291ef01ba12bd9d88'
+  patch -i  "${srcdir}/configure.patch" -p0
             '6add54ea15e44df000446deede1e9aa0bad742c647b3d1cd4e67db0bb947fb98')
 
 prepare() {

Added: configure.patch
===================================================================
--- configure.patch	                        (rev 0)
+++ configure.patch	2019-10-11 10:34:28 UTC (rev 514755)
@@ -0,0 +1,14 @@
+--- configure.sic	2019-09-30 15:48:53.742897037 +0200
++++ configure	2019-09-30 15:49:12.492545288 +0200
+@@ -39,8 +39,8 @@
+     echo "The standalone Camlp4 requires OCaml >= 4.02."
+     echo "For previous versions of OCaml use the Camlp4 distributed with OCaml."
+     exit 2
+-elif [ $major -ne 4 -o $minor -ne 8 ]; then
+-    echo "This version of Camlp4 is for OCaml 4.07 but you are using OCaml $ocaml_version."
++elif [ $major -ne 4 -o $minor -ne 9 ]; then
++    echo "This version of Camlp4 is for OCaml 4.09 but you are using OCaml $ocaml_version."
+     if [ -d .git ] ; then
+       if [ $PINNED -eq 1 ] ; then
+         echo "You've used the wrong opam pin URL for this switch.">&2
+



More information about the arch-commits mailing list