Package: debirf
Version: 0.34
Severity: minor
Tags: patch

Dear Maintainer,

In a debirf instance, /var/cache/man subdirectories are owned by
root instead of man :

# ls -AlF /var/cache/man
total 136
-rw-r--r-- 1 root root    190 Jul 10 20:04 CACHEDIR.TAG
drwxr-sr-x 2 root root     40 Jul 10 20:04 cat1/
drwxr-sr-x 2 root root     40 Jul 10 20:04 cat2/
drwxr-sr-x 2 root root     40 Jul 10 20:04 cat3/
drwxr-sr-x 2 root root     40 Jul 10 20:04 cat4/
drwxr-sr-x 2 root root     40 Jul 10 20:04 cat5/
drwxr-sr-x 2 root root     40 Jul 10 20:04 cat6/
drwxr-sr-x 2 root root     40 Jul 10 20:04 cat7/
drwxr-sr-x 2 root root     40 Jul 10 20:04 cat8/
drwxr-sr-x 5 root root    120 Jul 10 20:04 cs/
drwxr-sr-x 5 root root    120 Jul 10 20:04 da/
drwxr-sr-x 5 root root    120 Jul 10 20:04 de/
drwxr-sr-x 5 root root    120 Jul 10 20:04 es/
drwxr-sr-x 4 root root    100 Jul 10 20:04 fi/
drwxr-sr-x 5 root root    120 Jul 10 20:04 fr/
drwxr-sr-x 3 root root     80 Jul 10 20:04 gl/
drwxr-sr-x 5 root root    120 Jul 10 20:04 hu/
drwxr-sr-x 5 root root    120 Jul 10 20:04 id/
-rw-r--r-- 1 root root 139787 Jul 10 20:04 index.db
drwxr-sr-x 5 root root    120 Jul 10 20:04 it/
drwxr-sr-x 5 root root    120 Jul 10 20:04 ja/
drwxr-sr-x 5 root root    120 Jul 10 20:04 ko/
drwxr-sr-x 5 root root    120 Jul 10 20:04 nl/
drwxr-sr-x 5 root root    120 Jul 10 20:04 pl/
drwxr-sr-x 5 root root    120 Jul 10 20:04 pt/
drwxr-sr-x 5 root root    120 Jul 10 20:04 pt_BR/
drwxr-sr-x 5 root root    120 Jul 10 20:04 ru/
drwxr-sr-x 4 root root    100 Jul 10 20:04 sl/
drwxr-sr-x 5 root root    120 Jul 10 20:04 sv/
drwxr-sr-x 5 root root    120 Jul 10 20:04 tr/
drwxr-sr-x 5 root root    120 Jul 10 20:04 zh_CN/
drwxr-sr-x 5 root root    120 Jul 10 20:04 zh_TW/

Installing a package with a man page gives an error :

# apt-get install bc
[ ... ]
Processing triggers for man-db (2.6.7.1-1)
fopen: Permission denied

The following patch just change the owner of /var/cache/man/*
to man.

Regards,
JH Chatenet

diff -Naur a/usr/share/debirf/modules/z1_clean-root 
b/usr/share/debirf/modules/z1_clean-root
--- a/usr/share/debirf/modules/z1_clean-root    2014-07-09 22:28:14.000000000 
+0200
+++ b/usr/share/debirf/modules/z1_clean-root    2014-07-10 16:17:22.000000000 
+0200
@@ -28,3 +28,11 @@
 
 # setup dynamically updated /etc/mtab
 ln -sf /proc/mounts "$DEBIRF_ROOT/etc/mtab"
+
+# fix owner of /var/cache/man
+
+if [ -d "$DEBIRF_ROOT/var/cache/man" ]; then
+    chown -R man:root "$DEBIRF_ROOT/var/cache/man"
+fi
+
+

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

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages debirf depends on:
ii  apt          1.0.5
ii  cpio         2.11+dfsg-2
ii  debootstrap  1.0.60
ii  fakechroot   2.17.2-1
ii  fakeroot     1.18.4-2
ii  klibc-utils  2.0.3-1

Versions of packages debirf recommends:
ii  grub-common  2.00-22
ii  lsb-release  4.1+Debian13
ii  xorriso      1.3.2-1

debirf suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to