Subject: pkg/6406: pkg_delete breaks with X11R6 info files
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/06/1998 23:13:55
>Number:         6406
>Category:       pkg
>Synopsis:       pkg_delete doesn't handle X11R6 info files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov  6 20:20:00 1998
>Originator:     Dan McMahill

>Release:        NetBSD-1.3,  pkg_install-1998091 <NetBSD-current source date>
System: NetBSD dinah-moe 1.3 NetBSD 1.3 (DINAH-MOE) #0: Tue Jan 13 02:02:40 EST 1998 mac68k


when a pkg Makefile has
USE_X11=	yes


and the package installs info files, the info file is listed in PLIST as:
@unexec %D/bin/install-info --delete %D/info/  %D/info/dir 
@exec %D/bin/install-info %D/info/  %D/info/dir

'make install' works and correctly uses
however, 'make deinstall' tries to use


make a package with
USE_X11=        yes

in the Makefile and

@unexec %D/bin/install-info --delete %D/info/  %D/info/dir
@exec %D/bin/install-info %D/info/  %D/info/dir

in pkg/PLIST,
then 'make install' and then 'make deinstall'


possible work arounds:

@unexec install-info --delete %D/info/  %D/info/dir
@exec install-info %D/info/  %D/info/dir
in pkg/PLIST.  This requires that install-info be in roots path.

could hard code /usr/pkg/bin/ as the path in PLIST, but this breaks if
someone doesn't have install-info in /usr/pkg/bin.

maybe there's a way at install time to find out where 'install-info' lives and put the
full path into /var/db/pkg/pkgname/+CONTENTS?