bin/53378: Missing newline in pkg_info from pkg_add'd packages.

Jeremy Chadwick freebsd at jdc.parodius.com
Mon Jun 16 08:50:12 PDT 2003


>Number:         53378
>Category:       bin
>Synopsis:       Missing newline in pkg_info from pkg_add'd packages.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 16 08:50:10 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list