[arch-commits] Commit in unison/repos/extra-x86_64 (6 files)

Gaëtan Bisson bisson at archlinux.org
Thu Feb 8 05:12:45 UTC 2018


    Date: Thursday, February 8, 2018 @ 05:12:44
  Author: bisson
Revision: 316180

archrelease: copy trunk to extra-x86_64

Added:
  unison/repos/extra-x86_64/PKGBUILD
    (from rev 316179, unison/trunk/PKGBUILD)
  unison/repos/extra-x86_64/desktop
    (from rev 316179, unison/trunk/desktop)
  unison/repos/extra-x86_64/large.patch
    (from rev 316179, unison/trunk/large.patch)
Deleted:
  unison/repos/extra-x86_64/PKGBUILD
  unison/repos/extra-x86_64/desktop
  unison/repos/extra-x86_64/large.patch

-------------+
 PKGBUILD    |  108 +++++++++++++++++++++++++++++-----------------------------
 desktop     |   22 +++++------
 large.patch |   98 ++++++++++++++++++++++++++--------------------------
 3 files changed, 114 insertions(+), 114 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-02-08 05:12:12 UTC (rev 316179)
+++ PKGBUILD	2018-02-08 05:12:44 UTC (rev 316180)
@@ -1,54 +0,0 @@
-# $Id$
-#Maintainer: Gaetan Bisson <bisson at archlinux.org>
-#Contributor: Tobias Powalowski <tpowa at archlinux.org>
-
-pkgname=unison
-_pkgver=2.48.15v4
-pkgver=${_pkgver%v*}
-pkgrel=2
-pkgdesc='File-synchronization tool'
-#url='https://github.com/bcpierce00/unison/'
-url='https://www.cis.upenn.edu/~bcpierce/unison/'
-arch=('x86_64')
-license=('GPL2')
-optdepends=('gtk2: graphical interface')
-makedepends=('ocaml' 'emacs' 'lablgtk2')
-source=("https://github.com/bcpierce00/unison/archive/v${_pkgver}.tar.gz"
-        'large.patch'
-        'desktop')
-sha256sums=('f8c7e982634bbe1ed6510fe5b36b6c5c55c06caefddafdd9edc08812305fdeec'
-            '2a971cf17e0a7303e99a793829e2b7b03533d17041e3b2ebba53555a5bd62284'
-            'e9ef4e8b845453e21abafa8c9d153080375024d2465e3bf65f0e5a2ca1f5ea4a')
-
-options=('!makeflags')
-
-prepare() {
-	cd "${srcdir}/${pkgname}-${_pkgver}"
-	sed 's/region_of_string/region_of_bytes/' -i src/uigtk2.ml
-	patch -p0 -i ../large.patch
-}
-
-build() {
-	cd "${srcdir}/${pkgname}-${_pkgver}"
-	for ui in gtk2 text; do
-		cp -a . build || true
-		pushd build
-		export CFLAGS=
-		make UISTYLE=$ui DEBUGGING=false THREADS=true
-		mv src/unison src/unison-$ui
-		mv src/unison-* ..
-		popd
-		rm -fr build
-	done
-}
-
-package() {
-	cd "${srcdir}/${pkgname}-${_pkgver}"
-	install -d "${pkgdir}"/usr/bin
-	install -m755 unison-* "${pkgdir}"/usr/bin
-	ln -s unison-text "${pkgdir}"/usr/bin/unison
-
-	install -d "${pkgdir}"/usr/share/{pixmaps,applications}
-	install -m644 icons/U.32x32x16m.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
-	install -m644 ../desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
-}

Copied: unison/repos/extra-x86_64/PKGBUILD (from rev 316179, unison/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-02-08 05:12:44 UTC (rev 316180)
@@ -0,0 +1,54 @@
+# $Id$
+#Maintainer: Gaetan Bisson <bisson at archlinux.org>
+#Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=unison
+_pkgver=2.48.15v4
+pkgver=${_pkgver%v*}
+pkgrel=3
+pkgdesc='File-synchronization tool'
+#url='https://github.com/bcpierce00/unison/'
+url='https://www.cis.upenn.edu/~bcpierce/unison/'
+arch=('x86_64')
+license=('GPL2')
+optdepends=('gtk2: graphical interface')
+makedepends=('ocaml' 'emacs' 'lablgtk2')
+source=("https://github.com/bcpierce00/unison/archive/v${_pkgver}.tar.gz"
+        'large.patch'
+        'desktop')
+sha256sums=('f8c7e982634bbe1ed6510fe5b36b6c5c55c06caefddafdd9edc08812305fdeec'
+            '2a971cf17e0a7303e99a793829e2b7b03533d17041e3b2ebba53555a5bd62284'
+            'b497b1c23cceb8967e9c3f9a39720e3029d370304ae410795121224f96c234a3')
+
+options=('!makeflags')
+
+prepare() {
+	cd "${srcdir}/${pkgname}-${_pkgver}"
+	sed 's/region_of_string/region_of_bytes/' -i src/uigtk2.ml
+	patch -p0 -i ../large.patch
+}
+
+build() {
+	cd "${srcdir}/${pkgname}-${_pkgver}"
+	for ui in gtk2 text; do
+		cp -a . build || true
+		pushd build
+		export CFLAGS=
+		make UISTYLE=$ui DEBUGGING=false THREADS=true
+		mv src/unison src/unison-$ui
+		mv src/unison-* ..
+		popd
+		rm -fr build
+	done
+}
+
+package() {
+	cd "${srcdir}/${pkgname}-${_pkgver}"
+	install -d "${pkgdir}"/usr/bin
+	install -m755 unison-* "${pkgdir}"/usr/bin
+	ln -s unison-text "${pkgdir}"/usr/bin/unison
+
+	install -d "${pkgdir}"/usr/share/{pixmaps,applications}
+	install -m644 icons/U.32x32x16m.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+	install -m644 ../desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}

Deleted: desktop
===================================================================
--- desktop	2018-02-08 05:12:12 UTC (rev 316179)
+++ desktop	2018-02-08 05:12:44 UTC (rev 316180)
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=unison
-Comment=File synchronisation tool for X11
-TryExec=unison-x11
-Exec=unison-x11
-Terminal=false
-Type=Application
-Categories=GTK;Application;Network;
-Icon=unison.png
-StartupNotify=true

Copied: unison/repos/extra-x86_64/desktop (from rev 316179, unison/trunk/desktop)
===================================================================
--- desktop	                        (rev 0)
+++ desktop	2018-02-08 05:12:44 UTC (rev 316180)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=unison
+Comment=File synchronisation tool for X11
+TryExec=unison-gtk2
+Exec=unison-gtk2
+Terminal=false
+Type=Application
+Categories=GTK;Application;Network;
+Icon=unison.png
+StartupNotify=true

Deleted: large.patch
===================================================================
--- large.patch	2018-02-08 05:12:12 UTC (rev 316179)
+++ large.patch	2018-02-08 05:12:44 UTC (rev 316180)
@@ -1,49 +0,0 @@
-diff -Nrua /usr/ports/net/unison/patches/patch-bytearray_stubs_c ./patches/patch-bytearray_stubs_c
---- /usr/ports/net/unison/patches/patch-bytearray_stubs_c	Thu Jan  1 01:00:00 1970
-+++ ./patches/patch-bytearray_stubs_c	Tue Jan 17 08:44:39 2017
-@@ -0,0 +1,45 @@
-+Fix rare SIGSEGV when transferring large replicas.
-+Fix a theoretical integer overflow. 
-+
-+Patches from here:
-+https://caml.inria.fr/mantis/view.php?id=7431#c17026
-+and here:
-+https://caml.inria.fr/mantis/view.php?id=7431#c16962
-+
-+Related issue reports:
-+https://github.com/bcpierce00/unison/issues/48
-+https://caml.inria.fr/mantis/view.php?id=7431
-+https://bugzilla.redhat.com/show_bug.cgi?id=1401759
-+
-+Thanks to Alex Markley and OCaml developers
-+--- bytearray_stubs.c.orig	Tue Jan 17 08:41:00 2017
-++++ bytearray_stubs.c	Tue Jan 17 08:41:21 2017
-+@@ -5,6 +5,7 @@
-+ 
-+ #include "caml/intext.h"
-+ #include "caml/bigarray.h"
-++#include "caml/memory.h"
-+ 
-+ CAMLprim value ml_marshal_to_bigarray(value v, value flags)
-+ {
-+@@ -21,15 +22,18 @@ CAMLprim value ml_marshal_to_bigarray(value v, value f
-+ 
-+ CAMLprim value ml_unmarshal_from_bigarray(value b, value ofs)
-+ {
-++  CAMLparam1(b); /* Holds [b] live until unmarshalling completes. */
-++  value result;
-+   struct caml_bigarray *b_arr = Bigarray_val(b);
-+-  return input_value_from_block (Array_data (b_arr, ofs),
-++  result = input_value_from_block (Array_data (b_arr, ofs),
-+                                  b_arr->dim[0] - Long_val(ofs));
-++  CAMLreturn(result);
-+ }
-+ 
-+ CAMLprim value ml_blit_string_to_bigarray
-+ (value s, value i, value a, value j, value l)
-+ {
-+-  char *src = String_val(s) + Int_val(i);
-++  char *src = String_val(s) + Long_val(i);
-+   char *dest = Array_data(Bigarray_val(a), j);
-+   memcpy(dest, src, Long_val(l));
-+   return Val_unit;

Copied: unison/repos/extra-x86_64/large.patch (from rev 316179, unison/trunk/large.patch)
===================================================================
--- large.patch	                        (rev 0)
+++ large.patch	2018-02-08 05:12:44 UTC (rev 316180)
@@ -0,0 +1,49 @@
+diff -Nrua /usr/ports/net/unison/patches/patch-bytearray_stubs_c ./patches/patch-bytearray_stubs_c
+--- /usr/ports/net/unison/patches/patch-bytearray_stubs_c	Thu Jan  1 01:00:00 1970
++++ ./patches/patch-bytearray_stubs_c	Tue Jan 17 08:44:39 2017
+@@ -0,0 +1,45 @@
++Fix rare SIGSEGV when transferring large replicas.
++Fix a theoretical integer overflow. 
++
++Patches from here:
++https://caml.inria.fr/mantis/view.php?id=7431#c17026
++and here:
++https://caml.inria.fr/mantis/view.php?id=7431#c16962
++
++Related issue reports:
++https://github.com/bcpierce00/unison/issues/48
++https://caml.inria.fr/mantis/view.php?id=7431
++https://bugzilla.redhat.com/show_bug.cgi?id=1401759
++
++Thanks to Alex Markley and OCaml developers
++--- bytearray_stubs.c.orig	Tue Jan 17 08:41:00 2017
+++++ bytearray_stubs.c	Tue Jan 17 08:41:21 2017
++@@ -5,6 +5,7 @@
++ 
++ #include "caml/intext.h"
++ #include "caml/bigarray.h"
+++#include "caml/memory.h"
++ 
++ CAMLprim value ml_marshal_to_bigarray(value v, value flags)
++ {
++@@ -21,15 +22,18 @@ CAMLprim value ml_marshal_to_bigarray(value v, value f
++ 
++ CAMLprim value ml_unmarshal_from_bigarray(value b, value ofs)
++ {
+++  CAMLparam1(b); /* Holds [b] live until unmarshalling completes. */
+++  value result;
++   struct caml_bigarray *b_arr = Bigarray_val(b);
++-  return input_value_from_block (Array_data (b_arr, ofs),
+++  result = input_value_from_block (Array_data (b_arr, ofs),
++                                  b_arr->dim[0] - Long_val(ofs));
+++  CAMLreturn(result);
++ }
++ 
++ CAMLprim value ml_blit_string_to_bigarray
++ (value s, value i, value a, value j, value l)
++ {
++-  char *src = String_val(s) + Int_val(i);
+++  char *src = String_val(s) + Long_val(i);
++   char *dest = Array_data(Bigarray_val(a), j);
++   memcpy(dest, src, Long_val(l));
++   return Val_unit;



More information about the arch-commits mailing list