bugGNU nano - Bugs: bug #57061, [Request] at the end of...


You are not allowed to post comments on this tracker with your current authentication level.

bug #57061: [Request] at the end of ./configure, print the baked-in nanorc paths

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Wed 16 Oct 2019 08:17:19 AM UTC  
Votes:  10  
Severity:  1 - Wish Status:  None
Assigned to:  None Open/Closed:  Open

Tue 04 Feb 2020 03:04:47 PM UTC, comment #1: 

Adding the following at the end of configure.ac before AC_OUTPUT:

eval CONFIGDIR=${sysconfdir}

AC_MSG_RESULT([    The system's nanorc file is: $CONFIGDIR/nanorc.])
if eval "test x$CURSES_LIB_NAME != x"; then
    AC_MSG_RESULT([    Using '$CURSES_LIB_NAME' as curses library.])

and then running 'make', results in:

    The system's nanorc file is: NONE/etc/nanorc.
    Using 'ncursesw' as curses library.

And when then running ./configure with --prefix=/usr, it results in:

    The system's nanorc file is: /usr/etc/nanorc.
    Using 'ncursesw' as curses library.

This is wrong.  The autoconf documentation says that $sysconfdir and other such variables are meant to be used in the Makefiles, not during configure.  I don't see how this can be solved.

Benno Schulenberg <bens>
Project Administrator
Wed 16 Oct 2019 08:17:19 AM UTC, original submission:  

(Original suggestion was made by Robert Johnson in bug #55376, comment #3.)

When nano is configured without the --prefix option, it is by default configure for a "local" install: at startup it will read /usr/local/etc/nanorc instead of /etc/nanorc.  For many users (including myself) this is unexpected and frustrating, because the self-compiled nano seems to ignore /etc/nanorc.

So, it would be nice if nano would print at the end of ./configure what paths the compiled nano will use for reading the two nanorc files.

Benno Schulenberg <bens>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by carterpape (I would like to see this item fulfilled. Not being able to find config file locations is frustrating.)
  • -email is unavailable- added by bens (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 10 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-07 carterpape Carbon-Copy- => Added carterpape

    Back to the top

    Powered by Savane 3.5