ports/158967: sysutils/bsdadminscripts: pkg_libchk doesn't work at all when run from bash

Bourne-again Superuser toor at rho.emma.line.org
Sat Jul 16 11:00:20 UTC 2011


>Number:         158967
>Category:       ports
>Synopsis:       sysutils/bsdadminscripts: pkg_libchk doesn't work at all when run from bash
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 16 11:00:19 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Bourne-again Superuser
>Release:        FreeBSD 8.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD rho.emma.line.org 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
pkg_libchk doesn't work at all when run from bash. The problem is that
bash sets OSTYPE to "freebsd8.2" rather than "FreeBSD", hence the
"readelf -e" header matching doesn't see a match.

Fix: OSTYPE=$(uname -s) early in the script.
	
>How-To-Repeat:
	
>Fix:

	


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



More information about the freebsd-ports-bugs mailing list