From patchwork Thu Feb 24 18:26:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Pursel X-Patchwork-Id: 37449 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 BB2EF27BBEA; Thu, 24 Feb 2022 18:27:32 +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 315C727BBE9 for ; Thu, 24 Feb 2022 18:27:32 +0000 (GMT) Received: from localhost ([::1]:42796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNIpv-0003p4-BY for patchwork@mira.cbaines.net; Thu, 24 Feb 2022 13:27:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNIpS-0003f0-Ip for guix-patches@gnu.org; Thu, 24 Feb 2022 13:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNIpS-0001Xq-8V for guix-patches@gnu.org; Thu, 24 Feb 2022 13:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNIpS-0008Bc-5Y for guix-patches@gnu.org; Thu, 24 Feb 2022 13:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54145] [PATCH] Adding package for xalan Resent-From: Frank Pursel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Feb 2022 18:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54145 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54145@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164572719631434 (code B ref -1); Thu, 24 Feb 2022 18:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Feb 2022 18:26:36 +0000 Received: from localhost ([127.0.0.1]:50381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNIp1-0008Av-S2 for submit@debbugs.gnu.org; Thu, 24 Feb 2022 13:26:36 -0500 Received: from lists.gnu.org ([209.51.188.17]:60672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNIoz-0008An-JG for submit@debbugs.gnu.org; Thu, 24 Feb 2022 13:26:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNIoz-0003Eg-DO for guix-patches@gnu.org; Thu, 24 Feb 2022 13:26:33 -0500 Received: from [2607:f8b0:4864:20::102f] (port=46000 helo=mail-pj1-x102f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNIox-0001Tk-B0 for guix-patches@gnu.org; Thu, 24 Feb 2022 13:26:33 -0500 Received: by mail-pj1-x102f.google.com with SMTP id bx9-20020a17090af48900b001bc64ee7d3cso2696528pjb.4 for ; Thu, 24 Feb 2022 10:26:30 -0800 (PST) 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=WOAitwByAZKWVSVbCq8ELkzcspXwp/JSYvadXt7/uFY=; b=QNPd3qE64MU8CuBtAVG9CoGA3crKSykUlizsRVvkOjjuR0BoW9J4qvjS97LEDeE4eu NCZ/76D0TrtsXMzxUtIzy/kpvsuplKSriX7KGCFVAs0UIbMVYXQMgdOq6U8FG2nhyapc vYZW31aLU4MzLX7Tceh77KzJqRoaag7xktMHiDXM9pNeE3N6LyPM+pWdAg+rag+Ob4C3 smCAJWRzDuQ+zm6kj6fynAZtPV59w+Ay7tTVolXuDxFF7N4ibsV+bWUwovRMxYfeLsbw hGUX1ZdXzZ/bzNJtiJNsRMag6+yKXQ4LQAr1SMWtNFNyoKDlJXMxqtIiAu4xcaQueOsq Zuog== 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=WOAitwByAZKWVSVbCq8ELkzcspXwp/JSYvadXt7/uFY=; b=MOxdPigG9vuQ+qjao7uSyTVyth529bOQTXaPkHVQ4huNtpkRAvRVRdSwkCD75QNPnr chMPBMwhtFk1Puvj+dPZD6wk8UnfZIp/o5GcYus+E+g8tRV+QiUNP7PiD7OVmmH7Eb+e 4Er9xvvytMm8T7UZCjYDF5QDdS1J0hdCGgnDJBOQPCGBByI0DydS0Ux4HQFbKYvBkbyn kytxQQVe2zItLB/z5/9KXusP7TW3czQLPFkfExNvbcG4RghGHc8tai894SOQT0uCBL3g +ngoW2IyvySOKE/BKU8a5iDrDsbIO0zFtpjHLCpp++Gm7JGBv8ulSQ+PvYoZmQCY7geg Oiuw== X-Gm-Message-State: AOAM530e7WNoxrpkR/u44O/Hb6Fti8bjuhWRvV0Jk0fKwDm8RGHzXaaH 51BpkM45pLm1EjccmMF8QB05/QzSIKI= X-Google-Smtp-Source: ABdhPJyqkFPJtxAjSgnvqEM0WxZMxlqKesaobabuJpycgEHJtvgJuJa7Tz8iAm1D7lu9NoOmDHyrRg== X-Received: by 2002:a17:903:4091:b0:14f:df60:45b with SMTP id z17-20020a170903409100b0014fdf60045bmr3954678plc.154.1645727188959; Thu, 24 Feb 2022 10:26:28 -0800 (PST) Received: from Ginko.local ([66.170.190.211]) by smtp.gmail.com with ESMTPSA id 7-20020a631447000000b00372c65ad7bbsm194259pgu.73.2022.02.24.10.26.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 10:26:28 -0800 (PST) From: Frank Pursel Date: Thu, 24 Feb 2022 10:26:26 -0800 Message-ID: <87bkywqfxp.fsf@gmail.com> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102f (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=frank.pursel@gmail.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 Hi, Xalan is another venerable package that I've seen we need to get other things to work. This is clean and works well with others. Regards, Frank From 866c9adc6c7d47ef7e4bab4b37abddcec79c1844 Mon Sep 17 00:00:00 2001 Message-Id: <866c9adc6c7d47ef7e4bab4b37abddcec79c1844.1645726878.git.frank.pursel@gmail.com> From: Frank Pursel Date: Wed, 23 Feb 2022 13:59:26 -0800 Subject: [PATCH 1/3] xalan builds but may depend on bundled jars. --- gnu/packages/xml.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 6a897648eb..ef3f322516 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -2595,3 +2595,39 @@ (define-public python-xmltodict (description "This package provides a Python library to convert XML to @code{OrderedDict}.") (license license:expat))) + +(define-public xalan + (package + (name "xalan") + (version "j_2_7_2") + (source + (origin + (method url-fetch) + (uri (string-append "https://dlcdn.apache.org/xalan/xalan-j/source/xalan-" + version "-src.tar.gz")) + (sha256 + (base32 "166vg9i11qzi0vbv09abfb50q8caq8wr6zrwg0cwqws9k394l62w")))) + (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"))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (jar (string-append out "/share/java/"))) + (install-file "build/xalan.jar" jar) + (install-file "build/serializer.jar" jar)))) + (delete 'generate-jar-indices) + ;; (add-after 'install 'fail + ;; (lambda _ + ;; (fail))) + ))) + (native-inputs (list java-junit java-hamcrest-core)) + (home-page "https://xalan.apache.org/xalan-j/index.html") + (synopsis "Java XSLT processor") + (description "XSLT processor in java implementing XSLT Version 1.0, XPath +Version 1.0, and JAXP 1.3. It builds on SAX2 and DOM level 3.") + (license license:asl2.0))) -- 2.34.0 From 9c63946b3c65a65551daaa12ade79dbf3d99a9ae Mon Sep 17 00:00:00 2001 Message-Id: <9c63946b3c65a65551daaa12ade79dbf3d99a9ae.1645726878.git.frank.pursel@gmail.com> In-Reply-To: <866c9adc6c7d47ef7e4bab4b37abddcec79c1844.1645726878.git.frank.pursel@gmail.com> References: <866c9adc6c7d47ef7e4bab4b37abddcec79c1844.1645726878.git.frank.pursel@gmail.com> From: Frank Pursel Date: Thu, 24 Feb 2022 10:03:07 -0800 Subject: [PATCH] Adding a package for xalan * gnu/packages/xml.scm (xalan): Added package. diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 6a897648eb..d56228093c 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. ;;; @@ -2595,3 +2596,62 @@ (define-public python-xmltodict (description "This package provides a Python library to convert XML to @code{OrderedDict}.") (license license:expat))) + +(define-public xalan + (package + (name "xalan") + (version "j_2_7_2") + (source + (origin + (method url-fetch) + (uri (string-append "https://dlcdn.apache.org/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. + (("(