blob: 2e596eac7a4ceecf26eb0c12a2a7399157551a6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/ksymoops/ksymoops-2.4.5.ebuild,v 1.13 2005/03/17 00:59:38 r3pek Exp $
DESCRIPTION="Utility to decode a kernel oops, or other kernel call traces."
SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/${P}.tar.gz"
HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/ksymoops/"
DEPEND="virtual/libc >=sys-devel/binutils-2.9.1.0.25"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc"
IUSE=""
src_unpack() {
unpack ${A}
cd ${S}
mv Makefile Makefile.orig
# static/dynamic hack
# unfortunately, binutils and gcc ebuilds both install a libiberty.a
# and gcc's is not compatible with binutils libbfd.a
# linking against a bad mixuture results in missing symbols.
# linking against the shared (dynamic) objects seems to work.
sed -e "/^STATIC/s:-Bstatic:-Bdynamic:" -e "s:-O2:${CFLAGS}:" < \
Makefile.orig > Makefile
# Note: this problem is fixed as of gcc-2.95.3-r6, so we can remove this
# fix eventually
}
src_compile() {
emake all || die
}
src_install() {
into /
dosbin ksymoops
doman ksymoops.8
dodoc Changelog README README.XFree86
}
|