Page MenuHome GnuPG

Solaris requires CONFIG_SHELL to be set
Closed, ResolvedPublic

Description

When running make, the following error is encountered:

srcdir=. GNUPGHOME=pwd GPG_AGENT_INFO= LC_ALL=C GPGSM=../sm/gpgsm ./runtest
./inittests
inittests: please set GNUPGHOME to the test directory

The tests/inittests script assumes #!/bin/sh is bash or ksh, which is not true
on Solaris.

Related Objects

Event Timeline

It requires a POSIX shell and as far as I can see there is no dependency on a
non-standard feature. In particualr the check:

if [ "$GNUPGHOME" != "pwd" ]; then

echo "inittests: please set GNUPGHOME to the test directory" >&2
exit 1

fi

seems to be correct. May that be a bug in the Solaris shell?

Not a bug - sorry. bash returns a different value for pwd on my system than
does sh/ksh. This is because I have a symlink in my path.

Maybe this would be more portable:

if [ "readlink -f \"$GNUPGHOME\"" != "pwd -P" ]; then

I think the easiest fix is to use /bin/pwd at both places.

werner claimed this task.
werner removed a project: Restricted Project.

Finally fixed in 2.0.11
(restored T1001 (wk on Mar 03 2009, 04:58 PM / Roundup))