From koitsu@pentarou.parodius.com  Mon Jun 16 08:48:30 2003
Return-Path: <koitsu@pentarou.parodius.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8E95F37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Jun 2003 08:48:30 -0700 (PDT)
Received: from mail.parodius.com (mail.parodius.com [64.71.184.173])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 087C743FBD
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Jun 2003 08:48:30 -0700 (PDT)
	(envelope-from koitsu@pentarou.parodius.com)
Received: from pentarou.parodius.com (koitsu@localhost [127.0.0.1])
	by mail.parodius.com (8.12.9/8.12.9) with ESMTP id h5GFmTkD048383
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Jun 2003 08:48:29 -0700 (PDT)
	(envelope-from koitsu@pentarou.parodius.com)
Received: (from koitsu@localhost)
	by pentarou.parodius.com (8.12.9/8.12.9/Submit) id h5GFmTxj048382;
	Mon, 16 Jun 2003 08:48:29 -0700 (PDT)
	(envelope-from koitsu)
Message-Id: <200306161548.h5GFmTxj048382@pentarou.parodius.com>
Date: Mon, 16 Jun 2003 08:48:29 -0700 (PDT)
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Reply-To: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Missing newline in pkg_info from pkg_add'd packages.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53378
>Category:       bin
>Synopsis:       Missing newline in pkg_info from pkg_add'd packages.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lioux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 16 08:50:10 PDT 2003
>Closed-Date:    Mon Aug 25 12:18:43 PDT 2003
>Last-Modified:  Mon Aug 25 12:18:43 PDT 2003
>Originator:     Jeremy Chadwick
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Parodius Networking
>Environment:
System: FreeBSD pentarou.parodius.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Thu May 15 11:28:23 PDT 2003 root@pentarou.parodius.com:/usr/obj/usr/src/sys/PARODIUS-SMP i386

>Description:
        pkg_add (or something related to packages) is not properly inserting
        a newline in the description field shown in pkg_info.  I am not
        sure if this is a bug in a) the package itself, b) pkg_add, or
        c) pkg_info.

        Normally when a package is installed, you will see something like
        this:

procmail-3.22_2     A local mail delivery agent
python-2.2.3        An interpreted object-oriented programming language
qpopper-4.0.5_1     Berkeley POP 3 server (now maintained by Qualcomm)

        This bug causes the following to happen:

procmail-3.22_2     A local mail delivery agent
python-2.2.3        An interpreted object-oriented programming languageqpopper-4.0.5_1     Berkeley POP 3 server (now maintained by Qualcomm)

        This also applies to portinstall/portupgrade (when using -P).

        This is NOT specific to python.  I can do this with a multitude
        of packages, they all do the same thing.

        Compiling from source (e.g. make install) does NOT do this.

>How-To-Repeat:
# pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/lang/python-2.2.3.tgz
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/lang/python-2.2.3.tgz... Done.

# pkg_info | grep python
python-2.2.3        An interpreted object-oriented programming languageqpopper-4.0.5_1     Berkeley POP 3 server (now maintained by Qualcomm)

# pkg_info | grep -3 python
png-1.2.5_2         Library for manipulating PNG images
portupgrade-20030427 FreeBSD ports/packages administration and management tool s
procmail-3.22_2     A local mail delivery agent
python-2.2.3        An interpreted object-oriented programming languageqpopper-4.0.5_1     Berkeley POP 3 server (now maintained by Qualcomm)
rrdtool-1.0.41      Round Robin Database Tools
ruby-1.6.8.2003.04.19 An object-oriented interpreted scripting language
ruby-bdb1-0.1.9     Ruby interface to Berkeley DB revision 1.8x with full featu

# pkg_delete python-2.2.3

# pkg_info | grep -3 qpopper
png-1.2.5_2         Library for manipulating PNG images
portupgrade-20030427 FreeBSD ports/packages administration and management tool s
procmail-3.22_2     A local mail delivery agent
qpopper-4.0.5_1     Berkeley POP 3 server (now maintained by Qualcomm)
rrdtool-1.0.41      Round Robin Database Tools
ruby-1.6.8.2003.04.19 An object-oriented interpreted scripting language
ruby-bdb1-0.1.9     Ruby interface to Berkeley DB revision 1.8x with full featu

# cd /usr/ports/lang/python

# make install
{...compile snipped due to excessive length...}
===>   Compressing manual pages for python-2.2.3
===>   Registering installation for python-2.2.3
===>  SECURITY REPORT: 
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/lib/python2.2/lib-dynload/_socket.so

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

# pkg_info | grep python
python-2.2.3        An interpreted object-oriented programming language

# pkg_info | grep -3 python
png-1.2.5_2         Library for manipulating PNG images
portupgrade-20030427 FreeBSD ports/packages administration and management tool s
procmail-3.22_2     A local mail delivery agent
python-2.2.3        An interpreted object-oriented programming language
qpopper-4.0.5_1     Berkeley POP 3 server (now maintained by Qualcomm)
rrdtool-1.0.41      Round Robin Database Tools
ruby-1.6.8.2003.04.19 An object-oriented interpreted scripting language

>Fix:
Make from source instead of packages.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: kris 
State-Changed-When: Sat Jul 12 18:21:18 PDT 2003 
State-Changed-Why:  
Assign to lioux. This is fixed in -current, but I'm not sure 
if he has MFCed it yet. 


Responsible-Changed-From-To: freebsd-bugs->lioux 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 18:21:18 PDT 2003 
Responsible-Changed-Why:  
Assign to lioux. This is fixed in -current, but I'm not sure 
if he has MFCed it yet. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53378 
State-Changed-From-To: patched->closed 
State-Changed-By: lioux 
State-Changed-When: Mon Aug 25 12:18:42 PDT 2003 
State-Changed-Why:  
A fix was committed, thanks! 

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