summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Armak <danarmak@gentoo.org>2002-01-17 18:59:22 +0000
committerDan Armak <danarmak@gentoo.org>2002-01-17 18:59:22 +0000
commit0d9dabf7fbc8043a8ff43b33bce4225ced6bcfbf (patch)
tree54fe443dca431aa656f369a858adb0a3f5147788
parentfixo (diff)
downloadgentoo-2-0d9dabf7fbc8043a8ff43b33bce4225ced6bcfbf.tar.gz
gentoo-2-0d9dabf7fbc8043a8ff43b33bce4225ced6bcfbf.tar.bz2
gentoo-2-0d9dabf7fbc8043a8ff43b33bce4225ced6bcfbf.zip
added kde_sandbox_patch() functin that applies a sed to several makefiles from kdelibs, kdebase and kdenetwork. I'll
send tghe bug reports upstream to kde. the bug was that the makefiles ran chmod on files in $(bindir) not $(DSTDIR)/$(bindir) when installing, which made the sandbox abort.
-rw-r--r--eclass/kde.eclass34
1 files changed, 33 insertions, 1 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass
index 33d6f5f26edc..dbdd481c904f 100644
--- a/eclass/kde.eclass
+++ b/eclass/kde.eclass
@@ -1,7 +1,7 @@
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.35 2002/01/10 20:41:29 danarmak Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.36 2002/01/17 18:59:22 danarmak Exp $
# The kde eclass is inherited by all kde-* eclasses. Few ebuilds inherit straight from here.
inherit autoconf base kde-dirs
ECLASS=kde
@@ -93,3 +93,35 @@ kde_src_install() {
EXPORT_FUNCTIONS src_compile src_install
+# generic makefile sed for sandbox compatibility. for some reason when the kde makefiles (of many packages
+# and versions) try to chown root and chmod 4755 some binaries (after installing, target isntall-exec-local),
+# they do it to the files in $(bindir), not $(DESTDIR)/$(bindir). I'll file a bugreport on bugs.kde.org.
+
+# Pass a list of dirs to sed, Makefile.{am,in} in these dirs will be sed'ed.
+# This should be harmless if the makefile doesn't need fixing.
+kde_sandbox_patch() {
+
+ debug-print-function $FUNCNAME $*
+
+ while [ -n "$1" ]; do
+ # can't use dosed, because it only works for things in ${D}, not ${S}
+ cd $1
+ for x in Makefile.{am,in}
+ do
+ cp $x ${x}.orig
+ sed -e 's: $(bindir): $(DESTDIR)/$(bindir):g' ${x}.orig > ${x}
+ rm ${x}.orig
+ done
+ shift
+ done
+
+}
+
+
+
+
+
+
+
+
+