[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File search
From: |
Maxim Cournoyer |
Subject: |
Re: File search |
Date: |
Wed, 02 Feb 2022 11:14:47 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi,
Ricardo Wurmus <rekado@elephly.net> writes:
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Ricardo Wurmus <rekado@elephly.net> skribis:
>>
>>> raingloom <raingloom@riseup.net> writes:
>>>
>>>> One use case that I hope can be addressed is TeXlive packages. Trying
>>>> to figure out which package corresponded to which missing file was a
>>>> nightmare the last I had to use LaTeX.
>>>
>>> The texlive package database is the authoritative source of information.
>>> The file texlive.tlpdb is included in the texlive-bin package, and we’re
>>> using it in the importer. I also added (@ (guix import texlive)
>>> files-differ?), which compares a texlive package’s output directory with
>>> the files that the texlive.tlpdb lists for that package.
>>>
>>> You can also use it to check what package should provide a certain file.
>>> I do this all the time to figure out if our existing packages are
>>> incomplete or if we’re just missing a package.
>>
>> Oh, I had never tried that. Is there a command that browses
>> texlive.tlpdb, or do you just open it or grep it?
>
> I just have it open in Emacs and search inside. But we could easily add
> a procedure to (guix import texlive) to check the texlive.tlpdb. All
> the hard work has already been done; we’re using the same mechanism for
> the importer and “files-differ?”.
It used to be broken, but with the c-u-f merge the 'tlmgr' tool now
works as expected to search for things in the local texlive.tlpdb
database:
--8<---------------cut here---------------start------------->8---
$ guix shell --pure texlive-bin grep which coreutils sed gnupg -- tlmgr info
cite.sty
tlmgr: cannot find package cite.sty, searching for other matches:
Packages containing `cite.sty' in their title/description:
Packages containing files matching `cite.sty':
abntex2:
texmf-dist/tex/latex/abntex2/abntex2cite.sty
apacite:
texmf-dist/tex/latex/apacite/apacite.sty
chscite:
texmf-dist/tex/latex/chscite/chscite.sty
cite:
texmf-dist/tex/latex/cite/cite.sty
texmf-dist/tex/latex/cite/drftcite.sty
texmf-dist/tex/latex/cite/overcite.sty
combine:
texmf-dist/tex/latex/combine/combcite.sty
computational-complexity:
texmf-dist/tex/latex/computational-complexity/cc2cite.sty
texmf-dist/tex/latex/computational-complexity/cccite.sty
emojicite:
texmf-dist/tex/lualatex/emojicite/emojicite.sty
gcite:
texmf-dist/tex/latex/gcite/gcite.sty
icite:
texmf-dist/tex/latex/icite/icite.sty
kluwer:
texmf-dist/tex/latex/kluwer/klucite.sty
lwarp:
texmf-dist/tex/latex/lwarp/lwarp-cite.sty
texmf-dist/tex/latex/lwarp/lwarp-drftcite.sty
mcite:
texmf-dist/tex/latex/mcite/mcite.sty
notoccite:
texmf-dist/tex/latex/notoccite/notoccite.sty
velthuis:
texmf-dist/tex/latex/velthuis/dvngcite.sty
xcite:
texmf-dist/tex/latex/xcite/xcite.sty
--8<---------------cut here---------------end--------------->8---
It's not great that references to 'grep which coreutils sed gnupg'
aren't patched though (I thought I cared they were, perhaps it
regressed).
HTH,
Maxim
- Re: File search,
Maxim Cournoyer <=