From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id k3A6EFnoeGCLVgEAgWs5BA (envelope-from ) for ; Fri, 16 Apr 2021 03:28:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mLogBVnoeGDHUwAA1q6Kng (envelope-from ) for ; Fri, 16 Apr 2021 01:28:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C97CFF353 for ; Fri, 16 Apr 2021 03:28:56 +0200 (CEST) Received: from localhost ([::1]:44530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXDI0-0006ai-0y for larch@yhetil.org; Thu, 15 Apr 2021 21:28:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXDGM-0005tK-3w for guix-patches@gnu.org; Thu, 15 Apr 2021 21:27:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXDGB-0003Ir-4I for guix-patches@gnu.org; Thu, 15 Apr 2021 21:27:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXDGB-0008Rd-1Z for guix-patches@gnu.org; Thu, 15 Apr 2021 21:27:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47789] [PATCH 1/6] gnu: Add java-gson-2.8.6. Resent-From: Mike Gerwitz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Apr 2021 01:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47789 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47789@debbugs.gnu.org Received: via spool by 47789-submit@debbugs.gnu.org id=B47789.161853639132362 (code B ref 47789); Fri, 16 Apr 2021 01:27:02 +0000 Received: (at 47789) by debbugs.gnu.org; 16 Apr 2021 01:26:31 +0000 Received: from localhost ([127.0.0.1]:39635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXDFe-0008Pu-TL for submit@debbugs.gnu.org; Thu, 15 Apr 2021 21:26:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXDFb-0008PF-Ct for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 21:26:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47747) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXDFW-00030I-6B for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 21:26:22 -0400 Received: from localhost ([::1]:39222 helo=mikegerwitz-pc) by fencepost.gnu.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXDFS-0000Zy-IF for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 21:26:21 -0400 From: Mike Gerwitz In-Reply-To: Date: Thu, 15 Apr 2021 21:23:42 -0400 References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) X-From-Line: 3f7bbd67919d869d70b267f8fd8d8edb90d59b65 Mon Sep 17 00:00:00 2001 Message-Id: <3f7bbd67919d869d70b267f8fd8d8edb90d59b65.1618536137.git.mtg@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618536536; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=sckOgnVCN0X7SlwRUFev5CU9wj+4RQhyQ16bwYB7bXs=; b=JVqvEuJgnuWixNNEOJKhJT5ViPQHKHxoehHQpXULaIfPGKQ0ey+fybqEESHU/UYfFgEBou Gp6231Fxe70J/D5bWlrEuR8YnFDTuW1/HV6FCXGtlX+Uq2gIoi7VNMHMXKAGUzj0qjdjKa nZHh5q36DgHIzMyL0hQ3irskhB/0mNKXePhpF7jAB+/SEte7VjtF4tZavCsymIMXnop5SJ /Ru2Ovb7wBA8SFZbVVVx6ieRX7SHupadeD2m4K0b0fbWGdMH9FOxn7somNO0Iys5wXE4B/ whx6fbgckpWVpSDpi9YFNU/wIY5aIVgNESbkr2voD09kKPUlOr4v7BZBOASrVw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618536536; a=rsa-sha256; cv=none; b=NvmFFqq2J8k9J0kOAnQMQjCpriKVQsW4J1MCkPIHkGyE6K7nycXMD5YBdDYO1AWnedsyb6 2XMFPS0d1b++uy9Kykt73kwKsDAotUxHOICVIoy+VRwKlL0OaGCbLgy57J6AI8f82WwEkz 6C+UAK1vEgofFRsC1MbqFd6LDPivVQfLT5a0mOKMSW95APg8hUE9EwXcUwsG2kTe65sHDz G9BvmfVe9LjTOgHbz0pwsRnOUBIwAb3PZR6FJONpQmRhLvHjSDI4g50Ja5749PSfRuIJxP TVitnTPCD9SLXMl9QZ6w8g0NWedtbRm0QRk/a2Rwg0SoNUdG6pAkx0luEIB9BA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C97CFF353 X-Spam-Score: -4.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: TtnUNPoAodvB --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This introduces a new package rather than upgrading the exist java-gson package because it is built using OpenJDK11; I didn't want to have to propagate that JDK dependency to the other packages that use it. OpenJDK 11 was chosen becuase this dependency was introduced for tla2tools. * gnu/packages/java.scm (java-gson-2.8.6): New variable. =2D-- gnu/packages/java.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 207f136513..62f684a74c 100644 =2D-- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -15,6 +15,7 @@ ;;; Copyright =C2=A9 2020 Raghav Gururajan ;;; Copyright =C2=A9 2020 Maxim Cournoyer ;;; Copyright =C2=A9 2021 Vincent Legoll +;;; Copyright =C2=A9 2021 Mike Gerwitz ;;; ;;; This file is part of GNU Guix. ;;; @@ -11724,6 +11725,37 @@ string to an equivalent Java object. Gson can wor= k with arbitrary Java objects including pre-existing objects that you do not have source-code of.") (license license:asl2.0))) =20 +;; This requires a different Java version than 2.8.2 above +(define-public java-gson-2.8.6 + (package + (inherit java-gson) + (name "java-gson") + (version "2.8.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/gson") + (commit (string-append "gson-parent-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0kk5p3vichdb0ph1lzknrcpbklgnmq455mngmjpxvvj29p3rgpk3")))) + (arguments + `(#:jar-name "gson.jar" + #:jdk ,openjdk11 + #:source-dir "gson/src/main/java" + #:test-dir "gson/src/test" + #:phases + (modify-phases %standard-phases + ;; avoid Maven dependency + (add-before 'build 'fill-template + (lambda _ + (with-directory-excursion "gson/src/main" + (copy-file "java-templates/com/google/gson/internal/GsonBui= ldConfig.java" + "java/com/google/gson/internal/GsonBuildConfig.j= ava") + (substitute* "java/com/google/gson/internal/GsonBuildConfig= .java" + (("\\$\\{project.version\\}") ,version)))))))))) + (define-public java-hawtjni (package (name "java-hawtjni") =2D-=20 Mike Gerwitz Activist For User Freedom | GNU Maintainer & Volunteer GPG: D6E9 B930 028A 6C38 F43B 2388 FEF6 3574 5E6F 6D05 https://mikegerwitz.com --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEtyLNo03iHAANpWtgjJF7f13FG6IFAmB45yEACgkQjJF7f13F G6LILA/8CGmJjPoz8oqxLwievO5/47umEbVNxJEQWl+O9HEYcodUrocXAU0ft8fL VhiOC+2cksTog4NfpMDrn0GfN7+t1o2R144xyYsJHkjJyuAHDj9Y0QRII+Tt7bBk MDC87YvgGEqD8zbF3B1xdZ+v5IBUJ7E+gCfizrntVBId/g4NgeEplXMjBHBQXNXY /Vp1loYzEmaoFMwBo/ZHY0RxEm1/2Hcv3PeDOxjNVfP9s0ANiGx3Ck6atTAennwn Ma6lJWzwLNPeCJXHXR04q4SXFIyBSPPm3Ii6nJ/oseTQ4O41qmlx/scQmTwDFRds KDGRdvqKbQ42eGZxnJWjN9MKkEHEHQAWlptkIa/ga8D4Int6zL/sm1IR4hbbGEjT uioQYEz99DwU9RH27XnJaYdB8qB9M9dxkPCBLfDvC6K0Oe/U14zNvSNwrl7s4dbB 6/bGAg1bvvZDABs5Aii4bUbK4OX6o1Icpv/NvYoo2V80eRS7UPpvmNX2mpiVNFea 3/h0fXbbS5uF+xsfmOJsPtl/D9zG6DG+ZGsLzsMhgmOmm9lwsKcwisSN3tjg4rVK KKaSPA975tt5u38hg56xlFrqKgJxHcPYDawUv+p5BB2TIDFxZGj2xMQI3fb2Keau IjtQEIcoUurIoZH31mbETiuqy7B+05b7XUMmO7aZfgKNfX1BgVA= =xF35 -----END PGP SIGNATURE----- --=-=-=--