<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>5359</bug_id>
          
          <creation_ts>2002-07-21 17:22 0000</creation_ts>
          <short_desc>Summary of FHS violations</short_desc>
          <delta_ts>2002-09-01 09:40:01 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Unspecified</component>
          <version>1.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vapier@gentoo.org</reporter>
          <assigned_to>bug-wranglers@gentoo.org</assigned_to>
          <cc>azarah@gentoo.org</cc>
    
    <cc>danarmak@gentoo.org</cc>
    
    <cc>m.debruijne@matrict.nl</cc>
    
    <cc>Sandy@McArthur.org</cc>

      

      
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:22:47 0000</bug_when>
            <thetext>Gentoo &amp; FHS
http://www.gentoo.org/ &amp; http://www.pathname.com/fhs/

rather than opening multiple bug reports i thought i would just file this all 
under one ... ill add more comments as my box emerges more packages and i can 
check out where it installs stuff</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:23:09 0000</bug_when>
            <thetext>PKG:	stage1 / portage system
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.4.html
INFO:	does not include the [ binary
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:23:21 0000</bug_when>
            <thetext>PKG:	stage1
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.4.html
INFO:	/usr/bin/hostname should be /bin/hostname</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:23:47 0000</bug_when>
            <thetext>PKG:	sys-apps/cpio
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.4.html
INFO:	/usr/bin/cpio should be /bin/cpio
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:23:58 0000</bug_when>
            <thetext>PKG:	sys-apps/grub
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.5.html
INFO:	grub&apos;s configuration files should be in /etc (just menu.lst ?)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:24:10 0000</bug_when>
            <thetext>PKG:	app-misc/lhinv
LINK:	http://www.pathname.com/fhs/2.2/fhs-4.9.html
INFO:	nothing should be put in /usr/local/ by Gentoo
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:24:19 0000</bug_when>
            <thetext>PKG:	app-misc/lcdproc
LINK:	http://www.pathname.com/fhs/2.2/fhs-4.9.html
INFO:	nothing should be put in /usr/local/ by Gentoo
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:24:28 0000</bug_when>
            <thetext>PKG:	net-misc/icecast
LINK:	http://www.pathname.com/fhs/2.2/fhs-4.9.html
INFO:	nothing should be put in /usr/local/ by Gentoo
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:24:40 0000</bug_when>
            <thetext>PKG:	baselayout (?)
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.7.html
INFO:	there is not /etc/opt for config files for packages in /opt
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:24:56 0000</bug_when>
            <thetext>PKG:	net-misc/shout
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.7.html
INFO:	all config files should be in /etc ... shoutcast puts 
into /usr/icecast/etc/ and no symlink exists in /etc for it
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:25:06 0000</bug_when>
            <thetext>PKG:	dev-db/freetds
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.7.html
INFO:	freetds puts its config file in /usr/etc instead of /etc
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:25:21 0000</bug_when>
            <thetext>PKG:	app-games/grustibus
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.7.html
INFO:	all config files should be in /etc ... this package puts a config file 
into /usr/etc/gnome/config/gRustibus.d/catver
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:25:31 0000</bug_when>
            <thetext>PKG:	app-text/pinfo
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.7.html
INFO:	all config files should be in /etc ... this pkg makes /usr/etc/pinforc
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:25:40 0000</bug_when>
            <thetext>PKG:	app-misc/devtodo
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.7.html
INFO:	all config files should be in /etc ... this pkg makes /usr/etc/todorc
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:25:51 0000</bug_when>
            <thetext>PKG:	app-misc/uptimed
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.7.html
INFO:	all config files should be in /etc ... this pkg 
makes /usr/etc/uptimed.conf-dist

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:26:08 0000</bug_when>
            <thetext>PKG:	sys-apps/daemontools
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.2.html
INFO:	gentoo should not put anything in / ... daemontools makes /service
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:26:40 0000</bug_when>
            <thetext>PKG:	app-doc/qt-docs
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.2.html
INFO:	gentoo should not put anything in / ... qt-docs makes /
{examples,tutorial,man,doc,share}
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:26:48 0000</bug_when>
            <thetext>PKG:	app-emulation/vmware-workstation
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.2.html
INFO:	gentoo should not put anything in / ... vmware-workstation makes /share
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:26:56 0000</bug_when>
            <thetext>PKG:	app-misc/lcd4linux
LINK:	http://www.pathname.com/fhs/2.2/fhs-3.2.html
INFO:	gentoo should not put anything in / ... lcd4linux makes /share
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>g2boojum@gentoo.org</who>
            <bug_when>2002-07-21 17:54:58 0000</bug_when>
            <thetext>Thanks!  Most of these look like genuine bugs.  CCing Azarah for baselayout stuff.
I&apos;m confused by the first entry, a &quot;[&quot; binary?  We do violate the FHS when it
comes to DJB / daemontools stuff -- it&apos;s just too painful for users if
we don&apos;t use /service.  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 17:56:59 0000</bug_when>
            <thetext>[from http://www.pathname.com/fhs/2.2/fhs-3.4.html]

The requirement for the [ and test commands to be included as binaries (even if 
implemented internally by the shell) is shared with the POSIX.2 standard.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-07-21 18:09:16 0000</bug_when>
            <thetext>Comment #1:  /usr/bin/test (part of sh-utils) are there as required.  &apos;[&apos; is
provided by bash/sh (where sh is a link to /bin/bash) as required.

Comment #2:  It should be /bin/hostname now, but things have changed recently,
so it could be that for our current stage1, it is still /usr/bin/hostname.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-07-21 18:10:58 0000</bug_when>
            <thetext>Whoops, didnt read http://www.pathname.com/fhs/2.2/fhs-3.4.html properly.

Should /usr/bin/test also be installed as /usr/bin/[ ?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-07-21 18:11:59 0000</bug_when>
            <thetext>Comment #8: Will be addressed in next baselayout.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-07-21 18:20:42 0000</bug_when>
            <thetext>Comment #22 should read: Should /usr/bin/test also be installed as /usr/bin/[
as well?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 18:31:13 0000</bug_when>
            <thetext>i have no idea wtf a [ binary is ;)
i&apos;m just going by the fact Gentoo has no [ binary ...

as for just symlinking [ to test ... i dont *think* that will work because if 
you issue the cmd &apos;[ 1 == 0 ]&apos; then you&apos;ll be bassing &quot;1 == 0 ]&quot; to test which 
will be incorrect ... although i have no idea ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-07-21 18:40:34 0000</bug_when>
            <thetext>nosferatu bin # ln -s test [
nosferatu bin # [ -f /etc/hosts ] &amp;&amp; echo yes
yes
nosferatu bin # [ -f /etc/hostss ] &amp;&amp; echo yes
nosferatu bin # 


It actually do work :P  Do you have access to Redhat/Mandrake/Debian to have
a look ?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-07-21 18:41:39 0000</bug_when>
            <thetext>./[: /etc/hostss: binary operator expected
nosferatu bin # ./[ -f /etc/hostss &amp;&amp; echo yes
nosferatu bin # ./[ -f /etc/hosts &amp;&amp; echo yes
yes
nosferatu bin # 


Bleah, maybe not.  Guess it was bash who override things.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2002-07-21 19:47:13 0000</bug_when>
            <thetext>(from a shell server i have access to)
bash-2.05a$ uname -a
FreeBSD Mars.unixrules.net 4.6-STABLE FreeBSD 4.6-STABLE #5: Sat Jul 13 
06:54:17 PDT 2002     riko@Mars.unixrules.net:/usr/src/sys/compile/mars  i386
bash-2.05a$ ls -ali \[ test
 101534 -r-xr-xr-x   2 root     wheel         53k Jul  7 23:43 [*
 101534 -r-xr-xr-x   2 root     wheel         53k Jul  7 23:43 test*
bash-2.05a$ ./\[ -f /etc/hosts ] &amp;&amp; echo yes
yes

how about this little hack of a binary ? :)
#include &lt;unistd.h&gt;
int main(int argc, char **argv) {
        argv[0][0] = &apos;[&apos;;
        argv[0][1] = &apos;\0&apos;;
        execv(&quot;/usr/bin/test\0&quot;, argv);
        execv(&quot;/bin/test\0&quot;, argv);
        return 0;
}
rux0r bin # cd /usr/bin/
rux0r bin # gcc \[.cpp -o \[
rux0r bin # ./\[ -f /etc/hosts ] &amp;&amp; echo YES
YES
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2002-07-22 00:00:03 0000</bug_when>
            <thetext>good job, spanky :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>danarmak@gentoo.org</who>
            <bug_when>2002-07-22 06:02:21 0000</bug_when>
            <thetext>#4: grub&apos;s menu.lst has to be on the boot partition I think. And since our /boot isn&apos;t mounted by default, a symlink from /etc wuoldn&apos;t really work, it&apos;d be broken most of the time. Ideas?  #16: I have a bug about on it on my list, working to fix. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>karltk@gentoo.org</who>
            <bug_when>2002-07-22 10:46:56 0000</bug_when>
            <thetext>app-text/pinfo-0.6.5_p2-r1 contains a proper fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spider@gentoo.org</who>
            <bug_when>2002-07-22 15:43:25 0000</bug_when>
            <thetext>Mandrake 8.2 system:
[spider@m&amp;#65533;ndrake spider]$ ls /usr/bin/[ -al
lrwxrwxrwx    1 root     root            4 Jul 21 21:19 /usr/bin/[ -&gt; test*
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2002-08-30 11:03:29 0000</bug_when>
            <thetext>Dan, is it possible to bring qt-docs into FHS compliance?

William, can you check the vmware-workstation compliance, please?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2002-08-30 11:06:36 0000</bug_when>
            <thetext>lcd4linux seems to behave fine, though</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Sandy@McArthur.org</who>
            <bug_when>2002-08-30 12:43:27 0000</bug_when>
            <thetext>At first I was baffeled by vmware-workstation putting anything in /share but
looking at the ebuild I see that if any of: $KDE2DIR, $KDE3DIR, $KDEDIR isn&apos;t
set it could do that.

could someone point me to info on what the proper use of $KDE*DIR is I&apos;ll fix it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>danarmak@gentoo.org</who>
            <bug_when>2002-08-30 15:55:17 0000</bug_when>
            <thetext>KDE2DIR and KDE3DIR are deprecated, and were never very officially supported. 
 
/usr is now in KDEDIRS. Meaning, that you can (and should) just install files 
(menu items etc) in the right place under the /usr main hierarchy and kde will 
pick them up. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>danarmak@gentoo.org</who>
            <bug_when>2002-08-30 16:06:40 0000</bug_when>
            <thetext>qt-docs: it&apos;s a bug where it puts things into /. Several people have reported 
that, both with qt and qt-docs, and it drove me mad for a while because I 
couldn&apos;t reproduce it. I never did, but people stopped reporting it. Did you 
hit this bug, seemant? If so you could be of great help in debugging it :-) 
 
Just look at its src_install, I can&apos;t see how things can end in /... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>danarmak@gentoo.org</who>
            <bug_when>2002-08-31 13:55:00 0000</bug_when>
            <thetext>OK, I&apos;ve fixed the vmware issue. Committed. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2002-09-01 09:40:01 0000</bug_when>
            <thetext>closing this bug then, coz I think all the issues are sorted.

note to danarmak: the qt/qt-docs issue never bit me at all.

possibly they tried to install qt-docs without qt installed?

thanks much to SpanKY :)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>