Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 201603 Details for
Bug 186279
llvm-base-2.0.ebuild and llvm-gcc-2.0.ebuild (new packages)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
llvm base ebuild, sys-devel/llvm-2.5-r1.ebuild
llvm-2.5-r1.ebuild (text/plain), 5.71 KB, created by
mehrunes
on 2009-08-18 11:49:08 UTC
(
hide
)
Description:
llvm base ebuild, sys-devel/llvm-2.5-r1.ebuild
Filename:
MIME Type:
Creator:
mehrunes
Created:
2009-08-18 11:49:08 UTC
Size:
5.71 KB
patch
obsolete
># Copyright 1999-2009 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: ># ebuild submitted by gentoo user mehrunes 18 aug 2009 > >inherit eutils toolchain-funcs > >DESCRIPTION="Low Level Virtual Machine" >HOMEPAGE="http://llvm.org/" >SRC_URI="http://llvm.org/releases/$PV/$PN-$PV.tar.gz" > >LICENSE="LLVM" ># most part of LLVM fall under the "University of Illinois Open Source License" ># which doesn't seem to exist in portage yet, so I call it 'LLVM' for now. it ># can be read from llvm/LICENSE.TXT in the source tarball. > ># the directory llvm/runtime/GCCLibraries/libc contains a stripped down C ># library licensed under the LGPL 2.1 with some third party copyrights, see the ># two LICENCE* files in that directory. Those parts do *not* get built, so ># we omit LGPL in ${LICENCE} > >SLOT="0" >KEYWORDS="~amd64 ~ppc ~x86" > >IUSE="debug pic bootstrap alltargets" ># 'jit' is not a flag anymore. at least on x86, disabling it saves nothing ># at all, so having it always enabled for platforms that support it is fine > ># we're not mirrored, fetch from homepage >RESTRICT="mirror" > >DEPEND="dev-lang/perl > >=sys-devel/make-3.79 > >=sys-devel/flex-2.5.4 > >=sys-devel/bison-1.28 > >=sys-devel/gcc-3.0 > >=sys-devel/binutils-2.18 > " >RDEPEND="dev-lang/perl" >PDEPEND="" > >S="$WORKDIR/$PN-$PV" > >pkg_setup() { > > broken_gcc=( 3.2.2 3.2.3 3.3.2 4.1.1 ) > broken_gcc_x86=( 3.4.0 3.4.2 ) > broken_gcc_amd64=( 3.4.6 ) > > gcc_vers=`gcc-fullversion` > > for version in ${broken_gcc[@]} > do > if [ "$gcc_vers" = "$version" ]; then > elog "Your version of gcc is known to miscompile llvm" > elog "check http://www.llvm.org/docs/GettingStarted.html for \ >possible solutions" > die "Your version of gcc is known to miscompile llvm" > fi > done > > if use x86; then > for version in ${broken_gcc_x86[@]} > do > if [ "$gcc_vers" = "$version" ]; then > elog "Your version of gcc is known to miscompile llvm in x86 \ >architectures" > elog "check http://www.llvm.org/docs/GettingStarted.html for \ >possible solutions" > die "Your version of gcc is known to miscompile llvm" > fi > done > fi > > if use amd64; then > for version in ${broken_gcc_amd64[@]} > do > if [ "$gcc_vers" = "$version" ]; then > elog "Your version of gcc is known to miscompile llvm in amd64 \ >architectures" > elog "check http://www.llvm.org/docs/GettingStarted.html for \ >possible solutions" > die "Your version of gcc is known to miscompile llvm" > fi > done > fi > > broken_bison=( 1.85 1.875 ) > > for version in ${broken_bison[@]} > do > if [ $(bison --version | head -n1 | cut -f4 -d" ") = "$version" ]; then > elog "Your version of Bison is known not to work with llvm, please \ >upgrade to a newer version" > die "Your version of Bison is known not to work with llvm" > fi > done > >} > >src_compile() { > # unfortunately ./configure won't listen to --mandir and the-like, so take > # care of this. > einfo "Fixing install dirs" > sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(DESTDIR)$(PROJ_prefix)/share/doc/'${PF}, \ > -e 's,^PROJ_etcdir.*,PROJ_etcdir := $(DESTDIR)/etc/llvm,' \ > -i Makefile.config.in || die "sed failed" > > # fix gccld and gccas, which would otherwise point to the build directory > einfo "Fixing gccld and gccas" > sed -e 's,^TOOLDIR.*,TOOLDIR=/usr/bin,' \ > -i tools/gccld/gccld.sh tools/gccas/gccas.sh || die "sed failed" > > # all binaries get rpath'd to a dir in the temporary tree that doesn't > # contain libraries anyway; can safely remove those to avoid QA warnings > # (the exception would be if we build shared libraries, which we don't) > einfo "Fixing rpath" > sed -e 's,-rpath \$(ToolDir),,g' -i Makefile.rules || die "sed failed" > > epatch "${FILESDIR}"/llvm-2.3-dont-build-hello.patch > epatch "${FILESDIR}"/llvm-2.3-disable-strip.patch > local CONF_FLAGS="" > > if use debug; then > CONF_FLAGS="${CONF_FLAGS} --disable-optimized" > einfo "Note: Compiling LLVM in debug mode will create huge and slow binaries" > # ...and you probably shouldn't use tmpfs, unless it can hold 900MB > else > CONF_FLAGS="${CONF_FLAGS} --enable-optimized --disable-assertions \ >--disable-expensive-checks" > fi > > if use alltargets; then > CONF_FLAGS="${CONF_FLAGS} --enable-targets=all" > else > CONF_FLAGS="${CONF_FLAGS} --enable-targets=host-only" > fi > > if use amd64 || use pic; then > CONF_FLAGS="${CONF_FLAGS} --enable-pic" > fi > > # things would be built differently depending on whether llvm-gcc is already > # present on the system or not. When not bootstapping we make sure that no > # llvm-gcc found > LLVM_GCC_DIR=/dev/null ; LLVM_GCC_DRIVER=nope > use bootstrap && { > # when bootstappin, make sure configure will find installed llvm-gcc > [ -z "$LLVM_GCC_PREFIX" ] && > LLVM_GCC_PREFIX=/usr/lib/llvm-gcc/$(ls /usr/lib/llvm-gcc|head -1) > [ -z $(ls $LLVM_GCC_PREFIX/bin/*-gcc) ] && > die "failed to find installed llvm-gcc, LLVM_GCC_PREFIX=$LLVM_GCC_PREFIX" > LLVM_GCC_DRIVER=$( ls $LLVM_GCC_DIR/bin/*-gcc | basename ) > einfo "using $LLVM_GCC_DRIVER residing in $LLVM_GCC_DIR" > } > CONF_FLAGS="${CONF_FLAGS} \ > --with-llvmgccdir=$LLVM_GCC_DIR --with-llvmgcc=$LLVM_GCC_DRIVER" > > econf ${CONF_FLAGS} || die "econf failed" > emake || die "emake failed" >} > >src_install() { > make DESTDIR="$D" install || die "make install failed" > > einfo "LLVM base is distributed under University of Illinois Open Source" > einfo "License, for details see doc/LICENSE.TXT" > dodoc $S/LICENSE.TXT > > # don't install html.tar.gz in /usr/share/doc > einfo "Removing archived html documentation" > rm "$D"/usr/share/doc/$PF/*tar.gz || > die "no such file $D/usr/share/doc/$PF/*tar.gz" > > # tblgen does not get installed, so remove their man pages. > # llvmgcc.1 and llvmgxx.1 are present here for unknown reasons. But, since > # llvm-gcc installs bad man pages, keep the 2 files alive > einfo "Removing unnecessary man page" > rm "${D}"/usr/share/man/man1/tblgen.1 >}
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 Raw
Actions:
View
Attachments on
bug 186279
:
125709
|
125710
|
125712
|
132036
|
132037
|
160508
|
160511
|
160513
|
160515
|
160558
|
163456
|
163457
|
165269
|
169784
|
171741
|
171745
|
184065
|
184068
|
185714
|
193178
|
198650
|
201594
|
201603
|
201739
|
202564
|
203064
|
204168