Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10300 - [man 1.6f-2] Files created by package but not owned but it

Attached to Project: Arch Linux
Opened by Gavin Bisesi (Daenyth) - Sunday, 27 April 2008, 22:31 GMT
Last edited by Greg (dolby) - Wednesday, 14 May 2008, 12:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The current man package provides the whatis function, and a cron.daily entry to run it.

According to the whatis manpage, is MANPATH is unset (which we do by default in /etc/profile), it uses the output of "man --path" to specify locations to create whatis databases for.

[root@Muspelheimr ~]# man --path
/usr/share/man:/opt/java/man:/opt/java/jre/man:/usr/man:/usr/local/man

In all of these locations, a whatis database is generated daily. The problem is that they are not owned by the man package.

[root@Muspelheimr ~]# man --path | sed 's|:|\n|g' | while read manpath; do ls -lh "${manpath}/whatis"; done
-rw-r--r-- 1 root root 392K 2008-04-27 00:06 /usr/share/man/whatis
-rw-r--r-- 1 root root 3.2K 2008-04-27 00:06 /opt/java/man/whatis
-rw-r--r-- 1 root root 588 2008-04-27 00:06 /opt/java/jre/man/whatis
-rw-r--r-- 1 root root 3.0M 2008-04-27 00:06 /usr/man/whatis
-rw-r--r-- 1 root root 0 2008-04-27 00:06 /usr/local/man/whatis
[root@Muspelheimr ~]# man --path | sed 's|:|\n|g' | while read manpath; do pacman -Qo "${manpath}/whatis"; done
error: No package owns /usr/share/man/whatis
error: No package owns /opt/java/man/whatis
error: No package owns /opt/java/jre/man/whatis
error: No package owns /usr/man/whatis
error: No package owns /usr/local/man/whatis


I'm not sure what the best way to handle this is. if you add these files in the build fucntion, then it will conflict with installed systems which already have the files. Is there a way to say "This package owns these files, but if they exist on the filesystem already, don't overwrite them?" I suppose you could add the whatis databases to backup=(), with a notice in the post_upgrade function, but are they always the same files for every system?

This task depends upon

Closed by  Greg (dolby)
Wednesday, 14 May 2008, 12:45 GMT
Reason for closing:  Not a bug
Comment by Jens Adam (byte) - Wednesday, 14 May 2008, 11:44 GMT
The files are always in the same location, dependent on $PATH/$MANPATH, but not with the same contents.
Anyway, I'm not really seeing the point here. Those files are temporary, like so much else that normally lies in /var or /tmp. I don't think this in something to care about.
Comment by Gavin Bisesi (Daenyth) - Wednesday, 14 May 2008, 12:39 GMT
Ah, I didn't think of it that way. I'll ask for a close then.

Loading...