add gnupg-for-java fork to git.gnupg.org

Hans-Christoph Steiner hans at guardianproject.info
Wed Jul 30 22:55:16 CEST 2014



On 07/30/2014 02:56 PM, Robert J. Hansen wrote:
>> On http://git.gnupg.org/ it lists the old, unmaintained
>> gnupg-for-java.  Could this page instead point to the maintained
>> version that works with gnupg 2.x?
> 
> I would like to see it compile out of the box first.  From a checkout
> made just a few minutes ago on a fully updated Fedora 20 box with all
> the necessary development libraries and the latest Java 1.8 JDK:
> 
> =====
> 
> 
> [rjh at flynn gnupg-for-java]$ ant
> Buildfile: /home/rjh/Projects/gnupg-for-java/build.xml
> 
> prepare:
> 
> compile-java:
>     [mkdir] Created dir: /home/rjh/Projects/gnupg-for-java/build/classes
>     [javac] /home/rjh/Projects/gnupg-for-java/build.xml:21: warning:
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
> set to false for repeatable builds
>     [javac] Compiling 8 source files to
> /home/rjh/Projects/gnupg-for-java/build/classes
> 
> gen-jni-headers:
> 
> prepare:
> 
> compile-java:
>     [javac] /home/rjh/Projects/gnupg-for-java/build.xml:21: warning:
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
> set to false for repeatable builds
> 
> generate-jni-headers:
>      [exec] /usr/java/jdk1.8.0_11/bin/javah -classpath
> /home/rjh/Projects/gnupg-for-java/build/classes -jni
> com.freiheit.gnupg.GnuPGContext  com.freiheit.gnupg.GnuPGData
> com.freiheit.gnupg.GnuPGGenkeyResult  com.freiheit.gnupg.GnuPGKey
> com.freiheit.gnupg.GnuPGSignature
> 
> gen-jni-library:
> 
> recompile-c-code:
>      [exec] gcc -g -Werror -Wall -Wno-deprecated-declarations -fPIC
> -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1
> -I"/usr/java/jdk1.8.0_11/include"
> -I"/usr/java/jdk1.8.0_11/include/linux" -c GnuPGContext.c
>      [exec] GnuPGContext.c: In function
> ‘Java_com_freiheit_gnupg_GnuPGContext_gpgmeGetSignersLength’:
>      [exec] GnuPGContext.c:487:5: error: implicit declaration of
> function ‘gpgme_signers_count’ [-Werror=implicit-function-declaration]
>      [exec]      return (gpgme_signers_count(CONTEXT(context)));
>      [exec]      ^
>      [exec] cc1: all warnings being treated as errors
>      [exec] make: *** [GnuPGContext.o] Error 1
> 
> BUILD FAILED
> /home/rjh/Projects/gnupg-for-java/build.xml:81: The following error
> occurred while executing this line:
> /home/rjh/Projects/gnupg-for-java/build.xml:74: exec returned: 2
> 
> Total time: 4 seconds

I should have said works with GnuPG >=2.1 and gpgme >= 1.5.x, since it was
developed using the latest versions of the GnuPG suite.  gpgme_signers_count()
is a function that was added in gpgme 1.5.0.  It should be easy to do a basic
port to GnuPG 2.0 and gpgme 1.4.3 if there is demand.

Does the old gnupg-for-java still compile on your setup?  As far as I
remember, it does not work with GnuPG 2.x at all.  And it is quite bare bones,
we've added a lot of functionality and some tests to gnupg-for-java.

I pushed a commit that declares 1.5.0 as the minimum gpgme version.

.hc


-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 904 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20140730/aff97b10/attachment.sig>


More information about the Gnupg-devel mailing list