Skip to content

Commit

Permalink
dev-ml/ocamlpam: fix build with ocaml 4.04
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.2
  • Loading branch information
aballier committed Nov 29, 2016
1 parent b16ff5e commit 2c552c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions dev-ml/ocamlpam/files/ocaml404.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Index: ocamlpam-1.1/pam_stubs.c
===================================================================
--- ocamlpam-1.1.orig/pam_stubs.c
+++ ocamlpam-1.1/pam_stubs.c
@@ -57,6 +57,7 @@ static int converse(int nMsg, const stru
struct pam_response * local_responses;
caml_pam_handle * h;

+ CAMLparam0 ();
CAMLlocal1(ret);

h = (caml_pam_handle *)data;
3 changes: 2 additions & 1 deletion dev-ml/ocamlpam/ocamlpam-1.1.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2013 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand All @@ -21,6 +21,7 @@ RDEPEND="${DEPEND}"

src_prepare() {
epatch "${FILESDIR}/${P}-makefile.patch"
has_version '>=dev-lang/ocaml-4.04_beta' && epatch "${FILESDIR}/ocaml404.patch"
}

src_compile() {
Expand Down

0 comments on commit 2c552c8

Please sign in to comment.