Re: Android/Termux: How to build gpg-agent without maintainer mode?

2018-08-22 Thread Felix E. Klee
On 8/22/18, Dirk Gottschalk 
wrote:
> This depends on the source of your source version. If it is from a
> release tarball, this shouldn't bother you.
>
> I only get this warning if I have compiled from the GIT repository.

Uh oh, I didn’t check out a release! Changed the [build
instructions][1] now to also include:

$ git checkout gnupg-2.2.9 # matches GnuPG in Termux

Thanks for pointing me in the right direction!

> I don't know if it is possible to compile only the agent.

Doesn’t really matter anyhow. The compile process on my phone is quite
fast, profiting from the multi core architecture.

[1]: https://gist.github.com/feklee/92f76d2c8a7cabc477360d82b5305c19

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Android/Termux: How to build gpg-agent without maintainer mode?

2018-08-22 Thread Dirk Gottschalk via Gnupg-users
Am Mittwoch, den 22.08.2018, 13:21 +0200 schrieb Felix E. Klee:
> On Wed, Aug 22, 2018 at 1:08 PM, Dirk Gottschalk
>  wrote:
> > There's nothing what should "bug" you.
> 
> Well if I call `g10/gpg` in the build, I get a big fat warning:
> 
> gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
> gpg: It is only intended for test purposes and should NOT be
> gpg: used in a production environment or with production keys!
> 
> *Shouldn’t that bug me?*

This depends on the source of your source version. If it is from a
release tarball, this shouldn't bother you.

I only get this warning if I have compiled from the GIT repository.

> That being said:
> 
>   * The `agent/gpg-agent` does not output the warning.
> 
>   * As said in my original post, I am only interested in the agent.
> It
> is compatible with the `gpg` provided with Termux.

I don't know if it is possible to compile only the agent. 

Regards,
Dirk

-- 
Dirk Gottschalk
Paulusstrasse 6-8
52064 Aachen, Germany

GPG: DDCB AF8E 0132 AA54 20AB  B864 4081 0B18 1ED8 E838
Keybase.io: https://keybase.io/dgottschalk
GitHub: https://github.com/Dirk1980ac



signature.asc
Description: This is a digitally signed message part
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Android/Termux: How to build gpg-agent without maintainer mode?

2018-08-22 Thread Felix E. Klee
On Wed, Aug 22, 2018 at 1:08 PM, Dirk Gottschalk
 wrote:
> There's nothing what should "bug" you.

Well if I call `g10/gpg` in the build, I get a big fat warning:

gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!

*Shouldn’t that bug me?*

That being said:

  * The `agent/gpg-agent` does not output the warning.

  * As said in my original post, I am only interested in the agent. It
is compatible with the `gpg` provided with Termux.

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Android/Termux: How to build gpg-agent without maintainer mode?

2018-08-22 Thread Dirk Gottschalk via Gnupg-users
Hi.

Am Mittwoch, den 22.08.2018, 11:07 +0200 schrieb Felix E. Klee:
> I managed to get `gpg-agent` run with USB smart card support under
> Android/Termux:
> 
> https://gist.github.com/feklee/92f76d2c8a7cabc477360d82b5305c19
> 
> What bugs me is that I had to compile in maintainer mode: Now I get
> warnings that the software should not used be used with production
> keys.
> 
> Maintainer mode is in fact suggested by `autogen.sh`:
> [...snipped...]

Maintainer mode is needed, especially in a fresh copy of the source. In
case of GnuPG, maintainer mode invokes some functions and does some
work which is needed to compile GnuPG. There's nothing what should
"bug" you.

Regards,
Dirk

-- 
Dirk Gottschalk
Paulusstrasse 6-8
52064 Aachen, Germany

GPG: DDCB AF8E 0132 AA54 20AB  B864 4081 0B18 1ED8 E838
Keybase.io: https://keybase.io/dgottschalk
GitHub: https://github.com/Dirk1980ac



signature.asc
Description: This is a digitally signed message part
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Android/Termux: How to build gpg-agent without maintainer mode?

2018-08-22 Thread Felix E. Klee
I managed to get `gpg-agent` run with USB smart card support under
Android/Termux:

https://gist.github.com/feklee/92f76d2c8a7cabc477360d82b5305c19

What bugs me is that I had to compile in maintainer mode: Now I get
warnings that the software should not used be used with production keys.

Maintainer mode is in fact suggested by `autogen.sh`:

$ git clone git://git.gnupg.org/gnupg.git
[…]
$ cd gnupg
$ export C_INCLUDE_PATH=$PREFIX/include/:$PREFIX/include/libusb-1.0/
:$PREFIX/include/libandroid-support
$ ./autogen.sh
[…]
autogen.sh: You may now run:
  ./configure --sysconfdir=/etc --enable-maintainer-mode  && make

If I try without maintainer mode, then I get:

$ ./configure
[output attached]
$ make
make  all-recursive
make[1]: Entering directory '/data/data/com.termux/files/home/src/g/
gnupg'
Making all in m4
make[2]: Entering directory '/data/data/com.termux/files/home/src/g/
gnupg/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/data/data/com.termux/files/home/src/g/
gnupg/m4'
Making all in common
make[2]: Entering directory '/data/data/com.termux/files/home/src/g/
gnupg/common'
make[2]: *** No rule to make target 'audit-events.h', needed by 'all
'.  Stop.
make[2]: Leaving directory '/data/data/com.termux/files/home/src/g/g
nupg/common'
make[1]: *** [Makefile:613: all-recursive] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/src/g/g
nupg'
make: *** [Makefile:533: all] Error 2

*How do I build `gpg-agent` without maintainer mode?*

Note that I only need the agent, so I could probably speed up compile
time by quite a lot if disable the other tools in `./configure`. But
that’s not a priority now.


configure_output
Description: Binary data
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users