- Small fix for OCaml 4.04.0 changes in Hp_val macro.

This commit is contained in:
Richard W.M. Jones 2016-11-07 17:09:09 +00:00
parent bb56548892
commit 4187b53ff5
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,20 @@
--- ancient-0.9.0.old/ancient_c.c 2009-05-26 12:45:26.000000000 +0100
+++ ancient-0.9.0/ancient_c.c 2016-11-07 17:07:42.531413947 +0000
@@ -169,7 +169,7 @@
}
struct restore_item {
- char *header;
+ header_t *header;
value field_zero;
};
@@ -203,7 +203,7 @@
// which is already ancient.
assert (Is_in_heap_or_young (obj));
- char *header = Hp_val (obj);
+ header_t *header = Hp_val (obj);
// If we've already visited this object, just return its offset
// in the out-of-heap memory.

View File

@ -15,6 +15,8 @@ URL: http://git.annexia.org/?p=ocaml-ancient.git;a=summary
Source0: ancient-%{version}.tar.gz
Patch1: ancient-0.9.0-use-ocamlopt-g.patch
# Use header_t with OCaml 4.04.0.
Patch2: ancient-0.9.0-use-header_t.patch
BuildRequires: ocaml >= 3.10.0
BuildRequires: ocaml-findlib-devel
@ -56,6 +58,7 @@ developing applications that use %{name}.
%setup -q -n ancient-%{version}
%patch1 -p1
%patch2 -p1
%build
@ -117,6 +120,7 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
%changelog
* Mon Nov 07 2016 Richard W.M. Jones <rjones@redhat.com> - 0.9.0-28
- Rebuild for OCaml 4.04.0.
- Small fix for OCaml 4.04.0 changes in Hp_val macro.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild