Those things you added at the end means that a .pacnew was created, and should look like what was in the link I posted. You have to merge the new file with the changes you made.
]]>It should look like this: https://github.com/archlinux/svntogit-p … nk/profile
My /etc/profile looks like this:
# /etc/profile
# Set our umask
umask 022
# Append our default paths
appendpath () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
appendpath '/usr/local/sbin'
appendpath '/usr/local/bin'
appendpath '/usr/bin'
unset appendpath
export PATH
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# Source global bash config
if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then
. /etc/bash.bashrc
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH
PT7HOME=/opt/pt
export PT7HOME
QT_DEVICE_PIXEL_RATIO=auto
export QT_DEVICE_PIXEL_RATIO
When you have found a .pacnew file, then you should compare it with the existing file. Integrate all changes from the pacnew into the existing file while keeping/adapting the changes you made on your own.
Merging the changes will be easier with a merge tool like vimdiff, meld, kdiff3, or kompare.
Okay I checked and I got a /etc/profile.pacnew file but it's completely empty.
]]>Scimmia wrote:Stefan_xyz wrote:You got any idea what I could try?
Did you merge your .pacnew files yet?
Have you done that? Possibly your /etc/profile file is missing append_path.
I have read the wiki entry but I can't figure how I can merge them. I can find them that's not the problem but what do I do with this information?
]]>No, the file is owned by perl 5.32.1, which is in [core].
The file in perl 5.32.1 doesn't look like that.
]]>Stefan_xyz wrote:You got any idea what I could try?
Did you merge your .pacnew files yet?
Have you done that? Possibly your /etc/profile file is missing append_path.
]]>ayekat wrote:Because this part of PATH looks awkward:
Stefan_xyz wrote:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:…
/etc/profile doesn't add the paths to PATH in that order, and also it doesn't add /bin to PATH at all.
I have that as well using lightdm. I have not yet found the reason for that order, systemd starts lightdm with the path "/usr/local/sbin:/usr/local/bin:/usr/bin"...
Interesting note since I use lightdm as well.
]]>On my box /etc/profile.d/perlbin.sh looks like this:
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 ] && PATH=$PATH:/usr/bin/site_perl [ -d /usr/bin/vendor_perl ] && PATH=$PATH:/usr/bin/vendor_perl [ -d /usr/bin/core_perl ] && PATH=$PATH:/usr/bin/core_perl export PATH # If you have modules in non-standard directories you can add them here. #export PERLLIB=dir1:dir2
Mine looks like this:
# 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
perl is installed correctly and /etc/profile.d/perlbin.sh does exist?
pacman -Qikk perl
Yup output of the command:
Name : perl
Version : 5.32.1-1
Description : A highly capable, feature-rich programming language
Architecture : x86_64
URL : https://www.perl.org
Licenses : GPL PerlArtistic
Groups : None
Provides : perl-archive-tar=2.36 perl-attribute-handlers=1.01 perl-autodie=2.32 perl-autoloader=5.74 perl-autouse=1.11 perl-base=2.27 perl-bignum=0.51 perl-carp=1.50 perl-compress-raw-bzip2=2.093 perl-compress-raw-zlib=2.093 perl-config-perl-v=0.32 perl-constant=1.33
perl-cpan-meta-requirements=2.140 perl-cpan-meta-yaml=0.018 perl-cpan-meta=2.150010 perl-cpan=2.27 perl-data-dumper=2.174_01 perl-db_file=1.853 perl-devel-ppport=3.57 perl-devel-selfstubber=1.06 perl-digest-md5=2.55_01 perl-digest-sha=6.02 perl-digest=1.17_01 perl-dumpvalue=1.21
perl-encode=3.06 perl-encoding-warnings=0.13 perl-env=1.04 perl-experimental=0.020 perl-exporter=5.74 perl-extutils-cbuilder=0.280234 perl-extutils-constant=0.25 perl-extutils-install=2.14 perl-extutils-makemaker=7.44 perl-extutils-manifest=1.72 perl-extutils-parsexs=3.40
perl-file-fetch=0.56 perl-file-path=2.16 perl-file-temp=0.2309 perl-filter-simple=0.96 perl-filter-util-call=1.59 perl-findbin=1.51 perl-getopt-long=2.51 perl-http-tiny=0.076 perl-i18n-collate=1.02 perl-i18n-langtags=0.44 perl-if=0.0608 perl-io-compress=2.093 perl-io-socket-ip=0.39
perl-io-zlib=1.10 perl-io=1.43 perl-ipc-cmd=1.04 perl-ipc-sysv=2.07 perl-json-pp=4.04 perl-lib=0.65 perl-libnet=3.11 perl-locale-maketext-simple=0.21_01 perl-locale-maketext=1.29 perl-math-bigint-fastcalc=0.5009 perl-math-bigint=1.999818 perl-math-bigrat=0.2614
perl-math-complex=1.5901 perl-memoize=1.03_01 perl-mime-base64=3.15 perl-module-corelist=5.20210123 perl-module-load-conditional=0.70 perl-module-load=0.34 perl-module-loaded=0.08 perl-module-metadata=1.000037 perl-net-ping=2.72 perl-params-check=0.38 perl-parent=0.238
perl-pathtools=3.78 perl-perl-ostype=1.010 perl-perlfaq=5.20200523 perl-perlio-via-quotedprint=0.08 perl-pod-checker=1.73 perl-pod-escapes=1.07 perl-pod-perldoc=3.2801 perl-pod-simple=3.40 perl-pod-usage=1.69 perl-podlators=5.008 perl-safe=2.41_01 perl-scalar-list-utils=1.55
perl-search-dict=1.07 perl-selfloader=1.26 perl-socket=2.029 perl-storable=3.21 perl-sys-syslog=0.36 perl-term-ansicolor=5.01 perl-term-cap=1.17 perl-term-complete=1.403 perl-term-readline=1.17 perl-test-harness=3.42 perl-test-simple=1.302175 perl-test=1.31 perl-text-abbrev=1.02
perl-text-balanced=2.03 perl-text-parsewords=3.30 perl-text-tabs=2013.0523 perl-thread-queue=3.14 perl-thread-semaphore=2.13 perl-threads-shared=1.61 perl-threads=2.25 perl-tie-file=1.06 perl-tie-refhash=1.39 perl-time-hires=1.9764 perl-time-local=1.28 perl-time-piece=1.3401
perl-unicode-collate=1.27 perl-unicode-normalize=1.27 perl-version=0.9924 perl-xsloader=0.30
Depends On : gdbm>=1.17 db glibc libxcrypt libcrypt.so=2-64
Optional Deps : None
Required By : autoconf automake cowsay festival git groff hspell hyphen libwpg netpbm ntp openssl-1.0 pacman-contrib perl-clone perl-encode-locale perl-error perl-file-listing perl-html-tagset perl-http-cookies perl-http-daemon perl-http-message perl-http-negotiate perl-io-html
perl-libwww perl-lwp-mediatypes perl-net-http perl-parse-yapp perl-timedate perl-try-tiny perl-uri perl-www-robotrules rsync texinfo tigervnc
Optional For : aspell gd graphviz gutenprint hunspell i3-wm jemalloc lftp lib32-glibc libproxy lm_sensors mpg123 openssl qt5-base vim
Conflicts With : None
Replaces : None
Installed Size : 57.63 MiB
Packager : Florian Pritz <bluewind@xinu.at>
Build Date : Sat 06 Feb 2021 11:58:54 AM CET
Install Date : Wed 03 Mar 2021 12:07:51 PM CET
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
perl: 2805 total files, 0 altered files
Because this part of PATH looks awkward:
Stefan_xyz wrote:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:…
/etc/profile doesn't add the paths to PATH in that order, and also it doesn't add /bin to PATH at all.
I have that as well using lightdm. I have not yet found the reason for that order, systemd starts lightdm with the path "/usr/local/sbin:/usr/local/bin:/usr/bin"...
]]>