Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224875 - sys-apps/openrc-0.2.5: manpages get installed into /usr/athena/man/
Summary: sys-apps/openrc-0.2.5: manpages get installed into /usr/athena/man/
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-04 11:07 UTC by Martin Mokrejš
Modified: 2008-06-04 13:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge output (openrc.txt,63.08 KB, text/plain)
2008-06-04 11:10 UTC, Martin Mokrejš
Details
/usr/athena/ contents (openrc.txt,7.38 KB, text/plain)
2008-06-04 11:12 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2008-06-04 11:07:35 UTC
I don't understand why that happens but truly said I have no time to investigate at the very moment. I could in some while but maybe you will get it immediately why is it so. ;-)

Gentoo installs into FHS locations. I used to have /usr/athena created manually by kth-krb package and /usr/heimdal provided by heimdal. I mean these were created by manual install, not by install of Gentoo ebuilds of those.

Somehow, openrc installs manpages into /usr/athena/man/. I will attach full output.
Comment 1 Martin Mokrejš 2008-06-04 11:10:17 UTC
Created attachment 155487 [details]
emerge output
Comment 2 Martin Mokrejš 2008-06-04 11:12:39 UTC
Created attachment 155489 [details]
/usr/athena/ contents

Actually, it seems I have already removed in the past /usr/athena, so looks like openrc created the directory structure for me.
Comment 3 Martin Mokrejš 2008-06-04 11:14:04 UTC
# emerge --info
Portage 2.1.5.3 (default-linux/x86/2007.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.24.7 i686)
=================================================================
System uname: 2.6.24.7 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Timestamp of tree: Mon, 02 Jun 2008 09:17:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS=""
LINGUAS="en cs cz"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache2 audacious audiofile bash-completion bcmath berkdb blas boost bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glitz glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gstreamer gtk gtkhtml hal hdf hdf5 i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jikes jpeg jpeg2k kdtree kerberos lame lapack lcms leim libcaca libedit libwww live lzo lzw mad maildir matroska mhash midi mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline real recode reflection reiserfs rpm rtc samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales uuencode v4l v4l2 vcd vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcb xcf xfs xft xinetd xml xorg xpm xprint xsl xslt xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

# set |  grep athena
INFODIR=/usr/athena/info
MANDIR=/usr/athena/man
PATH=/root/bin:/usr/lib/ccache/bin:/usr/lib/distcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/athena/sbin:/usr/i686-pc-linux-gnu/gcc-bin/4.2.4:/opt/intel/cc/10.1.013/bin:/opt/intel/compiler91/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/var/qmail/bin:/var/vpopmail/bin
# grep athena /etc/*
/etc/csh.env:setenv INFODIR '/usr/athena/info'
/etc/csh.env:setenv MANDIR '/usr/athena/man'
/etc/csh.env:setenv PATH '/opt/bin:/usr/athena/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.2.4:/opt/intel/cc/10.1.013/bin:/opt/intel/compiler91/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/var/qmail/bin'
/etc/csh.env:setenv ROOTPATH '/opt/bin:/usr/athena/sbin:/usr/i686-pc-linux-gnu/gcc-bin/4.2.4:/opt/intel/cc/10.1.013/bin:/opt/intel/compiler91/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/var/qmail/bin:/var/vpopmail/bin'
/etc/ld.so.conf:/usr/athena/lib
/etc/profile.csh:setenv PATH '/opt/bin:/usr/athena/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.2.3:/opt/intel/cc/10.1.013/bin:/opt/intel/compiler91/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/var/qmail/bin'
/etc/profile.csh:setenv ROOTPATH '/opt/bin:/usr/athena/sbin:/usr/i686-pc-linux-gnu/gcc-bin/4.2.3:/opt/intel/cc/10.1.013/bin:/opt/intel/compiler91/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/var/qmail/bin:/var/vpopmail/bin'
/etc/profile.csh:setenv LDPATH '/usr/local/lib:/usr/athena/lib://usr//lib/opengl/xorg-x11/lib:/usr/i686-pc-linux-gnu/lib:/usr/lib/gcc/i686-pc-linux-gnu/4.1.1:/usr/lib/gcc/i686-pc-linux-gnu/4.2.3:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6:/opt/intel/cc/10.1.013/lib:/opt/intel/compiler91/lib:/usr/lib/nspr:/usr/lib/nss:/usr/lib/seamonkey:/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/native_threads/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/classic/:/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/server/:/usr/lib/qt4:/usr/qt/3/lib:/usr/lib/R/lib:/usr/lib/fltk-1.1:/usr/lib/libstdc++-v3/:/usr/lib/octave-2.1.71'
/etc/profile.csh:setenv MANDIR '/usr/athena/man'
/etc/profile.csh:setenv INFODIR '/usr/athena/info'
/etc/profile.env:export INFODIR='/usr/athena/info'
/etc/profile.env:export MANDIR='/usr/athena/man'
/etc/profile.env:export PATH='/opt/bin:/usr/athena/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.2.4:/opt/intel/cc/10.1.013/bin:/opt/intel/compiler91/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/var/qmail/bin'
/etc/profile.env:export ROOTPATH='/opt/bin:/usr/athena/sbin:/usr/i686-pc-linux-gnu/gcc-bin/4.2.4:/opt/intel/cc/10.1.013/bin:/opt/intel/compiler91/bin:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/var/qmail/bin:/var/vpopmail/bin'
#
Comment 4 Roy Marples 2008-06-04 11:28:59 UTC
It's because you have MANDIR set in your environment - you should unset that.
Comment 5 Martin Mokrejš 2008-06-04 11:32:55 UTC
But the files are automatically generated and second, why doesn't that affect any other packages?
Comment 6 Roy Marples 2008-06-04 12:29:05 UTC
OpenRC has a BSD style install system which respects user defined locations, of which MANDIR is one. Most packages in portage use GNU autotools to define package locations so would not be affected.

