]>
Commit | Line | Data |
---|---|---|
3a58abaf AM |
1 | https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225783 |
2 | ||
3 | ||
4 | Index: gdb-6.8.50.20081128/gdb/Makefile.in | |
5 | =================================================================== | |
6 | --- gdb-6.8.50.20081128.orig/gdb/Makefile.in 2008-12-02 23:06:16.000000000 +0100 | |
7 | +++ gdb-6.8.50.20081128/gdb/Makefile.in 2008-12-02 23:28:02.000000000 +0100 | |
8 | @@ -1490,8 +1490,10 @@ po/$(PACKAGE).pot: force | |
9 | ||
10 | .SUFFIXES: .y .l | |
11 | .y.c: | |
12 | - $(SHELL) $(YLWRAP) $< y.tab.c $@.tmp -- $(YACC) $(YFLAGS) | |
13 | - -sed -e '/extern.*malloc/d' \ | |
14 | + rm -f $@ $@.tmp | |
15 | + $(SHELL) $(YLWRAP) $< y.tab.c $@ -- $(YACC) $(YFLAGS) && mv $@ $@.tmp \ | |
16 | + || (rm -f $@; false) | |
17 | + sed -e '/extern.*malloc/d' \ | |
18 | -e '/extern.*realloc/d' \ | |
19 | -e '/extern.*free/d' \ | |
20 | -e '/include.*malloc.h/d' \ | |
21 | @@ -1500,9 +1502,9 @@ po/$(PACKAGE).pot: force | |
22 | -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \ | |
23 | -e 's/\([ \t;,(]\)free$$/\1xfree/g' \ | |
24 | -e '/^#line.*y.tab.c/d' \ | |
25 | - < $@.tmp > $@.new | |
26 | - -rm $@.tmp | |
27 | - mv $@.new ./$*.c | |
28 | + -e "s/^\(#line.*\)`basename $<`/\1`echo $<|sed 's/\//\\\\\//g'`/" \ | |
29 | + < $@.tmp > $@ | |
30 | + rm -f $@.tmp | |
31 | .l.c: | |
32 | if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \ | |
33 | $(FLEX) -o$@ $< && \ |