* [PR PATCH] texlive-bin: export MANPATH
@ 2022-04-23 16:47 balejk
2022-04-23 18:46 ` Duncaen
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: balejk @ 2022-04-23 16:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]
There is a new pull request by balejk against master on the void-packages repository
https://github.com/balejk/void-packages texlive-bin
https://github.com/void-linux/void-packages/pull/36832
texlive-bin: export MANPATH
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/36832.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-texlive-bin-36832.patch --]
[-- Type: text/x-diff, Size: 3027 bytes --]
From e5b85d5a13e7967d9485197eafeb65b743fe8893 Mon Sep 17 00:00:00 2001
From: Karel Balej <balejk@matfyz.cz>
Date: Sat, 23 Apr 2022 18:26:03 +0200
Subject: [PATCH] texlive-bin: export MANPATH
---
srcpkgs/texlive-bin/INSTALL.msg | 18 +++++++++---------
srcpkgs/texlive-bin/files/texlive.sh | 4 +++-
srcpkgs/texlive-bin/template | 2 +-
3 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/srcpkgs/texlive-bin/INSTALL.msg b/srcpkgs/texlive-bin/INSTALL.msg
index 72c1e0fe9a33..58930b757fd0 100644
--- a/srcpkgs/texlive-bin/INSTALL.msg
+++ b/srcpkgs/texlive-bin/INSTALL.msg
@@ -1,29 +1,29 @@
-- TeXLive is free software see the files:
+- TeX Live is free software see the files:
/usr/share/licenses/texlive-bin/LICENSE.TL
/usr/share/licenses/texlive-bin/LICENSE.CTAN
=====================================================================
- This package sets the location of TeXLive binary using the file:
- /etc/profile.d/texlive.sh.
+ This package sets the location of TeX Live binaries and manual
+ pages using the file: /etc/profile.d/texlive.sh.
see http://www.tug.org/texlive/quickinstall.html for details
- Check if your PATH is update correctly with:
+ Check if your PATH and MANPATH are updated correctly with:
$ printenv
- You may need to reboot to ensure that PATH is update correctly,
- for the impatients, if you want you can type
+ You may need to reboot to ensure that the paths are updated
+ correctly, for the impatients, if you want you can type
$ source /etc/profile
- and check the PATH.
+ and check PATH and MANPATH.
=====================================================================
- To update you TeXLive installation use only the program
+ To update you TeX Live installation use only the program
/opt/texlive/${VERSION}/bin/<arch>/tlmgr.
@@ -37,5 +37,5 @@
for the details and the documentation in
- WARNING: To avoid messing up your TeXLive installation, DON'T use
+ WARNING: To avoid messing up your TeX Live installation, DON'T use
the installation scripts in /opt/texlive-installer.
diff --git a/srcpkgs/texlive-bin/files/texlive.sh b/srcpkgs/texlive-bin/files/texlive.sh
index c868d50fe1e7..fdf6faf899c6 100644
--- a/srcpkgs/texlive-bin/files/texlive.sh
+++ b/srcpkgs/texlive-bin/files/texlive.sh
@@ -1,2 +1,4 @@
-#location of the TeXLive binaries
+# location of the TeXLive binaries
export PATH=$PATH:/opt/texlive/@@VERSION@@/bin/@@ARCH@@
+# and manual pages
+export MANPATH=$MANPATH:/opt/texlive/@@VERSION@@/texmf-dist/doc/man
diff --git a/srcpkgs/texlive-bin/template b/srcpkgs/texlive-bin/template
index 26866c5e5841..05c3c33e1825 100644
--- a/srcpkgs/texlive-bin/template
+++ b/srcpkgs/texlive-bin/template
@@ -1,7 +1,7 @@
# Template file for 'texlive-bin'
pkgname=texlive-bin
version=2022
-revision=1
+revision=2
depends="texlive${version}-bin"
short_desc="TeX Live Binary distribution through tl-install (newest version)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: texlive-bin: export MANPATH
2022-04-23 16:47 [PR PATCH] texlive-bin: export MANPATH balejk
@ 2022-04-23 18:46 ` Duncaen
2022-04-23 19:14 ` balejk
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Duncaen @ 2022-04-23 18:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
New comment by Duncaen on void-packages repository
https://github.com/void-linux/void-packages/pull/36832#issuecomment-1107613928
Comment:
There is no MANPATH by default, so this would actually make man only consider texlives path if it even works with an empty `:` at the beginning.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: texlive-bin: export MANPATH
2022-04-23 16:47 [PR PATCH] texlive-bin: export MANPATH balejk
2022-04-23 18:46 ` Duncaen
@ 2022-04-23 19:14 ` balejk
2022-04-23 19:20 ` balejk
2022-04-27 12:00 ` [PR PATCH] [Merged]: " leahneukirchen
3 siblings, 0 replies; 5+ messages in thread
From: balejk @ 2022-04-23 19:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 821 bytes --]
New comment by balejk on void-packages repository
https://github.com/void-linux/void-packages/pull/36832#issuecomment-1107634248
Comment:
Works for me with empty default MANPATH (so with colon at the beginning). I also have no problem with `man` neglecting the default locations, if that's what you mean. From the `man` manual page:
> The search starts with the -m argument if provided, then continues with
the -M argument, the MANPATH variable, the manpath entries in the
man.conf(5) file, or with /usr/share/man:/usr/X11R6/man:/usr/local/man by
default. Within each of these, directories are searched in the order
provided. Within each directory, the search proceeds according to the
following list of sections: 1, 8, 6, 2, 3, 5, 7, 4, 9, 3p. The first
match found is shown.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: texlive-bin: export MANPATH
2022-04-23 16:47 [PR PATCH] texlive-bin: export MANPATH balejk
2022-04-23 18:46 ` Duncaen
2022-04-23 19:14 ` balejk
@ 2022-04-23 19:20 ` balejk
2022-04-27 12:00 ` [PR PATCH] [Merged]: " leahneukirchen
3 siblings, 0 replies; 5+ messages in thread
From: balejk @ 2022-04-23 19:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
New comment by balejk on void-packages repository
https://github.com/void-linux/void-packages/pull/36832#issuecomment-1107635075
Comment:
Actually, it's the colon which makes it work as desired:
> If MANPATH begins with a colon, it is appended to the standard
path; if it ends with a colon, it is prepended to the standard
path; or if it contains two adjacent colons, the standard path
is inserted between the colons.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PR PATCH] [Merged]: texlive-bin: export MANPATH
2022-04-23 16:47 [PR PATCH] texlive-bin: export MANPATH balejk
` (2 preceding siblings ...)
2022-04-23 19:20 ` balejk
@ 2022-04-27 12:00 ` leahneukirchen
3 siblings, 0 replies; 5+ messages in thread
From: leahneukirchen @ 2022-04-27 12:00 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]
There's a merged pull request on the void-packages repository
texlive-bin: export MANPATH
https://github.com/void-linux/void-packages/pull/36832
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-27 12:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-23 16:47 [PR PATCH] texlive-bin: export MANPATH balejk
2022-04-23 18:46 ` Duncaen
2022-04-23 19:14 ` balejk
2022-04-23 19:20 ` balejk
2022-04-27 12:00 ` [PR PATCH] [Merged]: " leahneukirchen
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).