From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Camlp4 error Date: Sun, 23 Aug 2015 18:23:37 +0200 Message-ID: <20150823162337.GA22728@debian> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="zYM0uCDKw75PZbzx" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTY3f-0001wG-DV for guix-devel@gnu.org; Sun, 23 Aug 2015 12:23:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTY3a-0005eb-E0 for guix-devel@gnu.org; Sun, 23 Aug 2015 12:23:47 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:56389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTY3a-0005eL-5Q for guix-devel@gnu.org; Sun, 23 Aug 2015 12:23:42 -0400 Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, the attached (partial) package is supposed to add GTK+ bindings for OCaml, which I would like to have for unison. Building currently fails with the following message: camlp4o pa_macro.cmo -D HAS_PRINTEXC_BACKTRACE -impl gtkSignal.ml4 -o gtkSignal.ml Camlp4: Uncaught exception: DynLoader.Error ("Camlp4MacroParser.cmo", "file not found in path") Makefile:515: recipe for target 'gtkSignal.ml' failed The file Camlp4MacroParser.cmo is available in /gnu/store/ikshd53q3pp3mdcsjqp5kkfakmcjs4xp-camlp4-4.02.0+1/lib/camlp4/Camlp4Parsers/ Does someone familiar with OCaml know what to do? Do we need a search path specification? Maybe relevant: configure complains about checking for ocamlfind... no ./configure: line 2670: no: command not found configure: WARNING: Ignoring ocamlfind Thanks for your help! Andreas --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="lablgtk.patch" diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 12d813f..3e68917 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -26,6 +26,7 @@ #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages gcc) + #:use-module (gnu packages gtk) #:use-module (gnu packages base) #:use-module (gnu packages emacs) #:use-module (gnu packages texinfo) @@ -472,3 +473,37 @@ a collection of files and directories to be stored on different hosts brought up to date by propagating the changes in each replica to the other.") (license gpl3+))) + +(define-public lablgtk + (package + (name "lablgtk") + (version "2.18.3") + (source + (origin + (method url-fetch) + (uri (string-append "https://forge.ocamlcore.org/frs/download.php/" + "1479/lablgtk-2.18.3.tar.gz")) + (sha256 + (base32 + "1bybn3jafxf4cx25zvn8h2xj9agn1xjbn7j3ywxxqx6az7rfnnwp")))) + (build-system gnu-build-system) + (native-inputs + `(("camlp4" ,camlp4) + ("ocaml" ,ocaml) + ("pkg-config" ,pkg-config))) + (inputs + `(("gtk+" ,gtk+-2))) + (arguments + `(#:parallel-build? #f)) ; just in case + (home-page "http://lablgtk.forge.ocamlcore.org/") + (synopsis "GTK+ bindings for OCaml") + (description + "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides +a strongly-typed object-oriented interface that is compatible with the +dynamic typing of GTK+. Most widgets and methods are available. LablGtk +also provides bindings to +gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas, +gnomeui, gtksourceview, gtkspell, +libglade (and it an generate OCaml code from .glade files), +libpanel, librsvg and quartz.") + (license lgpl2.1))) --zYM0uCDKw75PZbzx--