NetBSD Problem Report #47668
From ignatios@cs.uni-bonn.de Tue Mar 19 12:04:06 2013
Return-Path: <ignatios@cs.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id A9DA763F1F2
for <gnats-bugs@gnats.NetBSD.org>; Tue, 19 Mar 2013 12:04:05 +0000 (UTC)
Message-Id: <1363694641.174570.19641.nullmailer@jaguar-alpha.cs.uni-bonn.de>
Date: Tue, 19 Mar 2013 13:04:01 +0100
From: ignatios@cs.uni-bonn.de
Reply-To: ignatios@cs.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
Subject: rplayd has wrong paths in man page
X-Send-Pr-Version: 3.95
>Number: 47668
>Category: pkg
>Synopsis: rplayd has wrong paths in man page
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 19 12:05:00 +0000 2013
>Last-Modified: Wed Mar 20 02:45:02 +0000 2013
>Originator: ignatios@cs.uni-bonn.de
>Release: NetBSD 6.0.1_PATCH
>Organization:
computer science department, university of Bonn, Germany
>Environment:
System: NetBSD jaguar-gamma 6.0.1_PATCH NetBSD 6.0.1_PATCH (XEN3PAE_DOMU) #0: Thu Feb 14 17:05:07 CET 2013 ignatios@random84.cs.uni-bonn.de:/var/itch/sources/6.0/oi386/sys/arch/i386/compile/XEN3PAE_DOMU i386
Architecture: i386
Machine: i386
>Description:
rplayd(8) contains:
FILES
~/.rplaydrc
/tmp/.rplay-cache
/usr/pkg/usr/pkg/etc.conf
/usr/pkg/usr/pkg/etc.helpers
/usr/pkg/usr/pkg/etc.hosts
/usr/pkg/usr/pkg/etc.servers
>How-To-Repeat:
man rplayd
>Fix:
>Audit-Trail:
From: Makoto Fujiwara <makoto@ki.nu>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/47668: rplayd has wrong paths in man page
Date: Wed, 20 Mar 2013 09:01:46 +0900
This looks better than original, but I did not verified
all the path's appeared in man pages yet.
Especially the following ones of rplay.conf(5) are not in the PLIST.
EXAMPLE
/usr/pkg/libsounds/bark.au
/usr/pkg/libsounds/bogus.au
Index: audio/rplay/Makefile
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/audio/rplay/Makefile,v
retrieving revision 1.62
diff -u -u -p -r1.62 Makefile
--- audio/rplay/Makefile 2 Oct 2012 23:48:08 -0000 1.62
+++ audio/rplay/Makefile 19 Mar 2013 15:31:00 -0000
@@ -21,14 +21,25 @@ RCD_SCRIPTS= rplayd
EGDIR= ${PREFIX}/share/examples/rplay
INSTALLATION_DIRS= ${EGDIR}
-pre-configure:
- cd ${WRKSRC}/doc; for manpage in *.[0-9]; do \
- ${SED} -e "s|/usr/local/etc|${PKG_SYSCONFDIR}|g" \
- -e "s|/usr/local|${PREFIX}|g" \
- -e "s|/etc/rplay|${PKG_SYSCONFDIR}|g" \
- $${manpage} > $${manpage}.pdone; \
- ${MV} -f $${manpage}.pdone $${manpage}; \
- done
+SUBST_CLASSES+= confdir
+SUBST_STAGE.confdir= pre-configure
+SUBST_MESSAGE.confdir= Fix pkg config dir of man pages.
+
+SUBST_FILES.confdir+= doc/rplay.conf.5
+SUBST_FILES.confdir+= doc/rplay.helpers.5
+SUBST_FILES.confdir+= doc/rplay.hosts.5
+SUBST_FILES.confdir+= doc/rplay.servers.5
+SUBST_SED.confdir= -e "s|/usr/local||"
+SUBST_SED.confdir+= -e "s|/etc|${PKG_SYSCONFDIR}|"
+SUBST_SED.confdir+= -e "s|/lib/|${PREFIX}/lib|"
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= pre-configure
+SUBST_MESSAGE.prefix= Fix prefix of man pages.
+SUBST_FILES.prefix= doc/rplayd.8
+#SUBST_FILES.prefix+= doc/rplay.1
+#SUBST_FILES.prefix+= doc/rptp.1
+SUBST_SED.prefix= -e "s|/usr/local|${PREFIX}${PKG_CONFIGDIR}|"
post-install:
.for f in rplay.conf rplay.helpers rplay.hosts rplay.servers
From: Makoto Fujiwara <makoto@ki.nu>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/47668: rplayd has wrong paths in man page
Date: Wed, 20 Mar 2013 11:41:53 +0900
I understand the files listed in FILES section of
rplay.conf(5) is not the file installed, but they are just
examples of name to be listed on the file.
-+SUBST_SED.confdir+= -e "s|/lib/|${PREFIX}/lib|"
++SUBST_SED.confdir+= -e "s|/lib/|${PREFIX}/share/rplay/|"
Or it may be better to show the example file as
---
FILE
See /usr/pkg/share/examples/rplay/rplay.conf
---
But probably it is beyond pkgsrc handling.
---
Makoto Fujiwara
mef@NetBSD.org
>Unformatted:
Information for rplay-3.3.2nb7:
Comment:
Network audio player
Requires:
gsm>=1.0.12
rx>=1.5
Required by:
vtwm-5.4.7nb3
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.