# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Paul Thompson 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" DEPEND="virtual/glibc >=binutils-2.9.1.0.25" SLOT="0" 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 } src_compile() { emake all || die } src_install() { into / dosbin ksymoops doman ksymoops.8 dodoc Changelog README README.XFree86 }