NetBSD Problem Report #25723
Received: (qmail 11431 invoked by uid 605); 27 May 2004 08:14:26 -0000
Message-Id: <20040527081424.0D93115038@firefly.localdomain>
Date: Thu, 27 May 2004 17:14:24 +0900 (JST)
From: hira@po6.nsk.ne.jp
Sender: gnats-bugs-owner@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: Automatic manual page handling fails with rpm2pkg
X-Send-Pr-Version: 3.95
>Number: 25723
>Category: pkg
>Synopsis: Automatic manual page handling fails with rpm2pkg
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: tron
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 27 08:15:00 +0000 2004
>Closed-Date: Thu May 27 10:30:23 +0000 2004
>Last-Modified: Thu May 27 10:30:23 +0000 2004
>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:
Responsible-Changed-From-To: pkg-manager->tron
Responsible-Changed-By: tron
Responsible-Changed-When: Thu May 27 08:33:36 UTC 2004
Responsible-Changed-Why:
I'll handle this PR.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/25723 CVS commit: pkgsrc/pkgtools/rpm2pkg
Date: Thu, 27 May 2004 10:28:00 +0000 (UTC)
Module Name: pkgsrc
Committed By: tron
Date: Thu May 27 10:28:00 UTC 2004
Modified Files:
pkgsrc/pkgtools/rpm2pkg: Makefile
pkgsrc/pkgtools/rpm2pkg/files: rpm2pkg.c
Log Message:
Update "rpm2pkg" package to version 2.1:
- Improve I/O buffer mangement.
- Don't put "@exec" and "@unexec" in the package list for symbolic links
which point to normal files. This allows the automatic manual
decompression to handle symbolic links to manual pages correctly.
The update fixes PR pkg/25723 by Kouichirou Hiratsuka.
To generate a diff of this commit:
cvs rdiff -r1.23 -r1.24 pkgsrc/pkgtools/rpm2pkg/Makefile
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/rpm2pkg/files/rpm2pkg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: tron
State-Changed-When: Thu May 27 10:29:54 UTC 2004
State-Changed-Why:
Version 2.1 of the "rpm2pkg" package fixes the problem.
Thanks for the bug report.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.