<?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>24984</bug_id>
          
          <creation_ts>2003-07-21 11:40 0000</creation_ts>
          <short_desc>chemtool 1.6 doesn&apos;t install binaries via the make install command</short_desc>
          <delta_ts>2003-08-07 11:50:59 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://pals.cwru.edu/~bgo/chemtool-bug.html</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>PositronMan@hotmail.com</reporter>
          <assigned_to>phosphan@gentoo.org</assigned_to>
          <cc>phosphan@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>PositronMan@hotmail.com</who>
            <bug_when>2003-07-21 11:40:18 0000</bug_when>
            <thetext>When I try to emerge chemtool-1.6, the files that should be installed with the &apos;
make DESTDIR=&quot;${D}&quot; install || die &quot;make install failed&quot;&apos; line, do not get
installed. I get no errors, and in fact, from the output of make install, it
looks like the process actually works! If I do &apos;make install&apos; by hand, the files
do get installed correctly. This is very strange, and I have absolutly no idea
what is going wrong. A copy of my emerge can be found at 
http://pals.cwru.edu/~bgo/chemtool-bug.html . I added a &apos;-v&apos; to /bin/install in
the makefile in hopes of getting more useful information.

Reproducible: Always
Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2003-08-05 00:19:57 0000</bug_when>
            <thetext>I am not able to reproduce your bug. Please try executing the steps seperately
ebuild /path/to/ebuild compile
ebuild /path/to/ebuild install
and then check the contents of the portage temp directory.
I wonder if those files are not copied there or if they are not found there when merging...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>PositronMan@hotmail.com</who>
            <bug_when>2003-08-05 10:43:19 0000</bug_when>
            <thetext>Okay, I&apos;ve just looked at this again and found the problem. The ebuild is buggy for people who don&apos;t use kde. In src_install() there are the following lines:

   if ! use kde; then
       rm -rf ${D}/${KDEDIR}
   fi

Since I don&apos;t have kde, ${KDEDIR} is undefined. Therefore the above line amounts to rm -rf ${D}/ , which deletes everything that &apos;make install&apos; just put in there. I think that a check for $KDEDIR, like

   if [ -z &quot;${KDEDIR}&quot; ]; then
       KDEDIR=boguskde;
   fi

at the beginning of the ebuild would fix the problem.

Hmmm, I just looked at environment.bz2 in the build-info directory, and I see a KDEDIRS=/usr, should there maybe be an S on the end of KDEDIR, or is there something wrong with my environment?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2003-08-05 23:52:45 0000</bug_when>
            <thetext>Ouch. Bad mistake by me. Just saying &quot;I want KDE support&quot; doesn&apos;t mean &quot;I have KDE&quot;... No, KDEDIR was just fine for people who are using KDE, both variables are set for them (KDEDIR=current version, KDEDIRS=other places to look for stuff) - please retry after next sync if it works for you.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>PositronMan@hotmail.com</who>
            <bug_when>2003-08-07 11:50:59 0000</bug_when>
            <thetext>Works for me now, Thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>