rea 2011-07-18 10:06:50 UTC
FreeBSD ports repository
Modified files:
sysutils/bsdadminscripts Makefile
Added files:
sysutils/bsdadminscripts/files patch-src::pkg_libchk
Log:
Allow pkg_libchk to work from non-CSH shells
/bin/sh does not set OSTYPE, so this variable is inherited from the
shell from which pkg_libchk is invoked. From all standard shells in
the base system, only csh and tcsh do set this variable, so when
pkg_libchk is invoked from sh (that is not invoked from csh-like
shell), this variable will be empty. Moreover, bash sets OSTYPE to
freebsdX.Y, so grepping on output of 'readelf -e' wont work either.
'uname -s' provides much more reliable way to get the name of the
operating system and all *BSD ELF ABI types inside readelf correspond
to the 'uname -s':
{{{
case ELFOSABI_NETBSD: return "UNIX - NetBSD";
case ELFOSABI_FREEBSD: return "UNIX - FreeBSD";
case ELFOSABI_OPENBSD: return "UNIX - OpenBSD";
}}}
PR: ports/158967
Approved-by: Dominic Fandrey <[email protected]> (maintainer), erwin
(mentor)
Feature-safe: yes
Revision Changes Path
1.25 +1 -0 ports/sysutils/bsdadminscripts/Makefile
1.1 +19 -0
ports/sysutils/bsdadminscripts/files/patch-src::pkg_libchk (new)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[email protected]"