From patchwork Sun Sep 11 05:34:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 42459 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7F90327BBEA; Sun, 11 Sep 2022 06:42:38 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B1C0027BBE9 for ; Sun, 11 Sep 2022 06:42:37 +0100 (BST) Received: from localhost ([::1]:53632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXFjo-0001yA-R6 for patchwork@mira.cbaines.net; Sun, 11 Sep 2022 01:42:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXFdT-0007AM-3B for guix-patches@gnu.org; Sun, 11 Sep 2022 01:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXFdS-0006m1-Gd for guix-patches@gnu.org; Sun, 11 Sep 2022 01:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oXFdS-0000WS-6C for guix-patches@gnu.org; Sun, 11 Sep 2022 01:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57724] [PATCH] gnu: Add java-slf4j-nop. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Sep 2022 05:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57724 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57724@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16628745031939 (code B ref -1); Sun, 11 Sep 2022 05:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Sep 2022 05:35:03 +0000 Received: from localhost ([127.0.0.1]:40637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXFcU-0000VB-Qz for submit@debbugs.gnu.org; Sun, 11 Sep 2022 01:35:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:52234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oXFcS-0000Ug-CP for submit@debbugs.gnu.org; Sun, 11 Sep 2022 01:35:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXFcS-0006pi-1y for guix-patches@gnu.org; Sun, 11 Sep 2022 01:35:00 -0400 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:39798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXFcP-0006SF-HL for guix-patches@gnu.org; Sun, 11 Sep 2022 01:34:59 -0400 Received: by mail-lj1-x230.google.com with SMTP id bn9so6914197ljb.6 for ; Sat, 10 Sep 2022 22:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date; bh=UzkTCB9Tb7LMXoHS9Um2jm7hou3j4R3TnRZmgdiExBc=; b=qe/AYQMh7MFnFa4tjrlGpQOuT1uqKy6o5uuBsr/0oAHZmPTtFyVobB9WjE+t9Xt09k Ub9PMjNgkVyMf9dxmJIGPVTqMzOAQZdoVXuNFDrOmyd5G+lfCiv2IPQS8ZAu9O8ssks4 86Vdx7imrmVOtNS0v0idco6Oh7keVqumXEXjbbFpMVBTkBUNtsrtTz/Dd4FHBhIwxIPE yu+goOqw4uAZJIp2IU9BVWEV1FOgOsn1RJzAeK+1pT3PXGoFoX+Nca98h6eGIM9CTGAh g5Dpr3tbK13HIo3zID5otlegmW/ONIO7s1pYxDVQks6ie23/TVUSBcgFHQ2AFgfkJay1 9zUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date; bh=UzkTCB9Tb7LMXoHS9Um2jm7hou3j4R3TnRZmgdiExBc=; b=jsDicsQFWcQE/eThVB/MEeCGX6GAmSuNfe4m8pEfrp5tZVJiXRBh8x29eQqnRv0chs NZg3FHQw/TbU47MazbgkUAYZ1GdVDykRiljJwdGsKOKkHUhoZKLGwcpSWnDGVMOrBsSd NSlHWyrsvSY2r+5HxZjWuj+hLKd2vVUspO7lBLepCnpqjcfTZcfs1Gadul++HTcKQeKG ATg4glaozyH+mz608+WM0WcdcXhULN+BevNkfUmOUeQRSzupHRj/DLa4FKSRWVY4hvbD UNIIwuLZQu8A0xVyHzopVe3ID/x2jCwfWifV7IGsaveW0boMD0txrf+mIgLOkPHAIo56 Q67w== X-Gm-Message-State: ACgBeo32r9oreUY7XX3GoNZzc8Ux8Yv0PgHEErUQK9G/cTLzsPWp2P/q sxDykD0yGRHhq1w0Lh51HV/8M8xSq1c= X-Google-Smtp-Source: AA6agR4vxzknvvc6wCgfbrtoU3OGB1/ac9+87qWauf2CRn5JpWbcubDnwOvQgVWgCPj55WkCQtj3rg== X-Received: by 2002:a05:651c:101:b0:250:896d:f870 with SMTP id a1-20020a05651c010100b00250896df870mr6582864ljb.235.1662874495370; Sat, 10 Sep 2022 22:34:55 -0700 (PDT) Received: from elephant ([5.166.205.177]) by smtp.gmail.com with ESMTPSA id k16-20020a2eb750000000b0026bdb7ad643sm544429ljo.50.2022.09.10.22.34.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Sep 2022 22:34:54 -0700 (PDT) From: "Artyom V. Poptsov" Date: Sun, 11 Sep 2022 08:34:54 +0300 Message-ID: <87o7vmjwxt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x230.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, this patch adds "java-slf4j-nop". [1] - Artyom References: 1. "Binding/provider for NOP, an implementation that silently discards all logging messages." From 1368333635491a4bbe6f294f016a8cb63912ff35 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Fri, 9 Sep 2022 19:49:56 +0300 Subject: [PATCH] gnu: Add java-slf4j-nop. * gnu/packages/java.scm (java-slf4j-nop): New variable. --- gnu/packages/java.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 9fa9f61f12..45c3b423f0 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -8168,6 +8168,38 @@ (define-public java-slf4j-simple printed.") (license license:expat))) +(define-public java-slf4j-nop + (package + (name "java-slf4j-nop") + (version "1.7.25") + (source (package-source java-slf4j-api)) + (build-system ant-build-system) + (arguments + `(#:jar-name "slf4j-nop.jar" + #:source-dir "slf4j-nop/src/main" + #:test-dir "slf4j-nop/src/test" + #:phases (modify-phases %standard-phases + ;; The tests need some test classes from slf4j-api + (add-before 'check 'build-slf4j-api-test-helpers + (lambda _ + ;; Add current dir to CLASSPATH ... + (setenv "CLASSPATH" + (string-append (getcwd) ":" + (getenv "CLASSPATH"))) + ;; ... and build test helper classes here: + (apply invoke + `("javac" "-d" "." + ,@(find-files "slf4j-api/src/test" ".*\\.java"))))) + (replace 'install + (install-from-pom "slf4j-nop/pom.xml"))))) + (propagated-inputs (list java-slf4j-api)) + (native-inputs (list java-junit java-hamcrest-core)) + (home-page "https://www.slf4j.org/") + (synopsis "SLF4J binding that silently discards all logging messages") + (description "Binding/provider for NOP, an implementation that silently +discards all logging messages.") + (license license:expat))) + (define-public antlr2 (package (name "antlr2") -- 2.34.1