- Package review, analysed by Ralf Corsepius (BZ 225783).

- Fix prelink(8) testcase for non-root $PATH missing `/usr/sbin' (BZ
    225783).
- Fix debugging GDB itself - the compiled in source files paths (BZ
    225783).
- Fix harmless GCORE stack buffer overflow, by _FORTIFY_SOURCE=2 (BZ
    235753).
- Fix XML support - the build was missing `expat-devel'.
- Updated the `info' files handling by the spec file.
- Building now with the standard Fedora code protections -
    _FORTIFY_SOURCE=2.
- Use multiple CPUs for the build (%{?_smp_mflags}).
- Separate testsuite run to its %check section.
- Fix (remove) non-ASCII spec file characters.
- Remove system tools versions dumping - already present in mock build
    logs.
- Reverts: rhbz#235197
- Related: rhbz#235197 rhbz#225783
- Resolves: rhbz#235753
This commit is contained in:
Jan Kratochvil 2007-04-24 15:57:25 +00:00
parent 4b94240967
commit 8336d588bf
4 changed files with 296 additions and 139 deletions

View File

@ -1,17 +1,3 @@
Index: gdb-6.6/gdb/configure
===================================================================
--- gdb-6.6.orig/gdb/configure
+++ gdb-6.6/gdb/configure
@@ -20991,7 +20991,8 @@ fi
# gdb/doc/gdbint.texinfo.
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
--Wunused-label -Wunused-function -Wno-pointer-sign"
+-Wunused-label -Wunused-function -Wno-pointer-sign -Wno-unused \
+-Wp,-U_FORTIFY_SOURCE"
# GCC supports -Wuninitialized only with -O or -On, n != 0.
if test x${CFLAGS+set} = xset; then
Index: gdb-6.6/gdb/mi/mi-cmd-env.c Index: gdb-6.6/gdb/mi/mi-cmd-env.c
=================================================================== ===================================================================
--- gdb-6.6.orig/gdb/mi/mi-cmd-env.c --- gdb-6.6.orig/gdb/mi/mi-cmd-env.c
@ -534,20 +520,6 @@ Index: gdb-6.6/gdb/varobj.c
/* Set ourselves as our root */ /* Set ourselves as our root */
var->root->rootvar = var; var->root->rootvar = var;
Index: gdb-6.6/gdb/configure.ac
===================================================================
--- gdb-6.6.orig/gdb/configure.ac
+++ gdb-6.6/gdb/configure.ac
@@ -1112,7 +1112,8 @@ fi
# gdb/doc/gdbint.texinfo.
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
--Wunused-label -Wunused-function -Wno-pointer-sign"
+-Wunused-label -Wunused-function -Wno-pointer-sign -Wno-unused \
+-Wp,-U_FORTIFY_SOURCE"
# GCC supports -Wuninitialized only with -O or -On, n != 0.
if test x${CFLAGS+set} = xset; then
Index: gdb-6.6/gdb/doublest.c Index: gdb-6.6/gdb/doublest.c
=================================================================== ===================================================================
--- gdb-6.6.orig/gdb/doublest.c --- gdb-6.6.orig/gdb/doublest.c
@ -572,3 +544,121 @@ Index: gdb-6.6/gdb/doublest.c
} }
if (len < sizeof(result) * FLOATFORMAT_CHAR_BIT) if (len < sizeof(result) * FLOATFORMAT_CHAR_BIT)
/* Mask out bits which are not part of the field */ /* Mask out bits which are not part of the field */
diff -u -rup gdb-6.6-orig/gdb/cli/cli-cmds.c gdb-6.6/gdb/cli/cli-cmds.c
--- gdb-6.6-orig/gdb/cli/cli-cmds.c 2007-04-08 20:49:09.000000000 +0200
+++ gdb-6.6/gdb/cli/cli-cmds.c 2007-04-08 20:54:49.000000000 +0200
@@ -323,7 +323,8 @@ pwd_command (char *args, int from_tty)
{
if (args)
error (_("The \"pwd\" command does not take an argument: %s"), args);
- getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
+ /* Unused result. */
+ 1 && getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
if (strcmp (gdb_dirbuf, current_directory) != 0)
printf_unfiltered (_("Working directory %s\n (canonically %s).\n"),
diff -u -rup gdb-6.6-orig/gdb/inflow.c gdb-6.6/gdb/inflow.c
--- gdb-6.6-orig/gdb/inflow.c 2006-02-10 23:01:43.000000000 +0100
+++ gdb-6.6/gdb/inflow.c 2007-04-08 20:56:48.000000000 +0200
@@ -549,17 +549,20 @@ new_tty (void)
if (tty != 0)
{
close (0);
- dup (tty);
+ /* Unused result. */
+ 1 && dup (tty);
}
if (tty != 1)
{
close (1);
- dup (tty);
+ /* Unused result. */
+ 1 && dup (tty);
}
if (tty != 2)
{
close (2);
- dup (tty);
+ /* Unused result. */
+ 1 && dup (tty);
}
if (tty > 2)
close (tty);
diff -u -rup gdb-6.6-orig/gdb/linux-nat.c gdb-6.6/gdb/linux-nat.c
--- gdb-6.6-orig/gdb/linux-nat.c 2007-04-08 20:49:11.000000000 +0200
+++ gdb-6.6/gdb/linux-nat.c 2007-04-08 20:54:08.000000000 +0200
@@ -2972,7 +2972,8 @@ linux_nat_info_proc_cmd (char *args, int
sprintf (fname1, "/proc/%lld/cmdline", pid);
if ((procfile = fopen (fname1, "r")) > 0)
{
- fgets (buffer, sizeof (buffer), procfile);
+ /* Unused result. */
+ 1 && fgets (buffer, sizeof (buffer), procfile);
printf_filtered ("cmdline = '%s'\n", buffer);
fclose (procfile);
}
diff -u -rup gdb-6.6-orig/gdb/main.c gdb-6.6/gdb/main.c
--- gdb-6.6-orig/gdb/main.c 2007-04-08 20:49:09.000000000 +0200
+++ gdb-6.6/gdb/main.c 2007-04-08 20:55:30.000000000 +0200
@@ -195,7 +195,8 @@ captured_main (void *data)
line[0] = '\0'; /* Terminate saved (now empty) cmd line */
instream = stdin;
- getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
+ /* Unused result. */
+ 1 && getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
current_directory = gdb_dirbuf;
gdb_stdout = stdio_fileopen (stdout);
diff -u -rup gdb-6.6-orig/gdb/mi/mi-cmd-env.c gdb-6.6/gdb/mi/mi-cmd-env.c
--- gdb-6.6-orig/gdb/mi/mi-cmd-env.c 2007-04-08 20:49:09.000000000 +0200
+++ gdb-6.6/gdb/mi/mi-cmd-env.c 2007-04-08 20:55:11.000000000 +0200
@@ -80,7 +80,8 @@ mi_cmd_env_pwd (char *command, char **ar
/* Otherwise the mi level is 2 or higher. */
- getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
+ /* Unused result. */
+ 1 && getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
ui_out_field_string (uiout, "cwd", gdb_dirbuf);
return MI_CMD_DONE;
diff -u -rup gdb-6.6-orig/gdb/top.c gdb-6.6/gdb/top.c
--- gdb-6.6-orig/gdb/top.c 2007-04-08 20:49:10.000000000 +0200
+++ gdb-6.6/gdb/top.c 2007-04-08 20:55:46.000000000 +0200
@@ -1643,7 +1643,8 @@ gdb_init (char *argv0)
/* Run the init function of each source file */
- getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
+ /* Unused result. */
+ 1 && getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
current_directory = gdb_dirbuf;
#ifdef __MSDOS__
diff -u -rup gdb-6.6-orig/gdb/ui-file.c gdb-6.6/gdb/ui-file.c
--- gdb-6.6-orig/gdb/ui-file.c 2005-12-17 23:34:03.000000000 +0100
+++ gdb-6.6/gdb/ui-file.c 2007-04-08 20:56:21.000000000 +0200
@@ -482,7 +482,8 @@ stdio_file_write (struct ui_file *file,
if (stdio->magic != &stdio_file_magic)
internal_error (__FILE__, __LINE__,
_("stdio_file_write: bad magic number"));
- fwrite (buf, length_buf, 1, stdio->file);
+ /* Unused result. */
+ 1 && fwrite (buf, length_buf, 1, stdio->file);
}
static void
diff -u -rup gdb-6.6-orig/gdb/utils.c gdb-6.6/gdb/utils.c
--- gdb-6.6-orig/gdb/utils.c 2007-04-08 20:49:09.000000000 +0200
+++ gdb-6.6/gdb/utils.c 2007-04-08 20:56:01.000000000 +0200
@@ -718,7 +718,8 @@ internal_vproblem (struct internal_probl
abort (); /* NOTE: GDB has only three calls to abort(). */
default:
dejavu = 3;
- write (STDERR_FILENO, msg, sizeof (msg));
+ /* Unused result. */
+ 1 && write (STDERR_FILENO, msg, sizeof (msg));
exit (1);
}
}

View File

@ -0,0 +1,30 @@
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225783
--- gdb-6.6-orig/gdb/Makefile.in 2007-04-08 20:49:10.000000000 +0200
+++ gdb-6.6/gdb/Makefile.in 2007-04-08 23:22:40.000000000 +0200
@@ -1672,17 +1672,19 @@ po/$(PACKAGE).pot: force
.SUFFIXES: .y .l
.y.c:
- $(SHELL) $(YLWRAP) $< y.tab.c $@.tmp -- $(YACC) $(YFLAGS)
- -sed -e '/extern.*malloc/d' \
+ rm -f $@ $@.tmp
+ $(SHELL) $(YLWRAP) $< y.tab.c $@ -- $(YACC) $(YFLAGS) && mv $@ $@.tmp \
+ || (rm -f $@; false)
+ sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
-e '/include.*malloc.h/d' \
-e 's/\([^x]\)malloc/\1xmalloc/g' \
-e 's/\([^x]\)realloc/\1xrealloc/g' \
-e '/^#line.*y.tab.c/d' \
- < $@.tmp > $@.new
- -rm $@.tmp
- mv $@.new ./$*.c
+ -e "s/^\(#line.*\)`basename $<`/\1`echo $<|sed 's/\//\\\\\//g'`/" \
+ < $@.tmp > $@
+ rm -f $@.tmp
.l.c:
if [ "$(FLEX)" ] && $(FLEX) --version >/dev/null 2>&1; then \
$(FLEX) -o$@ $< && \

View File

@ -0,0 +1,28 @@
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225783
--- gdb-6.6/gdb/testsuite/gdb.base/prelink.exp.orig 2006-03-08 19:22:09.000000000 -0500
+++ gdb-6.6/gdb/testsuite/gdb.base/prelink.exp 2007-04-08 13:22:45.000000000 -0400
@@ -48,7 +48,7 @@
return -1
}
-if {[catch "system \"prelink -qNR ${libfile}\""] != 0} {
+if {[catch "system \"/usr/sbin/prelink -qNR ${libfile}\""] != 0} {
# Maybe we don't have prelink.
return -1
}
@@ -89,11 +89,11 @@
return 0
}
-if {[catch "system \"prelink -uN ${libfile}\""] != 0} {
+if {[catch "system \"/usr/sbin/prelink -uN ${libfile}\""] != 0} {
untested "${libfile} was not prelinked, maybe system libraries are not prelinked?"
return 0
}
-catch "system \"prelink -qNR ${libfile}\""
+catch "system \"/usr/sbin/prelink -qNR ${libfile}\""
# Start with a fresh gdb

231
gdb.spec
View File

@ -1,6 +1,6 @@
# Define this if you want to skip the strip step and preserve debug # Define this if you want to skip the strip step and preserve debug info.
# info. Useful for testing. # Useful for testing.
#define __spec_install_post /usr/lib/rpm/brp-compress || : #define __debug_install_post : > %{_builddir}/%{?buildsubdir}/debugfiles.list
Summary: A GNU source-level debugger for C, C++, Java and other languages. Summary: A GNU source-level debugger for C, C++, Java and other languages.
Name: gdb Name: gdb
@ -11,17 +11,17 @@ Name: gdb
Version: 6.6 Version: 6.6
# The release always contains a leading reserved number, start it at 1. # The release always contains a leading reserved number, start it at 1.
Release: 10%{?dist} Release: 11%{?dist}
License: GPL License: GPL
Group: Development/Debuggers Group: Development/Debuggers
Source: ftp://ftp.gnu.org/gnu/gdb/gdb-6.6.tar.bz2 Source: ftp://ftp.gnu.org/gnu/gdb/gdb-6.6.tar.bz2
Buildroot: %{_tmppath}/%{name}-%{version}-root Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
URL: http://gnu.org/software/gdb/ URL: http://gnu.org/software/gdb/
# For our convenience # For our convenience
%define gdb_src gdb-6.6 %define gdb_src gdb-6.6
%define gdb_build %{gdb_src}/build-%{_target_platform} %define gdb_build build-%{_target_platform}
# Make sure we get rid of the old package gdb64, now that we have unified # Make sure we get rid of the old package gdb64, now that we have unified
# support for 32-64 bits in one single 64-bit gdb. # support for 32-64 bits in one single 64-bit gdb.
@ -317,6 +317,15 @@ Patch236: gdb-6.6-bz232371-selinux-thread-error.patch
# Use definition of an empty structure as it is not an opaque type (BZ 233716). # Use definition of an empty structure as it is not an opaque type (BZ 233716).
Patch238: gdb-6.6-bz233716-empty-structure-override.patch Patch238: gdb-6.6-bz233716-empty-structure-override.patch
# Fix prelink(8) testcase for non-root $PATH missing `/usr/sbin' (BZ 225783).
Patch240: gdb-6.6-bz225783-prelink-path.patch
# Fix debugging GDB itself - the compiled in source files paths (BZ 225783).
Patch241: gdb-6.6-bz225783-gdb-debuginfo-paths.patch
# Fix harmless GCORE stack buffer overflow, by _FORTIFY_SOURCE=2 (BZ 235753).
Patch243: gdb-6.6-bz235753-gcore-strings-overflow.patch
# Use the runtime variant of `libunwind-ARCH.so.7' rather than the `.so' one. # Use the runtime variant of `libunwind-ARCH.so.7' rather than the `.so' one.
Patch244: gdb-6.6-libunwind-major-version.patch Patch244: gdb-6.6-libunwind-major-version.patch
@ -330,7 +339,7 @@ Patch246: gdb-6.6-bz237096-watchthreads-testcasefix.patch
Patch247: gdb-6.6-bz234468-fork-detach-info.patch Patch247: gdb-6.6-bz234468-fork-detach-info.patch
BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext
BuildRequires: flex bison sharutils BuildRequires: flex bison sharutils expat-devel
%define multilib_64_archs sparc64 ppc64 s390x x86_64 %define multilib_64_archs sparc64 ppc64 s390x x86_64
%ifarch %{multilib_64_archs} sparc ppc %ifarch %{multilib_64_archs} sparc ppc
@ -345,7 +354,8 @@ Requires: libunwind >= 0.99-0.1.frysk20070405cvs
BuildRequires: prelink BuildRequires: prelink
%endif %endif
Prereq: info Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
%description %description
GDB, the GNU debugger, allows you to debug programs written in C, C++, GDB, the GNU debugger, allows you to debug programs written in C, C++,
@ -359,6 +369,10 @@ and printing their data.
%setup -q -n %{gdb_src} %setup -q -n %{gdb_src}
# Files have `# <number> <file>' statements breaking VPATH / find-debuginfo.sh .
rm -f gdb/ada-exp.c gdb/ada-lex.c gdb/c-exp.c gdb/cp-name-parser.c gdb/f-exp.c
rm -f gdb/jv-exp.c gdb/m2-exp.c gdb/objc-exp.c gdb/p-exp.c
# Apply patches defined above. # Apply patches defined above.
%patch0 -p1 %patch0 -p1
@ -457,6 +471,9 @@ and printing their data.
%patch235 -p1 %patch235 -p1
%patch236 -p1 %patch236 -p1
%patch238 -p1 %patch238 -p1
%patch240 -p1
%patch241 -p1
%patch243 -p1
%patch244 -p1 %patch244 -p1
%patch245 -p1 %patch245 -p1
%patch246 -p1 %patch246 -p1
@ -475,12 +492,10 @@ rm -f gdb/doc/*.info-*
%build %build
# Initially we're in the %{gdb_src} directory.
cd ..
# Identify the build directory with the version of gdb as well as the # Identify the build directory with the version of gdb as well as the
# architecture, to allow for mutliple versions to be installed and # architecture, to allow for mutliple versions to be installed and
# built. # built.
# Initially we're in the %{gdb_src} directory.
rm -fr %{gdb_build} rm -fr %{gdb_build}
mkdir %{gdb_build} mkdir %{gdb_build}
@ -494,9 +509,9 @@ cd %{gdb_build}
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
enable_build_warnings="" enable_build_warnings="--enable-gdb-build-warnings=,-Wno-unused"
%ifarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64 %ifarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64
enable_build_warnings="--enable-gdb-build-warnings=,-Werror" enable_build_warnings="$enable_build_warnings,-Werror"
%endif %endif
../configure \ ../configure \
@ -514,29 +529,15 @@ enable_build_warnings="--enable-gdb-build-warnings=,-Werror"
%endif %endif
%{_target_platform} %{_target_platform}
make -k make %{?_smp_mflags}
make info make %{?_smp_mflags} info
# Get some information about which tools we interact with. We cannot # Copy the <sourcetree>/gdb/NEWS file to the directory above it.
# invoke rpm -q from here. cp $RPM_BUILD_DIR/%{gdb_src}/gdb/NEWS $RPM_BUILD_DIR/%{gdb_src}
# Note that binutils and glibc don't brand themselves as RedHat specific
# versions. This is very wrong. They are not the vanilla FSF ones!
%ifarch %{ix86} ppc s390 ia64
if [ -x /lib/tls/libc.so.6 ] ; then
/lib/tls/libc.so.6
elif [ -x /lib/tls/libc.so.6.1 ] ; then
/lib/tls/libc.so.6.1
fi
%endif
%ifarch x86_64 s390x ppc64
if [ -x /lib64/tls/libc.so.6 ] ; then
/lib64/tls/libc.so.6
fi
%endif
gcc -v %check
uname -a # Initially we're in the %{gdb_src} directory.
ld -v cd %{gdb_build}
# For now do testing only on these platforms. # For now do testing only on these platforms.
%ifarch %{ix86} x86_64 s390x s390 ppc ia64 ppc64 %ifarch %{ix86} x86_64 s390x s390 ppc ia64 ppc64
@ -545,27 +546,30 @@ cd gdb/testsuite
# Need to use a single --ignore option, second use overrides first. # Need to use a single --ignore option, second use overrides first.
# "chng-syms.exp" for possibly avoiding Linux kernel crash - Bug 207002. # "chng-syms.exp" for possibly avoiding Linux kernel crash - Bug 207002.
# "threadcrash.exp" is incompatible on ia64 with old kernels. # "threadcrash.exp" is incompatible on ia64 with old kernels.
make -k check RUNTESTFLAGS='--ignore "bigcore.exp chng-syms.exp checkpoint.exp threadcrash.exp"' || : # No `%{?_smp_mflags}' here as it may race.
# WARNING: can't generate a core file - core tests suppressed - check ulimit
(
# ULIMIT required for `gdb.base/auxv.exp'.
ulimit -H -c
ulimit -c unlimited || :
make -k check RUNTESTFLAGS='--ignore "bigcore.exp chng-syms.exp checkpoint.exp threadcrash.exp"' || :
)
for t in sum log; do for t in sum log; do
ln gdb.$t gdb-%{_target_platform}.$t || : ln gdb.$t gdb-%{_target_platform}.$t || :
done done
tar cf - gdb-%{_target_platform}.{sum,log} \ # `tar | bzip2 | uuencode' may have some piping problems in Brew.
| bzip2 -1 \ tar cjf gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}.{sum,log}
| uuencode gdb-%{_target_platform}.tar.bz2 \ uuencode gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}.tar.bz2
|| :
cd ../.. cd ../..
echo ====================TESTING END===================== echo ====================TESTING END=====================
%endif %endif
cd ..
# Copy the <sourcetree>/gdb/NEWS file to the directory above it.
cp $RPM_BUILD_DIR/%{gdb_src}/gdb/NEWS $RPM_BUILD_DIR/%{gdb_src}
%install %install
cd ../%{gdb_build} # Initially we're in the %{gdb_src} directory.
cd %{gdb_build}
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%makeinstall make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT
# install the gcore script in /usr/bin # install the gcore script in /usr/bin
cp $RPM_BUILD_DIR/%{gdb_src}/gdb/gdb_gcore.sh $RPM_BUILD_ROOT%{_prefix}/bin/gcore cp $RPM_BUILD_DIR/%{gdb_src}/gdb/gdb_gcore.sh $RPM_BUILD_ROOT%{_prefix}/bin/gcore
@ -595,25 +599,17 @@ rm -rf $RPM_BUILD_ROOT
# This step is part of the installation of the RPM. Not to be confused # This step is part of the installation of the RPM. Not to be confused
# with the 'make install ' of the build (rpmbuild) process. # with the 'make install ' of the build (rpmbuild) process.
[ -f %{_infodir}/annotate.info ] && /sbin/install-info %{_infodir}/annotate.info %{_infodir}/dir || : /sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
[ -f %{_infodir}/annotate.info.gz ] && /sbin/install-info %{_infodir}/annotate.info.gz %{_infodir}/dir || : /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
[ -f %{_infodir}/gdb.info ] && /sbin/install-info %{_infodir}/gdb.info %{_infodir}/dir || : /sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
[ -f %{_infodir}/gdb.info.gz ] && /sbin/install-info %{_infodir}/gdb.info.gz %{_infodir}/dir || : /sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
[ -f %{_infodir}/gdbint.info ] && /sbin/install-info %{_infodir}/gdbint.info %{_infodir}/dir || :
[ -f %{_infodir}/gdbint.info.gz ] && /sbin/install-info %{_infodir}/gdbint.info.gz %{_infodir}/dir || :
[ -f %{_infodir}/stabs.info ] && /sbin/install-info %{_infodir}/stabs.info %{_infodir}/dir || :
[ -f %{_infodir}/stabs.info.gz ] && /sbin/install-info %{_infodir}/stabs.info.gz %{_infodir}/dir || :
%preun %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
[ -f %{_infodir}/annotate.info ] && /sbin/install-info --delete %{_infodir}/annotate.info %{_infodir}/dir || : /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
[ -f %{_infodir}/annotate.info.gz ] && /sbin/install-info --delete %{_infodir}/annotate.info.gz %{_infodir}/dir || : /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
[ -f %{_infodir}/gdb.info ] && /sbin/install-info --delete %{_infodir}/gdb.info %{_infodir}/dir || : /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
[ -f %{_infodir}/gdb.info.gz ] && /sbin/install-info --delete %{_infodir}/gdb.info.gz %{_infodir}/dir || : /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
[ -f %{_infodir}/gdbint.info ] && /sbin/install-info --delete %{_infodir}/gdbint.info %{_infodir}/dir || :
[ -f %{_infodir}/gdbint.info.gz ] && /sbin/install-info --delete %{_infodir}/gdbint.info.gz %{_infodir}/dir || :
[ -f %{_infodir}/stabs.info ] && /sbin/install-info --delete %{_infodir}/stabs.info %{_infodir}/dir || :
[ -f %{_infodir}/stabs.info.gz ] && /sbin/install-info --delete %{_infodir}/stabs.info.gz %{_infodir}/dir || :
fi fi
%files %files
@ -629,6 +625,19 @@ fi
# don't include the files in include, they are part of binutils # don't include the files in include, they are part of binutils
%changelog %changelog
* Tue Apr 24 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-11
- Package review, analysed by Ralf Corsepius (BZ 225783).
- Fix prelink(8) testcase for non-root $PATH missing `/usr/sbin' (BZ 225783).
- Fix debugging GDB itself - the compiled in source files paths (BZ 225783).
- Fix harmless GCORE stack buffer overflow, by _FORTIFY_SOURCE=2 (BZ 235753).
- Fix XML support - the build was missing `expat-devel'.
- Updated the `info' files handling by the spec file.
- Building now with the standard Fedora code protections - _FORTIFY_SOURCE=2.
- Use multiple CPUs for the build (%{?_smp_mflags}).
- Separate testsuite run to its %check section.
- Fix (remove) non-ASCII spec file characters.
- Remove system tools versions dumping - already present in mock build logs.
* Sun Apr 22 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-10 * Sun Apr 22 2007 Jan Kratochvil <jan.kratochvil@redhat.com> - 6.6-10
- Notify user of a child forked process being detached (BZ 235197). - Notify user of a child forked process being detached (BZ 235197).
@ -1909,144 +1918,144 @@ General revamp.
* Fri Aug 23 2002 Florian La Roche <Florian.LaRoche@redhat.de> * Fri Aug 23 2002 Florian La Roche <Florian.LaRoche@redhat.de>
- added mainframe patch from developerworks - added mainframe patch from developerworks
* Wed Aug 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.2.1-3 * Wed Aug 21 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.2.1-3
- Add changelogs to the previous patch - Add changelogs to the previous patch
* Wed Aug 14 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.2.1-2 * Wed Aug 14 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.2.1-2
- Add some patches from Elena Zannoni <ezannoni@redhat.com> - Add some patches from Elena Zannoni <ezannoni@redhat.com>
* Tue Jul 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.2.1-1 * Tue Jul 23 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.2.1-1
- 5.2.1 - 5.2.1
* Mon Jul 22 2002 Florian La Roche <Florian.LaRoche@redhat.de> * Mon Jul 22 2002 Florian La Roche <Florian.LaRoche@redhat.de>
- compile on mainframe - compile on mainframe
* Mon Jul 8 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.2-3 * Mon Jul 8 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.2-3
- Rebuild - Rebuild
* Tue May 7 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.2-2 * Tue May 7 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.2-2
- Rebuild - Rebuild
* Mon Apr 29 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.2-1 * Mon Apr 29 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.2-1
- 5.2 - 5.2
* Mon Apr 29 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.1.92-1 * Mon Apr 29 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.1.92-1
- 5.1.92. Hopefully identical to 5.2 final - 5.1.92. Hopefully identical to 5.2 final
* Mon Apr 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.1.91-1 * Mon Apr 22 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.1.91-1
- 5.1.91. 5.2 expected in a week - 5.1.91. 5.2 expected in a week
* Thu Mar 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.1.90CVS-5 * Thu Mar 28 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.1.90CVS-5
- Update to current - Update to current
* Thu Mar 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.1.90CVS-4 * Thu Mar 28 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.1.90CVS-4
- Update to current - Update to current
* Thu Mar 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.1.90CVS-3 * Thu Mar 28 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.1.90CVS-3
- Update to current - Update to current
* Wed Mar 20 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.1.90CVS-2 * Wed Mar 20 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.1.90CVS-2
- Update to current - Update to current
* Wed Mar 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.1.90CVS-1 * Wed Mar 13 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.1.90CVS-1
- Update to current 5.2 branch - Update to current 5.2 branch
* Thu Jan 24 2002 Trond Eivind Glomsrød <teg@redhat.com> 5.1.1-1 * Thu Jan 24 2002 Trond Eivind Glomsrod <teg@redhat.com> 5.1.1-1
- 5.1.1 - 5.1.1
- add URL - add URL
* Wed Jan 09 2002 Tim Powers <timp@redhat.com> * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
- automated rebuild - automated rebuild
* Mon Dec 10 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.1-2 * Mon Dec 10 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.1-2
- Fix some thread+fpu problems - Fix some thread+fpu problems
* Mon Nov 26 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.1-1 * Mon Nov 26 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.1-1
- 5.1 - 5.1
* Mon Nov 19 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.0.94-0.71 * Mon Nov 19 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.0.94-0.71
- 5.0.94. Almost there.... - 5.0.94. Almost there....
* Mon Nov 12 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.0.93-2 * Mon Nov 12 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.0.93-2
- Add patch from jakub@redhat.com to improve handling of DWARF - Add patch from jakub@redhat.com to improve handling of DWARF
* Mon Nov 12 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.0.93-1 * Mon Nov 12 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.0.93-1
- 5.0.93 - 5.0.93
- handle missing info pages in post/pre scripts - handle missing info pages in post/pre scripts
* Wed Oct 31 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.0.92-1 * Wed Oct 31 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.0.92-1
- 5.0.92 - 5.0.92
* Fri Oct 26 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.0.91rh-1 * Fri Oct 26 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.0.91rh-1
- New snapshot - New snapshot
- Use the 5.0.91 versioning from the snapshot - Use the 5.0.91 versioning from the snapshot
* Wed Oct 17 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.0rh-17 * Wed Oct 17 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.0rh-17
- New snapshot - New snapshot
* Thu Sep 27 2001 Trond Eivind Glomsrød <teg@redhat.com> * Thu Sep 27 2001 Trond Eivind Glomsrod <teg@redhat.com>
- New snapshot - New snapshot
* Wed Sep 12 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.0rh-16 * Wed Sep 12 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.0rh-16
- New snapshot - New snapshot
* Mon Aug 13 2001 Trond Eivind Glomsrød <teg@redhat.com> 5.0rh-15 * Mon Aug 13 2001 Trond Eivind Glomsrod <teg@redhat.com> 5.0rh-15
- Don't buildrequire compat-glibc (#51690) - Don't buildrequire compat-glibc (#51690)
* Thu Aug 9 2001 Trond Eivind Glomsrød <teg@redhat.com> * Thu Aug 9 2001 Trond Eivind Glomsrod <teg@redhat.com>
- New snapshot, from the stable branch eventually leading to gdb 5.1 - New snapshot, from the stable branch eventually leading to gdb 5.1
* Mon Jul 30 2001 Trond Eivind Glomsrød <teg@redhat.com> * Mon Jul 30 2001 Trond Eivind Glomsrod <teg@redhat.com>
- s/Copyright/License/ - s/Copyright/License/
- Add texinfo to BuildRequires - Add texinfo to BuildRequires
* Mon Jun 25 2001 Trond Eivind Glomsrød <teg@redhat.com> * Mon Jun 25 2001 Trond Eivind Glomsrod <teg@redhat.com>
- New snapshot - New snapshot
* Fri Jun 15 2001 Trond Eivind Glomsrød <teg@redhat.com> * Fri Jun 15 2001 Trond Eivind Glomsrod <teg@redhat.com>
- New snapshot - New snapshot
- Add ncurses-devel to buildprereq - Add ncurses-devel to buildprereq
- Remove perl from buildprereq, as gdb changed the way - Remove perl from buildprereq, as gdb changed the way
version strings are generated version strings are generated
* Thu Jun 14 2001 Trond Eivind Glomsrød <teg@redhat.com> * Thu Jun 14 2001 Trond Eivind Glomsrod <teg@redhat.com>
- New snapshot - New snapshot
* Wed May 16 2001 Trond Eivind Glomsrød <teg@redhat.com> * Wed May 16 2001 Trond Eivind Glomsrod <teg@redhat.com>
- New snapshot - this had thread fixes for curing #39070 - New snapshot - this had thread fixes for curing #39070
- New way of specifying version - New way of specifying version
* Tue May 1 2001 Trond Eivind Glomsrød <teg@redhat.com> * Tue May 1 2001 Trond Eivind Glomsrod <teg@redhat.com>
- New tarball - New tarball
- Kevin's patch is now part of gdb - Kevin's patch is now part of gdb
* Mon Apr 9 2001 Trond Eivind Glomsrød <teg@redhat.com> * Mon Apr 9 2001 Trond Eivind Glomsrod <teg@redhat.com>
- Add patch from kevinb@redhat.com to fix floating point + thread - Add patch from kevinb@redhat.com to fix floating point + thread
problem (#24310) problem (#24310)
- remove old workarounds - remove old workarounds
- new snapshot - new snapshot
* Thu Apr 5 2001 Trond Eivind Glomsrød <teg@redhat.com> * Thu Apr 5 2001 Trond Eivind Glomsrod <teg@redhat.com>
- New snapshot - New snapshot
* Sat Mar 17 2001 Bill Nottingham <notting@redhat.com> * Sat Mar 17 2001 Bill Nottingham <notting@redhat.com>
- on ia64, there are no old headers :) - on ia64, there are no old headers :)
* Fri Mar 16 2001 Trond Eivind Glomsrød <teg@redhat.com> * Fri Mar 16 2001 Trond Eivind Glomsrod <teg@redhat.com>
- build with old headers, new compiler - build with old headers, new compiler
* Wed Mar 16 2001 Trond Eivind Glomsrød <teg@redhat.com> * Wed Mar 16 2001 Trond Eivind Glomsrod <teg@redhat.com>
- new snapshot - new snapshot
* Mon Feb 26 2001 Trond Eivind Glomsrød <teg@redhat.com> * Mon Feb 26 2001 Trond Eivind Glomsrod <teg@redhat.com>
- new snapshot which should fix some more IA64 problems (#29151) - new snapshot which should fix some more IA64 problems (#29151)
- remove IA64 patch, it's now integrated - remove IA64 patch, it's now integrated
* Wed Feb 21 2001 Trond Eivind Glomsrød <teg@redhat.com> * Wed Feb 21 2001 Trond Eivind Glomsrod <teg@redhat.com>
- add IA64 and Alpha patches from Kevin Buettner <kevinb@redhat.com> - add IA64 and Alpha patches from Kevin Buettner <kevinb@redhat.com>
- use perl instead of patch for fixing the version string - use perl instead of patch for fixing the version string
* Tue Feb 20 2001 Trond Eivind Glomsrød <teg@redhat.com> * Tue Feb 20 2001 Trond Eivind Glomsrod <teg@redhat.com>
- don't use kgcc anymore - don't use kgcc anymore
- mark it as our own version - mark it as our own version
- new snapshot - new snapshot
@ -2055,50 +2064,50 @@ General revamp.
- Link with ncurses 5.x even though we're using kgcc. - Link with ncurses 5.x even though we're using kgcc.
No need to drag in requirements on ncurses4 (Bug #24445) No need to drag in requirements on ncurses4 (Bug #24445)
* Fri Jan 19 2001 Trond Eivind Glomsrød <teg@redhat.com> * Fri Jan 19 2001 Trond Eivind Glomsrod <teg@redhat.com>
- new snapshot - new snapshot
* Thu Dec 20 2000 Trond Eivind Glomsrød <teg@redhat.com> * Thu Dec 20 2000 Trond Eivind Glomsrod <teg@redhat.com>
- new snapshot - new snapshot
* Mon Dec 04 2000 Trond Eivind Glomsrød <teg@redhat.com> * Mon Dec 04 2000 Trond Eivind Glomsrod <teg@redhat.com>
- new snapshot - new snapshot
- new alpha patch - it now compiles everywhere. Finally. - new alpha patch - it now compiles everywhere. Finally.
* Fri Dec 01 2000 Trond Eivind Glomsrød <teg@redhat.com> * Fri Dec 01 2000 Trond Eivind Glomsrod <teg@redhat.com>
- new snapshot - new snapshot
* Mon Nov 20 2000 Trond Eivind Glomsrød <teg@redhat.com> * Mon Nov 20 2000 Trond Eivind Glomsrod <teg@redhat.com>
- new CVS snapshot - new CVS snapshot
- disable the patches - disable the patches
- don't use %%configure, as it confuses the autoconf script - don't use %%configure, as it confuses the autoconf script
- enable SPARC, disable Alpha - enable SPARC, disable Alpha
* Wed Aug 09 2000 Trond Eivind Glomsrød <teg@redhat.com> * Wed Aug 09 2000 Trond Eivind Glomsrod <teg@redhat.com>
- added patch from GDB team for C++ symbol handling - added patch from GDB team for C++ symbol handling
* Mon Jul 25 2000 Trond Eivind Glomsrød <teg@redhat.com> * Mon Jul 25 2000 Trond Eivind Glomsrod <teg@redhat.com>
- upgrade to CVS snapshot - upgrade to CVS snapshot
- excludearch SPARC, build on IA61 - excludearch SPARC, build on IA61
* Wed Jul 19 2000 Trond Eivind Glomsrød <teg@redhat.com> * Wed Jul 19 2000 Trond Eivind Glomsrod <teg@redhat.com>
- rebuild - rebuild
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com> * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild - automatic rebuild
* Sun Jul 02 2000 Trond Eivind Glomsrød <teg@redhat.com> * Sun Jul 02 2000 Trond Eivind Glomsrod <teg@redhat.com>
- rebuild - rebuild
* Fri Jun 08 2000 Trond Eivind Glomsrød <teg@redhat.com> * Fri Jun 08 2000 Trond Eivind Glomsrod <teg@redhat.com>
- use %%configure, %%makeinstall, %%{_infodir}, %%{_mandir}, - use %%configure, %%makeinstall, %%{_infodir}, %%{_mandir},
and %%{_tmppath} and %%{_tmppath}
- the install scripts for info are broken(they don't care about - the install scripts for info are broken(they don't care about
you specify in the installstep), work around that. you specify in the installstep), work around that.
- don't build for IA64 - don't build for IA64
* Mon May 22 2000 Trond Eivind Glomsrød <teg@redhat.com> * Mon May 22 2000 Trond Eivind Glomsrod <teg@redhat.com>
- upgraded to 5.0 - dump all patches. Reapply later if needed. - upgraded to 5.0 - dump all patches. Reapply later if needed.
- added the NEWS file to the %%doc files - added the NEWS file to the %%doc files
- don't delete files which doesn't get installed (readline, texinfo) - don't delete files which doesn't get installed (readline, texinfo)