<?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>57227</bug_id>
          
          <creation_ts>2004-07-15 14:29 0000</creation_ts>
          <short_desc>app-misc/bins explicitly puts files into /usr/local</short_desc>
          <delta_ts>2004-12-21 07:10:37 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>52088</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>RAGermany@gmx.net</reporter>
          <assigned_to>perl@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>RAGermany@gmx.net</who>
            <bug_when>2004-07-15 14:29:32 0000</bug_when>
            <thetext>While looking at my /usr/local I found out that app-misc/bins installed its templates and locale into /usr/local/share instead of /usr/share. Looking at the ebuild shows that the files were put there intentionally althogh /usr/local should never be touched by ebuilds in the portage tree (except baselayout). Here is the relevant section:

src_install() {
        echo &quot;&quot; |env DESTDIR=${D} PREFIX=&quot;/usr&quot; ./install.sh || die
        # Fix for pathing
        for i in `grep -l portage ${D}/usr/bin/*`; do
                sed -i -e  &quot;s:${D}:/:&quot; ${i}
        done

        mkdir ${D}/usr/local
        mv ${D}/usr/share ${D}/usr/local/

        sed -i -e &quot;s:/usr/share:/usr/local/share:&quot; ${D}/usr/bin/bins

}


Reproducible: Always
Steps to Reproduce:
1. emerge app-misc/bins

Actual Results:  
The bins templates and locale are installed into /usr/local/share

Expected Results:  
Templates and locale should be under /usr/share</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2004-07-15 14:31:52 0000</bug_when>
            <thetext>wow, the maintainer&apos;s a surprise</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>RAGermany@gmx.net</who>
            <bug_when>2004-07-15 14:35:22 0000</bug_when>
            <thetext>I thought the same thing. Never seen Aron make mistakes like this...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-07-15 15:32:10 0000</bug_when>
            <thetext>has nothing to do with Aron

was introduced with 1.1.26 and Bug 52088</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corporate_gadfly@hotmail.com</who>
            <bug_when>2004-07-16 05:51:00 0000</bug_when>
            <thetext>I am the original reporter of bug 52088. Note, that I tried to pursuade Michael to use /usr/share instead of /usr/local/share (see bug 52088 comment 2 point #2). To which Michael replied that /usr/local came from upstream (see bug 52088 comment 3). Sorry if I caused any problems (sheephish grin).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mcummings@gentoo.org</who>
            <bug_when>2004-12-21 07:10:37 0000</bug_when>
            <thetext>my head on a platter is now committed.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>