mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
print/texlive-base: latexmk -- fix command line passed to ps
Linux ps supports -u userlist Select by effective user ID (EUID) or name. This selects the processes whose effective user name or ID is in userlist. whereas FreeBSD ps uses -U Display the processes belonging to the specified usernames. This fixes the error message seen when running latexmk: > latexmk foo.tex [...] ps: illegal argument: Tobias usage: ps [-aCcdefHhjlmrSTuvwXxZ] [-O fmt | -o fmt] [-G gid[,gid...]] [-J jid[,jid...]] [-M core] [-N system] [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]] ps [-L] [...]
This commit is contained in:
parent
c3f7d6e44b
commit
e65518f713
@ -1,6 +1,6 @@
|
||||
PORTNAME= texlive
|
||||
PORTVERSION= ${TEXLIVE_VERSION}
|
||||
PORTREVISION= 13
|
||||
PORTREVISION= 14
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}
|
||||
PKGNAMESUFFIX= -base
|
||||
|
@ -0,0 +1,41 @@
|
||||
--- texk/texlive/linked_scripts/latexmk/latexmk.pl.orig 2023-03-20 14:47:33 UTC
|
||||
+++ texk/texlive/linked_scripts/latexmk/latexmk.pl
|
||||
@@ -1107,17 +1107,17 @@ else {
|
||||
#
|
||||
# The following works on Solaris, LINUX, HP-UX, IRIX
|
||||
# Use -f to get full listing, including command line arguments.
|
||||
- # Use -u $ENV{USER} to get all processes started by current user (not just
|
||||
+ # Use -U $ENV{USER} to get all processes started by current user (not just
|
||||
# those associated with current terminal), but none of other users'
|
||||
# processes.
|
||||
# However, the USER environment variable may not exist. Windows uses
|
||||
# USERNAME instead. (And this propagates to a situation of
|
||||
# unix-emulation software running under Windows.)
|
||||
if ( exists $ENV{USER} ) {
|
||||
- $pscmd = "ps -f -u $ENV{USER}";
|
||||
+ $pscmd = "ps -f -U $ENV{USER}";
|
||||
}
|
||||
elsif ( exists $ENV{USERNAME} ) {
|
||||
- $pscmd = "ps -f -u $ENV{USERNAME}";
|
||||
+ $pscmd = "ps -f -U $ENV{USERNAME}";
|
||||
}
|
||||
else {
|
||||
$pscmd = "ps -f";
|
||||
@@ -1134,7 +1134,7 @@ else {
|
||||
# But (19 Aug 2010), the truncation doesn't happen on RHEL4 and 5,
|
||||
# unless the output is written to a terminal. So the --width
|
||||
# option is now unnecessary
|
||||
- # $pscmd = "ps --width 200 -f -u $ENV{USER}";
|
||||
+ # $pscmd = "ps --width 200 -f -U $ENV{USER}";
|
||||
}
|
||||
elsif ( $^O eq "darwin" ) {
|
||||
# OS-X on Macintosh
|
||||
@@ -1155,7 +1155,7 @@ else {
|
||||
$ps_previewer = $ps_previewer_landscape = 'NONE';
|
||||
# Others
|
||||
$lpr_pdf = 'lpr %O %S';
|
||||
- $pscmd = "ps -ww -u $ENV{USER}";
|
||||
+ $pscmd = "ps -ww -U $ENV{USER}";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user