Gentoo Archives: gentoo-commits

From: Marc Schiffbauer <marc@×××××××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kdebase-startkde/, kde-base/kdebase-startkde/files/
Date: Tue, 05 Jul 2011 13:08:02
Message-Id: b172b02e599f3ee8fad05f4c93d32889ae1ec41c.mschiff@gentoo
1 commit: b172b02e599f3ee8fad05f4c93d32889ae1ec41c
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 5 13:07:38 2011 +0000
4 Commit: Marc Schiffbauer <marc <AT> schiffbauer <DOT> net>
5 CommitDate: Tue Jul 5 13:07:38 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=b172b02e
7
8 [kde-base/kdebase-startkde] Do not set MALLOC_CHECK_. Fixes bug #374077. Thx to Nikos Chantziaras
9
10 (Portage version: 2.2.0_alpha43/git/Linux x86_64, signed Manifest commit with key 0x35A64134)
11
12 ---
13 .../kdebase-startkde_do_not_set_MALLOC_CHECK.patch | 21 ++++++++++++++++++++
14 .../kdebase-startkde-4.6.90.ebuild | 5 +++-
15 2 files changed, 25 insertions(+), 1 deletions(-)
16
17 diff --git a/kde-base/kdebase-startkde/files/kdebase-startkde_do_not_set_MALLOC_CHECK.patch b/kde-base/kdebase-startkde/files/kdebase-startkde_do_not_set_MALLOC_CHECK.patch
18 new file mode 100644
19 index 0000000..8c62f8c
20 --- /dev/null
21 +++ b/kde-base/kdebase-startkde/files/kdebase-startkde_do_not_set_MALLOC_CHECK.patch
22 @@ -0,0 +1,21 @@
23 +--- a/startkde.cmake
24 ++++ b/startkde.cmake
25 +@@ -36,18 +36,6 @@ fi
26 + # we have to unset this for Darwin since it will screw up KDE's dynamic-loading
27 + unset DYLD_FORCE_FLAT_NAMESPACE
28 +
29 +-# Enable lightweight memory corruption checker if not already set
30 +-# -- this is for trunk only, we remove it for releases
31 +-if [ "x$MALLOC_CHECK_" = "x" ] && [ -x /lib/libc.so.6 ]; then
32 +- # Extract the first two components of the version from the output.
33 +- glibc_version=$(LC_ALL=C /lib/libc.so.6 | sed -e 's/[^0-9]*\([0-9]\.[0-9]\+\).*/\1/;s/\.\([0-9]\)$/.0\1/;q')
34 +-
35 +- MALLOC_CHECK_=2 # Default to 2 unless glibc 2.9 or higher.
36 +- test $glibc_version \> 2.08 && MALLOC_CHECK_=3
37 +-
38 +- export MALLOC_CHECK_
39 +-fi
40 +-
41 + # in case we have been started with full pathname spec without being in PATH
42 + bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
43 + if [ -n "$bindir" ]; then
44
45 diff --git a/kde-base/kdebase-startkde/kdebase-startkde-4.6.90.ebuild b/kde-base/kdebase-startkde/kdebase-startkde-4.6.90.ebuild
46 index 14f6fa9..7bf3eb4 100644
47 --- a/kde-base/kdebase-startkde/kdebase-startkde-4.6.90.ebuild
48 +++ b/kde-base/kdebase-startkde/kdebase-startkde-4.6.90.ebuild
49 @@ -45,7 +45,10 @@ KMEXTRACTONLY="
50 startkde.cmake
51 "
52
53 -PATCHES=("${FILESDIR}/gentoo-startkde4-4.patch")
54 +PATCHES=(
55 + "${FILESDIR}/gentoo-startkde4-4.patch"
56 + "${FILESDIR}/kdebase-startkde_do_not_set_MALLOC_CHECK.patch"
57 +)
58
59 src_prepare() {
60 kde4-meta_src_prepare