zsh-users / fizsh

Friendly Interactive ZSHell.
Other
299 stars 18 forks source link

Cannot modify install location of /etc/fizsh #3

Closed jayhendren closed 10 years ago

jayhendren commented 10 years ago

Despite changing my install prefix and system config directory, make install still attempts to install files to /etc:

[birdsnest ~/local/src/fizsh/fizsh-dev](master|✔)[I]% ./configure --prefix=$HOME/local/fizsh --sysconfdir=$HOME/local/fizsh/etc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating examples/Makefile
config.status: creating man/Makefile
config.status: creating scripts/Makefile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating examples/Makefile
config.status: creating man/Makefile
config.status: creating scripts/Makefile
[birdsnest ~/local/src/fizsh/fizsh-dev](master|✔)[I]% make && make install
Making all in src
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src'
Making all in doc
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc'
Making all in examples
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples'
Making all in man
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man'
Making all in scripts
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts'
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev'
Making install in src
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src'
make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src'
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src'
Making install in doc
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc'
make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/home/hendrenj/local/fizsh/share/doc/fizsh" || /usr/bin/mkdir -p "/home/hendrenj/local/fizsh/share/doc/fizsh"
 /usr/bin/install -c -m 644 copyright changelog '/home/hendrenj/local/fizsh/share/doc/fizsh'
make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc'
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc'
Making install in examples
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples'
make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples'
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples'
Making install in man
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man'
make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/home/hendrenj/local/fizsh/share/man/man1" || /usr/bin/mkdir -p "/home/hendrenj/local/fizsh/share/man/man1"
 /usr/bin/install -c -m 644 fizsh.1 '/home/hendrenj/local/fizsh/share/man/man1'
make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man'
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man'
Making install in scripts
make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts'
make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts'
test -z "/home/hendrenj/local/fizsh/bin" || /usr/bin/mkdir -p "/home/hendrenj/local/fizsh/bin"
 /usr/bin/install -c fizsh '/home/hendrenj/local/fizsh/bin'
test -z "/etc/fizsh" || /usr/bin/mkdir -p "/etc/fizsh"
/usr/bin/mkdir: cannot create directory ‘/etc/fizsh’: Permission denied
Makefile:213: recipe for target 'install-scriptSCRIPTS' failed
make[2]: *** [install-scriptSCRIPTS] Error 1
make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts'
Makefile:296: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts'
Makefile:219: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
[birdsnest ~/local/src/fizsh/fizsh-dev](master|✔)[I]%
guidovansteen commented 10 years ago

Hi Jay,

Thanks for you bug report!

The problem is that fizsh was written with the implicit assumption that people always would install it with uid 0. Therefore "/etc/fizsh" is currently assumed to be writable. Please excuses me for this piece of laziness (and/or ignorance).

Unfortunately I am quite busy now. Moreover, it may not easy to correct this bug. I will try to look into this later this week.

Best wishes,

Guido

On Fri, Mar 7, 2014 at 12:15 AM, Jay Hendren notifications@github.comwrote:

Despite changing my install prefix and system config directory, make install still attempts to install files to /etc:

birdsnest ~/local/src/fizsh/fizsh-dev[I]% ./configure --prefix=$HOME/local/fizsh --sysconfdir=$HOME/local/fizsh/etc checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating examples/Makefile config.status: creating man/Makefile config.status: creating scripts/Makefile configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating examples/Makefile config.status: creating man/Makefile config.status: creating scripts/Makefile birdsnest ~/local/src/fizsh/fizsh-dev[I]% make && make install Making all in src make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src' Making all in doc make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc' Making all in examples make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples' Making all in man make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man' Making all in scripts make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts' make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev' Making install in src make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src' make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src' make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/src' Making install in doc make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc' make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc' make[2]: Nothing to be done for 'install-exec-am'. test -z "/home/hendrenj/local/fizsh/share/doc/fizsh" || /usr/bin/mkdir -p "/home/hendrenj/local/fizsh/share/doc/fizsh" /usr/bin/install -c -m 644 copyright changelog '/home/hendrenj/local/fizsh/share/doc/fizsh' make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc' make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/doc' Making install in examples make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples' make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples' make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/examples' Making install in man make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man' make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man' make[2]: Nothing to be done for 'install-exec-am'. test -z "/home/hendrenj/local/fizsh/share/man/man1" || /usr/bin/mkdir -p "/home/hendrenj/local/fizsh/share/man/man1" /usr/bin/install -c -m 644 fizsh.1 '/home/hendrenj/local/fizsh/share/man/man1' make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man' make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/man' Making install in scripts make[1]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts' make[2]: Entering directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts' test -z "/home/hendrenj/local/fizsh/bin" || /usr/bin/mkdir -p "/home/hendrenj/local/fizsh/bin" /usr/bin/install -c fizsh '/home/hendrenj/local/fizsh/bin' test -z "/etc/fizsh" || /usr/bin/mkdir -p "/etc/fizsh" /usr/bin/mkdir: cannot create directory ‘/etc/fizsh’: Permission denied Makefile:213: recipe for target 'install-scriptSCRIPTS' failed make[2]: * [install-scriptSCRIPTS] Error 1 make[2]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts' Makefile:296: recipe for target 'install-am' failed make[1]: * [install-am] Error 2 make[1]: Leaving directory '/home/hendrenj/local/src/fizsh/fizsh-dev/scripts' Makefile:219: recipe for target 'install-recursive' failed make: *\ [install-recursive] Error 1 birdsnest ~/local/src/fizsh/fizsh-dev[I]%

— Reply to this email directly or view it on GitHubhttps://github.com/zsh-users/fizsh/issues/3 .

guidovansteen commented 10 years ago

Excuse me that this took a while, but this bug has been repaired now in fizsh version of number 1.0.6 (https://sourceforge.net/projects/fizsh/files/)