On Tue, Nov 09, 2010 at 10:07:05AM +0100, Michal Hlavinka wrote:
tried, but there does not seem to be significant difference. Also the
%check
script I used was the same script rpmbuild creates from the %check section (in
/var/tmp/rpm*) and it defines the same environment:
-------------------------------------------
#!/bin/sh
RPM_SOURCE_DIR="/home/mhlavink/gitf/ksh"
RPM_BUILD_DIR="/home/mhlavink/gitf/ksh"
RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"
RPM_ARCH="x86_64"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="ksh"
RPM_PACKAGE_VERSION="20101026"
RPM_PACKAGE_RELEASE="1.fc14"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
LANG=C
export LANG
unset CDPATH DISPLAY ||:
RPM_BUILD_ROOT="/home/mhlavink/rpmbuild/BUILDROOT/ksh-20101026-1.fc14.x86_64"
export RPM_BUILD_ROOT
PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH
set -x
umask 022
cd "/home/mhlavink/gitf/ksh"
cd 'ksh-20101026'
unset DISPLAY
SHELL=$(ls $(pwd)/arch/*/bin/ksh)
cp $SHELL ${SHELL}4check
export SHELL=${SHELL}4check
cd src/cmd/ksh93/tests/
ulimit -c unlimited
if [ ! -e /dev/fd ]
then
echo "ERROR: /dev/fd does not exist, regression tests skipped"
exit 0
fi
$SHELL ./shtests 2>&1 | tee testresults.log
killall ksh4check -s SIGKILL
...
-------------------------------------------
Maybe something strange like the size in bytes of the environment
is crossing some limit?
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/