]> git.pld-linux.org Git - packages/deltarpm.git/blob - deltarpm-3.4-pld.patch
- updated to 3.6.3
[packages/deltarpm.git] / deltarpm-3.4-pld.patch
1 --- deltarpm-3.6.3/cfile.c.orig 2020-08-27 17:34:37.000000000 +0200
2 +++ deltarpm-3.6.3/cfile.c      2023-10-08 09:19:04.378740047 +0200
3 @@ -654,7 +654,8 @@ cropen_lz(struct cfile *f)
4  {
5    lzma_stream tmp = LZMA_STREAM_INIT;
6    f->strm.lz = tmp;
7 -  if (lzma_auto_decoder(&f->strm.lz, 1 << 25, 0) != LZMA_OK)
8 +  //if (lzma_auto_decoder(&f->strm.lz, 1 << 25, 0) != LZMA_OK)
9 +  if (lzma_auto_decoder(&f->strm.lz, 1 << 27, 0) != LZMA_OK)
10      {
11        free(f);
12        return 0;
13 @@ -1320,6 +1321,10 @@ cfile_open(int mode, int fd, void *fp, i
14             comp = CFILE_COMP_LZMA;
15           else if (f->buf[0] == 0135 && f->buf[1] == 0 && f->buf[2] == 0)
16             comp = CFILE_COMP_LZMA;
17 +         else if (f->buf[0] == 0 && f->buf[1] == 0x5d && f->buf[2] == 0 && f->buf[3] == 0)
18 +           comp = CFILE_COMP_LZMA;
19 +         else if (f->buf[0] == 0 && f->buf[1] == 0x03 && f->buf[2] == 0 && f->buf[3] == 0)
20 +           comp = CFILE_COMP_LZMA;
21           else if (f->buf[0] == 0xfd && f->buf[1] == '7' && f->buf[2] == 'z' && f->buf[3] == 'X' && f->buf[4] == 'Z')
22             comp = CFILE_COMP_XZ;
23           else if ((f->buf[0] & 0xf0) == 0x20 && f->buf[1] == 0xb5 && f->buf[2] == 0x2f && f->buf[3] == 0xfd)
24 @@ -1463,6 +1468,7 @@ cfile_setlevel(int comp, int level)
25      case CFILE_COMP_GZ:
26      case CFILE_COMP_GZ_RSYNC:
27      case CFILE_COMP_BZ:
28 +    case CFILE_COMP_LZMA:
29        deflevel = 9;
30        break;
31      default:
32 --- deltarpm-3.6.3/makedeltarpm.c.orig  2023-10-07 22:04:03.314819811 +0200
33 +++ deltarpm-3.6.3/makedeltarpm.c       2023-10-08 09:19:37.131895941 +0200
34 @@ -1084,11 +1084,13 @@ main(int argc, char **argv)
35        fprintf(stderr, "payload open failed\n");
36        exit(1);
37      }
38 +/*
39    if (cfile_detect_rsync(newbz))
40      {
41        fprintf(stderr, "detect_rsync failed\n");
42        exit(1);
43      }
44 + */
45    targetcomp = newbz->comp;
46    if ((payloadflags = headstring(d.h, TAG_PAYLOADFLAGS)) != 0)
47      {
48 --- deltarpm-git-20110223/Makefile~     2011-02-19 18:53:23.000000000 +0200
49 +++ deltarpm-git-20110223/Makefile      2011-11-07 22:29:01.877800526 +0200
50 @@ -1,7 +1,7 @@
51 -prefix=/usr/local
52 +prefix=/usr
53  bindir=$(prefix)/bin
54  libdir=$(prefix)/lib
55 -mandir=$(prefix)/man
56 +mandir=$(prefix)/share/man
57  rpmdumpheader=$(bindir)/rpmdumpheader
58  zlibdir=zlib-1.2.2.f-rsyncable
59  zlibbundled=$(zlibdir)/libz.a
This page took 0.117478 seconds and 4 git commands to generate.