[Bug 201866] shells/zsh looks for zshrc in /etc but not in /usr/local/etc
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jul 25 02:50:05 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201866
Bug ID: 201866
Summary: shells/zsh looks for zshrc in /etc but not in
/usr/local/etc
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: bapt at FreeBSD.org
Reporter: delycid at gmail.com
Flags: maintainer-feedback?(bapt at FreeBSD.org)
Assignee: bapt at FreeBSD.org
FreeBSD ext 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13
UTC 2015 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
amd64
zsh-5.0.8_2
Name : zsh
Version : 5.0.8_2
Installed on : Fri Jul 24 12:38:09 PDT 2015
Origin : shells/zsh
Architecture : freebsd:10:x86:64
Prefix : /usr/local
Categories : shells
Licenses : ZSH
Maintainer : bapt at FreeBSD.org
WWW : http://www.zsh.org/
Comment : The Z shell
Options :
DEBUG : off
DOCS : on
EXAMPLES : on
GDBM : off
MAILDIR : on
MEM : off
PCRE : off
SECURE_FREE : on
STATIC : off
Annotations :
repo_type : binary
repository : FreeBSD
Flat size : 14.2MiB
fresh zsh installed via pkg from url:
"pkg+http://pkg.FreeBSD.org/${ABI}/latest",
same applies for port built with default options
zsh configuration
-----------------
zsh version : 5.0.8
host operating system : amd64-portbld-freebsd10.1
source code location : .
compiler : cc
preprocessor flags : -I/usr/local/include -DBOOL_DEFINED -DLIBICONV_PLUG
executable compiler flags : -O2 -pipe -DLIBICONV_PLUG -fstack-protector
-fno-strict-aliasing
module compiler flags : -O2 -pipe -DLIBICONV_PLUG -fstack-protector
-fno-strict-aliasing -fPIC
executable linker flags : -L/usr/local/lib -Wl,--as-needed
-Wl,-rpath=/usr/local/lib -fstack-protector -rdynamic
module linker flags : -L/usr/local/lib -Wl,--as-needed
-Wl,-rpath=/usr/local/lib -fstack-protector -shared
library flags : -lncursesw -lm -lc
installation basename : zsh
binary install path : /usr/local/bin
man page install path : /usr/local/man
info install path : /usr/local/info
functions install path : /usr/local/share/zsh/5.0.8/functions
truss output | grep zshrc
47392: 0.088842979 access("/home/user/.zshrc",0) = 0 (0x0)
47392: 0.091282846 stat("/etc/zshrc.zwc",0x7fffffffe698) ERR#2 'No such file or
directory' <<<<
47392: 0.091590850 stat("/etc/zshrc",0x7fffffffe620) ERR#2 'No such file or
directory' <<<<
47392: 0.091796885 open("/etc/zshrc",O_NOCTTY,037777777777) ERR#2 'No such file
or directory' <<<<
47392: 0.092122349 stat("/home/user/.zshrc.zwc",0x7fffffffe698) ERR#2 'No such
file or directory'
47392: 0.092377134 stat("/home/user/.zshrc",{ mode=-rw-r--r--
,inode=2251,size=10404,blksize=10752 }) = 0 (0x0)
47392: 0.092649099 open("/home/user/.zshrc",O_NOCTTY,037777777777) = 3 (0x3)
47392: 0.105137094 access("/home/user/.zshrc",4) = 0 (0x0)
47392: 0.105282506 access("/home/user/.zshrc.global",4) ERR#2 'No such file or
directory'
upon launch zsh tries to read /etc/zshrc and does not try to read
/usr/local/etc/zshrc despite having --sysconfdir=${PREFIX}/etc in
CONFIGURE_ARGS in the /usr/ports/shells/zsh/Makefile file.
same applies to zshrc.zwc and zshenv files.
Seems sysconfdir configure directive is not applied or not honored.
adding --enable-etcdir=${PREFIX}/etc to CONFIGURE_ARGS fixes the situation.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list