GNU bug report logs - #55868
[PATCH] gnu: r-prereg: Add TeXLive dependencies.

Previous Next

Package: guix-patches;

Reported by: Lars-Dominik Braun <lars <at> 6xq.net>

Date: Thu, 9 Jun 2022 12:28:02 UTC

Severity: normal

Tags: patch

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55868 in the body.
You can then email your comments to 55868 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to rekado <at> elephly.net, guix-patches <at> gnu.org:
bug#55868; Package guix-patches. (Thu, 09 Jun 2022 12:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars-Dominik Braun <lars <at> 6xq.net>:
New bug report received and forwarded. Copy sent to rekado <at> elephly.net, guix-patches <at> gnu.org. (Thu, 09 Jun 2022 12:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: r-prereg: Add TeXLive dependencies.
Date: Thu, 9 Jun 2022 14:26:53 +0200
* gnu/packages/cran.scm (r-prereg)[propagated-inputs]: Add
texlive-amsfonts, texlive-amsmath, texlive-booktabs,
texlive-etoolbox, texlive-generic-iftex, texlive-latex-fancyhdr,
texlive-latex-fancyvrb, texlive-latex-geometry, texlive-latex-graphics,
texlive-latex-threeparttable, texlive-latex-titlesec,
texlive-latex-upquote, texlive-listings, texlive-lm, texlive-polyglossia,
texlive-titling, texlive-tools, texlive-ulem.
---
 gnu/packages/cran.scm | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 0299e0041e..c1f0dc08b7 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -104,6 +104,7 @@ (define-module (gnu packages cran)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages statistics)
   #:use-module (gnu packages tcl)
+  #:use-module (gnu packages tex)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages uglifyjs)
@@ -30466,7 +30467,26 @@ (define-public r-prereg
     (properties `((upstream-name . "prereg")))
     (build-system r-build-system)
     (propagated-inputs
-      (list r-rmarkdown))
+      (list r-rmarkdown
+            ;; The package provides a custom LaTex template in
+            ;; inst/rmd/prereg_form.tex, which depends on these packages:
+            texlive-amsmath
+            texlive-booktabs
+            texlive-etoolbox
+            texlive-generic-iftex
+            texlive-latex-fancyhdr
+            texlive-latex-fancyvrb
+            texlive-latex-geometry
+            texlive-latex-graphics
+            texlive-latex-threeparttable
+            texlive-latex-titlesec
+            texlive-latex-upquote
+            texlive-listings
+            texlive-polyglossia
+            texlive-titling
+            texlive-tools
+            texlive-ulem
+            (texlive-updmap.cfg (list texlive-amsfonts texlive-lm))))
     (home-page "https://github.com/crsh/prereg")
     (synopsis
       "R Markdown Templates to preregister Scientific Studies")
-- 
2.35.1





Information forwarded to guix-patches <at> gnu.org:
bug#55868; Package guix-patches. (Thu, 09 Jun 2022 15:45:02 GMT) Full text and rfc822 format available.

Message #8 received at 55868 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Lars-Dominik Braun <lars <at> 6xq.net>
Cc: 55868 <at> debbugs.gnu.org
Subject: Re: [bug#55868] [PATCH] gnu: r-prereg: Add TeXLive dependencies.
Date: Thu, 09 Jun 2022 17:42:23 +0200
Lars-Dominik Braun <lars <at> 6xq.net> writes:

> +            (texlive-updmap.cfg (list texlive-amsfonts texlive-lm))))

What’s up with this one?  texlive-updmap.cfg isn’t supposed to be
propagated.  Why is it used with only these two texlive-* packages?

Should texlive-amsfonts and texlive-lm be moved one level up to
propagated-inputs instead, and texlive-updmap.cfg be removed?

-- 
Ricardo




Information forwarded to guix-patches <at> gnu.org:
bug#55868; Package guix-patches. (Fri, 10 Jun 2022 07:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 55868 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 55868 <at> debbugs.gnu.org
Subject: Re: [bug#55868] [PATCH] gnu: r-prereg: Add TeXLive dependencies.
Date: Fri, 10 Jun 2022 09:09:07 +0200
Hi Ricardo,

> > +            (texlive-updmap.cfg (list texlive-amsfonts texlive-lm))))
> 
> What’s up with this one?  texlive-updmap.cfg isn’t supposed to be
> propagated.  Why is it used with only these two texlive-* packages?
my understanding was that texlive-updmap.cfg is only useful for font
packages. Why is it not supposed to be propagated? I looked at
python-nbconvert as a reference, which does the same thing.

Cheers,
Lars





Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Fri, 10 Jun 2022 16:03:02 GMT) Full text and rfc822 format available.

Notification sent to Lars-Dominik Braun <lars <at> 6xq.net>:
bug acknowledged by developer. (Fri, 10 Jun 2022 16:03:02 GMT) Full text and rfc822 format available.

Message #16 received at 55868-done <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Lars-Dominik Braun <lars <at> 6xq.net>
Cc: 55868-done <at> debbugs.gnu.org
Subject: Re: [bug#55868] [PATCH] gnu: r-prereg: Add TeXLive dependencies.
Date: Fri, 10 Jun 2022 17:57:27 +0200
Lars-Dominik Braun <lars <at> 6xq.net> writes:

> Hi Ricardo,
>
>> > +            (texlive-updmap.cfg (list texlive-amsfonts texlive-lm))))
>> 
>> What’s up with this one?  texlive-updmap.cfg isn’t supposed to be
>> propagated.  Why is it used with only these two texlive-* packages?
> my understanding was that texlive-updmap.cfg is only useful for font
> packages. Why is it not supposed to be propagated? I looked at
> python-nbconvert as a reference, which does the same thing.

My mistake.  I still remember texlive-union, which built a union
directory from its inputs — that union directory and its config file
could not be composed with other files or packages.  Propagating it
would have been pointless.

This texlive-union eventually gave way to texlive-updmap.cfg, which only
creates font map files, while propagating its inputs.  The font map
files should be usable as is, and since the inputs are propagated the
texlive-base profile hook can generate them anew (together with other
installed texlive-* packages) when needed.

So I guess this is fine after all.  Sorry for the noise!

I have applied your patch.

-- 
Ricardo




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 09 Jul 2022 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.