erikbstack
erikbstack

Reputation: 13254

Understanding a Bugfix for building Valgrind from source

I am trying to build Valgrind from source and ran into the same problem other's have before me. The proposed solutions where all quite hacky, though, which is not the way I like to do things. I also found something in the Ubuntu bugtracker for the Valgrind package:

Proposed fix:

valgrind (1:3.7.0-0ubuntu2) precise; urgency=low

  * Allow glibc 2.15 in the configure checks. (LP: #934127)
      - Add 0009-glibc-215.patch, cherry-picked from upstream.
      - Add 0010-automake-1.11.2.patch by Gregorio Guidi.
      - Use dh-autoreconf instead of autotools-dev.

      -- Felix Geyer <email address hidden> Fri, 17 Feb 2012 12:14:44 +0100

This was accepted as fix for the bug, so I figured it might be the real solution. Yet I can't apply it just like that.

Can someone translate the solution into a more applicable form?

Upvotes: 1

Views: 131

Answers (1)

Volker Stolz
Volker Stolz

Reputation: 7402

The easiest way would be to see if you can install the corresponding version through your package manager. If you really need to build it yourself, you will find the mentioned patches e.g. in the [..].debian.tar.gz archive.

If you look into the Ubuntu tracker, you will find:

diff -Nru valgrind-3.7.0/debian/patches/0009-glibc-215.patch valgrind-3.7.0/debian/patches/0009-glibc-215.patch
--- valgrind-3.7.0/debian/patches/0009-glibc-215.patch  1970-01-01 01:00:00.000000000 +0100
+++ valgrind-3.7.0/debian/patches/0009-glibc-215.patch  2012-02-17 12:14:29.000000000 +0100
@@ -0,0 +1,30 @@
+Description: add support for glibc 2.15
+Origin: upstream, http://sourceforge.net/mailarchive/forum.php?thread_name=20111229082456.D5FE6108870%40jail0086.vps.exonetric.net&forum_name=valgrind-developers
+
+Modified: trunk/configure.in
...

The SourceForge URL above tells you that this patch was committed in r.12323 to the Valgrind repo.

(The last remark about the autotools is specific to the Debian package building process, and has most likely nothing to do with your problem.)

Upvotes: 1

Related Questions