unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: 43745@debbugs.gnu.org
Subject: [bug#43745] [PATCH 01/27] gnu: unison: Build with ocaml-4.09.
Date: Thu,  1 Oct 2020 15:41:07 +0200	[thread overview]
Message-ID: <20201001134133.32105-1-julien@lepiller.eu> (raw)
In-Reply-To: <20201001153909.296c8d3e@tachikoma.lepiller.eu>

* gnu/packages/ocaml.scm (unison)[sources]: Add an upstream patch.
[native-inputs]: Use ocaml-4.09.
* gnu/packages/patches/unison-fix-ocaml-4.08.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/ocaml.scm                        |  5 +-
 .../patches/unison-fix-ocaml-4.08.patch       | 76 +++++++++++++++++++
 3 files changed, 80 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/unison-fix-ocaml-4.08.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index a278c83553..2a1a0ae059 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1633,6 +1633,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/ucx-tcp-iface-ioctl.patch		\
   %D%/packages/patches/udiskie-no-appindicator.patch		\
   %D%/packages/patches/ungoogled-chromium-system-nspr.patch	\
+  %D%/packages/patches/unison-fix-ocaml-4.08.patch		\
   %D%/packages/patches/unknown-horizons-python-3.8-distro.patch	\
   %D%/packages/patches/unzip-CVE-2014-8139.patch		\
   %D%/packages/patches/unzip-CVE-2014-8140.patch		\
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index d61948afc3..394db50150 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -861,12 +861,13 @@ libpanel, librsvg and quartz.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))))
+                "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))
+              (patches (search-patches "unison-fix-ocaml-4.08.patch"))))
     (build-system gnu-build-system)
     (outputs '("out"
                "doc"))                  ; 1.9 MiB of documentation
     (native-inputs
-     `(("ocaml" ,ocaml-4.07)
+     `(("ocaml" ,ocaml-4.09)
        ;; For documentation
        ("ghostscript" ,ghostscript)
        ("texlive" ,texlive-tiny)
diff --git a/gnu/packages/patches/unison-fix-ocaml-4.08.patch b/gnu/packages/patches/unison-fix-ocaml-4.08.patch
new file mode 100644
index 0000000000..4b6e6b6564
--- /dev/null
+++ b/gnu/packages/patches/unison-fix-ocaml-4.08.patch
@@ -0,0 +1,76 @@
+diff --git a/src/Makefile.OCaml b/src/Makefile.OCaml
+index 7cefa2e..378fc8b 100644
+--- a/src/Makefile.OCaml
++++ b/src/Makefile.OCaml
+@@ -272,7 +272,7 @@ endif
+ 
+ # Gtk GUI
+ ifeq ($(UISTYLE), gtk)
+-  CAMLFLAGS+=-I +lablgtk
++  CAMLFLAGS+=-I $(LABLGTKLIB)
+   OCAMLOBJS+=pixmaps.cmo uigtk.cmo linkgtk.cmo
+   OCAMLLIBS+=lablgtk.cma
+ endif
+@@ -282,7 +282,7 @@ OCAMLFIND := $(shell command -v ocamlfind 2> /dev/null)
+ 
+ ifeq ($(UISTYLE), gtk2)
+   ifndef OCAMLFIND
+-    CAMLFLAGS+=-I +lablgtk2
++    CAMLFLAGS+=-I $(LABLGTK2LIB)
+   else
+     CAMLFLAGS+=$(shell $(OCAMLFIND) query -i-format lablgtk2 )
+   endif
+diff --git a/src/files.ml b/src/files.ml
+index 5ff1881..1d1fbcc 100644
+--- a/src/files.ml
++++ b/src/files.ml
+@@ -734,7 +734,7 @@ let get_files_in_directory dir =
+   with End_of_file ->
+     dirh.System.closedir ()
+   end;
+-  Sort.list (<) !files
++  List.sort String.compare !files
+ 
+ let ls dir pattern =
+   Util.convertUnixErrorsToTransient
+diff --git a/src/recon.ml b/src/recon.ml
+index 2c619bb..2412c18 100644
+--- a/src/recon.ml
++++ b/src/recon.ml
+@@ -661,8 +661,8 @@ let rec reconcile
+ 
+ (* Sorts the paths so that they will be displayed in order                   *)
+ let sortPaths pathUpdatesList =
+-  Sort.list
+-    (fun (p1, _) (p2, _) -> Path.compare p1 p2 <= 0)
++  List.sort
++    Path.compare
+     pathUpdatesList
+ 
+ let rec enterPath p1 p2 t =
+diff --git a/src/system/system_generic.ml b/src/system/system_generic.ml
+index 453027d..c2288b8 100755
+--- a/src/system/system_generic.ml
++++ b/src/system/system_generic.ml
+@@ -47,7 +47,7 @@ let open_out_gen = open_out_gen
+ let chmod = Unix.chmod
+ let chown = Unix.chown
+ let utimes = Unix.utimes
+-let link = Unix.link
++let link s d = Unix.link s d
+ let openfile = Unix.openfile
+ let opendir f =
+   let h = Unix.opendir f in
+diff --git a/src/uigtk2.ml b/src/uigtk2.ml
+index fbc5d8f..4e82cc2 100644
+--- a/src/uigtk2.ml
++++ b/src/uigtk2.ml
+@@ -94,7 +94,7 @@ let icon =
+ let icon =
+   let p = GdkPixbuf.create ~width:48 ~height:48 ~has_alpha:true () in
+   Gpointer.blit
+-    (Gpointer.region_of_string Pixmaps.icon_data) (GdkPixbuf.get_pixels p);
++    (Gpointer.region_of_bytes Pixmaps.icon_data) (GdkPixbuf.get_pixels p);
+   p
+ 
+ let leftPtrWatch =
-- 
2.28.0





  reply	other threads:[~2020-10-01 14:05 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-01 13:39 [bug#43745] [PATCH] gnu: dune: Update to 2.7.1 Julien Lepiller
2020-10-01 13:41 ` Julien Lepiller [this message]
2020-10-01 13:41   ` [bug#43745] [PATCH 02/27] gnu: camlp5: Update to 7.13 Julien Lepiller
2020-10-12 22:47     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 03/27] gnu: ocaml-mccs: Update to 1.1+11 Julien Lepiller
2020-10-12 22:50     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 04/27] gnu: ocaml-migrate-parsetree: Update to 1.7.3 Julien Lepiller
2020-10-12 22:53     ` zimoun
2020-10-13  2:03       ` Julien Lepiller
2020-10-13 12:09         ` zimoun
2020-10-13 15:24           ` Julien Lepiller
2020-10-13 15:37             ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 05/27] gnu: ocaml-ppx-tools-versioned: Update to 5.4.0 Julien Lepiller
2020-10-12 22:56     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 06/27] gnu: ocaml-qtest: Do not use deprecated jbuilder Julien Lepiller
2020-10-12 23:05     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 07/27] gnu: ocaml-bitstring: " Julien Lepiller
2020-10-12 23:06     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 08/27] gnu: ocaml-lwt-log: " Julien Lepiller
2020-10-12 23:09     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 09/27] gnu: ocaml-easy-format: " Julien Lepiller
2020-10-12 23:11     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 10/27] gnu: ocaml4.07-zed: " Julien Lepiller
2020-10-12 23:18     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 11/27] gnu: ocaml4.07-utop: " Julien Lepiller
2020-10-12 23:20     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 12/27] gnu: ocaml4.07-merlin: " Julien Lepiller
2020-10-12 23:23     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 13/27] gnu: ocaml4.07-ppx-expect: " Julien Lepiller
2020-10-12 23:24     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 14/27] gnu: ocaml4.07-core: " Julien Lepiller
2020-10-12 23:33     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 15/27] gnu: ocaml-tyxml: " Julien Lepiller
2020-10-12 23:36     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 16/27] gnu: Add ocaml-stdlib-shims Julien Lepiller
2020-10-12 23:40     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 17/27] gnu: opam: Update to 2.0.7 Julien Lepiller
2020-10-12 23:43     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 18/27] gnu: ocaml-base64: Update to 3.4.0 Julien Lepiller
2020-10-12 23:46     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 19/27] gnu: ocaml-logs: Update to 0.7.0 Julien Lepiller
2020-10-13 11:20     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 20/27] gnu: ocaml-fmt: Update to 0.8.9 Julien Lepiller
2020-10-13 11:19     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 21/27] gnu: ocaml-alcotest: Update to 1.0.0 Julien Lepiller
2020-10-13 11:22     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 22/27] gnu: ocaml-result: Update to 1.5 Julien Lepiller
2020-10-13 11:23     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 23/27] gnu: Add ocaml-csexp Julien Lepiller
2020-10-13 11:44     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 24/27] gnu: ocaml-compiler-libs: Build only with OCaml 4.07 Julien Lepiller
2020-10-13 11:27     ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 25/27] gnu: ocaml-jane-street-headers: " Julien Lepiller
2020-10-13 11:46     ` zimoun
2020-10-13 11:51       ` Julien Lepiller
2020-10-13 15:13         ` zimoun
2020-10-01 13:41   ` [bug#43745] [PATCH 26/27] gnu: ocaml-4.07: Ensure build with ocaml4.7-dune Julien Lepiller
2020-10-13 11:41     ` zimoun
2020-10-13 11:50       ` Julien Lepiller
2020-10-01 13:41   ` [bug#43745] [PATCH 27/27] gnu: dune: Update to 2.7.1 Julien Lepiller
2020-10-02  8:56     ` zimoun
2020-10-02 12:42       ` Julien Lepiller
2020-10-05 14:55         ` zimoun
2020-10-13 11:57     ` zimoun
2020-10-12 22:47   ` [bug#43745] [PATCH 01/27] gnu: unison: Build with ocaml-4.09 zimoun
2020-10-12 23:14     ` Julien Lepiller
2020-10-02  2:41 ` [bug#43745] [PATCH] gnu: dune: Update to 2.7.1 Brett Gilio
2020-10-15 16:04 ` bug#43745: " Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201001134133.32105-1-julien@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=43745@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).