Subject: pkg/25723: Automatic manual page handling fails with rpm2pkg
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: pkgsrc-bugs
Date: 05/27/2004 17:14:24
>Number:         25723
>Category:       pkg
>Synopsis:       Automatic manual page handling fails with rpm2pkg
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 27 08:15:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Kouichirou Hiratsuka
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0_BETA NetBSD 2.0_BETA (FIREFLY.MP) #0: Thu May 27 00:26:54 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
	If a symbolic linked manual is found in RPM files, pkgtools/rpm2pkg
	puts `@exec ln -sf foo bar' to PLIST.  But `Automatic manual page
	handling' does not relink for it.

	For example, installation of emulators/suse_base is incorrect.

% cd /emul/linux/usr/share/man/man1
% ls -la reset.1.gz
lrwxr-xr-x  1 root  wheel  9 May 27 10:35 reset.1.gz@ -> tset.1.gz
% ls -la tset.1.gz 
ls: tset.1.gz: No such file or directory
% ls -la tset.1
-rw-r--r--  1 root  wheel  11714 May 27 10:35 tset.1

	And +CONTENTS is also incorrect.

% grep reset.1 /var/db/pkg/suse_base-7.3nb5/+CONTENTS
@exec ln -fs tset.1.gz %D/emul/linux/usr/share/man/man1/reset.1
@unexec rm -f %D/emul/linux/usr/share/man/man1/reset.1

>How-To-Repeat:
	cd ${PKGSRCDIR}/suse_base
	make && make install
	pkg_delete suse_base

>Fix:
	Add more manual page handling to mk/bsd.pkg.mk for `@exec' line.
	(Or change output of rpm2pkg for symbolic linked manuals?)
>Release-Note:
>Audit-Trail:
>Unformatted: