Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 244047 Details for
Bug 332605
Pleasre review Prefix changes for sys-devel/clang
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
clang-2.7-r2-prefix.patch
clang-2.7-r2-prefix.patch (text/plain), 2.21 KB, created by
Fabian Groffen
on 2010-08-22 15:05:35 UTC
(
hide
)
Description:
clang-2.7-r2-prefix.patch
Filename:
MIME Type:
Creator:
Fabian Groffen
Created:
2010-08-22 15:05:35 UTC
Size:
2.21 KB
patch
obsolete
>Index: clang-2.7-r2.ebuild >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-2.7-r2.ebuild,v >retrieving revision 1.1 >diff -u -r1.1 clang-2.7-r2.ebuild >--- clang-2.7-r2.ebuild 27 Jul 2010 13:06:47 -0000 1.1 >+++ clang-2.7-r2.ebuild 22 Aug 2010 15:05:08 -0000 >@@ -2,7 +2,7 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-2.7-r2.ebuild,v 1.1 2010/07/27 13:06:47 voyageur Exp $ > >-EAPI=2 >+EAPI=3 > > RESTRICT_PYTHON_ABIS="3.*" > SUPPORT_PYTHON_ABIS="1" >@@ -17,7 +17,7 @@ > > LICENSE="UoI-NCSA" > SLOT="0" >-KEYWORDS="~amd64 ~x86" >+KEYWORDS="~amd64 ~x86 ~ppc-macos" > IUSE="debug +static-analyzer system-cxx-headers test" > > # Note: for LTO support, clang will depend on binutils with gold plugins, and LLVM built after that - http://llvm.org/docs/GoldPlugin.html >@@ -50,7 +50,7 @@ > # From llvm src_prepare > einfo "Fixing install dirs" > sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(PROJ_prefix)/share/doc/'${PF}, \ >- -e 's,^PROJ_etcdir.*,PROJ_etcdir := /etc/llvm,' \ >+ -e 's,^PROJ_etcdir.*,PROJ_etcdir := '"${EPREFIX}"'/etc/llvm,' \ > -e 's,^PROJ_libdir.*,PROJ_libdir := $(PROJ_prefix)/'$(get_libdir), \ > -i Makefile.config.in || die "Makefile.config sed failed" > >@@ -73,6 +73,12 @@ > --disable-expensive-checks" > fi > >+ # Setup the search path to include the Prefix includes >+ if use prefix ; then >+ CONF_FLAGS="${CONF_FLAGS} \ >+ --with-c-include-dirs=${EPREFIX}/usr/include:/usr/include" >+ fi >+ > if use amd64; then > CONF_FLAGS="${CONF_FLAGS} --enable-pic" > fi >@@ -127,10 +133,19 @@ > install-scan-view() { > insinto "$(python_get_sitedir)"/clang > doins Reporter.py Resources ScanView.py startfile.py >- touch "${D}"/"$(python_get_sitedir)"/clang/__init__.py >+ touch "${ED}"/"$(python_get_sitedir)"/clang/__init__.py > } > python_execute_function install-scan-view > fi >+ >+ # Fix install_names on Darwin. The build system is too complicated >+ # to just fix this, so we correct it post-install >+ if [[ ${CHOST} == *-darwin* ]] ; then >+ for lib in libCIndex.dylib ; do >+ install_name_tool -id "${EPREFIX}"/usr/lib/${lib} \ >+ "${ED}"/usr/lib/${lib} >+ done >+ fi > } > > pkg_postinst() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 332605
: 244047 |
244167