pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ocaml-js-build-tools Use native digest command f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/820b9306e46a
branches:  trunk
changeset: 362576:820b9306e46a
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu May 18 12:36:25 2017 +0000

description:
Use native digest command for md5 generation on SunOS.

diffstat:

 devel/ocaml-js-build-tools/distinfo                                  |   4 +-
 devel/ocaml-js-build-tools/patches/patch-og_js_ocamlbuild_goodies.ml |  11 ++++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 5374df2be3fe -r 820b9306e46a devel/ocaml-js-build-tools/distinfo
--- a/devel/ocaml-js-build-tools/distinfo       Thu May 18 12:30:12 2017 +0000
+++ b/devel/ocaml-js-build-tools/distinfo       Thu May 18 12:36:25 2017 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2016/06/20 14:58:46 jaapb Exp $
+$NetBSD: distinfo,v 1.3 2017/05/18 12:36:25 jperkin Exp $
 
 SHA1 (js-build-tools-113.33.04.tar.gz) = ab2efaaad4942f5414831566a07fd8cfdd680d01
 RMD160 (js-build-tools-113.33.04.tar.gz) = c8d03ef1e11d39173f0c9d45b0873ef16bec8639
 SHA512 (js-build-tools-113.33.04.tar.gz) = 232c376d09fef5d6e7a7e4eb72f0123eda8a20ee7f0a64c4db5f237294a3755cb539d4d165cbbbb31d5396a182a2f94543eeb265235b4dd5866682a1ab49536b
 Size (js-build-tools-113.33.04.tar.gz) = 10782 bytes
 SHA1 (patch-Makefile) = 73347a64a29a0fde8ccc0cbae967a954b142ee71
-SHA1 (patch-og_js_ocamlbuild_goodies.ml) = eccdb4d85c6557b778cd1af99b9c3fd046c1eee9
+SHA1 (patch-og_js_ocamlbuild_goodies.ml) = 2915ff0f98011257099a3906054c63662fae108d
diff -r 5374df2be3fe -r 820b9306e46a devel/ocaml-js-build-tools/patches/patch-og_js_ocamlbuild_goodies.ml
--- a/devel/ocaml-js-build-tools/patches/patch-og_js_ocamlbuild_goodies.ml      Thu May 18 12:30:12 2017 +0000
+++ b/devel/ocaml-js-build-tools/patches/patch-og_js_ocamlbuild_goodies.ml      Thu May 18 12:36:25 2017 +0000
@@ -1,9 +1,11 @@
-$NetBSD: patch-og_js_ocamlbuild_goodies.ml,v 1.1 2016/06/20 14:58:46 jaapb Exp $
+$NetBSD: patch-og_js_ocamlbuild_goodies.ml,v 1.2 2017/05/18 12:36:25 jperkin Exp $
 
 NetBSD uses stat -f as well
+Support SunOS digest(1)
+
 --- ocamlbuild_goodies/jane_street_ocamlbuild_goodies.ml.orig  2016-05-09 12:01:24.000000000 +0000
 +++ ocamlbuild_goodies/jane_street_ocamlbuild_goodies.ml
-@@ -65,7 +65,7 @@ let track_external_deps = function
+@@ -65,9 +65,12 @@ let track_external_deps = function
  
      let stat, md5sum =
        match run_and_read "uname" |> String.trim with
@@ -11,4 +13,9 @@
 +      | "Darwin" | "NetBSD" ->
          (S [A "stat"; A "-f"; A "%d:%i:%m"],
           A "md5")
++      | "SunOS" ->
++        (S [A "stat"; A "-c"; A "%d:%i:%Y"],
++         S [A "/bin/digest"; A "-a"; A "md5"])
        | _ ->
+         (S [A "stat"; A "-c"; A "%d:%i:%Y"],
+          A "md5sum")



Home | Main Index | Thread Index | Old Index