Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2011 11:08:01 GMT
From:      Kevin Thompson <antiduh@csh.rit.edu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/156926: security/openssh-portable port/pkg doesn't recognize itself with various knobs on
Message-ID:  <201105101108.p4AB80LJ077274@red.freebsd.org>
Resent-Message-ID: <201105101110.p4ABA7FA017467@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156926
>Category:       ports
>Synopsis:       security/openssh-portable port/pkg doesn't recognize itself with various knobs on
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 10 11:10:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Thompson
>Release:        FreeBSD 8.2-STABLE
>Organization:
>Environment:
FreeBSD scorn.csh.rit.edu 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun May  1 04:48:02 EDT 2011     antiduh@scorn.csh.rit.edu:/usr/obj/usr/src/sys/SCORN  i386
>Description:
When security/openssh-portable has been compiled and installed with various knobs turned on, the name of the package changes such that port becomes unable to recognize itself when attempting to uninstall the old package via 'make uninstall' after recompiling with different knobs on.

Example:
  openssh-portable-5.2.p1_3,1  versus  openssh-gssapi-5.2.p1_3,1

Suggest not changing the name of the port based on knobs, or fixing the make file to recognize different versions of itself.

The workaround is to manually uninstall using pkg_deinstall, or to uninstall before building the new port.

Ports was up-to-date as of the time of this submission.
>How-To-Repeat:
1) Assume nothing installed
2) Compile security/openssh-portable with only the following knobs enabled: PAM, TCP_WRAPPERS, LIBEDIT.
3) Install. Port installs as "openssh-portable-5.2.p1_3,1"
4) Run 'make config'. Turn on KERBEROS and GSSAPI
5) Rebuild port
6) Attempt to 'make deinstall install'. Fails
6.1) 'make deinstall' reports nothing useful every time it is invoked:
  scorn(/usr/ports/security/openssh-portable) # make deinstall
  ===>  Deinstalling for security/openssh-portable
  scorn(/usr/ports/security/openssh-portable) # make deinstall
  ===>  Deinstalling for security/openssh-portable
6.2) 'make install' fails:
  ===>   An older version of security/openssh-portable is already installed (openssh-portable-5.2.p1_3,1)
7) Force the port to uninstall using pkg_deinstall -f openssh-portable\*
8) 'make install' works.
9) Port installs as "openssh-gssapi-5.2.p1_3,1"

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105101108.p4AB80LJ077274>