GNU bug report logs - #73347
[PATCH] gnu: emacs-org-texlive-collection: Reduce closure.

Previous Next

Package: guix-patches;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Thu, 19 Sep 2024 03:39:02 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

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 73347 in the body.
You can then email your comments to 73347 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 andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org:
bug#73347; Package guix-patches. (Thu, 19 Sep 2024 03:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to andrew <at> trop.in, cox.katherine.e+guix <at> gmail.com, liliana.prikler <at> gmail.com, guix-patches <at> gnu.org. (Thu, 19 Sep 2024 03:39:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>,
 Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Subject: [PATCH] gnu: emacs-org-texlive-collection: Reduce closure.
Date: Thu, 19 Sep 2024 12:37:46 +0900
Based on feedback received by Nicolas Goaziou.  Thank you!

* gnu/packages/emacs-xyz.scm (emacs-org-texlive-collection): Do not inherit
from emacs-org.
[version]: Explicitly set to that of emacs-org.
[inputs]: Remove texlive-amsmath, texlive-capt-of, texlive-graphics,
texlive-titling, texlive-wrapfig.
Replace texlive-scheme-small by texlive-collection-latexrecommended.
[license]: Use the TeX Live license, as this is a TeX Live collection
meta-package.
[synopsis, description]: Fix TeX Live and Org mode spelling.
[home-page]: Explicitly set to that of emacs-org.

