ports/156926: security/openssh-portable port/pkg doesn't recognize itself with various knobs on

Kevin Thompson antiduh at csh.rit.edu
Tue May 10 11:10:08 UTC 2011


>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 at 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:



More information about the freebsd-ports-bugs mailing list