Package: grep
Version: 2.5.3~dfsg-5
Tags: patch
User: [EMAIL PROTECTED]
Usertags: ubuntu-patch origin-ubuntu intrepid

Hi,

When building the current grep package on glibc 2.8, the configure
check for glibc's regex will get confused since it does not define
_GNU_SOURCE. As a result, it builds the package with the internal copy
of the regex library, which seems to be seriously broken (e. g. grep
-i does not work any more, see https://launchpad.net/bugs/241990).

I worked around this by explicitly configuring with
--without-included-regex. Upstream should fix their configure test to
define _GNU_SOURCE (and maybe also their internal regex lib), but as a
distribution the configure argument suffices for now.

Please note that this does not directly affect sid/lenny ATM, since we
are frozen with glibc 2.7. However, it is a future trap which we
should avoid altogether in Debian, so please feel free to apply it
right now.

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
diff -u grep-2.5.3~dfsg/debian/rules grep-2.5.3~dfsg/debian/rules
--- grep-2.5.3~dfsg/debian/rules
+++ grep-2.5.3~dfsg/debian/rules
@@ -12 +12 @@
-DEB_CONFIGURE_EXTRA_FLAGS := CFLAGS=-O3 --exec-prefix=/
+DEB_CONFIGURE_EXTRA_FLAGS := CFLAGS=-O3 --exec-prefix=/ 
--without-included-regex
diff -u grep-2.5.3~dfsg/debian/changelog grep-2.5.3~dfsg/debian/changelog
--- grep-2.5.3~dfsg/debian/changelog
+++ grep-2.5.3~dfsg/debian/changelog
@@ -1,3 +1,13 @@
+grep (2.5.3~dfsg-5ubuntu2) intrepid; urgency=low
+
+  * debian/rules: Configure with --without-included-regex, so that the
+    broken configure test does not erroneously think that our glibc doesn't
+    support regexes. (It fails to use _GNU_SOURCE in configure). The internal
+    one is broken and e. g. does not work with "grep -i". Thanks to
+    Jean-Baptiste Lallement for tracking this down! (LP: #241990)
+
+ -- Martin Pitt <[EMAIL PROTECTED]>  Thu, 17 Jul 2008 10:43:28 +0100
+
 grep (2.5.3~dfsg-5ubuntu1) intrepid; urgency=low
 
   * debian/rules, debian/control: Enable perl-regexp (-P) (LP: #15051, 

Attachment: signature.asc
Description: Digital signature

Reply via email to