Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499440 - make sys-devel/tcc prefix aware
Summary: make sys-devel/tcc prefix aware
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords: Inclusion, PATCH
Depends on:
Blocks: 353066
  Show dependency tree
 
Reported: 2014-01-27 10:58 UTC by Matthias Maier
Modified: 2014-04-02 23:47 UTC (History)
1 user (show)

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


Attachments
Patch against tcc-0.9.26-r1.ebuild for discussed changes (tcc-0.9.26-r1.ebuild.diff,640 bytes, patch)
2014-01-27 10:59 UTC, Matthias Maier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Maier gentoo-dev 2014-01-27 10:58:16 UTC
The ebuild for tcc calls configure with absolute paths:

    ./configure --cc="$(tc-getCC)" \
                --bindir=/usr/bin \
                --libdir=/usr/$(get_libdir) \
                --tccdir=tcc \
                --includedir=/usr/include \
                --docdir=/usr/share/doc/${PF} \
                --mandir=/usr/share/man

this is a bit unfortunate as it breaks prefix support. Simply refactoring this to

    ./configure --cc="$(tc-getCC)" \
                --prefix="${EPREFIX}/usr" \
                --libdir="${EPREFIX}/usr/$(get_libdir)"

leads to the same result and is prefix compatible (tested on ~amd64-linux). Patch attached for convencience.

Reproducible: Always
Comment 1 Matthias Maier gentoo-dev 2014-01-27 10:59:38 UTC
Created attachment 368862 [details, diff]
Patch against tcc-0.9.26-r1.ebuild for discussed changes
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2014-03-18 17:10:55 UTC
Patch looks ok to me.

@lang-misc: Any comments?
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2014-04-02 23:47:45 UTC
*tcc-0.9.26-r2 (02 Apr 2014)

  02 Apr 2014; Christoph Junghans <ottxor@gentoo.org> +tcc-0.9.26-r2.ebuild,
  tcc-9999.ebuild:
  added prefix support (bug #499440)