Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 336175 | Differences between
and this patch

Collapse All | Expand All

(-)a/sys-fs/mdadm/mdadm-3.1.4.ebuild (-2 / +17 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.1.4.ebuild,v 1.8 2010/11/09 19:17:44 armin76 Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.1.4.ebuild,v 1.8 2010/11/09 19:17:44 armin76 Exp $
4
4
5
inherit eutils flag-o-matic
5
inherit eutils flag-o-matic toolchain-funcs
6
6
7
DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
7
DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
8
HOMEPAGE="http://neil.brown.name/blog/mdadm"
8
HOMEPAGE="http://neil.brown.name/blog/mdadm"
Lines 16-41 Link Here
16
DEPEND=""
16
DEPEND=""
17
RDEPEND=">=sys-apps/util-linux-2.16"
17
RDEPEND=">=sys-apps/util-linux-2.16"
18
18
19
RESTRICT=test
20
19
src_unpack() {
21
src_unpack() {
20
	unpack ${A}
22
	unpack ${A}
21
	cd "${S}"
23
	cd "${S}"
22
	epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
24
	epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
23
	epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
25
	epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
24
	epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
26
	epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
27
	epatch "${FILESDIR}"/${P}-cflags.patch
25
	use static && append-ldflags -static
28
	use static && append-ldflags -static
26
29
27
	sed -i -e 's:-z now::' Makefile || die #331653
30
	sed -i -e 's:-z now::' Makefile || die #331653
28
}
31
}
29
32
30
src_compile() {
33
src_compile() {
34
	# set CC to prevent CROSS_COMPILE paradigm from being used.
31
	emake \
35
	emake \
32
		CROSS_COMPILE=${CHOST}- \
36
		CC="$(tc-getCC)" \
33
		CWFLAGS="-Wall" \
37
		CWFLAGS="-Wall" \
34
		CXFLAGS="${CFLAGS}" \
38
		CXFLAGS="${CFLAGS}" \
35
		all mdassemble \
39
		all mdassemble \
36
		|| die "emake failed"
40
		|| die "emake failed"
37
}
41
}
38
42
43
src_test() {
44
	emake \
45
		CC="$(tc-getCC)" \
46
		CWFLAGS="-Wall" \
47
		CXFLAGS="${CFLAGS}" \
48
		test || die "emake test failed"
49
50
	# are these tests dangerous? I'm not willing to try them. --binki
51
	sh ./test || die
52
}
53
39
src_install() {
54
src_install() {
40
	emake DESTDIR="${D}" install || die
55
	emake DESTDIR="${D}" install || die
41
	into /
56
	into /

Return to bug 336175