diff options
author | Patrick Lauer <patrick@gentoo.org> | 2010-03-01 15:34:34 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2010-03-01 15:34:34 +0000 |
commit | 288dd36968d9c078ac3689fa5562e6d2b27a9cb6 (patch) | |
tree | 0776096a154e6912975fee1b6f3f5bebd587acea /app-benchmarks/ltp | |
parent | Fixing deps etc., closes #299121, thanks to Francisco Javier (diff) | |
download | gentoo-2-288dd36968d9c078ac3689fa5562e6d2b27a9cb6.tar.gz gentoo-2-288dd36968d9c078ac3689fa5562e6d2b27a9cb6.tar.bz2 gentoo-2-288dd36968d9c078ac3689fa5562e6d2b27a9cb6.zip |
Bump, fixes #272660
(Portage version: 2.2_rc63/cvs/Linux x86_64)
Diffstat (limited to 'app-benchmarks/ltp')
-rw-r--r-- | app-benchmarks/ltp/ChangeLog | 9 | ||||
-rw-r--r-- | app-benchmarks/ltp/ltp-20100131.ebuild | 91 |
2 files changed, 98 insertions, 2 deletions
diff --git a/app-benchmarks/ltp/ChangeLog b/app-benchmarks/ltp/ChangeLog index cb56f959241d..a39ec30766b8 100644 --- a/app-benchmarks/ltp/ChangeLog +++ b/app-benchmarks/ltp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-benchmarks/ltp -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.17 2009/09/13 22:21:06 patrick Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ChangeLog,v 1.18 2010/03/01 15:34:34 patrick Exp $ + +*ltp-20100131 (01 Mar 2010) + + 01 Mar 2010; Patrick Lauer <patrick@gentoo.org> +ltp-20100131.ebuild: + Bump, fixes #272660 13 Sep 2009; Patrick Lauer <patrick@gentoo.org> ltp-20090131.ebuild: Removing virtual/libc deps diff --git a/app-benchmarks/ltp/ltp-20100131.ebuild b/app-benchmarks/ltp/ltp-20100131.ebuild new file mode 100644 index 000000000000..02d030c795f6 --- /dev/null +++ b/app-benchmarks/ltp/ltp-20100131.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/ltp/ltp-20100131.ebuild,v 1.1 2010/03/01 15:34:34 patrick Exp $ + +EAPI="2" + +inherit eutils portability flag-o-matic autotools + +MY_P="${PN}-full-${PV}" +S="${WORKDIR}/${MY_P}" +DESCRIPTION="Linux Test Project: testsuite for the linux kernel" +HOMEPAGE="http://ltp.sourceforge.net/" +SRC_URI="mirror://sourceforge/ltp/${MY_P}.tgz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +# add "dialog" to depends if ltpmenu is enabled + +src_prepare() { + # IDcheck patch not needed anymore, superseded by CREATE=0 + epatch "${FILESDIR}/runltp-path.patch" + + # All that remains of bad perl paths + sed -i -e '1s,#!/usr/bin/perl5,#!/usr/bin/perl,' \ + "${S}/testcases/ballista/ballista/create_code_standAlone.pl" +} + +src_compile() { + # avoid creating groups + export CREATE=0 + # Lazy binds are bad + # TODO: Fix in upstream package + append-ldflags -Wl,-z,now + # actually build + LDFLAGS="${LDFLAGS}" PREFIX=${D}/opt/blah emake DESTDIR="${D}" || die "emake failed" +} + +src_install() { + # avoid creating groups + export CREATE=0 + DESTDIR="${D}" make install || die "install failed" + dodir /usr/libexec/ltp/testcases + + treecopy testcases pan/pan runtest ver_linux IDcheck.sh \ + "${D}/usr/libexec/ltp" || die "treecopy failed" + # TODO: clean up testcases directory to only include the data files + + dobin runltp runalltests.sh || die "dobin failed" + + # TODO: fix this so it works from "outside" the source tree + # cp ltpmenu ${D}/usr/bin + + # fix world-writable files + chmod -R o-w "${D}/usr/libexec/ltp/testcases" + # Full list, TODO: fix in upstream +## a=/usr/libexec/ltp/testcases +## for i in ${a}/network/tcp_cmds/ftp/datafiles/ascii.sm \ +## ${a}/network/tcp_cmds/ftp/datafiles/ascii.med \ +## ${a}/network/tcp_cmds/ftp/datafiles/ascii.lg \ +## ${a}/network/tcp_cmds/ftp/datafiles/ascii.jmb \ +## ${a}/network/tcp_cmds/ftp/datafiles/bin.sm \ +## ${a}/network/tcp_cmds/ftp/datafiles/bin.med \ +## ${a}/network/tcp_cmds/ftp/datafiles/bin.lg \ +## ${a}/network/tcp_cmds/ftp/datafiles/bin.jmb \ +## ${a}/network/tcp_cmds/rcp/datafiles/bin.sm \ +## ${a}/network/tcp_cmds/rcp/datafiles/bin.med \ +## ${a}/network/tcp_cmds/rcp/datafiles/bin.lg \ +## ${a}/network/tcp_cmds/rcp/datafiles/bin.jmb \ +## ${a}/network/tcp_cmds/rcp/datafiles/ascii.sm \ +## ${a}/network/tcp_cmds/rdist/datafiles/bin.sm \ +## ${a}/network/tcp_cmds/rdist/datafiles/bin.med \ +## ${a}/network/tcp_cmds/rdist/datafiles/bin.lg \ +## ${a}/network/tcp_cmds/rdist/datafiles/bin.jmb \ +## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.sm \ +## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.med \ +## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.lg \ +## ${a}/network/tcp_cmds/sendfile/datafiles/ascii.jmb \ +## ${a}/network/nfs/nfs02/dat/smallsize.fil \ +## ${a}/network/nfs/nfs02/dat/medsize.fil \ +## ${a}/network/nfs/nfs02/dat/largesize.fil \ +## ${a}/network/nfs/nfs02/dat/maxsize.fil \ +## ${a}/network/ipv6/sendfile6/datafiles/ascii.sm \ +## ${a}/network/ipv6/sendfile6/datafiles/ascii.med \ +## ${a}/network/ipv6/sendfile6/datafiles/ascii.lg \ +## ${a}/network/ipv6/sendfile6/datafiles/ascii.jmb \ +## ${a}/kernel/sched/sched_stress/sched_datafile \ +## ${a}/bin/sched_datafile ; +## do chmod 644 ${D}${i} ; done ; +} |