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#12182 - ABCDE package: test for /usr/bin/less fails

Attached to Project: Arch Linux
Opened by Mads (chochem) - Wednesday, 19 November 2008, 18:32 GMT
Last edited by Jeff Mickey (codemac) - Tuesday, 20 January 2009, 22:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Aaron Griffin (phrakture)
Jeff Mickey (codemac)
Architecture All
Severity Very Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In the abcde script(/usr/bin/abcde) line 1596:

elif [ -x /usr/bin/less ]; then

always fails, since a "type less" on my system (and supposedly all arch systems) reveals less to be /bin/less. Adding a symbolic link works.

Version: 2.3.3-3
This task depends upon

Closed by  Jeff Mickey (codemac)
Tuesday, 20 January 2009, 22:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  bam.
Comment by Alessandro Doro (adoroo) - Saturday, 22 November 2008, 14:27 GMT
You should export PAGER=/bin/less. Many programs use it.

OT: I think "which less" is more appropriate. Or "type -P less" (in bash).
Comment by Alessandro Doro (adoroo) - Saturday, 22 November 2008, 14:40 GMT
Or PAGER=less.

Anyway there is an interesting point. Should some utility in /bin have a symlink in /usr/bin?

The FHS states:
/bin contains commands that may be used by both the system administrator and by users, but which are required when no other filesystems are mounted (e.g. in single user mode). It may also contain commands which are used indirectly by scripts.

Is less (in Arch Linux) needed in /bin? 'less' is a base package and the only pager in base: maybe the answer is yes.
Comment by Alessandro Doro (adoroo) - Friday, 16 January 2009, 16:41 GMT
Sorry for bumping a very low severity task.
abcde seems to be rather Debian-centric; it can be Arch-ized patching line 1596.
Another solution is a post-install warning to set PAGER.
Better complain upstream to document it in the manpage or fix the script looking at /bin/less also.

BTW it seems that http://www.hispalinux.es/~data/abcde.php is no more valid (404) and the project is hosted at http://code.google.com/p/abcde/. Most recent svn tag is: 2.3.99.7.
Comment by Aaron Griffin (phrakture) - Friday, 16 January 2009, 22:32 GMT
I'd say we sed this in the PKGBUILD. That's in the spirit of our patching policy - making things work with the way we do things. Jeff, could you go ahead and do that?

Loading...