Date: Sat, 16 Jul 2011 11:53:23 +0200 (CEST) From: Bourne-again Superuser <toor@rho.emma.line.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: kamikaze@bsdforen.de Subject: ports/158967: sysutils/bsdadminscripts: pkg_libchk doesn't work at all when run from bash Message-ID: <20110716095323.7F70C33C15@rho.emma.line.org> Resent-Message-ID: <201107161100.p6GB0Jik086467@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110716095323.7F70C33C15>