However, the question we should be asking is why athena wants to set MANDIR in the first place?
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2008-06-04 13:17:05 UTC
Your info pages will also be screwed up for packages using a BSD style make system.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2008-06-04 13:17:48 UTC
But this isn't an issue in the pkg.
Comment 9 Martin Mokrejš 2008-06-04 13:32:13 UTC
Unfortunately it is not clear to me why do I have set the MANPATH variable.
As I have shown it is not set in /etc/profile.

I see it now. One of the things I do not like that packages during uninstall leave in place files in e.g. /etc/init.d/ and /etc/conf.d, like openafs*, kth-krb (should be gone from portage now), and others. Anyway, here is what has happened:

# grep athena /etc/env.d/*
/etc/env.d/02kth-krb:PATH=/usr/athena/bin
/etc/env.d/02kth-krb:ROOTPATH=/usr/athena/sbin
/etc/env.d/02kth-krb:LDPATH=/usr/athena/lib
/etc/env.d/02kth-krb:MANDIR=/usr/athena/man
/etc/env.d/02kth-krb:INFODIR=/usr/athena/info
# ls -la /etc/env.d/02kth-krb
-rw-r--r-- 1 root root 118 Sep 27  2006 /etc/env.d/02kth-krb
#

I propose to have openrc resistant against such cases by unsetting MANPATH and
other variables. Or, at least scan through /etc/env.d/ and highlight possibly unused files. Or would it better to have etc-update to this kind of checks?
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2008-06-04 13:45:41 UTC
(In reply to comment #9)
> I propose to have openrc resistant against such cases by unsetting MANPATH and
> other variables. Or, at least scan through /etc/env.d/ and highlight possibly
> unused files. Or would it better to have etc-update to this kind of checks?
> 

It wouldn't just be MANPATH, it's be a lot of environment variables. It also wouldn't just be OpenRC it'd be a lot of packages. Additionally, the Package Management Spec allows many things to be overridden via the environment. Crafting this to be selective in allowing what you want to be overriden and what you don't on a per package basis would be insane from a work standpoint and impractical to maintain.
Comment 11 Martin Mokrejš 2008-06-04 13:48:32 UTC
I have deleted the /etc/env.d/02kth-krb file and re-run env-update but that did not re-create /etc/profile.csh whereas /etc/csh.env was rewritten. So I deleted /etc/profile.csh. Still would like to know what should I have done instead of removing it and why I have the file in the first place when I only use bash. ;-)
Comment 12 Martin Mokrejš 2008-06-04 13:50:44 UTC
Per comment #10: Still I think something should warn users that files not owned by any package exist in /etc/env.d/. I understand users are free to create files there but for most a warning would tell them some forgotten&unused files exist in there.