]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-bzip2_fallback.patch
- R: fixed binutils for optimized debuginfo (-feliminate-dwarf2-dups).
[packages/rpm.git] / rpm-bzip2_fallback.patch
1 --- rpm-4.4.6/build/pack.c.old  2006-09-08 20:06:51.000000000 +0200
2 +++ rpm-4.4.6/build/pack.c      2006-09-08 20:12:46.000000000 +0200
3 @@ -557,6 +557,13 @@
4         payload_format = _free(payload_format);
5         payload_format = xstrdup("cpio");
6      }
7 +    /* Fallback to bzip2 when lzma is not installed. */
8 +    if (rpmio_flags && !strcmp(rpmio_flags, "w9.lzdio")) {
9 +       if (access("/usr/bin/lzma", X_OK)) {
10 +           rpmio_flags = _free(rpmio_flags);
11 +           rpmio_flags = xstrdup("w9.bzdio");
12 +       }
13 +    }
14      if (!(rpmio_flags && *rpmio_flags)) {
15         rpmio_flags = _free(rpmio_flags);
16         rpmio_flags = xstrdup("w9.gzdio");
This page took 0.064538 seconds and 3 git commands to generate.