#2912 closed enhancement (fixed)
Diffutils-3.1
Reported by: | Matthew Burgess | Owned by: | Matthew Burgess |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Change History (7)
follow-up: 2 comment:1 by , 13 years ago
comment:2 by , 13 years ago
Replying to gespinasse:
checking for working GNU getopt function... no
That looks like it's due to them pulling in an updated getopt module from gnulib, which has the following code in it:
/* This code dumps core on glibc 2.14. */ { static char program[] = "program"; static char w[] = "-W"; static char dummy[] = "dummy"; char *argv[] = { program, w, dummy, NULL }; optind = opterr = 1; if (getopt (3, argv, "W;") != 'W') result |= 128; } }
This does indeed dump core, so you're getting the correct result.
comment:3 by , 13 years ago
By the way, discussion of the issue is at http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00103.html which also mentions that Glibc has been fixed upstream.
comment:4 by , 13 years ago
If you/we want to fix the bug in Glibc, rather than rely on the gnulib getopt module fix, the patch is at http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=01636b2140cd1281202b89f7103249ed598065c4. Given the pretty unlikely combination of requiring a 'W' short option with no corresponding long option, I'd suggest we just wait for Glibc-2.14.1 for the time being.
comment:5 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:6 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I spotted in configure result of diffutils-3.1
when it was previously yes on 3.0 and in all other packages I compile.