teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.13.0-gdbindex.patch

Panu Matilainen 432446
commit de7a1e279f8a21fe3494daeb27801db74e8420c5
Panu Matilainen 432446
Author: Panu Matilainen <pmatilai@redhat.com>
Panu Matilainen 432446
Date:   Tue Jan 17 12:21:48 2017 +0200
Panu Matilainen 432446
Panu Matilainen 432446
    Resurrect GDB index generation (RhBug:1410907)
Panu Matilainen 432446
    
Panu Matilainen 432446
    Commit 54d30ac4a344770571e56c60281a9130b61c1788 broke GDB index
Panu Matilainen 432446
    generation due to a leftover "[". In git master this got fixed in
Panu Matilainen 432446
    commit 67d3df338875ad5d9601e360bfdbd4289f271bc1 but we don't want
Panu Matilainen 432446
    that on 4.13.x because there are behavior changes involved, so
Panu Matilainen 432446
    fixing this specifically on the 4.13.x branch.
Panu Matilainen 432446
Panu Matilainen 432446
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
Panu Matilainen 432446
index a70ef3c..4293261 100644
Panu Matilainen 432446
--- a/scripts/find-debuginfo.sh
Panu Matilainen 432446
+++ b/scripts/find-debuginfo.sh
Panu Matilainen 432446
@@ -312,7 +312,7 @@ while read nlinks inum f; do
Panu Matilainen 432446
     $strict && exit 2
Panu Matilainen 432446
   fi
Panu Matilainen 432446
 
Panu Matilainen 432446
-  [ type gdb-add-index >/dev/null 2>&1 && gdb-add-index "$f" > /dev/null 2>&1
Panu Matilainen 432446
+  type gdb-add-index >/dev/null 2>&1 && gdb-add-index "$f" > /dev/null 2>&1
Panu Matilainen 432446
 
Panu Matilainen 432446
   # A binary already copied into /usr/lib/debug doesn't get stripped,
Panu Matilainen 432446
   # just has its file names collected and adjusted.