From asami2@han.cs.berkeley.edu  Mon Jan  6 01:22:19 1997
Received: from han.cs.berkeley.edu (han.CS.Berkeley.EDU [128.32.38.229])
          by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id BAA21943
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 6 Jan 1997 01:22:19 -0800 (PST)
Received: (from asami2@localhost) by han.cs.berkeley.edu (8.8.4/8.7.3) id BAA02874; Mon, 6 Jan 1997 01:22:18 -0800 (PST)
Message-Id: <199701060922.BAA02874@han.cs.berkeley.edu>
Date: Mon, 6 Jan 1997 01:22:18 -0800 (PST)
From: asami@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: pkg_add or pkg_create can't handle +DISPLAY file
X-Send-Pr-Version: 3.2

>Number:         2380
>Category:       bin
>Synopsis:       pkg_add or pkg_create can't handle +DISPLAY file
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jkh
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan  6 01:30:01 PST 1997
>Closed-Date:    Mon Jan 13 15:41:25 PST 1997
>Last-Modified:  Mon Jan 13 15:42:14 PST 1997
>Originator:     Satoshi Asami
>Release:        FreeBSD 2.2-RELEASE i386
>Organization:
The FreeBSD Ports Team
>Environment:

	It says 2.2-RELEASE but this machine is actually RELENG_2_2.

>Description:

	After creating a package with pkg_create -D, pkg_add fails with
	"Cannot open display file `+DISPLAY'." and it doesn't display
	the file.  Since the ports tree relies on this feature to 
	show license files and other legal information, this is
	potentially a very serious problem.

>How-To-Repeat:

## tar tvzf /usr/ports/packages/All/eperl-2.0.3.tgz
-rw-r--r-- root/wheel      825 Jan  6 01:14 1997 +CONTENTS
-rw-r--r-- root/wheel       58 Jan  6 01:14 1997 +COMMENT
-rw-r--r-- root/wheel      526 Jan  6 01:14 1997 +DESC
-rw-r--r-- root/wheel     2006 Jan  6 01:14 1997 +DISPLAY
-rw-r--r-- asami2/wheel   3170 Dec 12 03:34 1996 +MTREE_DIRS
-r-xr-xr-x bin/bin      421888 Jan  6 01:14 1997 www/cgi-bin/nph-eperl
-r--r--r-- bin/bin        5717 Jan  6 01:14 1997 share/doc/eperl/about.txt
-r--r--r-- bin/bin       83063 Jan  6 01:14 1997 share/doc/eperl/about.ps
-r--r--r-- bin/bin        3718 Jan  6 01:14 1997 share/doc/eperl/faq.txt
-r--r--r-- bin/bin       79444 Jan  6 01:14 1997 share/doc/eperl/faq.ps
## pkg_add /usr/ports/packages/All/eperl-2.0.3.tgz
Cannot open display file `+DISPLAY'.
##

>Fix:
	
	I'd commit it myself if I knew. :)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: jkh 
Responsible-Changed-When: Mon Jan 6 02:43:53 PST 1997 
Responsible-Changed-Why:  
Gah.  This is mine.  It should actually be fairly easy to fix. 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon Jan 13 15:41:25 PST 1997 
State-Changed-Why:  
Fixed.  I'm also not sure if pkg_create should be the one to display 
the informationl; this is more likely left to bsd.port.mk at the time 
that the package is fake-registered. 
>Unformatted:
