Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4926 - CommonC++ 1.9.7 ebuild installs includes in wrong directory
Summary: CommonC++ 1.9.7 ebuild installs includes in wrong directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michael M Nazaroff (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-12 16:31 UTC by Olav Kolbu
Modified: 2003-02-04 19:42 UTC (History)
0 users

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 Olav Kolbu 2002-07-12 16:31:39 UTC
emerging CommonC++ 1.9.7 installs include-files under /include/cc++ instead of
/usr/include/cc++/. Not entirely sure why this is happening, as the ebuild-file
appears to be doing the right thing, but it does. :-)
Comment 1 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-13 05:27:30 UTC
Try to emerge rsync and emerge over again it works fine on my machine and
installs the includes in /usr
Comment 2 Olav Kolbu 2002-07-13 11:23:52 UTC
Let's try again, this time with a bit more ground work.

The configure script is run with the proper --prefix=/usr argument, so that part
is okay. However, when it comes to installing, the src_install() function in the
ebuild-file does not take the agreed upon prefix into account. It simply does:

src_install () {

    make prefix=${D} install || die
    dodoc AUTHORS INSTALL NEWS OVERVIEW.TXT ChangeLog\
                  README THANKS TODO COPYING COPYING.addendum
        dohtml doc/*
}

That first line should read

    make prefix=${D}/usr install || die

Otherwise, it will override the initial prefix-assignment from configure and
install it effectively with prefix /. My guess is that your /include is
symlinked to /usr/include so that you do not see the problem.

*Every* other ebuild-file that does installs this way has the extra /usr tagged
on at the end here, except commonc++. Check them out.
Comment 3 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-13 17:08:28 UTC
Well I will leave this open for additional comments.. if you want.. I bumpped up
to r1
Comment 4 Olav Kolbu 2002-07-14 04:32:14 UTC
going from prefix=${D} to DESTDIR=${D} in the r1 fix solved the problem, so you
can close this one.
Comment 5 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-14 07:08:30 UTC
Thanx for the quick reply.. it's much appriciated

naz