Mailing List Archive

gpg bug
I'm installing gpg from source and ran into a problem. I'm making
gnupg-2.2.20 on an iMac running macos 10.14.6. I've done

$ ./configure --prefix=$HOME/gnu
$ make

successfully. However, on make check I found that it doesn't work if I
have a space in PATH. I do because VMWare Fusion adds
"/Applications/VMware Fusion.app/Contents/Public" to PATH, but VMWare
Fusion isn't required to reproduce the problem, if I just do:

$ PATH="$PATH:a b" make check

I get (after the tests in common, kbx, sm, scd, and tools pass):

Making check in openpgp
LC_ALL=C EXEEXT=
PATH=../gpgscm:/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/blm/perl5/bin:/Users/blm/bin:/Users/blm/gnu/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:a
b abs_top_srcdir=/Users/blm/src/3rdparty/gpg/gnupg-2.2.20
objdir=/Users/blm/src/3rdparty/gpg/gnupg-2.2.20
GPGSCM_PATH=/Users/blm/src/3rdparty/gpg/gnupg-2.2.20/tests/gpgscm
/Users/blm/src/3rdparty/gpg/gnupg-2.2.20/tests/gpgscm/gpgscm \
/Users/blm/src/3rdparty/gpg/gnupg-2.2.20/tests/openpgp/run-tests.scm
/bin/sh: b: command not found
make[2]: *** [xcheck] Error 127
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1

If I don't add "a b" to PATH, make check completes successfully.

The workaround is obvious so I have everything installed and running,
but thought you might want to know.

I'm not on the mailing list and didn't want to create an account on the
bug tracking site just for this.

Thanks,
Brian

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpg bug [ In reply to ]
On Tue, 23 Jun 2020 14:21, Brian L. Matthews said:

> $ ./configure --prefix=$HOME/gnu
> $ make
>
> successfully. However, on make check I found that it doesn't work if I
> have a space in PATH. I do because VMWare Fusion adds

Sure. That can't work. You need to quote the envvar:

./configure --prefix="$HOME"/gnu



Salam-Shalom,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
Re: gpg bug [ In reply to ]
On Sun, 4 Oct 2020 18:28, Werner Koch said:
> On Tue, 23 Jun 2020 14:21, Brian L. Matthews said:
>
>> $ ./configure --prefix=$HOME/gnu
>> $ make
>>
>> successfully. However, on make check I found that it doesn't work if I
>> have a space in PATH. I do because VMWare Fusion adds
>
> Sure. That can't work. You need to quote the envvar:
>
> ./configure --prefix="$HOME"/gnu

Oops. The problem was PATH and not HOME.

Anyway this has been fixed in 2.2.23 with commit
b2590f2e47fe8ab7352a9e3769b195ff9f398dd7 .

(I need to port this fix to master, though.)


Salam-Shalom,

Werner



--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.