--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: ocaml-base-nox: creates directories in /usr/local with wrong permissions
- From: Julien Cristau <julien.cristau@ens-lyon.fr>
- Date: Fri, 10 Sep 2004 03:09:22 +0200
- Message-id: <20040910010922.5A85F93704@localhost.localdomain>
Package: ocaml-base-nox
Version: 3.08.1-1
Severity: minor
Tags: patch
Hi Sven,
policy 9.1.2 says that:
- directories created by maintainer scripts under /usr/local should be
owned by root.staff and have permissions 2775
- they must be created and deleted by postinst and prerm
With the attached patch, ocaml-base-nox creates the directories with
correct permissions in postinst, and deletes them if empty in prerm.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-1-686
Locale: LANG=C, LC_CTYPE=C
Versions of packages ocaml-base-nox depends on:
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime
ii libncurses5 5.4-4 Shared libraries for terminal hand
-- no debconf information
diff -Nru ocaml-3.08.1/debian/ocaml-base-nox.postinst ocaml-3.08.1.new/debian/ocaml-base-nox.postinst
--- ocaml-3.08.1/debian/ocaml-base-nox.postinst 2004-09-10 02:20:48.000000000 +0200
+++ ocaml-3.08.1.new/debian/ocaml-base-nox.postinst 2004-09-10 02:10:08.000000000 +0200
@@ -1,9 +1,26 @@
#!/bin/sh
-mkdir -p /usr/local/lib/ocaml/3.08/stublibs || true
+if [ ! -e /usr/local/lib/ocaml ]; then
+ if mkdir /usr/local/lib/ocaml 2>/dev/null; then
+ chown root:staff /usr/local/lib/ocaml
+ chmod 2775 /usr/local/lib/ocaml
+ fi
+fi
+if [ ! -e /usr/local/lib/ocaml/3.08 ]; then
+ if mkdir /usr/local/lib/ocaml/3.08 2>/dev/null; then
+ chown root:staff /usr/local/lib/ocaml/3.08
+ chmod 2775 /usr/local/lib/ocaml/3.08
+ fi
+fi
+if [ ! -e /usr/local/lib/ocaml/3.08/stublibs ]; then
+ if mkdir /usr/local/lib/ocaml/3.08/stublibs 2>/dev/null; then
+ chown root:staff /usr/local/lib/ocaml/3.08/stublibs
+ chmod 2775 /usr/local/lib/ocaml/3.08/stublibs
+ fi
+fi
for i in /usr/lib/ocaml/3.06 /etc/ocaml /var/lib/ocaml; do \
if [ -e $i/ld.conf ]; then \
- echo "Removing leftover $i.ld.conf"; \
+ echo "Removing leftover $i/ld.conf"; \
rm -f $i/ld.conf; \
rmdir --ignore-fail-on-non-empty $i; \
fi; \
diff -Nru ocaml-3.08.1/debian/ocaml-base-nox.prerm ocaml-3.08.1.new/debian/ocaml-base-nox.prerm
--- ocaml-3.08.1/debian/ocaml-base-nox.prerm 1970-01-01 01:00:00.000000000 +0100
+++ ocaml-3.08.1.new/debian/ocaml-base-nox.prerm 2004-09-10 02:17:09.000000000 +0200
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+rmdir /usr/local/lib/ocaml/3.08/stublibs 2>/dev/null || true
+rmdir /usr/local/lib/ocaml/3.08 2>/dev/null || true
+rmdir /usr/local/lib/ocaml 2>/dev/null || true
--- End Message ---
--- Begin Message ---
Source: ocaml
Source-Version: 3.09.2-8
We believe that the bug you reported is fixed in the latest version of
ocaml, which is due to be installed in the Debian FTP archive:
ocaml-base-nox_3.09.2-8_i386.deb
to pool/main/o/ocaml/ocaml-base-nox_3.09.2-8_i386.deb
ocaml-base_3.09.2-8_i386.deb
to pool/main/o/ocaml/ocaml-base_3.09.2-8_i386.deb
ocaml-compiler-libs_3.09.2-8_i386.deb
to pool/main/o/ocaml/ocaml-compiler-libs_3.09.2-8_i386.deb
ocaml-interp_3.09.2-8_i386.deb
to pool/main/o/ocaml/ocaml-interp_3.09.2-8_i386.deb
ocaml-mode_3.09.2-8_all.deb
to pool/main/o/ocaml/ocaml-mode_3.09.2-8_all.deb
ocaml-native-compilers_3.09.2-8_i386.deb
to pool/main/o/ocaml/ocaml-native-compilers_3.09.2-8_i386.deb
ocaml-nox_3.09.2-8_i386.deb
to pool/main/o/ocaml/ocaml-nox_3.09.2-8_i386.deb
ocaml-source_3.09.2-8_all.deb
to pool/main/o/ocaml/ocaml-source_3.09.2-8_all.deb
ocaml_3.09.2-8.diff.gz
to pool/main/o/ocaml/ocaml_3.09.2-8.diff.gz
ocaml_3.09.2-8.dsc
to pool/main/o/ocaml/ocaml_3.09.2-8.dsc
ocaml_3.09.2-8_i386.deb
to pool/main/o/ocaml/ocaml_3.09.2-8_i386.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 355448@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Samuel Mimram <smimram@debian.org> (supplier of updated ocaml 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.7
Date: Sat, 30 Dec 2006 19:01:12 +0000
Source: ocaml
Binary: ocaml-compiler-libs ocaml-native-compilers ocaml-base ocaml-nox ocaml-mode ocaml-interp ocaml-source ocaml-base-nox ocaml
Architecture: source i386 all
Version: 3.09.2-8
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Samuel Mimram <smimram@debian.org>
Description:
ocaml - ML language implementation with a class-based object system
ocaml-base - Runtime system for ocaml bytecode executables
ocaml-base-nox - Runtime system for ocaml bytecode executables
ocaml-compiler-libs - Ocaml interpreter and standard libraries
ocaml-interp - Ocaml interpreter and standard libraries
ocaml-mode - A major mode for editing Objective Caml in Emacs
ocaml-native-compilers - Native code compilers of the ocaml suite (the .opt ones)
ocaml-nox - ML language implementation with a class-based object system
ocaml-source - Sources for Objective Caml
Closes: 355448 397245 403848
Changes:
ocaml (3.09.2-8) unstable; urgency=low
.
[ Samuel Mimram ]
* Installing ocamlbrowser in ocaml instead of ocaml-nox, closes: #397245.
.
[ Julien Cristau ]
* Add patch stolen from 3.09.3 to fix a segfault when a file is closed
twice (closes: #403848).
* Delete directories left over by the ocaml package from sarge in
/usr/local (closes: #355448).
Files:
55dc7cfa4616b43c26cbe5ea9b3a3fdb 1041 devel optional ocaml_3.09.2-8.dsc
6fdf4c72b01138752abe61529eac121a 85834 devel optional ocaml_3.09.2-8.diff.gz
8070e0fdef3ad5ac9d7d398b4ca63887 2079764 devel optional ocaml-source_3.09.2-8_all.deb
052cfcf973be08356be89808d0399716 97036 devel optional ocaml-mode_3.09.2-8_all.deb
a984b89c1d1539a90398ccc8951ccc38 5827902 devel optional ocaml-nox_3.09.2-8_i386.deb
b699c62af64f72b9c8230bbf3d1592de 2810136 devel optional ocaml-native-compilers_3.09.2-8_i386.deb
28017e04c29003b4bb80bd049cd3da8b 2026358 devel optional ocaml_3.09.2-8_i386.deb
d05ceab2d997045e8c4178ca5f745e79 287788 devel optional ocaml-base-nox_3.09.2-8_i386.deb
33e77b21480fb388442def1120924d0e 69128 devel optional ocaml-base_3.09.2-8_i386.deb
871ee9c322b8725caf9386f724d38ddd 1017242 devel optional ocaml-interp_3.09.2-8_i386.deb
4a8cd8f6999b49c49873fe1168561499 768112 devel optional ocaml-compiler-libs_3.09.2-8_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFFlrwjIae1O4AJae8RAthQAJ9powrHop/SMIUilGC51ZA6v9yPowCZAZ5w
pdrQJJMkcZt/R4+vKF9o5kI=
=Qsc1
-----END PGP SIGNATURE-----
--- End Message ---