Home GnuPG
Diffusion GPGME 766355b5d4f6

Add configure option --enable-fixed-path.
766355b5d4f6Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add configure option --enable-fixed-path.

* configure.ac: Add option --enable-fixed-path.
(FIXED_SEARCH_PATH): New ac_define.
* src/posix-util.c (walk_path): Make use of the option.  Remove
current directory from fallback PATH.

Note that using this option PATH is entirely ignored by GPGME and only
the given value is used instead to locate the GnuPG binaries.

On Android the use of PATH is not desirable. Instead the GnuPG tools
are expected in a fixed directory. By using

./configure --enable-fixed-path="/foo/bar"

gpg et al are expected to be installed as /foo/bar/gpg. With

./configure --enable-fixed-path="/foo/bar:/bin"

gpg is expected as /foo/bar/gpg or /bin/gpg.

Details

Provenance
wernerAuthored on Mar 13 2014, 2:24 PM
Parents
rMdd9c8c56719d: Avoid pointer arithmetic on void pointer.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM766355b5d4f6: Add configure option --enable-fixed-path. (authored by Werner Koch <wk@gnupg.org>).Mar 13 2014, 2:24 PM