summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2004-08-03 18:42:21 +0000
committerHeinrich Wendel <lanius@gentoo.org>2004-08-03 18:42:21 +0000
commit025e038bbdfb00917e46bf10d4935bf58967529a (patch)
tree64e7449137834766501bbda96e3a9e7d7b98d5bb /app-misc/lirc
parentMarked 0.99.3 stable. Revised pkg_postinst() messages. (Manifest recommit) (diff)
downloadgentoo-2-025e038bbdfb00917e46bf10d4935bf58967529a.tar.gz
gentoo-2-025e038bbdfb00917e46bf10d4935bf58967529a.tar.bz2
gentoo-2-025e038bbdfb00917e46bf10d4935bf58967529a.zip
don't use kmod if no modules are build, bug #59250
Diffstat (limited to 'app-misc/lirc')
-rw-r--r--app-misc/lirc/ChangeLog5
-rw-r--r--app-misc/lirc/lirc-0.7.0_pre7.ebuild11
2 files changed, 10 insertions, 6 deletions
diff --git a/app-misc/lirc/ChangeLog b/app-misc/lirc/ChangeLog
index 056723869553..39dd3badccf0 100644
--- a/app-misc/lirc/ChangeLog
+++ b/app-misc/lirc/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-misc/lirc
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.34 2004/08/02 22:05:50 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.35 2004/08/03 18:42:21 lanius Exp $
+
+ 03 Aug 2004; Heinrich Wendel <lanius@gentoo.org> lirc-0.7.0_pre7.ebuild:
+ don't use kmod if no modules are build, bug #59250
03 Aug 2004; Heinrich Wendel <lanius@gentoo.org> lirc-0.7.0_pre7.ebuild:
check if is_koutput, bug #59159
diff --git a/app-misc/lirc/lirc-0.7.0_pre7.ebuild b/app-misc/lirc/lirc-0.7.0_pre7.ebuild
index 3cabf112d923..401508990ca7 100644
--- a/app-misc/lirc/lirc-0.7.0_pre7.ebuild
+++ b/app-misc/lirc/lirc-0.7.0_pre7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.7.0_pre7.ebuild,v 1.3 2004/08/02 22:05:50 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.7.0_pre7.ebuild,v 1.4 2004/08/03 18:42:21 lanius Exp $
inherit eutils kmod
@@ -64,10 +64,6 @@ src_compile() {
[ "x${LIRC_OPTS}" = x ] && LIRC_OPTS="--with-driver=serial \
--with-port=0x3f8 --with-irq=4"
- if is_kernel 2 6 && ! is_koutput; then
- kmod_make_linux_writable
- fi
-
# remove parallel driver on SMP systems
if [ ! -z "`uname -v | grep SMP`" ]
then
@@ -81,6 +77,11 @@ src_compile() {
--enable-sandboxed \
${LIRC_OPTS} || die "./configure failed"
+ drivers=`cat drivers/Makefile | grep "^SUBDIRS ="`
+ if is_kernel 2 6 && ! is_koutput && [ "$drivers" != "SUBDIRS = " ]; then
+ kmod_make_linux_writable
+ fi
+
emake || die
}