Attempting to install the ffmpeg-obs AUR package and fails when compiling the documents for ffmpeg.1 and ffplay.1, the pod2man command is not found. I’m using pikaur AUR helper for the install.
# uname -a
Linux on 6.12.19-1-MANJARO #1 SMP PREEMPT_DYNAMIC
Pertinent error portion of the build:
MAN doc/ffmpeg.1
/bin/sh: line 1: pod2man: command not found
MAN doc/ffplay.1
make: *** [doc/Makefile:98: doc/ffmpeg.1] Error 127
make: *** Waiting for unfinished jobs....
/bin/sh: line 1: pod2man: command not found
make: *** [doc/Makefile:98: doc/ffplay.1] Error 127
==> ERROR: A failure occurred in build().
Aborting...
Command 'sudo --user=#1000 --preserve-env=VISUAL,EDITOR -- makepkg --force' failed to execute.
Checking the path of pod2man:
$ which pod2man
/usr/bin/core_perl/pod2man
from root:
# which pod2man
which: no pod2man in (/usr/local/sbin:/usr/local/bin:/usr/bin)
I have the perl base-devel installed and the user’s path shows the perl’s path, but the root’s path does not.
User’s path
$ echo $PATH
/home/pc/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
root’s path
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin
The /etc/profile.d has the correct files:
# ls /etc/profile.d
70-systemd-shell-extra.sh flatpak.sh home-local-bin.sh perlbin.csh
debuginfod.csh freetype2.sh libreoffice-still.csh perlbin.sh
debuginfod.sh gawk.csh libreoffice-still.sh qt5-accessibility.sh
flatpak-bindir.sh gawk.sh locale.sh vte.csh
flatpak.csh gpm.sh manjaro-kde-settings-xdg.sh vte.sh
here’s the perlbin.sh file entry:
# cat /etc/profile.d/perlbin.sh
# Set path to perl scriptdirs if they exist
# https://wiki.archlinux.org/index.php/Perl_Policy#Binaries_and_scripts
# Added /usr/bin/*_perl dirs for scripts
[ -d /usr/bin/site_perl ] && append_path '/usr/bin/site_perl'
[ -d /usr/bin/vendor_perl ] && append_path '/usr/bin/vendor_perl'
[ -d /usr/bin/core_perl ] && append_path '/usr/bin/core_perl'
export PATH
# If you have modules in non-standard directories you can add them here.
#export PERLLIB=dir1:dir2
My partner’s laptop shows the correct path in root and is able to build the ffmpeg-obs package without issue. Although, the laptop uses an earlier version of Manjaro:
# uname -a
Linux ep 6.6.75-2-MANJARO #1 SMP PREEMPT_DYNAMIC
I’ve attempted to manually source the /etc/profile, and it adds the paths, but resets after the session closes or reboots. I tried another pc with a separate downloaded version of Manjaro KDE, and it has the same behavior.
To summarize, it appears root doesn’t source the /etc/profile path exports, but the regular users do. Might be a bug for this version of Manjaro?