SPECS/rpm/find-debuginfo-do-not-generate-dir-entries.patch
7fbd3a1e
 diff -Naur a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
 --- a/scripts/find-debuginfo.sh	2017-04-19 15:48:24.650406279 -0700
 +++ b/scripts/find-debuginfo.sh	2017-04-19 15:49:16.090962375 -0700
 @@ -292,10 +292,10 @@
  fi
  
  if [ -d "${RPM_BUILD_ROOT}/usr/lib" -o -d "${RPM_BUILD_ROOT}/usr/src" ]; then
 -  ((nout > 0)) ||
 -  test ! -d "${RPM_BUILD_ROOT}/usr/lib" ||
 -  (cd "${RPM_BUILD_ROOT}/usr/lib"; find debug -type d) |
 -  sed 's,^,%dir /usr/lib/,' >> "$LISTFILE"
 +#  ((nout > 0)) ||
 +#  test ! -d "${RPM_BUILD_ROOT}/usr/lib" ||
 +#  (cd "${RPM_BUILD_ROOT}/usr/lib"; find debug -type d) |
 +#  sed 's,^,%dir /usr/lib/,' >> "$LISTFILE"
  
    (cd "${RPM_BUILD_ROOT}/usr"
     test ! -d lib/debug || find lib/debug ! -type d
ec017e0f
 @@ -467,7 +467,7 @@
    mv "${LISTFILE}.new" "$LISTFILE"
    ((++i))
  done
 -if ((nout > 0)); then
 +if ((0 && nout > 0)); then
    # Now add the right %dir lines to each output list.
    (cd "${RPM_BUILD_ROOT}"; find usr/lib/debug -type d) |
    sed 's#^.*$#\\@^/&/@{h;s@^.*$@%dir /&@p;g;}#' |