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

Re: the move to stublib



On Sat, Aug 31, 2002 at 11:54:31AM +0200, Remi VANICAT wrote:
> - it seem that at its installation, the ocaml package doesn't run
>   ocaml-ldconf any more, leaving the following ld.conf :
> 
> /build/buildd/ocaml-3.06/debian/ocaml/usr/lib/ocaml/stublibs
> /build/buildd/ocaml-3.06/debian/ocaml/usr/lib/ocaml

from which ld.conf did you take this data? My ld.conf (both
/var/lib/ocaml/ld.conf and /usr/lib/ocaml/ld.conf) don't report any path
like that.

> - it also seem that several old version of some package have not
>   suppress at upgrade time the path they had add to ld.conf using the
>   ocaml-ldconf utilities. It is at least the case for the following
>   package :

This is an already discussed problem related to an old bug of
dh_ocamlld. The script generated by the buggy version of dh_ocamlld not
remove the paths while upgrading the package IIRC, so if you upgrade a
debian package which needs a path in /usr/lib/ocaml/ld.conf to a version
that does no longer need such a path you remain with a spurious path.

I posted the patch sometimes ago for dh_ocamlld, but seems to me that it
isn't yet in the ocaml package, I will repost it attached to this mail.
The reference thread is on this ML, with subject "Summary on
ocaml-ldconf bug" around date July 08. (The patch is for
/usr/share/debhelper/autoscripts/postrm-ocamlld).

The original post carried also a patch for ocaml-ldconf that enable some
useful warnings, I don't know if it is still needed because IIRC Sven
performed some change sto ocaml-ldconf, anyway the original message is
  Message-ID: <20020708211638.GA18210@cs.unibo.it>

Anyway fixing the bug does not solve the problem for who have currently
installed packages built with buggy version of dh_ocamlld, so IIRC we
told about adding a check for spurious path in ld.conf directly in the
ocaml package, check that we forgot to add.

Cheers.

-- 
Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
--- postrm-ocamlld.orig	Mon Jul  8 23:09:06 2002
+++ postrm-ocamlld	Mon Jul  8 23:15:07 2002
@@ -1,3 +1,10 @@
-if [ "$1" = "remove" -a -x /usr/bin/ocaml-ldconf ]; then
-	/usr/bin/ocaml-ldconf -p #PACKAGE# -r #DIR#
+if [ -x /usr/bin/ocaml-ldconf ]; then
+  case "$1" in
+    remove|upgrade)
+      /usr/bin/ocaml-ldconf -p #PACKAGE# -r #DIR#
+      ;;
+    *)
+      # do nothing
+      ;;
+  esac
 fi

Attachment: pgpzfHlWreWC4.pgp
Description: PGP signature


Reply to: