Bug#630320: obus: FTBFS on several architectures: can't find Dynlink

2011-06-14 Thread Nicolas Dandrimont

clone 630320 -1
reassign -1 libfindlib-ocaml 1.2.6+debian-1
retitle -1 camlp4 depends on Dynlink on all architectures
severity -1 important
tag -1 patch
retitle 630320 FTBFS on ocaml native arches without native dynlink
tag 630320 pending
thanks

Hi,

Thanks for your report. There are indeed two separate issues, one for
armel, and one for the other architectures.

The armel issue is an obus issue: configure detects that armel is a native
architecture and therefore builds native files. However, as camlp4
depends on dynlink, and armel doesn't have native dynlink, it fails to
build. Forcing a non-native build on architectures without natdynlink
fixes the issue.


For the other arches, the problem is that camlp4 now unconditionnally
depends on Dynlink, whether the architecture have natdynlink or
not. This change (which I couldn't trace, but surely is an ocaml
upstream change) wasn't reflected in the METAS/META.camlp4 file, and
now camlp4.lib fails to link on non-natdynlink architectures.

To see the bug, e.g. on a mipsel qemu:

--8--
nicolasd@debian:~$ ocaml
Objective Caml version 3.12.0

# #use topfind;;
- : unit = ()
Findlib has been successfully loaded. Additional directives:
  #require package;;  to load a package
  #list;;   to list the available packages
  #camlp4o;;to load camlp4 (standard syntax)
  #camlp4r;;to load camlp4 (revised syntax)
  #predicates p,q,...;;   to set these predicates
  Topfind.reset();; to force that packages will be reloaded
  #thread;; to enable threads

- : unit = ()
# #camlp4o;;
/usr/lib/ocaml/camlp4: added to search path
/usr/lib/ocaml/camlp4/camlp4o.cma: loaded
Error: Reference to undefined global `Dynlink'
--8--

Attached is a patch for findlib, I didn't commit this as I'm not certain
this is the way to go. But anyway after changing the META.camlp4 file
the obus FTBFS goes away.

Thanks,
-- 
Nicolas Dandrimont
From: Nicolas Dandrimont nicolas.dandrim...@crans.org
Date: Tue, 14 Jun 2011 15:21:31 +0200
Subject: Camlp4 depends on Dynlink on every architecture

---
 site-lib-src/camlp4.310/META.in |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/site-lib-src/camlp4.310/META.in b/site-lib-src/camlp4.310/META.in
index 637d848..a490ab1 100644
--- a/site-lib-src/camlp4.310/META.in
+++ b/site-lib-src/camlp4.310/META.in
@@ -6,7 +6,7 @@ dnl This file is input of the m4 macro processor.
 `directory = 'camlp4_dir`'
 
 `# For the toploop:'
-`requires(byte,toploop) = 'camlp4_dynlink`'
+`requires(byte,toploop) = dynlink'
 `archive(byte,toploop,camlp4o) = camlp4o.cma'
 `archive(byte,toploop,camlp4r) = camlp4r.cma'
 
@@ -16,7 +16,7 @@ dnl This file is input of the m4 macro processor.
 `preprocessor = 'camlp4_cmd`'
 
 `package lib ('
-`  requires = camlp4 'camlp4_dynlink`'
+`  requires = camlp4 dynlink'
 `  version = [distributed with Ocaml]'
 `  description = Camlp4 library'
 `  archive(byte) = camlp4lib.cma'
-- 


pgpZHZt2mBVh5.pgp
Description: PGP signature


Processed: Re: Bug#630320: obus: FTBFS on several architectures: can't find Dynlink

2011-06-14 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 clone 630320 -1
Bug#630320: obus: FTBFS on several architectures: can't find Dynlink
Bug 630320 cloned as bug 630490.

 reassign -1 libfindlib-ocaml 1.2.6+debian-1
Bug #630490 [obus] obus: FTBFS on several architectures: can't find Dynlink
Bug reassigned from package 'obus' to 'libfindlib-ocaml'.
Bug No longer marked as found in versions 1.1.2-1.
Bug #630490 [libfindlib-ocaml] obus: FTBFS on several architectures: can't find 
Dynlink
Bug Marked as found in versions findlib/1.2.6+debian-1.
 retitle -1 camlp4 depends on Dynlink on all architectures
Bug #630490 [libfindlib-ocaml] obus: FTBFS on several architectures: can't find 
Dynlink
Changed Bug title to 'camlp4 depends on Dynlink on all architectures' from 
'obus: FTBFS on several architectures: can't find Dynlink'
 severity -1 important
Bug #630490 [libfindlib-ocaml] camlp4 depends on Dynlink on all architectures
Severity set to 'important' from 'serious'

 tag -1 patch
Bug #630490 [libfindlib-ocaml] camlp4 depends on Dynlink on all architectures
Added tag(s) patch.
 retitle 630320 FTBFS on ocaml native arches without native dynlink
Bug #630320 [obus] obus: FTBFS on several architectures: can't find Dynlink
Changed Bug title to 'FTBFS on ocaml native arches without native dynlink' from 
'obus: FTBFS on several architectures: can't find Dynlink'
 tag 630320 pending
Bug #630320 [obus] FTBFS on ocaml native arches without native dynlink
Added tag(s) pending.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
630320: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630320
630490: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630490
-1: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=-1
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#630320: obus: FTBFS on several architectures: can't find Dynlink

2011-06-12 Thread Aaron M. Ucko
Package: obus
Version: 1.1.2-1
Severity: serious
Justification: fails to build from source

Builds of obus are failing on armel, ia64, mips, and s390 with errors
about being unable to find Dynlink; the armel build fails with

 File _none_, line 1, characters 0-1:
 Error: No implementations provided for the following modules:
  Dynlink referenced from /usr/lib/ocaml/camlp4/camlp4lib.cmxa(Camlp4)
 Command exited with code 2.

and the other three fail with

 File _none_, line 1, characters 0-1:
 Error: Error while linking /usr/lib/ocaml/camlp4/camlp4lib.cma(Camlp4):
 Reference to undefined global `Dynlink'
 Command exited with code 2.

(The remaining architectures fail because they assume a writable home
directory, which I'll report separately.)

Could you please take a look?

Thanks!

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org