From patchwork Thu Mar 17 21:08:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Pursel X-Patchwork-Id: 37908 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 5120B27BBE9; Thu, 17 Mar 2022 21:09:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS 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 10F0527BBEA for ; Thu, 17 Mar 2022 21:09:12 +0000 (GMT) Received: from localhost ([::1]:52870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUxMt-0008D1-70 for patchwork@mira.cbaines.net; Thu, 17 Mar 2022 17:09:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUxMk-0008Ch-IX for guix-patches@gnu.org; Thu, 17 Mar 2022 17:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33219) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nUxMk-0005zF-AM for guix-patches@gnu.org; Thu, 17 Mar 2022 17:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nUxMk-0005m6-5G for guix-patches@gnu.org; Thu, 17 Mar 2022 17:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#32947] Add java-xalan. References: <20181005151859.9616-1-dannym@scratchpost.org> In-Reply-To: <20181005151859.9616-1-dannym@scratchpost.org> Resent-From: Frank Pursel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Mar 2022 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32947 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 32947@debbugs.gnu.org Received: via spool by 32947-submit@debbugs.gnu.org id=B32947.164755129822138 (code B ref 32947); Thu, 17 Mar 2022 21:09:02 +0000 Received: (at 32947) by debbugs.gnu.org; 17 Mar 2022 21:08:18 +0000 Received: from localhost ([127.0.0.1]:55349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUxM2-0005l0-Fg for submit@debbugs.gnu.org; Thu, 17 Mar 2022 17:08:18 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:40611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nUxM0-0005kZ-Dw for 32947@debbugs.gnu.org; Thu, 17 Mar 2022 17:08:17 -0400 Received: by mail-pf1-f172.google.com with SMTP id d19so7818073pfv.7 for <32947@debbugs.gnu.org>; Thu, 17 Mar 2022 14:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=a1VTNg3wqjwafNl9lWUH6UdAGxR++s+NvXu0rO+iq34=; b=iaehxn2zFt14gPuG5KDFgxRRrIzmD43EPWRNbjr2ronj8BwMoWLg3EwGoLRiQoJ5ix r/rtP2E4xbztkm5tuCwCXgjg8RzL/Ic46NmGTwaKuTsLhpzoSyz4YFY6Ng76KHKmTBs3 pgpA8UfxntveYjTlwlw4iFJGJTA2dS9ZhFOJmWpV4QwXt6ciWK7xP2N3wX9D7DqQSbGq kAY1hz2mSWDTfcr22KzFwgykzszROAdofkQfhJGQJnDmXhaZTgSWFfzYgYTcoNdkMu+R xxd23DLf9xbczBo+J1uhoOnZSbBVC4wp+MotWkUgEzhNg5t+LXMOYks78j8VxlcGN/wL Uu6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=a1VTNg3wqjwafNl9lWUH6UdAGxR++s+NvXu0rO+iq34=; b=wh79Vcj0gFSIDetQpcjSTZAmifLzbWed+CcbWeQJLvA7oNZEPc+qRvkot+NFDYtuVA 2zaURYLIpCfSI32d8+ZOo74PEQev/Krv9f8Let5V3rH0mfaLZXvEwDI+3/UljtrKeSqv s39i6XHz6pp6q+ogwmc2ONJ3xMGlMiGWYDSA913IlOAnsTveNDAij/d4YNnNBhESgvRq QXHjhs3dNkrgjmV3xL2mJMLl0kaZlYD7hoRZgNGV5ESVcs7P5GLCrv2gy+Kf2m+yNolM Bix6b6473hENNbx+UzvxCJsJZ/FzQyr7VthBwb3TJozkmQmdxtaKB3GKfdXBspckmJQS hJYw== X-Gm-Message-State: AOAM532BqCfEsDcYhUAkuif0XL1BaTtf3YZLz5k73T7FYYga3RoJxjsS kTadb5cCl9d5o3hRijqLYEI= X-Google-Smtp-Source: ABdhPJxyHUFub9SGIs2Yfx9ZGF7qdx0hNnAsC89ubE4m164vYogNUhlCf2Z/rAeUPz3foXAdPhuLBg== X-Received: by 2002:a65:46c6:0:b0:380:c6ce:9f76 with SMTP id n6-20020a6546c6000000b00380c6ce9f76mr5340730pgr.334.1647551290268; Thu, 17 Mar 2022 14:08:10 -0700 (PDT) Received: from Ginko.local ([66.170.190.211]) by smtp.gmail.com with ESMTPSA id h6-20020a056a00218600b004f65315bb37sm8076553pfi.13.2022.03.17.14.08.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 14:08:09 -0700 (PDT) From: Frank Pursel X-Google-Original-From: Frank Pursel Date: Thu, 17 Mar 2022 14:08:07 -0700 Message-ID: <871qz0nv7s.fsf@Ginko.local.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 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 Hi Guix! I want to help get a version of xalan into guix. I independently posted issue#54145 to this end but errors were made. I've since learned of and from this prior work and want to offer an updated/improved patch to provide a java-xalan-interp package to fill this gap. This package is less ambitious than the original because it makes no attempt to build the xsltc base of xalan and instead settles for the likely slower, xslt base. The xslt base of xalan is likely slower than the xsltc base but, as far as I can tell, it provides the same functionality while not depending on the bundled cups and jflex jars. If it meets your scrutiny we may also be able to close two issues (this, 32947 and 54145) for the price of one! Regards, Frank Pursel acrow#guix From 6d711a86959049596e6c6110a830ba1c6c7cea50 Mon Sep 17 00:00:00 2001 Message-Id: <6d711a86959049596e6c6110a830ba1c6c7cea50.1647548555.git.frank.pursel@gmail.com> From: Frank Pursel Date: Wed, 23 Feb 2022 13:59:26 -0800 Subject: [PATCH] gnu: Add java-xalan-interp * gnu/packages/xml.scm (java-xalan-interp): New variable --- gnu/packages/xml.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 3ce5e771c7..94bcdff903 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -33,6 +33,7 @@ ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 David Larsson ;;; Copyright © 2021 Matthew James Kraai +;;; Copyright © 2022 Frank Pursel ;;; ;;; This file is part of GNU Guix. ;;; @@ -2592,3 +2593,64 @@ (define-public python-xmltodict (description "This package provides a Python library to convert XML to @code{OrderedDict}.") (license license:expat))) + +(define-public java-xalan-interp + (package + (name "java-xalan-interp") + (version "j_2_7_2") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://apache/xalan/xalan-j/source/xalan-" + version "-src.tar.gz")) + (sha256 + (base32 "166vg9i11qzi0vbv09abfb50q8caq8wr6zrwg0cwqws9k394l62w")) + (modules '((guix build utils))) + (snippet '(begin + ;; Removing bundled jars + (format #t "~%~a~%" "Removing Bundled Jars") + (for-each + (lambda (f) + (format #t "~/Deleting: ~a~%" f) + (delete-file f)) + (find-files "." "\\.jar$")))))) + (build-system ant-build-system) + (arguments + `(#:phases (modify-phases + %standard-phases + (add-after 'unpack 'prepare-for-build + (lambda* (#:key inputs outputs #:allow-other-keys) + (setenv "ANT_OPTS" "-Dxsltc.java_cup.not_needed=true") + (substitute* "build.xml" + ;; Only the interpretive compiler. xsltc contains a + ;; circular reference java_cup. + (("(