From seggers@semyam.dinoco.de  Mon Jun 22 08:02:47 1998
Received: from tim.xenologics.com (tim.xenologics.com [194.77.5.24])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA14667
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 22 Jun 1998 08:02:45 -0700 (PDT)
          (envelope-from seggers@semyam.dinoco.de)
Received: (from uucp@localhost)
	by tim.xenologics.com (8.8.5/8.8.8) with UUCP id QAA09528
	for FreeBSD-gnats-submit@freebsd.org; Mon, 22 Jun 1998 16:58:15 +0200 (MET DST)
Received: (from seggers@localhost)
	by semyam.dinoco.de (8.8.8/8.8.8) id QAA09547;
	Mon, 22 Jun 1998 16:56:38 +0200 (CEST)
	(envelope-from seggers)
Message-Id: <199806221456.QAA09547@semyam.dinoco.de>
Date: Mon, 22 Jun 1998 16:56:38 +0200 (CEST)
From: Stefan Eggers <seggers@semyam.dinoco.de>
Reply-To: seggers@semyam.dinoco.de
To: FreeBSD-gnats-submit@freebsd.org
Cc: seggers@semyam.dinoco.de
Subject: changes to bsd.port.mk to accompany PR bin/7021
X-Send-Pr-Version: 3.2

>Number:         7022
>Category:       bin
>Synopsis:       changes to bsd.port.mk to accompany PR bin/7021
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    asami
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 22 08:10:01 PDT 1998
>Closed-Date:    Wed Apr 4 00:59:15 PDT 2001
>Last-Modified:  Wed Apr 04 00:59:47 PDT 2001
>Originator:     Stefan Eggers
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
none
>Environment:

	2.2-stable CVSUped last weekend.

>Description:

	This changes to the make file allows to install a port from
the ports collection with the size estimation generated by the new
pkg_create from PR bin/7021.  That makes it behave like installing
the actual package.

>How-To-Repeat:

	Look at the behavior of "make install" in a subdirectory of
the ports colllection.  It doesn't generate the +SIZE file in the
package database.

>Fix:
	

--- bsd.port.mk.ORIG	Sat Jun 20 22:21:00 1998
+++ bsd.port.mk	Mon Jun 22 16:49:37 1998
@@ -1774,6 +1774,7 @@
 		${ECHO_MSG} "===>  Registering installation for ${PKGNAME}"; \
 		${MKDIR} ${PKG_DBDIR}/${PKGNAME}; \
 		${PKG_CMD} ${PKG_ARGS} -O ${PKGFILE} > ${PKG_DBDIR}/${PKGNAME}/+CONTENTS; \
+		${PKG_CMD} ${PKG_ARGS} -S ${PKG_DBDIR}/${PKGNAME}/+SIZE -z ${PKGFILE}; \
 		${CP} ${DESCR} ${PKG_DBDIR}/${PKGNAME}/+DESC; \
 		${CP} ${COMMENT} ${PKG_DBDIR}/${PKGNAME}/+COMMENT; \
 		if [ -f ${PKGDIR}/INSTALL ]; then \
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->asami 
Responsible-Changed-By: phk 
Responsible-Changed-When: Wed Jun 24 00:56:37 PDT 1998 
Responsible-Changed-Why:  
Over to Mr (& Mrs) Ports :-) 
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Wed Apr 4 00:59:15 PDT 2001 
State-Changed-Why:  
Patch from bin/7021 is gone, no point in looking at this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=7022 
>Unformatted:
