Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ocaml-integers for openSUSE:Factory checked in at 2022-04-06 21:51:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocaml-integers (Old) and /work/SRC/openSUSE:Factory/.ocaml-integers.new.1900 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocaml-integers" Wed Apr 6 21:51:17 2022 rev:3 rq:967056 version:0.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ocaml-integers/ocaml-integers.changes 2021-09-29 20:19:34.167045459 +0200 +++ /work/SRC/openSUSE:Factory/.ocaml-integers.new.1900/ocaml-integers.changes 2022-04-06 21:51:35.067503457 +0200 @@ -1,0 +2,6 @@ +Mon Apr 4 04:04:04 UTC 2022 - oher...@suse.de + +- Update to version 0.7.0 + see included CHANGES for details + +------------------------------------------------------------------- Old: ---- ocaml-integers-0.5.1.tar.xz New: ---- ocaml-integers-0.7.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocaml-integers.spec ++++++ --- /var/tmp/diff_new_pack.5gJTss/_old 2022-04-06 21:51:35.491498618 +0200 +++ /var/tmp/diff_new_pack.5gJTss/_new 2022-04-06 21:51:35.495498573 +0200 @@ -1,7 +1,7 @@ # # spec file for package ocaml-integers # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # Name: ocaml-integers -Version: 0.5.1 +Version: 0.7.0 Release: 0 %{?ocaml_preserve_bytecode} Summary: Various signed and unsigned integer types for OCaml @@ -24,11 +24,12 @@ Group: Development/Languages/OCaml URL: https://github.com/ocamllabs/ocaml-integers -Source0: %{name}-%{version}.tar.xz +Source0: %name-%version.tar.xz BuildRequires: ocaml BuildRequires: ocaml-dune -BuildRequires: ocaml-rpm-macros >= 20210911 +BuildRequires: ocaml-rpm-macros >= 20220222 +BuildRequires: ocamlfind(stdlib-shims) %description The ocaml-integers library provides a number of 8-, 16-, 32- and 64-bit @@ -36,13 +37,13 @@ and size_t whose sizes depend on the host platform. %package devel -Summary: Development files for %{name} +Summary: Development files for %name Group: Development/Languages/OCaml -Requires: %{name} = %{version} +Requires: %name = %version %description devel -The %{name}-devel package contains libraries and signature files for -developing applications that use %{name}. +The %name-devel package contains libraries and signature files for +developing applications that use %name. %prep @@ -60,9 +61,9 @@ %check %ocaml_dune_test -%files -f %{name}.files -%doc README.md CHANGES.md +%files -f %name.files +%doc README.md -%files devel -f %{name}.files.devel +%files devel -f %name.files.devel %changelog ++++++ _service ++++++ --- /var/tmp/diff_new_pack.5gJTss/_old 2022-04-06 21:51:35.523498253 +0200 +++ /var/tmp/diff_new_pack.5gJTss/_new 2022-04-06 21:51:35.527498208 +0200 @@ -1,7 +1,7 @@ <services> <service name="tar_scm" mode="disabled"> <param name="filename">ocaml-integers</param> - <param name="revision">ba8a0d6996c4ba92214f1f185e014e7afc94ed0a</param> + <param name="revision">a494765d5bdc1f771eea56d552bd6c1d2ba971cd</param> <param name="scm">git</param> <param name="submodules">disable</param> <param name="url">https://github.com/ocamllabs/ocaml-integers.git</param> ++++++ ocaml-integers-0.5.1.tar.xz -> ocaml-integers-0.7.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/.github/workflows/test.yml new/ocaml-integers-0.7.0/.github/workflows/test.yml --- old/ocaml-integers-0.5.1/.github/workflows/test.yml 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/.github/workflows/test.yml 2022-03-23 18:13:12.000000000 +0100 @@ -1,14 +1,12 @@ -name: Main workflow +name: Integers on: - pull_request: - push: - schedule: - # Prime the caches every Monday - - cron: 0 1 * * MON + - pull_request + - push + - workflow_dispatch jobs: - build: + tests: strategy: fail-fast: false matrix: @@ -33,14 +31,12 @@ ocaml-compiler: 4.11.x - os: ubuntu-latest ocaml-compiler: 4.12.x + - os: ubuntu-latest + ocaml-compiler: 4.13.x - os: windows-latest - ocaml-compiler: 4.11.x - - os: windows-latest - ocaml-compiler: 4.12.x - - os: macos-latest - ocaml-compiler: 4.11.1 + ocaml-compiler: 4.13.1 - os: macos-latest - ocaml-compiler: 4.12.x + ocaml-compiler: 4.13.1 runs-on: ${{ matrix.os }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/CHANGES.md new/ocaml-integers-0.7.0/CHANGES.md --- old/ocaml-integers-0.5.1/CHANGES.md 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/CHANGES.md 2022-03-23 18:13:12.000000000 +0100 @@ -1,3 +1,13 @@ +v0.7.0 2022-03-23 +----------------- + +* restore dll support for cygwin64 / newer binutils versions (mingw64) (@fdopen, #40) + +v0.6.0 2022-02-05 +----------------- + +* Add dependency on stdlib-shims (@kit-ty-kate, #38) + v0.5.1 2021-08-12 ----------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/integers.opam new/ocaml-integers-0.7.0/integers.opam --- old/ocaml-integers-0.5.1/integers.opam 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/integers.opam 2022-03-23 18:13:12.000000000 +0100 @@ -10,16 +10,15 @@ license: "MIT" build: [ - ["dune" "subst"] {pinned} + ["dune" "subst"] {dev} ["dune" "build" "-p" name "-j" jobs] ["dune" "runtest" "-p" name "-j" jobs] {with-test} ] depends: [ "ocaml" {>= "4.02"} - "dune" {build} + "dune" {>= "1.0"} + "stdlib-shims" ] synopsis: "Various signed and unsigned integer types for OCaml" -description: """ -""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/src/dune new/ocaml-integers-0.7.0/src/dune --- old/ocaml-integers-0.5.1/src/dune 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/src/dune 2022-03-23 18:13:12.000000000 +0100 @@ -4,4 +4,5 @@ (wrapped false) (install_c_headers ocaml_integers) (c_names unsigned_stubs) + (libraries stdlib-shims) (synopsis "Signed and unsigned integers of various sizes")) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/src/ocaml_integers.h new/ocaml-integers-0.7.0/src/ocaml_integers.h --- old/ocaml-integers-0.5.1/src/ocaml_integers.h 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/src/ocaml_integers.h 2022-03-23 18:13:12.000000000 +0100 @@ -12,58 +12,16 @@ #include <stdint.h> -#define UINT_DECLS(BITS) \ - extern value integers_copy_uint ## BITS(uint ## BITS ## _t u); \ - /* uintX_add : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## add(value a, value b); \ - /* uintX_sub : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## sub(value a, value b); \ - /* uintX_mul : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## mul(value a, value b); \ - /* uintX_div : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## div(value a, value b); \ - /* uintX_rem : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## rem(value a, value b); \ - /* uintX_logand : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## logand(value a, value b); \ - /* uintX_logor : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## logor(value a, value b); \ - /* uintX_logxor : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## logxor(value a, value b); \ - /* uintX_shift_left : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## shift_left(value a, value b); \ - /* uintX_shift_right : t -> t -> t */ \ - extern value integers_uint ## BITS ## _ ## shift_right(value a, value b); \ - /* of_int : int -> t */ \ - extern value integers_uint ## BITS ## _of_int(value a); \ - /* to_int : t -> int */ \ - extern value integers_uint ## BITS ## _to_int(value a); \ - /* of_string : string -> t */ \ - extern value integers_uint ## BITS ## _of_string(value a); \ - /* to_string : t -> string */ \ - extern value integers_uint ## BITS ## _to_string(value a); \ - /* max : unit -> t */ \ - extern value integers_uint ## BITS ## _max(value a); - -#define UINT_SMALL_DECLS(BITS) \ - /* of_string : string -> t */ \ - extern value integers_uint ## BITS ## _of_string(value a); \ - /* to_string : t -> string */ \ - extern value integers_uint ## BITS ## _to_string(value a); \ - /* max : unit -> t */ \ - extern value integers_uint ## BITS ## _max(value a); - -UINT_SMALL_DECLS(8) -UINT_SMALL_DECLS(16) -UINT_DECLS(32) -UINT_DECLS(64) - -/* X_size : unit -> int */ -extern value integers_size_t_size (value _); -extern value integers_ushort_size (value _); -extern value integers_uint_size (value _); -extern value integers_ulong_size (value _); -extern value integers_ulonglong_size (value _); +#ifndef OCAML_INTEGERS_INTERNAL +#ifdef __cplusplus +extern "C" { +#endif +CAMLextern value integers_copy_uint32(uint32_t u); +CAMLextern value integers_copy_uint64(uint64_t u); +#ifdef __cplusplus +} +#endif +#endif #define Integers_val_uint8(t) ((Val_int((uint8_t)t))) #define Integers_val_uint16(t) ((Val_int((uint16_t)t))) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/src/signed.ml new/ocaml-integers-0.7.0/src/signed.ml --- old/ocaml-integers-0.5.1/src/signed.ml 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/src/signed.ml 2022-03-23 18:13:12.000000000 +0100 @@ -6,8 +6,6 @@ * See the file LICENSE for details. *) -module Pervasives = Pervasives [@@ocaml.warning "-3"] - module type Infix = sig type t include Unsigned.Infix with type t := t @@ -76,8 +74,8 @@ let mul = ( * ) let div = ( / ) let rem = ( mod ) - let max_int = Pervasives.max_int - let min_int = Pervasives.min_int + let max_int = Stdlib.max_int + let min_int = Stdlib.min_int let logand = ( land ) let logor = ( lor ) let logxor = ( lxor ) @@ -94,12 +92,12 @@ let one = 1 let minus_one = -1 let lognot = lnot - let succ = Pervasives.succ - let pred = Pervasives.pred - let compare = Pervasives.compare - let equal = Pervasives.(=) - let max = Pervasives.max - let min = Pervasives.min + let succ = Stdlib.succ + let pred = Stdlib.pred + let compare = Stdlib.compare + let equal = Stdlib.(=) + let max = Stdlib.max + let min = Stdlib.min end include Basics module Infix = MakeInfix(Basics) @@ -107,7 +105,7 @@ let of_int64 = Int64.to_int let to_nativeint = Nativeint.of_int let of_nativeint = Nativeint.to_int - let abs = Pervasives.abs + let abs = Stdlib.abs let neg x = -x let pp fmt n = Format.fprintf fmt "%d" n let pp_hex fmt n = Format.fprintf fmt "%x" n @@ -126,8 +124,8 @@ let to_nativeint = Nativeint.of_int32 let of_int64 = Int64.to_int32 let to_int64 = Int64.of_int32 - let max = Pervasives.max - let min = Pervasives.min + let max = Stdlib.max + let min = Stdlib.min let pp fmt n = Format.fprintf fmt "%ld" n let pp_hex fmt n = Format.fprintf fmt "%lx" n let to_hexstring n = Format.asprintf "%lx" n @@ -144,8 +142,8 @@ module Infix = MakeInfix(Int64) let of_int64 x = x let to_int64 x = x - let max = Pervasives.max - let min = Pervasives.min + let max = Stdlib.max + let min = Stdlib.min let pp fmt n = Format.fprintf fmt "%Ld" n let pp_hex fmt n = Format.fprintf fmt "%Lx" n let to_hexstring n = Format.asprintf "%Lx" n diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/src/unsigned.ml new/ocaml-integers-0.7.0/src/unsigned.ml --- old/ocaml-integers-0.5.1/src/unsigned.ml 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/src/unsigned.ml 2022-03-23 18:13:12.000000000 +0100 @@ -6,8 +6,6 @@ * See the file LICENSE for details. *) -module Pervasives = Pervasives [@@ocaml.warning "-3"] - external init : unit -> unit = "integers_unsigned_init" let () = init () @@ -101,10 +99,10 @@ let succ n = add n one let pred n = sub n one let lognot n = logxor n max_int - let compare (x : t) (y : t) = Pervasives.compare x y - let equal (x : t) (y : t) = Pervasives.(=) x y - let max (x : t) (y : t) = Pervasives.max x y - let min (x : t) (y : t) = Pervasives.min x y + let compare (x : t) (y : t) = Stdlib.compare x y + let equal (x : t) (y : t) = Stdlib.(=) x y + let max (x : t) (y : t) = Stdlib.max x y + let min (x : t) (y : t) = Stdlib.min x y let of_string_opt (s : string) = try Some (of_string s) with Failure _ -> None let pp fmt x = Format.fprintf fmt "%s" (to_string x) let pp_hex fmt x = Format.fprintf fmt "%s" (to_hexstring x) @@ -213,7 +211,7 @@ external to_int32 : t -> int32 = "integers_int32_of_uint32" let max_signed = of_int32 Int32.max_int let to_int32 u32 = - if Pervasives.compare u32 max_signed <= 0 then + if Stdlib.compare u32 max_signed <= 0 then to_int32 u32 else Int32.sub (to_int32 (sub u32 half_max_plus_two)) half_max_minus_one_signed @@ -266,7 +264,7 @@ external to_int64 : t -> int64 = "integers_uint64_to_int64" let max_signed = of_int64 Int64.max_int let to_int64 u64 = - if Pervasives.compare u64 max_signed <= 0 then + if Stdlib.compare u64 max_signed <= 0 then to_int64 u64 else Int64.sub (to_int64 (sub u64 half_max_plus_two)) half_max_minus_one_signed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/src/unsigned.mli new/ocaml-integers-0.7.0/src/unsigned.mli --- old/ocaml-integers-0.5.1/src/unsigned.mli 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/src/unsigned.mli 2022-03-23 18:13:12.000000000 +0100 @@ -121,10 +121,10 @@ val compare : t -> t -> int (** The comparison function for unsigned integers, with the same - specification as {!Pervasives.compare}. *) + specification as {!Stdlib.compare}. *) val equal : t -> t -> bool - (** Tests for equality, with the same specification as {!Pervasives.(=)}. *) + (** Tests for equality, with the same specification as {!Stdlib.(=)}. *) val max : t -> t -> t (** [max x y] is the greater of [x] and [y] *) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-integers-0.5.1/src/unsigned_stubs.c new/ocaml-integers-0.7.0/src/unsigned_stubs.c --- old/ocaml-integers-0.5.1/src/unsigned_stubs.c 2021-08-12 12:28:19.000000000 +0200 +++ new/ocaml-integers-0.7.0/src/unsigned_stubs.c 2022-03-23 18:13:12.000000000 +0100 @@ -20,8 +20,63 @@ #include <limits.h> #include <stdio.h> +#define OCAML_INTEGERS_INTERNAL 1 #include "ocaml_integers.h" +#define UINT_DECLS(BITS) \ + extern value integers_copy_uint ## BITS(uint ## BITS ## _t u); \ + /* uintX_add : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## add(value a, value b); \ + /* uintX_sub : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## sub(value a, value b); \ + /* uintX_mul : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## mul(value a, value b); \ + /* uintX_div : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## div(value a, value b); \ + /* uintX_rem : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## rem(value a, value b); \ + /* uintX_logand : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## logand(value a, value b); \ + /* uintX_logor : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## logor(value a, value b); \ + /* uintX_logxor : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## logxor(value a, value b); \ + /* uintX_shift_left : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## shift_left(value a, value b); \ + /* uintX_shift_right : t -> t -> t */ \ + extern value integers_uint ## BITS ## _ ## shift_right(value a, value b); \ + /* of_int : int -> t */ \ + extern value integers_uint ## BITS ## _of_int(value a); \ + /* to_int : t -> int */ \ + extern value integers_uint ## BITS ## _to_int(value a); \ + /* of_string : string -> t */ \ + extern value integers_uint ## BITS ## _of_string(value a); \ + /* to_string : t -> string */ \ + extern value integers_uint ## BITS ## _to_string(value a); \ + /* max : unit -> t */ \ + extern value integers_uint ## BITS ## _max(value a); + +#define UINT_SMALL_DECLS(BITS) \ + /* of_string : string -> t */ \ + extern value integers_uint ## BITS ## _of_string(value a); \ + /* to_string : t -> string */ \ + extern value integers_uint ## BITS ## _to_string(value a); \ + /* max : unit -> t */ \ + extern value integers_uint ## BITS ## _max(value a); + +UINT_SMALL_DECLS(8) +UINT_SMALL_DECLS(16) +UINT_DECLS(32) +UINT_DECLS(64) + +/* X_size : unit -> int */ +extern value integers_size_t_size (value _); +extern value integers_ushort_size (value _); +extern value integers_uint_size (value _); +extern value integers_ulong_size (value _); +extern value integers_ulonglong_size (value _); + + static int parse_digit(char c) { if (c >= '0' && c <= '9')