Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] tlmgr is broken because Perl can't find TLConfig.pl
@ 2022-11-29  9:55 Rowaaaaan
  2022-11-29 10:08 ` Rowaaaaan
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Rowaaaaan @ 2022-11-29  9:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]

New issue by Rowaaaaan on void-packages repository

https://github.com/void-linux/void-packages/issues/40830

Description:
### Is this a new report?

Yes

### System Info

Void 6.0.9_1 x86_64 GenuineIntel uptodate rrrmFFFFFF

### Package(s) Affected

texlive-20210325_4

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

`tlmgr` in general should be working. For instance, `tlmgr update --all` should update the packages in my local repository.

### Actual behaviour

Doing any kind of action with `tlmgr` will output the following:
```
Can't locate TeXLive/TLConfig.pm in @INC (you may need to install the TeXLive::TLConfig module) 
(@INC contains: 
/texmf-dist/scripts/texlive/TeXLive/TLConfig.pm /texmf-dist/scripts/texlive /tlpkg 
/usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/texmf-dist/scripts/texlive/tlmgr.pl line 61.

BEGIN failed--compilation aborted at /usr/share/texmf-dist/scripts/texlive/tlmgr.pl line 61.
```

### Steps to reproduce

1. Enter `tlmgr` --it doesn't matter what action you use.
2. Get the error.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tlmgr is broken because Perl can't find TLConfig.pl
  2022-11-29  9:55 [ISSUE] tlmgr is broken because Perl can't find TLConfig.pl Rowaaaaan
@ 2022-11-29 10:08 ` Rowaaaaan
  2022-11-29 13:37 ` nsajko
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Rowaaaaan @ 2022-11-29 10:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

New comment by Rowaaaaan on void-packages repository

https://github.com/void-linux/void-packages/issues/40830#issuecomment-1330387012

Comment:
I did some digging into the script myself to see what the problem was, since I'm not sure if this is a texlive issue or a Perl issue. 

From line 41:
```perl
BEGIN {
  # make subprograms (including kpsewhich) have the right path:
  $bindir = $Master;
  $ENV{"PATH"} = "$bindir:$ENV{PATH}";

  $::installerdir = $Master;  # for config.guess et al., see TLUtils.pm

  # make Perl find our packages first:
  unshift (@INC, "$Master/tlpkg");
  unshift (@INC, "$Master/texmf-dist/scripts/texlive");
...
use TeXLive::TLConfig;
use TeXLive::TLPDB;
```
The error occurs at line 61, where tlmgr uses the TLConfig:
```perl
use TeXLive::TLConfig;
```
The confusing part is how the error says that it can't find TLConfig @INC, which is at `/usr/share/texmf-dist/scripts/texlive`, despite the fact that `TLConfig.pm` _is_ in `/usr/share/texmf-dist/scripts/texlive/TeXLive`
![image](https://user-images.githubusercontent.com/82100519/204500041-eb3c5857-f128-4bb8-9bb2-4349125460d5.png)

So, I tried hardcoding the absolute path to `TLConfig.pm`, by adding the line:
```perl
unshift (@INC, "$Master/texmf-dist/scripts/texlive/TeXLive/TLConfig.pm");
```
and `tlmgr` still throws the exact same error

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tlmgr is broken because Perl can't find TLConfig.pl
  2022-11-29  9:55 [ISSUE] tlmgr is broken because Perl can't find TLConfig.pl Rowaaaaan
  2022-11-29 10:08 ` Rowaaaaan
@ 2022-11-29 13:37 ` nsajko
  2022-11-29 13:48 ` classabbyamp
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: nsajko @ 2022-11-29 13:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

New comment by nsajko on void-packages repository

https://github.com/void-linux/void-packages/issues/40830#issuecomment-1330664294

Comment:
This issue seems to be a dupe: https://github.com/void-linux/void-packages/issues/36738

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tlmgr is broken because Perl can't find TLConfig.pl
  2022-11-29  9:55 [ISSUE] tlmgr is broken because Perl can't find TLConfig.pl Rowaaaaan
  2022-11-29 10:08 ` Rowaaaaan
  2022-11-29 13:37 ` nsajko
@ 2022-11-29 13:48 ` classabbyamp
  2022-12-14 15:45 ` tornaria
  2023-07-04 22:32 ` [ISSUE] [CLOSED] " Rowaaaaan
  4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2022-11-29 13:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/40830#issuecomment-1330679265

Comment:
when you use `texlive` you shouldn't be using `tlmgr`. if you want to use `tlmgr`, use `texlive-bin`. see https://docs.voidlinux.org/config/texlive.html for info about the difference

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: tlmgr is broken because Perl can't find TLConfig.pl
  2022-11-29  9:55 [ISSUE] tlmgr is broken because Perl can't find TLConfig.pl Rowaaaaan
                   ` (2 preceding siblings ...)
  2022-11-29 13:48 ` classabbyamp
@ 2022-12-14 15:45 ` tornaria
  2023-07-04 22:32 ` [ISSUE] [CLOSED] " Rowaaaaan
  4 siblings, 0 replies; 6+ messages in thread
From: tornaria @ 2022-12-14 15:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 448 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/issues/40830#issuecomment-1351665561

Comment:
Dupe of #36738, see there for some hints. I think it is a bug introduced by void in `tlmgr.patch`.

A working tlmgr could be useful to install latex packages that are not shipped in any of the `texlive-*` void packages. IIRC tlmgr has a "user" mode similar to pip so packages can be installed by user.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ISSUE] [CLOSED] tlmgr is broken because Perl can't find TLConfig.pl
  2022-11-29  9:55 [ISSUE] tlmgr is broken because Perl can't find TLConfig.pl Rowaaaaan
                   ` (3 preceding siblings ...)
  2022-12-14 15:45 ` tornaria
@ 2023-07-04 22:32 ` Rowaaaaan
  4 siblings, 0 replies; 6+ messages in thread
From: Rowaaaaan @ 2023-07-04 22:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]

Closed issue by Rowaaaaan on void-packages repository

https://github.com/void-linux/void-packages/issues/40830

Description:
### Is this a new report?

Yes

### System Info

Void 6.0.9_1 x86_64 GenuineIntel uptodate rrrmFFFFFF

### Package(s) Affected

texlive-20210325_4

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

`tlmgr` in general should be working. For instance, `tlmgr update --all` should update the packages in my local repository.

### Actual behaviour

Doing any kind of action with `tlmgr` will output the following:
```
Can't locate TeXLive/TLConfig.pm in @INC (you may need to install the TeXLive::TLConfig module) 
(@INC contains: 
/texmf-dist/scripts/texlive/TeXLive/TLConfig.pm /texmf-dist/scripts/texlive /tlpkg 
/usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at /usr/share/texmf-dist/scripts/texlive/tlmgr.pl line 61.

BEGIN failed--compilation aborted at /usr/share/texmf-dist/scripts/texlive/tlmgr.pl line 61.
```

### Steps to reproduce

1. Enter `tlmgr` --it doesn't matter what action you use.
2. Get the error.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-04 22:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-29  9:55 [ISSUE] tlmgr is broken because Perl can't find TLConfig.pl Rowaaaaan
2022-11-29 10:08 ` Rowaaaaan
2022-11-29 13:37 ` nsajko
2022-11-29 13:48 ` classabbyamp
2022-12-14 15:45 ` tornaria
2023-07-04 22:32 ` [ISSUE] [CLOSED] " Rowaaaaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).