From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gJngKLcZeGBaxwAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 12:47:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sEG+IrcZeGDSOwAAbx9fmQ (envelope-from ) for ; Thu, 15 Apr 2021 10:47:19 +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 DAD5B1D7CB for ; Thu, 15 Apr 2021 12:47:18 +0200 (CEST) Received: from localhost ([::1]:60626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWzWn-0006zM-Fh for larch@yhetil.org; Thu, 15 Apr 2021 06:47:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWzWY-0006yI-Vr for guix-patches@gnu.org; Thu, 15 Apr 2021 06:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWzWY-0005BE-LQ for guix-patches@gnu.org; Thu, 15 Apr 2021 06:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWzWY-0002nx-If for guix-patches@gnu.org; Thu, 15 Apr 2021 06:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47789] [PATCH 1/6] gnu: Add java-gson-2.8.6. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Apr 2021 10:47: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: Mike Gerwitz ,47789@debbugs.gnu.org Received: via spool by 47789-submit@debbugs.gnu.org id=B47789.161848360210754 (code B ref 47789); Thu, 15 Apr 2021 10:47:02 +0000 Received: (at 47789) by debbugs.gnu.org; 15 Apr 2021 10:46:42 +0000 Received: from localhost ([127.0.0.1]:36580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWzWE-0002nO-5v for submit@debbugs.gnu.org; Thu, 15 Apr 2021 06:46:42 -0400 Received: from lepiller.eu ([89.234.186.109]:34308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWzWB-0002nE-Ps for 47789@debbugs.gnu.org; Thu, 15 Apr 2021 06:46:41 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id ea6a2885; Thu, 15 Apr 2021 10:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=2Ny01lHOkWbh8X2aOknxtjgp1W8yr1wbBGrrUNRgOY8=; b=EsRMXOBSctSc cyLS1jJL2653LKXui0NTBI6zfbkbAl4Ycpo8GUkvH1q3YPGOcCvRVSXKHzVgC50S kf3fm/SMtDufnG0avYzJestegLdeFE+KkBp2F9c4Ja8rRtr/x4NS82ECabSdctUm 44usNValEnMKL9PnlO5U1iqZRHZBvaKif+8iesixzgauPN94v+p7DRQUQOfqSSR3 86/EQctWq8wtICmRVHbq3wOrMz8mSDJxIbuBrFrzBUOmUMBsHImsshj92BIVOhbU H2aRpmMPPBbpFuUoqewn/Ofm6I68XEb5Jtoh5DvWHpUspNvoGtVlaz9OSSDfoiFp AYZDwf1wEg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id dbe27460 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Thu, 15 Apr 2021 10:46:36 +0000 (UTC) Date: Thu, 15 Apr 2021 06:46:21 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <0bb3e905602bcba367d14ad4ff20ef3caa54f72b.1618460450.git.mtg@gnu.org> References: <0bb3e905602bcba367d14ad4ff20ef3caa54f72b.1618460450.git.mtg@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Julien Lepiller Message-ID: <3EDAFE63-04AF-4D94-911E-B38BDFE0204A@lepiller.eu> 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=1618483639; 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: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=bHYuv3t4qYpG0iIVFeHKD0oRPwh5cleVHgUnJgLxMv0=; b=XPe7R6Fqu2SpieY18PA1np+YSJEE2+nQY9ucUJHIj8akZdZ3+Ms0iR9P+z+jK6oXf61DrE KoDE+oOrlNVLjseV8zTh//FrUmCxj22TyWzCEh1o99esnITquzWUsUqGO8bKI3exmF2CB3 t/pPLzMdQ3IuMFhpxN8yeeNTg/0Rk/FiyQsFep8+mhCm42+JWftwhTvFPOoUgCoCAqL3UI wS76ZxjmcVEzaRC6ckGPzxNNUxC4jTBZG3t52YGMVszC3WoPOExV9FLwXTPgW3GoCkKwOB Puv4lN5o9MwgcFvuRlRJKH1LIYOFZJn5RfdnnAshemSdhQRr5c0v0RjnzDyafg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618483639; a=rsa-sha256; cv=none; b=HeLIujbZxHYbWrdedPnYg+Gssfi2KSDbuziSIdkv68hQfzM2wJnNyCaLy11YlrHpLWa9EU TAidzURvgkz7j30AUU1N7oCOwlCKEqHWHLtNnyGWKRfRM93EhI27tc5g2TWOm3AF7hfxrM HtdKWCS/zftKDJX41Iz0pRjVQwTKdFsSWUrxeGwN53aAQFJ10w7SA6tJ98fqKa8lOBVl+P VL1HSvU8aDLwjWWtVhEkWzVvZ3sKUo4Rvu2V7gviQ/fPiBbRhW0oH4sJSvtkHew8tpOQ/5 reby++mkAFUfOOrBuqGTlBKvTN7NPfwKdJWhtfwsv8jWuX3TqVmzYT+MllFlfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=EsRMXOBS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=EsRMXOBS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); 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: DAD5B1D7CB X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8IuECaDqZST/ Le 15 avril 2021 00:25:10 GMT-04:00, Mike Gerwitz a =C3=A9c= rit : >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=2E > >OpenJDK 11 was chosen becuase this dependency was introduced for >tla2tools=2E > >* gnu/packages/java=2Escm (java-gson-2=2E8=2E6): New variable=2E >--- > gnu/packages/java=2Escm | 43 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > >diff --git a/gnu/packages/java=2Escm b/gnu/packages/java=2Escm >index 207f136513=2E=2Efe75404e9c 100644 >--- a/gnu/packages/java=2Escm >+++ b/gnu/packages/java=2Escm >@@ -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=2E > ;;; >@@ -11724,6 +11725,48 @@ string to an equivalent Java object=2E Gson can >work with arbitrary Java objects > including pre-existing objects that you do not have source-code of=2E") > (license license:asl2=2E0))) >=20 >+;; This requires a different Java version than 2=2E8=2E2 above >+(define-public java-gson-2=2E8=2E6 >+ (package >+ (name "java-gson") >+ (version "2=2E8=2E6") >+ (source (origin >+ (method git-fetch) >+ (uri (git-reference >+ (url "https://github=2Ecom/google/gson") >+ (commit (string-append "gson-parent-" version)))) >+ (file-name (git-file-name name version)) >+ (sha256 >+ (base32 >+ =20 >"0kk5p3vichdb0ph1lzknrcpbklgnmq455mngmjpxvvj29p3rgpk3")))) >+ (build-system ant-build-system) >+ (arguments >+ `(#:jar-name "gson=2Ejar" >+ #: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/GsonBuildConfig=2Ejava" >+ =20 >"java/com/google/gson/internal/GsonBuildConfig=2Ejava") >+ (substitute* >"java/com/google/gson/internal/GsonBuildConfig=2Ejava" >+ (("\\$\\{project=2Eversion\\}") ,version))) >+ #t))))) >+ (native-inputs >+ `(("java-junit" ,java-junit) >+ ("java-hamcrest-core" ,java-hamcrest-core))) >+ (home-page "https://github=2Ecom/google/gson") >+ (synopsis "Java serialization/deserialization library from/to >JSON") >+ (description "Gson is a Java library that can be used to convert >Java >+Objects into their JSON representation=2E It can also be used to >convert a JSON >+string to an equivalent Java object=2E Gson can work with arbitrary >Java objects >+including pre-existing objects that you do not have source-code of=2E") >+ (license license:asl2=2E0))) >+ > (define-public java-hawtjni > (package > (name "java-hawtjni") Hi! I think it would be easier to inherit from the existing package, right? Wh= y do you need this package at all? I know that mixing JDKs can result in er= rors if you use a dependency that was built with a more recent JDK that wha= t you use for a package, but the other way around should be fine, no? What error do you get if you use the existing package?