Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 263359

Summary: sys-apps/man-1.6f-r3: man page rendering corruption
Product: Gentoo Linux Reporter: Eduard Nicodei <omega2youall>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: minor CC: jer
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 322459    

Description Eduard Nicodei 2009-03-22 12:03:51 UTC
Man pages are displayed incorrectly. The cause seems to be an incorrect man.conf provided by the ebuild. Line line 96 of man.conf reads:
      NROFF /usr/bin/nroff -mandoc

To solve the problem add " -Tascii -c " to the line above.
Note that this does not happen with man-1.6e. There, /usr/bin/nroff has both -Tascii and -c options enabled.

Reproducible: Always

Steps to Reproduce:
Just install man-1.6f-r3:
USE="-lzma nls" emerge "=man-1.6f-r3"
Actual Results:  
This is part of the output from `man cat`:
ESC[1mSYNOPSISESC[0m
       ESC[1mcat ESC[22m[ESC[4mOPTIONESC[24m]... [ESC[4mFILEESC[24m]...



Portage 2.1.6.9 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.28.5 x86_64)
=================================================================
System uname: Linux-2.6.28.5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-glibc2.2.5
Timestamp of tree: Sat, 21 Mar 2009 16:30:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.8
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://ftp.gentoo.bg/ http://distfiles.gentoo.bg/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j4 --quiet"
PKGDIR="/mnt/binhost/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage/"
USE="X acl acpi alsa amd64 bash-completion berkdb bzip2 cli cracklib crypt dbus dmx dri fam gdbm gif gnutls gpm hal hardened iconv isdnlog java jpeg jpeg2k libnotify midi mmx mp3 mudflap multilib ncurses nptl nptlonly nsplugin opengl openmp pam pcre perl png pppd python readline reflection sdl session spell spl sse sse2 ssl startup-notification sysfs tcpd threads tiff unicode vorbis xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2009-03-23 18:34:53 UTC
those are terminal sequences to enable bold and such.  you need a supporting terminal as well as a properly configured pager.  if you remove -R from LESS for example, it'll probably mess up the way you describe.

if you dont have any of these things (which are the defaults), that means you changed something and you can change man.conf to match your system.