Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24984 - chemtool 1.6 doesn't install binaries via the make install command
Summary: chemtool 1.6 doesn't install binaries via the make install command
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Patrick Kursawe (RETIRED)
URL: http://pals.cwru.edu/~bgo/chemtool-bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-21 11:40 UTC by Brian
Modified: 2003-08-07 11:50 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian 2003-07-21 11:40:18 UTC
When I try to emerge chemtool-1.6, the files that should be installed with the '
make DESTDIR="${D}" install || die "make install failed"' 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 'make install' 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 '-v' to /bin/install in
the makefile in hopes of getting more useful information.

Reproducible: Always
Steps to Reproduce:
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2003-08-05 00:19:57 UTC
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...
Comment 2 Brian 2003-08-05 10:43:19 UTC
Okay, I've just looked at this again and found the problem. The ebuild is buggy for people who don't use kde. In src_install() there are the following lines:

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

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

   if [ -z "${KDEDIR}" ]; 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?
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2003-08-05 23:52:45 UTC
Ouch. Bad mistake by me. Just saying "I want KDE support" doesn't mean "I have KDE"... 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.
Comment 4 Brian 2003-08-07 11:50:59 UTC
Works for me now, Thanks.