[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#425465: marked as done (Examples are difficult to build)



Your message dated Thu, 03 Dec 2009 21:51:56 +0000
with message-id <E1NGJae-00063R-NY@ries.debian.org>
and subject line Bug#425465: fixed in lablgl 1.04-4
has caused the Debian Bug report #425465,
regarding Examples are difficult to build
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
425465: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425465
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: liblablgl-ocaml-dev
Version: 1.02-2

The example directory has a makefile, but it doesn't include targets for the example binaries. Also, ocamlc won't build planet.ml. (I get a syntax error on: load "unix.cma";;)

The attached patch to /usr/share/doc/liblablgl-ocaml-dev/examples/ addresses both issues.

In the Makefile, the packages lablgl and lablgl.glut aren't strictly necessary. lablgl.togl pulls them in automatically.

Thanks!

-Rusty

diff -u examples-orig/Makefile examples/Makefile
--- examples-orig/Makefile	2007-05-21 13:37:31.000000000 -0700
+++ examples/Makefile	2007-05-21 13:34:19.000000000 -0700
@@ -1,4 +1,16 @@
 # Makefile for examples subdir
 
+PACKAGES = lablgl.togl,unix
+DERIVEDML = $(patsubst %.ml.gz,%.ml,$(wildcard *.ml.gz))
+
+all: $(patsubst %.ml,%.opt,$(wildcard *.ml) $(DERIVEDML))  
+
+%.ml : %.ml.gz
+	gunzip -c $^ > $@
+
+%.opt : %.ml
+	ocamlfind ocamlopt -package $(PACKAGES) -c  $^
+	ocamlfind ocamlopt -package $(PACKAGES) -linkpkg -o $@ $^
+
 clean:
-	rm -f *.cm* *.o *.opt
+	rm -f *.cm* *.o *.opt $(DERIVEDML)
diff -u examples-orig/planet.ml examples/planet.ml
--- examples-orig/planet.ml	2007-05-21 13:37:31.000000000 -0700
+++ examples/planet.ml	2007-05-21 13:22:15.000000000 -0700
@@ -1,6 +1,6 @@
 (* $Id: planet.ml,v 1.17 2001/09/07 06:50:01 garrigue Exp $ *)
 
-#load"unix.cma";;
+open Unix
 
 class planet togl = object (self)
   val togl = togl

--- End Message ---
--- Begin Message ---
Source: lablgl
Source-Version: 1.04-4

We believe that the bug you reported is fixed in the latest version of
lablgl, which is due to be installed in the Debian FTP archive:

lablgl_1.04-4.debian.tar.gz
  to main/l/lablgl/lablgl_1.04-4.debian.tar.gz
lablgl_1.04-4.dsc
  to main/l/lablgl/lablgl_1.04-4.dsc
liblablgl-ocaml-dev_1.04-4_amd64.deb
  to main/l/lablgl/liblablgl-ocaml-dev_1.04-4_amd64.deb
liblablgl-ocaml_1.04-4_amd64.deb
  to main/l/lablgl/liblablgl-ocaml_1.04-4_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 425465@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ralf Treinen <treinen@debian.org> (supplier of updated lablgl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 03 Dec 2009 21:50:04 +0100
Source: lablgl
Binary: liblablgl-ocaml liblablgl-ocaml-dev
Architecture: source amd64
Version: 1.04-4
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Ralf Treinen <treinen@debian.org>
Description: 
 liblablgl-ocaml - Runtime libraries for lablgl
 liblablgl-ocaml-dev - an OpenGL interface for Objective Caml
Closes: 425465
Changes: 
 lablgl (1.04-4) unstable; urgency=low
 .
   * Converted to source format 3.0 (quilt)
     - added debian/source/format
   * Fixed the Makefile in the examples to make compilation work.  Patch:
     compilation-examples. Closes: Bug#425465. Thanks a lot to Russell
     Sears for the patch!
Checksums-Sha1: 
 fd4f1ab206ae5c0533ab7ac4310e3d2cd4c72f34 1646 lablgl_1.04-4.dsc
 4728c68d31573850a0dcf502cc1fa7b3be8fee12 10956 lablgl_1.04-4.debian.tar.gz
 4c489891386bf43500fc8852f04b7e6fe8d791fc 66818 liblablgl-ocaml_1.04-4_amd64.deb
 8bd459f2abb19815fcab2d2176093119d913e787 266674 liblablgl-ocaml-dev_1.04-4_amd64.deb
Checksums-Sha256: 
 acb4f0f3f5d04f6764f583f04e82b7997e944c17b436b00f7afea7f1d13fa1c2 1646 lablgl_1.04-4.dsc
 2faf3a5712ac36a3dc0c6836d47f7eafa2bb4b6d75e3294d6bba675223556f57 10956 lablgl_1.04-4.debian.tar.gz
 5b37612b4aab28b8d768cc28da38829c8255010d2cfd11b84d6d5fc848ecfa99 66818 liblablgl-ocaml_1.04-4_amd64.deb
 eee11112f26966371ea4493697f9288ea29fcc44d8f820fc9a4e4dd6f74b91cd 266674 liblablgl-ocaml-dev_1.04-4_amd64.deb
Files: 
 0c5b5d3da7d5ecd6ebfc4a0336fdc473 1646 ocaml optional lablgl_1.04-4.dsc
 f0715d797422607cc0c8e45ee81aee96 10956 ocaml optional lablgl_1.04-4.debian.tar.gz
 b71f21b9940ffa23e2bbe1683a129cc9 66818 ocaml optional liblablgl-ocaml_1.04-4_amd64.deb
 3528175b2d2e35b3094e955a62d38a34 266674 ocaml optional liblablgl-ocaml-dev_1.04-4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFLGCcatzWmSeC6BMERAnB2AKCnLsKV1zrT8E609EkvAh2/MVl83wCgjnVE
YIoEF3Ib31qmV7SPmkOdgFI=
=KOdu
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: