Package: avr-libc
Version: 1:1.8.0-2
Severity: important

Steps to reproduce (MANPATH is not set and /etc/manpath.config has not
been modified from the default):

1. export PATH=/usr/lib/ccache:/usr/bin:/bin
2. man 3 printf

Expected result:

2. man page for printf(3) from libc is shown

Actual result:

2. man page for avr_stdio(3) from avr-libc is shown instead

The reason for this curious result can be deduced from man -d output;
man tries to intelligently match directories in PATH with manual
directories. Having any directory in /usr/lib in the path has the same
result.

------------------------------------------------------------
$ echo $MANPATH

$ PATH=/usr/lib/ccache:/usr/bin:/bin man -w 3 printf
/usr/lib/share/man/man3/avr_stdio.3
$ PATH=/usr/lib/ccache:/usr/bin:/bin man -dw 3 printf
[...]
path directory /usr/lib/ccache is not in the config file
but does have a ../man, man, ../share/man, or share/man subdirectory
adding /usr/lib/share/man to manpath
[...]
------------------------------------------------------------

Having /usr/lib/ccache in PATH is useful and normal, because it
contains the ccache wrappers for gcc. It certainly should not result
in avr-libc manpages being shown...

        Sami


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.2 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages avr-libc depends on:
ii  binutils-avr  2.20.1-2
ii  gcc-avr       1:4.7.0-2

avr-libc recommends no packages.

avr-libc suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to