Suggested-by: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Change-Id: Id898f0cde5d805ee9262b5ded0d47f307b73f005
---

 gnu/packages/emacs-xyz.scm | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9138fefa6d..ee39868713 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17680,26 +17680,27 @@ (define-public emacs-org-contrib
 
 (define-public emacs-org-texlive-collection
   (package
-    (inherit emacs-org)
     (name "emacs-org-texlive-collection")
     (source #f)
+    (version (package-version emacs-org))
     (build-system trivial-build-system)
     (arguments (list #:builder #~(mkdir #$output)))
     (native-inputs '())
     (inputs '())
     (propagated-inputs
-     (list texlive-amsmath
-           texlive-capt-of
-           texlive-graphics             ;for graphicx, rotating
+     (list texlive-capt-of
+           ;; The latexrecommended collection provides fontspec, amsmath,
+           ;; graphicx, tools, etc.
+           texlive-collection-latexrecommended
            texlive-hyperref
-           texlive-titling
-           texlive-tools                ;for longtable
+;           texlive-titling
            texlive-ulem
-           texlive-wrapfig
-           texlive-scheme-small))      ;for amsfonts, fontspec, inputenc, etc.
-    (synopsis "Basic TexLive packages for Org-mode LaTeX export")
-    (description "This meta-package propagates the TexLive packages minimally
-required by the Org-mode produced LaTeX output.")))
+           texlive-wrapfig))
+    (home-page (package-home-page emacs-org))
+    (synopsis "Basic TeX Live packages for Org mode LaTeX export")
+    (description "This meta-package propagates the Tex Live packages minimally
+required by the LaTeX output produced by Org mode.")
+    (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))))
 
 (define-public emacs-org-contacts
   ;; XXX: Upstream does not tag version bumps. Commit below matches latest

base-commit: 1b6ce1796abdf497f61f426d61339318f4f4f23d
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#73347; Package guix-patches. (Fri, 20 Sep 2024 08:25:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: Liliana Marie Prikler <liliana.prikler <at> gmail.com>,
 Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>, 73347 <at> debbugs.gnu.org,
 Andrew Tropin <andrew <at> trop.in>
Subject: Re: [bug#73347] [PATCH] gnu: emacs-org-texlive-collection: Reduce
 closure.
Date: Fri, 20 Sep 2024 10:23:50 +0200
Hello,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

>      (propagated-inputs
> -     (list texlive-amsmath
> -           texlive-capt-of

You need to propagate texlive-capt-of (from
`texlive-collection-latexextra', which we shouldn't propagate).

> -           texlive-graphics             ;for graphicx, rotating
> +     (list texlive-capt-of
> +           ;; The latexrecommended collection provides fontspec, amsmath,
> +           ;; graphicx, tools, etc.
> +           texlive-collection-latexrecommended
>             texlive-hyperref

`texlive-hyperref' belongs to `texlive-collection-latex' and therefore
to `texlive-collection-latxrecommended'. You can remove it.

However, you need to add `texlive-soul' and `texlive-standalone'.

> -           texlive-titling
> -           texlive-tools                ;for longtable
> +;           texlive-titling

Left-over comment? If required, `texlive-titling' ought to be propagated
(`texlive-collection-latexextra'), but I don't see it used in Org mode.
Is it?

>             texlive-ulem
> -           texlive-wrapfig

You need to keep `texlive-wrapfig', too
(`texlive-collection-latexextra').

> +    (description "This meta-package propagates the Tex Live packages minimally

Tex Live -> TeX Live

Otherwise, LGTM.

Regards,
-- 
Nicolas Goaziou






Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Thu, 26 Sep 2024 13:46:03 GMT) Full text and rfc822 format available.

Notification sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
bug acknowledged by developer. (Thu, 26 Sep 2024 13:46:03 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>,
 Andrew Tropin <andrew <at> trop.in>,
 Liliana Marie Prikler <liliana.prikler <at> gmail.com>, 73347-done <at> debbugs.gnu.org
Subject: Re: [bug#73347] [PATCH] gnu: emacs-org-texlive-collection: Reduce
 closure.
Date: Thu, 26 Sep 2024 22:44:14 +0900
Hi!

Nicolas Goaziou <mail <at> nicolasgoaziou.fr> writes:

> Hello,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
>
>>      (propagated-inputs
>> -     (list texlive-amsmath
>> -           texlive-capt-of
>
> You need to propagate texlive-capt-of (from
> `texlive-collection-latexextra', which we shouldn't propagate).

I hadn't removed it, though I see I had forgetten to adjust the commit
changelog.  To see which packaged were really needed other than
texlive-collection-latexrecommended, I've used:

--8<---------------cut here---------------start------------->8---
,pp (sort (map car (package-transitive-propagated-inputs
texlive-collection-latexrecommended)) string<=)

$11 = ("texlive-ae"
 "texlive-amscls"
 "texlive-amsfonts"
 "texlive-amsmath"
 "texlive-anysize"
 "texlive-atbegshi"
 "texlive-attachfile2"
 "texlive-atveryend"
 "texlive-auxhook"
 "texlive-babel"
 "texlive-babel-english"
 "texlive-babelbib"
 "texlive-beamer"
 "texlive-bibtex"
 "texlive-bibtex-bin"
 "texlive-bigintcalc"
 "texlive-bin"
 "texlive-bitset"
 "texlive-bookmark"
 "texlive-booktabs"
 "texlive-breqn"
 "texlive-caption"
 "texlive-carlisle"
 "texlive-cite"
 "texlive-cm"
 "texlive-cmap"
 "texlive-collection-basic"
 "texlive-collection-latex"
 "texlive-colorprofiles"
 "texlive-colortbl"
 "texlive-crop"
 "texlive-ctable"
 "texlive-dvipdfmx"
 "texlive-dvipdfmx-bin"
 "texlive-dvips"
 "texlive-dvips-bin"
 "texlive-ec"
 "texlive-enctex"
 "texlive-epstopdf-pkg"
 "texlive-eso-pic"
 "texlive-etex"
 "texlive-etex-pkg"
 "texlive-etexcmds"
 "texlive-etoolbox"
 "texlive-euenc"
 "texlive-euler"
 "texlive-everysel"
 "texlive-everyshi"
 "texlive-extsizes"
 "texlive-fancybox"
 "texlive-fancyhdr"
 "texlive-fancyref"
 "texlive-fancyvrb"
 "texlive-filehook"
 "texlive-firstaid"
 "texlive-fix2col"
 "texlive-float"
 "texlive-fontspec"
 "texlive-footnotehyper"
 "texlive-fp"
 "texlive-geometry"
 "texlive-gettitlestring"
 "texlive-glyphlist"
 "texlive-graphics"
 "texlive-graphics-cfg"
 "texlive-graphics-def"
 "texlive-grfext"
 "texlive-grffile"
 "texlive-hologo"
 "texlive-hopatch"
 "texlive-hycolor"
 "texlive-hyperref"
 "texlive-hyphen-base"
 "texlive-hyphen-complete"
 "texlive-hyphenex"
 "texlive-ifplatform"
 "texlive-iftex"
 "texlive-index"
 "texlive-infwarerr"
 "texlive-intcalc"
 "texlive-jknapltx"
 "texlive-knuth-lib"
 "texlive-knuth-local"
 "texlive-koma-script"
 "texlive-kpathsea"
 "texlive-kvdefinekeys"
 "texlive-kvoptions"
 "texlive-kvsetkeys"
 "texlive-l3backend"
 "texlive-l3experimental"
 "texlive-l3kernel"
 "texlive-l3packages"
 "texlive-latex"
 "texlive-latex-bin"
 "texlive-latex-fonts"
 "texlive-latexbug"
 "texlive-latexconfig"
 "texlive-letltxmacro"
 "texlive-libkpathsea"
 "texlive-lineno"
 "texlive-listings"
 "texlive-lm"
 "texlive-lm-math"
 "texlive-ltxcmds"
 "texlive-ltxmisc"
 "texlive-lua-alt-getopt"
 "texlive-lua-uni-algos"
 "texlive-luahbtex"
 "texlive-lualibs"
 "texlive-luaotfload"
 "texlive-luatex"
 "texlive-lwarp"
 "texlive-makecmds"
 "texlive-makeindex"
 "texlive-makeindex-bin"
 "texlive-mathspec"
 "texlive-mathtools"
 "texlive-mdwtools"
 "texlive-memoir"
 "texlive-metafont"
 "texlive-metalogo"
 "texlive-mflogo"
 "texlive-mfnfss"
 "texlive-mfware"
 "texlive-mfware-bin"
 "texlive-microtype"
 "texlive-modes"
 "texlive-mptopdf"
 "texlive-ms"
 "texlive-natbib"
 "texlive-newfloat"
 "texlive-ntgclass"
 "texlive-oberdiek"
 "texlive-pagesel"
 "texlive-parskip"
 "texlive-pdfcolfoot"
 "texlive-pdfescape"
 "texlive-pdflscape"
 "texlive-pdfmanagement-testphase"
 "texlive-pdfpages"
 "texlive-pdftex"
 "texlive-pdftexcmds"
 "texlive-pgf"
 "texlive-plain"
 "texlive-polyglossia"
 "texlive-psfrag"
 "texlive-pslatex"
 "texlive-psnfss"
 "texlive-pspicture"
 "texlive-ragged2e"
 "texlive-rcs"
 "texlive-refcount"
 "texlive-rerunfilecheck"
 "texlive-sansmath"
 "texlive-scripts"
 "texlive-section"
 "texlive-seminar"
 "texlive-sepnum"
 "texlive-setspace"
 "texlive-stringenc"
 "texlive-subfig"
 "texlive-symbol"
 "texlive-tex"
 "texlive-tex-ini-files"
 "texlive-textcase"
 "texlive-thumbpdf"
 "texlive-tipa"
 "texlive-tools"
 "texlive-translator"
 "texlive-typehtml"
 "texlive-ucharcat"
 "texlive-underscore"
 "texlive-unicode-data"
 "texlive-unicode-math"
 "texlive-uniquecounter"
 "texlive-url"
 "texlive-xcolor"
 "texlive-xdvi"
 "texlive-xdvi-bin"
 "texlive-xkeyval"
 "texlive-xltxtra"
 "texlive-xpatch"
 "texlive-xunicode"
 "texlive-zapfding")
--8<---------------cut here---------------end--------------->8---

>> -           texlive-graphics             ;for graphicx, rotating
>> +     (list texlive-capt-of
>> +           ;; The latexrecommended collection provides fontspec, amsmath,
>> +           ;; graphicx, tools, etc.
>> +           texlive-collection-latexrecommended
>>             texlive-hyperref
>
> `texlive-hyperref' belongs to `texlive-collection-latex' and therefore
> to `texlive-collection-latxrecommended'. You can remove it.

Indeed. It's in my list above.  I've removed it.

> However, you need to add `texlive-soul' and `texlive-standalone'.

OK! I hadn't encoutered these in my simple usage of the latex export,
but then I ddn't try to embed pictures or other media. I've added them,
thank you.

>
>> -           texlive-titling
>> -           texlive-tools                ;for longtable
>> +;           texlive-titling
>
> Left-over comment? If required, `texlive-titling' ought to be propagated
> (`texlive-collection-latexextra'), but I don't see it used in Org mode.
> Is it?

It was just required by the LaTeX of the CV template I've used with Org
mode; I've removed the forgotten comment.

>>             texlive-ulem
>> -           texlive-wrapfig
>
> You need to keep `texlive-wrapfig', too
> (`texlive-collection-latexextra').

Indeed.

>> +    (description "This meta-package propagates the Tex Live packages minimally
>
> Tex Live -> TeX Live

Phew. Typing TeX correctly is apparently difficult for me ;-)

> Otherwise, LGTM.

Thanks! I've pushed now pushed a revised version in 4818404bb4. I hope I
got it right!

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 25 Oct 2024 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 235 days ago.

Previous Next


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