Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 499440

Summary: make sys-devel/tcc prefix aware
Product: Gentoo/Alt Reporter: Matthias Maier <tamiko>
Component: Prefix SupportAssignee: Maintainers for Miscelleneous Language Packages [OBSOLETE] <lang-misc+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: prefix
Priority: Normal Keywords: Inclusion, PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 353066    
Attachments: Patch against tcc-0.9.26-r1.ebuild for discussed changes

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)