Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24449 - [less] lesskey file in /usr/etc

Attached to Project: Arch Linux
Opened by Mike Rybak (mrybak) - Thursday, 26 May 2011, 10:51 GMT
Last edited by Stéphane Gaudreault (stephane) - Thursday, 26 May 2011, 14:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

From the man page for less: "Otherwise, less looks in a standard place for the system-wide lesskey file: On Unix systems, the system-wide lesskey file is /usr/local/etc/sysless. (However, if less was built with a different sysconf directory than /usr/local/etc, that directory is where the sysless file is found.)"

The package is currently built with the --prefix=/usr which forces less to look for sysless in /usr/etc/. I tested this and it does work, however, there isn't supposed to be a /usr/etc/ directory according to the FHS (http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY).

Additional info:
* package version(s)
* config and/or log files etc.

Considering you're putting the binaries in /bin and /usr/bin, perhaps --prefix=/. would make more sense? or perhaps one of the more specific overrides such as --sysconfdir=/. (note, I'm using /. because the configure script appends strings starting with a /). /etc/sysless would be consistent with the rules of FHS.

Steps to reproduce:

(login as root)
mkdir /usr/etc
lesskey -o /usr/etc/sysless -
#env
LESS=-R
^D
/bin/ls --color=always -la /etc | less

This should show you the colorized ls output even inside less (because of -R). If you then do:
rm /usr/etc/sysless
rmdir /usr/etc
/bin/ls --color=always -la /etc | less

You should see the ANSI color codes embedded in the ls output (no -R option).
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Thursday, 26 May 2011, 14:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  less-443-2 in [testing]
Comment by Evangelos Foutras (foutrelis) - Thursday, 26 May 2011, 12:07 GMT
[offtopic]Please write descriptive summaries when filing bug reports.[/offtopic]

Loading...