From unknown Mon Jun 23 23:52:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25925: [PATCH] gnu: Add fop. Resent-From: Roel Janssen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 01 Mar 2017 23:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 25925@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.148841274111113 (code B ref -1); Wed, 01 Mar 2017 23:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Mar 2017 23:59:01 +0000 Received: from localhost ([127.0.0.1]:35077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjE93-0002t8-KU for submit@debbugs.gnu.org; Wed, 01 Mar 2017 18:59:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjE92-0002st-61 for submit@debbugs.gnu.org; Wed, 01 Mar 2017 18:58:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjE8v-0002wO-Kn for submit@debbugs.gnu.org; Wed, 01 Mar 2017 18:58:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjE8v-0002wK-HJ for submit@debbugs.gnu.org; Wed, 01 Mar 2017 18:58:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjE8u-00060C-22 for guix-patches@gnu.org; Wed, 01 Mar 2017 18:58:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjE8q-0002tG-4C for guix-patches@gnu.org; Wed, 01 Mar 2017 18:58:48 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjE8q-0002sw-0v for guix-patches@gnu.org; Wed, 01 Mar 2017 18:58:44 -0500 Received: from ip112-245-209-87.adsl2.static.versatel.nl ([87.209.245.112]:63125 helo=antelope) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cjE8p-0003Vc-GM for guix-patches@gnu.org; Wed, 01 Mar 2017 18:58:43 -0500 User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen Date: Thu, 02 Mar 2017 00:58:39 +0100 Message-ID: <874lzcft1s.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Dear Guix, This package is a dependency for Darktable. Therefore, I would like to add it. >>From 99604dfc19cd9b68863fcc948ecbe4a853bc56f0 Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Thu, 2 Mar 2017 00:43:00 +0100 Subject: [PATCH] gnu: Add fop. * gnu/packages/xml.scm (fop): New variable. --- gnu/packages/xml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index b91471690..f7f861fbe 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2016 ng0 ;;; Copyright © 2016 Tobias Geerinckx-Rice ;;; Copyright © 2016 Marius Bakke +;;; Copyright © 2017 Roel Janssen ;;; ;;; This file is part of GNU Guix. ;;; @@ -42,6 +43,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix build-system ant) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) @@ -71,6 +73,46 @@ stream-oriented parser in which an application registers handlers for things the parser might find in the XML document (like start tags).") (license license:expat))) +(define-public fop + (package + (name "fop") + (version "2.1") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://apache/xmlgraphics/fop/source/fop-" + version "-src.tar.gz")) + (sha256 + (base32 + "165rx13q47l6qc29ppr7sg1z26vw830s3rkklj5ap7wgvy0ivbz5")))) + (build-system ant-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (system* (string-append (assoc-ref inputs "ant") "/bin/ant")))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (mkdir-p bin) + (install-file "build/fop.jar" bin) + (install-file "build/fop-hyph.jar" bin) + (install-file "build/fop-sandbox.jar" bin) + (install-file "build/fop-transcoder-allinone.jar" bin) + (install-file "build/fop-transcoder.jar" bin) + (install-file "fop" bin))))))) + (home-page "https://xmlgraphics.apache.org/fop/") + (synopsis "Formatting objects processor") + (description "Apache FOP is a print formatter driven by XSL formatting +objects (XSL-FO) and an output independent formatter. It is a Java application +that reads a formatting object (FO) tree and renders the resulting pages to a +specified output. Output formats currently supported include PDF, PS, PCL, +AFP, XML (area tree representation), Print, AWT and PNG, and to a lesser +extent, RTF and TXT. The primary output target is PDF.") + (license license:asl2.0))) + (define-public libxml2 (package (name "libxml2") -- 2.11.0 From unknown Mon Jun 23 23:52:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25925: [PATCH] gnu: Add fop. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 02 Mar 2017 00:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Roel Janssen , 25925@debbugs.gnu.org Received: via spool by 25925-submit@debbugs.gnu.org id=B25925.148841370212669 (code B ref 25925); Thu, 02 Mar 2017 00:16:01 +0000 Received: (at 25925) by debbugs.gnu.org; 2 Mar 2017 00:15:02 +0000 Received: from localhost ([127.0.0.1]:35098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjEOb-0003I7-K4 for submit@debbugs.gnu.org; Wed, 01 Mar 2017 19:15:01 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjEOZ-0003Hy-HK for 25925@debbugs.gnu.org; Wed, 01 Mar 2017 19:15:00 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CB63B20896; Wed, 1 Mar 2017 19:14:58 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 01 Mar 2017 19:14:58 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=Gn7Z4/ltl6cxczlIACamFNVF1fc=; b=SMz5gx 8oJEM7OT5MX74kPeM/L7Q0E9zb9o2bVNfrCgfg8loR2saLRgkc07u85RD5RGLGYS jE5vYamEVciI5eHsuHzpXglwYi2A8zr7GhHQSe0nRFVXDqwNryXM+qQK3xEac2B5 XcPqYnoa+TPkQMz5UJAUiS1ibq+UclkBogRJ8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Gn7Z4/ltl6cxcz lIACamFNVF1fc=; b=bJ1wVSHk9SyaJYtcUSSPjJf7szDjSUgreGvCYuQ3kltzkN 7Jm0ZKQlbyxb2gWVSHC2VvlTus1ylk3ZRPfmLkWWNYBr/RqMFDYHLFYPxHAhPOfw 9hyfO8L0NXy4PTUnw+VETSnMSy5E7/yEhcCmZblo1SMg/eLrOD74nw1v3laXM= X-ME-Sender: X-Sasl-enc: 5lali/+7uFuB1TgbxRDErpgPwMAMexQBo7P2HuqbSX6t 1488413698 Received: from localhost (unknown [188.113.81.93]) by mail.messagingengine.com (Postfix) with ESMTPA id 67A667E16B; Wed, 1 Mar 2017 19:14:58 -0500 (EST) From: Marius Bakke In-Reply-To: <874lzcft1s.fsf@gnu.org> References: <874lzcft1s.fsf@gnu.org> User-Agent: Notmuch/0.23.7 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu) Date: Thu, 02 Mar 2017 01:14:56 +0100 Message-ID: <87k288sfen.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Roel Janssen writes: > Dear Guix, > > This package is a dependency for Darktable. Therefore, I would like to > add it. > >>>From 99604dfc19cd9b68863fcc948ecbe4a853bc56f0 Mon Sep 17 00:00:00 2001 > From: Roel Janssen > Date: Thu, 2 Mar 2017 00:43:00 +0100 > Subject: [PATCH] gnu: Add fop. > > * gnu/packages/xml.scm (fop): New variable. > --- > gnu/packages/xml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 42 insertions(+) > > diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm > index b91471690..f7f861fbe 100644 > --- a/gnu/packages/xml.scm > +++ b/gnu/packages/xml.scm > @@ -14,6 +14,7 @@ > ;;; Copyright =C2=A9 2016 ng0 > ;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice > ;;; Copyright =C2=A9 2016 Marius Bakke > +;;; Copyright =C2=A9 2017 Roel Janssen > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -42,6 +43,7 @@ > #:use-module ((guix licenses) #:prefix license:) > #:use-module (guix packages) > #:use-module (guix download) > + #:use-module (guix build-system ant) > #:use-module (guix build-system cmake) > #:use-module (guix build-system gnu) > #:use-module (guix build-system perl) > @@ -71,6 +73,46 @@ stream-oriented parser in which an application registe= rs handlers for > things the parser might find in the XML document (like start tags).") > (license license:expat))) >=20=20 > +(define-public fop > + (package > + (name "fop") > + (version "2.1") > + (source (origin > + (method url-fetch) > + (uri (string-append > + "mirror://apache/xmlgraphics/fop/source/fop-" > + version "-src.tar.gz")) > + (sha256 > + (base32 > + "165rx13q47l6qc29ppr7sg1z26vw830s3rkklj5ap7wgvy0ivbz5"))= )) Ahh...java. Can you try removing some of the 21 bundled JARs with a 'snippet' here? We do have a couple of them in Guix already. Even better if you can package some more. > + (build-system ant-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (replace 'build > + (lambda* (#:key inputs #:allow-other-keys) > + (system* (string-append (assoc-ref inputs "ant") "/bin/ant"= )))) I'm not very familiar with ant-build-system, but isn't ant available in PATH here (so you can simply (system* "ant"))? It should probably also be wrapped in a (zero? (system* ..)) so that the return value is checked. > + (replace 'install > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (bin (string-append out "/bin"))) > + (mkdir-p bin) > + (install-file "build/fop.jar" bin) > + (install-file "build/fop-hyph.jar" bin) > + (install-file "build/fop-sandbox.jar" bin) > + (install-file "build/fop-transcoder-allinone.jar" bin) > + (install-file "build/fop-transcoder.jar" bin) > + (install-file "fop" bin))))))) "install-file" (or actually "copy-file" from reading (guix build utils) has an unspecified return value, so this phase should end with an explicit #t. > + (home-page "https://xmlgraphics.apache.org/fop/") > + (synopsis "Formatting objects processor") > + (description "Apache FOP is a print formatter driven by XSL formatti= ng > +objects (XSL-FO) and an output independent formatter. It is a Java appl= ication > +that reads a formatting object (FO) tree and renders the resulting pages= to a > +specified output. Output formats currently supported include PDF, PS, P= CL, > +AFP, XML (area tree representation), Print, AWT and PNG, and to a lesser > +extent, RTF and TXT. The primary output target is PDF.") > + (license license:asl2.0))) I did not do a license audit of this package, but please double check that all bundled software also carries this license (or mention theirs here). The rest LGTM. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAli3ZAEACgkQoqBt8qM6 VPoCKAf/ROFhqWwh/WvRCxJWQqR0KyR26jmw3z1ilPIFeNIq6FZ6h9t32G5FVE/e 1J7qpjQ0ePj1qO9tE+E864MXl4ErO0Ek4+KMhMVG8oJKEbFLoOyNGCaSSPDGms3Y T80d1v8sJTz+CTz1vT2yrBFrFSfPo/XcTfaDD3GoFva/Yr8X09kdgaiMPBHksoQ6 Y1xpXW9qhoehZHoo2WSOuqT/XiAmhhnHMSzqff35ZC7lYPuBS2xVVIvnD24gMffc wnBbOaFtgovWpuGtNcOel/V6EtuSBRMKj3LWpd1nq3E+XnkLuZLbn1nv3Gns4U9E Og+dF9ZDllscTXOLmIWqGdFG7RXzoA== =BO6N -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 13 09:17:19 2017 Received: (at control) by debbugs.gnu.org; 13 Mar 2017 13:17:19 +0000 Received: from localhost ([127.0.0.1]:53352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnPqh-0004A5-2q for submit@debbugs.gnu.org; Mon, 13 Mar 2017 09:17:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnPqf-00049r-R6 for control@debbugs.gnu.org; Mon, 13 Mar 2017 09:17:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnPqX-0006hR-M1 for control@debbugs.gnu.org; Mon, 13 Mar 2017 09:17:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnPqX-0006hN-I5 for control@debbugs.gnu.org; Mon, 13 Mar 2017 09:17:09 -0400 Received: from [193.50.110.140] (port=35368 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cnPqW-0003YJ-SJ for control@debbugs.gnu.org; Mon, 13 Mar 2017 09:17:09 -0400 Date: Mon, 13 Mar 2017 14:17:07 +0100 Message-Id: <87k27te2p8.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #25925 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.4 (-----) tags 25925 moreinfo From unknown Mon Jun 23 23:52:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25925: [PATCH] gnu: Add fop. Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Mar 2017 21:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: Marius Bakke Cc: 25925@debbugs.gnu.org, Roel Janssen Received: via spool by 25925-submit@debbugs.gnu.org id=B25925.14894416685775 (code B ref 25925); Mon, 13 Mar 2017 21:48:02 +0000 Received: (at 25925) by debbugs.gnu.org; 13 Mar 2017 21:47:48 +0000 Received: from localhost ([127.0.0.1]:54400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnXoi-0001V3-27 for submit@debbugs.gnu.org; Mon, 13 Mar 2017 17:47:48 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:45181 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnXmh-0001R9-Qb for 25925@debbugs.gnu.org; Mon, 13 Mar 2017 17:45:44 -0400 Received: from alma-ubu (pD9EA4DF6.dip0.t-ipconnect.de [217.234.77.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 9A8C440037; Mon, 13 Mar 2017 22:45:41 +0100 (CET) Date: Mon, 13 Mar 2017 22:45:40 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20170313224540.13591105@alma-ubu> In-Reply-To: <87k288sfen.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> References: <874lzcft1s.fsf@gnu.org> <87k288sfen.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Mon, 13 Mar 2017 17:47:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Thu, 02 Mar 2017 01:14:56 +0100 Marius Bakke wrote: > Roel Janssen writes: >=20 > > Dear Guix, > > > > This package is a dependency for Darktable. Therefore, I would > > like to add it. > > =20 > >>From 99604dfc19cd9b68863fcc948ecbe4a853bc56f0 Mon Sep 17 00:00:00 > >>2001 =20 > > From: Roel Janssen > > Date: Thu, 2 Mar 2017 00:43:00 +0100 > > Subject: [PATCH] gnu: Add fop. > > > > * gnu/packages/xml.scm (fop): New variable. > > --- > > gnu/packages/xml.scm | 42 > > ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 > > insertions(+) > > > > diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm > > index b91471690..f7f861fbe 100644 > > --- a/gnu/packages/xml.scm > > +++ b/gnu/packages/xml.scm > > @@ -14,6 +14,7 @@ > > ;;; Copyright =C2=A9 2016 ng0 > > ;;; Copyright =C2=A9 2016 Tobias Geerinckx-Rice > > ;;; Copyright =C2=A9 2016 Marius Bakke > > +;;; Copyright =C2=A9 2017 Roel Janssen > > ;;; > > ;;; This file is part of GNU Guix. > > ;;; > > @@ -42,6 +43,7 @@ > > #:use-module ((guix licenses) #:prefix license:) > > #:use-module (guix packages) > > #:use-module (guix download) > > + #:use-module (guix build-system ant) > > #:use-module (guix build-system cmake) > > #:use-module (guix build-system gnu) > > #:use-module (guix build-system perl) > > @@ -71,6 +73,46 @@ stream-oriented parser in which an application > > registers handlers for things the parser might find in the XML > > document (like start tags).") (license license:expat))) > > =20 > > +(define-public fop > > + (package > > + (name "fop") > > + (version "2.1") > > + (source (origin > > + (method url-fetch) > > + (uri (string-append > > + "mirror://apache/xmlgraphics/fop/source/fop-" > > + version "-src.tar.gz")) > > + (sha256 > > + (base32 > > + > > "165rx13q47l6qc29ppr7sg1z26vw830s3rkklj5ap7wgvy0ivbz5")))) =20 >=20 > Ahh...java. Can you try removing some of the 21 bundled JARs with a > 'snippet' here? We do have a couple of them in Guix already. Even > better if you can package some more. Hi Roel, as Marius already mentioned, Java people have the tendency to just put a bunch of (binary) jar files in a lib folder. In GuixSD, we want all dependencies be built and brought in by Guix. That has two advantages:=20 1. We can be sure that the dependencies are really what they claim to be, built from the available sources. 2. If there are (security) updates in the dependencies they will be updated automatically. Building the dependencies can be quite annoying, because they require other dependencies to be available, and so on ... That's one of the reasons why Java support in GuixSD is yet very limited. There is a patch-series by Hartmut Goebel not yet applied, containing connons-lang and commons-io: https://lists.gnu.org/archive/html/guix-devel/2016-09/threads.html#00774 Maybe you can start with these? Bj=C3=B6rn From unknown Mon Jun 23 23:52:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25925: [PATCH] gnu: Add fop. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Mar 2017 12:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Cc: Marius Bakke , 25925@debbugs.gnu.org Received: via spool by 25925-submit@debbugs.gnu.org id=B25925.149087706430499 (code B ref 25925); Thu, 30 Mar 2017 12:32:02 +0000 Received: (at 25925) by debbugs.gnu.org; 30 Mar 2017 12:31:04 +0000 Received: from localhost ([127.0.0.1]:52008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctZEF-0007vr-QA for submit@debbugs.gnu.org; Thu, 30 Mar 2017 08:31:04 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctZED-0007vS-JD for 25925@debbugs.gnu.org; Thu, 30 Mar 2017 08:31:02 -0400 Received: from localhost (141.80.148.164 [141.80.148.164]) by mx.zohomail.com with SMTPS id 149087705899641.845514084548654; Thu, 30 Mar 2017 05:30:58 -0700 (PDT) References: <874lzcft1s.fsf@gnu.org> <87k288sfen.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <20170313224540.13591105@alma-ubu> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Ricardo Wurmus In-reply-to: <20170313224540.13591105@alma-ubu> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 30 Mar 2017 15:02:15 +0200 Message-ID: <87mvc25354.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Björn Höfling writes: > There is a patch-series by Hartmut Goebel not yet applied, containing > connons-lang and commons-io: > > https://lists.gnu.org/archive/html/guix-devel/2016-09/threads.html#00774 > > Maybe you can start with these? I have taken the patches from Hartmut, cleaned them up, added a couple of more dependencies to run tests … and then got stuck at some point again. I have a big WIP branch for that and I think before someone else starts from scratch I should share the branch. I’ll try to get something ready for merging/sharing/collaborating this weekend. (Feel free to ping me if you don’t hear from me about this.) -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From unknown Mon Jun 23 23:52:23 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Roel Janssen Subject: bug#25925: closed (Re: bug#25925: [PATCH] gnu: Add fop.) Message-ID: References: <877f1nxyj4.fsf@gnu.org> <874lzcft1s.fsf@gnu.org> X-Gnu-PR-Message: they-closed 25925 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch moreinfo Reply-To: 25925@debbugs.gnu.org Date: Thu, 11 May 2017 14:25:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1494512704-8692-1" This is a multi-part message in MIME format... ------------=_1494512704-8692-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25925: [PATCH] gnu: Add fop. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 25925@debbugs.gnu.org. --=20 25925: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25925 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1494512704-8692-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25925-done) by debbugs.gnu.org; 11 May 2017 14:24:05 +0000 Received: from localhost ([127.0.0.1]:38867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8p0f-0002F2-Ge for submit@debbugs.gnu.org; Thu, 11 May 2017 10:24:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8p0d-0002EZ-UT for 25925-done@debbugs.gnu.org; Thu, 11 May 2017 10:24:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8p0T-0007Cc-OX for 25925-done@debbugs.gnu.org; Thu, 11 May 2017 10:23:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8p0T-0007CV-Lj; Thu, 11 May 2017 10:23:53 -0400 Received: from ip-80-113-14-101.ip.prioritytelecom.net ([80.113.14.101]:24536 helo=antelope) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d8p0S-0001vF-O2; Thu, 11 May 2017 10:23:53 -0400 References: <874lzcft1s.fsf@gnu.org> <87k288sfen.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: Marius Bakke Subject: Re: bug#25925: [PATCH] gnu: Add fop. In-reply-to: <87k288sfen.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> Date: Thu, 11 May 2017 16:23:43 +0200 Message-ID: <877f1nxyj4.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25925-done Cc: 25925-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Marius Bakke writes: > Roel Janssen writes: > >> Dear Guix, >> >> This package is a dependency for Darktable. Therefore, I would like to >> add it. >> >>>>From 99604dfc19cd9b68863fcc948ecbe4a853bc56f0 Mon Sep 17 00:00:00 2001 >> From: Roel Janssen >> Date: Thu, 2 Mar 2017 00:43:00 +0100 >> Subject: [PATCH] gnu: Add fop. >> >> * gnu/packages/xml.scm (fop): New variable. >> --- >> gnu/packages/xml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 42 insertions(+) >> >> diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm >> index b91471690..f7f861fbe 100644 >> --- a/gnu/packages/xml.scm >> +++ b/gnu/packages/xml.scm >> @@ -14,6 +14,7 @@ >> ;;; Copyright © 2016 ng0 >> ;;; Copyright © 2016 Tobias Geerinckx-Rice >> ;;; Copyright © 2016 Marius Bakke >> +;;; Copyright © 2017 Roel Janssen >> ;;; >> ;;; This file is part of GNU Guix. >> ;;; >> @@ -42,6 +43,7 @@ >> #:use-module ((guix licenses) #:prefix license:) >> #:use-module (guix packages) >> #:use-module (guix download) >> + #:use-module (guix build-system ant) >> #:use-module (guix build-system cmake) >> #:use-module (guix build-system gnu) >> #:use-module (guix build-system perl) >> @@ -71,6 +73,46 @@ stream-oriented parser in which an application registers handlers for >> things the parser might find in the XML document (like start tags).") >> (license license:expat))) >> >> +(define-public fop >> + (package >> + (name "fop") >> + (version "2.1") >> + (source (origin >> + (method url-fetch) >> + (uri (string-append >> + "mirror://apache/xmlgraphics/fop/source/fop-" >> + version "-src.tar.gz")) >> + (sha256 >> + (base32 >> + "165rx13q47l6qc29ppr7sg1z26vw830s3rkklj5ap7wgvy0ivbz5")))) > > Ahh...java. Can you try removing some of the 21 bundled JARs with a > 'snippet' here? We do have a couple of them in Guix already. Even better > if you can package some more. Ahh sorry about this. Because 'fop' is not needed for 'darktable', I will just drop this patch for now. Thanks for your reviewing efforts though! Kind regards, Roel Janssen ------------=_1494512704-8692-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Mar 2017 23:59:01 +0000 Received: from localhost ([127.0.0.1]:35077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjE93-0002t8-KU for submit@debbugs.gnu.org; Wed, 01 Mar 2017 18:59:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjE92-0002st-61 for submit@debbugs.gnu.org; Wed, 01 Mar 2017 18:58:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjE8v-0002wO-Kn for submit@debbugs.gnu.org; Wed, 01 Mar 2017 18:58:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjE8v-0002wK-HJ for submit@debbugs.gnu.org; Wed, 01 Mar 2017 18:58:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjE8u-00060C-22 for guix-patches@gnu.org; Wed, 01 Mar 2017 18:58:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjE8q-0002tG-4C for guix-patches@gnu.org; Wed, 01 Mar 2017 18:58:48 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjE8q-0002sw-0v for guix-patches@gnu.org; Wed, 01 Mar 2017 18:58:44 -0500 Received: from ip112-245-209-87.adsl2.static.versatel.nl ([87.209.245.112]:63125 helo=antelope) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cjE8p-0003Vc-GM for guix-patches@gnu.org; Wed, 01 Mar 2017 18:58:43 -0500 User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: guix-patches@gnu.org Subject: [PATCH] gnu: Add fop. Date: Thu, 02 Mar 2017 00:58:39 +0100 Message-ID: <874lzcft1s.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Dear Guix, This package is a dependency for Darktable. Therefore, I would like to add it. >>From 99604dfc19cd9b68863fcc948ecbe4a853bc56f0 Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Thu, 2 Mar 2017 00:43:00 +0100 Subject: [PATCH] gnu: Add fop. * gnu/packages/xml.scm (fop): New variable. --- gnu/packages/xml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index b91471690..f7f861fbe 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2016 ng0 ;;; Copyright © 2016 Tobias Geerinckx-Rice ;;; Copyright © 2016 Marius Bakke +;;; Copyright © 2017 Roel Janssen ;;; ;;; This file is part of GNU Guix. ;;; @@ -42,6 +43,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix build-system ant) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) @@ -71,6 +73,46 @@ stream-oriented parser in which an application registers handlers for things the parser might find in the XML document (like start tags).") (license license:expat))) +(define-public fop + (package + (name "fop") + (version "2.1") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://apache/xmlgraphics/fop/source/fop-" + version "-src.tar.gz")) + (sha256 + (base32 + "165rx13q47l6qc29ppr7sg1z26vw830s3rkklj5ap7wgvy0ivbz5")))) + (build-system ant-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (system* (string-append (assoc-ref inputs "ant") "/bin/ant")))) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (mkdir-p bin) + (install-file "build/fop.jar" bin) + (install-file "build/fop-hyph.jar" bin) + (install-file "build/fop-sandbox.jar" bin) + (install-file "build/fop-transcoder-allinone.jar" bin) + (install-file "build/fop-transcoder.jar" bin) + (install-file "fop" bin))))))) + (home-page "https://xmlgraphics.apache.org/fop/") + (synopsis "Formatting objects processor") + (description "Apache FOP is a print formatter driven by XSL formatting +objects (XSL-FO) and an output independent formatter. It is a Java application +that reads a formatting object (FO) tree and renders the resulting pages to a +specified output. Output formats currently supported include PDF, PS, PCL, +AFP, XML (area tree representation), Print, AWT and PNG, and to a lesser +extent, RTF and TXT. The primary output target is PDF.") + (license license:asl2.0))) + (define-public libxml2 (package (name "libxml2") -- 2.11.0 ------------=_1494512704-8692-1--