Commit Graph

185 Commits

Author SHA256 Message Date
392a458b41 Accepting request 1036633 from home:dspinella:branches:Base:System
- Update to 5.2.8:
  * xz:
    - If xz cannot remove an input file when it should, this
      is now treated as a warning (exit status 2) instead of
      an error (exit status 1). This matches GNU gzip and it
      is more logical as at that point the output file has
      already been successfully closed.
    - Fix handling of .xz files with an unsupported check type.
      Previously such printed a warning message but then xz
      behaved as if an error had occurred (didn't decompress,
      exit status 1). Now a warning is printed, decompression
      is done anyway, and exit status is 2. This used to work
      slightly before 5.0.0. In practice this bug matters only
      if xz has been built with some check types disabled. As
      instructed in PACKAGERS, such builds should be done in
      special situations only.
    - Fix "xz -dc --single-stream tests/files/good-0-empty.xz"
      which failed with "Internal error (bug)". That is,
      --single-stream was broken if the first .xz stream in
      the input file didn't contain any uncompressed data.
    - Fix displaying file sizes in the progress indicator when
      working in passthru mode and there are multiple input files.
      Just like "gzip -cdf", "xz -cdf" works like "cat" when the
      input file isn't a supported compressed file format. In
      this case the file size counters weren't reset between
      files so with multiple input files the progress indicator
      displayed an incorrect (too large) value.
  * liblzma:
    - API docs in lzma/container.h:
        * Update the list of decoder flags in the decoder

OBS-URL: https://build.opensuse.org/request/show/1036633
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=117
2022-11-18 13:36:45 +00:00
Dominique Leuenberger
b153371c50 Accepting request 1009384 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1009384
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=71
2022-10-13 13:39:37 +00:00
Stephan Kulow
4204191f42 Accepting request 1007999 from home:gmbr3:Active
- Move localised man pages to lang subpackage

OBS-URL: https://build.opensuse.org/request/show/1007999
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=115
2022-10-10 12:54:08 +00:00
Richard Brown
40c14c29d5 Accepting request 1008136 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1008136
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=70
2022-10-07 23:22:42 +00:00
a9acbf8874 Accepting request 1007351 from home:CJ:branches:Base:System
- update to 5.2.7:
  * liblzma:
    - Add API doc note about the .xz decoder LZMA_MEMLIMIT_ERROR bug.
    - Add dest and src NULL checks to lzma_index_cat.
      The documentation states LZMA_PROG_ERROR can be returned from
      lzma_index_cat. Previously, lzma_index_cat could not return
      LZMA_PROG_ERROR. Now, the validation is similar to
      lzma_index_append, which does a NULL check on the index
      parameter.
    - Fix copying of check type statistics in lzma_index_cat().
      The check type of the last Stream in dest was never copied to
      dest->checks (the code tried to copy it but it was done too late).
      This meant that the value returned by lzma_index_checks() would
      only include the check type of the last Stream when multiple
      lzma_indexes had been concatenated.
      In xz --list this meant that the summary would only list the
      check type of the last Stream, so in this sense this was only
      a visual bug. However, it's possible that some applications
      use this information for purposes other than merely showing
      it to the users in an informational message. I'm not aware of
      such applications though and it's quite possible that such
      applications don't exist.
      Regular streamed decompression in xz or any other application
      doesn't use lzma_index_cat() and so this bug cannot affect them.
    - Stream decoder: Fix restarting after LZMA_MEMLIMIT_ERROR.
      If lzma_code() returns LZMA_MEMLIMIT_ERROR it is now possible
      to use lzma_memlimit_set() to increase the limit and continue
      decoding. This was supposed to work from the beginning but
      there was a bug. With other decoders (.lzma or threaded .xz)
      this already worked correctly.
    - lzma_filters_copy: Keep dest[] unmodified if an error occurs.
      lzma_stream_encoder() and lzma_stream_encoder_mt() always assumed
      this. Before this patch, failing lzma_filters_copy() could result
      in free(invalid_pointer) or invalid memory reads in stream_encoder.c
      or stream_encoder_mt.c.
      To trigger this, allocating memory for a filter options structure
      has to fail. These are tiny allocations so in practice they very
      rarely fail.
      Certain badness in the filter chain array could also make
      lzma_filters_copy() fail but both stream_encoder.c and
      stream_encoder_mt.c validate the filter chain before
      trying to copy it, so the crash cannot occur this way.
    - lzma_index_append: Add missing integer overflow check.
      The documentation in src/liblzma/api/lzma/index.h suggests that
      both the unpadded (compressed) size and the uncompressed size
      are checked for overflow, but only the unpadded size was checked.
      The uncompressed check is done first since that is more likely to
      occur than the unpadded or index field size overflows.
    - Vaccinate against an ill patch from RHEL/CentOS 7.
      
  * xzgrep:
    - Fix compatibility with old shells.
      Turns out that some old shells don't like apostrophes (') inside
      command substitutions. The problem was introduced by commits
      69d1b3fc29677af8ade8dc15dba83f0589cb63d6 (2022-03-29),
      bd7b290f3fe4faeceb7d3497ed9bf2e6ed5e7dc5 (2022-07-18), and
      a648978b20495b7aa4a8b029c5a810b5ad9d08ff (2022-07-19).
      5.2.6 is the only stable release that included
      this problem.
      
  * Translations: Add Turkish translation.

OBS-URL: https://build.opensuse.org/request/show/1007351
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=113
2022-10-05 08:45:20 +00:00
Dominique Leuenberger
6b388e68a1 Accepting request 995864 from Base:System
OBS-URL: https://build.opensuse.org/request/show/995864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=69
2022-08-18 14:48:53 +00:00
104f8dece2 Accepting request 994818 from home:dirkmueller:Factory
- update to 5.2.6 (CVE-2022-1271, bsc#1198062):
  * xz:
    - The --keep option now accepts symlinks, hardlinks, and
      setuid, setgid, and sticky files.
    - When copying metadata from the source file to the destination
      file, don't try to set the group (GID) if it is already set
      correctly. This avoids a failure on OpenBSD (and possibly on
      a few other OSes) where files may get created so that their
      group doesn't belong to the user, and fchown(2) can fail even
      if it needs to do nothing.
    - Cap --memlimit-compress to 2000 MiB instead of 4020 MiB on
      MIPS32 because on MIPS32 userspace processes are limited
      to 2 GiB of address space.
  * liblzma:
    - Fixed a missing error-check in the threaded encoder. If a
      small memory allocation fails, a .xz file with an invalid
      Index field would be created. Decompressing such a file would
      produce the correct output but result in an error at the end.
      Thus this is a "mild" data corruption bug. Note that while
      a failed memory allocation can trigger the bug, it cannot
      cause invalid memory access.
    - The decoder for .lzma files now supports files that have
      uncompressed size stored in the header and still use the
      end of payload marker (end of stream marker) at the end
      of the LZMA stream. Such files are rare but, according to
      the documentation in LZMA SDK, they are valid.
      doc/lzma-file-format.txt was updated too.
    - Improved 32-bit x86 assembly files:
        * Support Intel Control-flow Enforcement Technology (CET)
        * Use non-executable stack on FreeBSD.

OBS-URL: https://build.opensuse.org/request/show/994818
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=111
2022-08-16 06:45:42 +00:00
Dominique Leuenberger
330ddb0a93 Accepting request 969497 from Base:System
- use https urls.

OBS-URL: https://build.opensuse.org/request/show/969497
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=68
2022-04-17 21:49:33 +00:00
76d7fa9560 - change URL to https
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=109
2022-04-12 15:35:29 +00:00
Dominique Leuenberger
a842219c6c Accepting request 898158 from Base:System
OBS-URL: https://build.opensuse.org/request/show/898158
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=67
2021-06-15 14:36:41 +00:00
b8e2ca03e0 Accepting request 898063 from home:jengelh:pic
- Upgrade old rpm constructs (SLE12 is disabled in Base:System/xz already)

OBS-URL: https://build.opensuse.org/request/show/898063
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=107
2021-06-07 15:24:28 +00:00
Dominique Leuenberger
5592e3e9c8 Accepting request 788081 from Base:System
OBS-URL: https://build.opensuse.org/request/show/788081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=66
2020-03-31 15:31:11 +00:00
Stephan Kulow
1ecfc74c0f Accepting request 786367 from home:polslinux:branches:Base:System
- Update to 5.2.5:
  * liblzma:
    - Fixed several C99/C11 conformance bugs. Now the code is clean
      under gcc/clang -fsanitize=undefined. Some of these changes
      might have a negative effect on performance with old GCC
      versions or compilers other than GCC and Clang. The configure
      option --enable-unsafe-type-punning can be used to (mostly)
      restore the old behavior but it shouldn't normally be used.
    - Improved API documentation of lzma_properties_decode().
    - Added a very minor encoder speed optimization.
  * xz:
    - Fixed a crash in "xz -dcfv not_an_xz_file". All four options
      were required to trigger it. The crash occurred in the
      progress indicator code when xz was in passthru mode where
      xz works like "cat".
    - Fixed an integer overflow with 32-bit off_t. It could happen
      when decompressing a file that has a long run of zero bytes
      which xz would try to write as a sparse file. Since the build
      system enables large file support by default, off_t is
      normally 64-bit even on 32-bit systems.
    - Fixes for --flush-timeout:
        * Fix semi-busy-waiting.
        * Avoid unneeded flushes when no new input has arrived
          since the previous flush was completed.
    - Added a special case for 32-bit xz: If --memlimit-compress is
      used to specify a limit that exceeds 4020 MiB, the limit will
      be set to 4020 MiB. The values "0" and "max" aren't affected
      by this and neither is decompression. This hack can be
      helpful when a 32-bit xz has access to 4 GiB address space
      but the specified memlimit exceeds 4 GiB. This can happen
      e.g. with some scripts.
    - Capsicum sandbox is now enabled by default where available
      (FreeBSD >= 10). The sandbox debug messages (xz -vv) were
      removed since they seemed to be more annoying than useful.

OBS-URL: https://build.opensuse.org/request/show/786367
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=105
2020-03-25 08:21:28 +00:00
Dominique Leuenberger
a2b75e7a45 Accepting request 732094 from Base:System
OBS-URL: https://build.opensuse.org/request/show/732094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=65
2019-09-26 18:36:02 +00:00
9d50022148 Accepting request 731872 from home:lnussel:branches:Base:System
- Do not recommend lang package. The lang package already has a supplements.

OBS-URL: https://build.opensuse.org/request/show/731872
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=103
2019-09-20 07:54:18 +00:00
Dominique Leuenberger
53ca0baea2 Accepting request 720527 from Base:System
OBS-URL: https://build.opensuse.org/request/show/720527
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=64
2019-09-05 10:03:48 +00:00
98478f4d90 Accepting request 720508 from home:marxin:static
Use FAT LTO objects in order to provide proper static library.

OBS-URL: https://build.opensuse.org/request/show/720508
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=101
2019-08-02 08:28:06 +00:00
Dominique Leuenberger
62dc8624db Accepting request 705528 from Base:System
OBS-URL: https://build.opensuse.org/request/show/705528
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=63
2019-06-12 10:57:15 +00:00
aeb4ecc968 Accepting request 704524 from home:kstreitova:branches:Base:System
- add SUSE-Public-Domain licence as some parts of xz utils (liblzma,
  xz, xzdec, lzmadec, documentation, translated messages, tests,
  debug, extra directory) are in public domain licence [bsc#1135709]

OBS-URL: https://build.opensuse.org/request/show/704524
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=99
2019-05-27 05:56:49 +00:00
Dominique Leuenberger
78c0602f6f Accepting request 617062 from Base:System
OBS-URL: https://build.opensuse.org/request/show/617062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=62
2018-06-27 08:14:20 +00:00
f6edf4de72 Accepting request 617060 from home:AndreasStieger:branches:Base:System
xz 5.2.4

OBS-URL: https://build.opensuse.org/request/show/617060
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=97
2018-06-15 11:20:06 +00:00
Dominique Leuenberger
f7c6f772a1 Accepting request 588644 from Base:System
OBS-URL: https://build.opensuse.org/request/show/588644
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=61
2018-03-26 09:59:02 +00:00
Stephan Kulow
18c858c467 Accepting request 588638 from home:kukuk:branches:Base:System
- Use %license instead of %doc [bsc#1082318]

OBS-URL: https://build.opensuse.org/request/show/588638
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=95
2018-03-19 14:54:29 +00:00
Dominique Leuenberger
015c8f8eb8 Accepting request 509345 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/509345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=60
2017-07-21 20:35:06 +00:00
0e1ebec608 Accepting request 509172 from home:jengelh:branches:Base:System
- % needs to be encoded in description; adjust weird indent there
  as well. Expand LZMA in summaries.

OBS-URL: https://build.opensuse.org/request/show/509172
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=93
2017-07-11 07:24:06 +00:00
3429eee978 Accepting request 507445 from home:olh:branches:Base:System
- Really use the selfdefined CFLAGS during build to fix build

OBS-URL: https://build.opensuse.org/request/show/507445
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=92
2017-07-04 05:23:33 +00:00
Dominique Leuenberger
0fa143c29d Accepting request 506130 from Base:System
various clean-ups

OBS-URL: https://build.opensuse.org/request/show/506130
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=59
2017-06-30 16:39:00 +00:00
9894a94cf7 Accepting request 506129 from home:AndreasStieger:branches:Archiving
- fix CentOS/RHEL builds after clean-up

OBS-URL: https://build.opensuse.org/request/show/506129
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=90
2017-06-25 17:03:45 +00:00
8f9b6826d8 Accepting request 505452 from home:pluskalm:branches:Base:System
- Simplify spec file conditions
- Clenup profiled building
- Use full lists of files

OBS-URL: https://build.opensuse.org/request/show/505452
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=89
2017-06-22 18:04:11 +00:00
Dominique Leuenberger
5630190d9e Accepting request 477250 from Base:System
is there any reason why we can't enable static build of xz in SUSE? I would need to build an extra package of it otherwise .... (forwarded request 460649 from adrianSuSE)

OBS-URL: https://build.opensuse.org/request/show/477250
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=58
2017-03-07 23:45:41 +00:00
8bbe0cfdfe Accepting request 460649 from home:adrianSuSE:AppImage
is there any reason why we can't enable static build of xz in SUSE? I would need to build an extra package of it otherwise ....

OBS-URL: https://build.opensuse.org/request/show/460649
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=87
2017-03-06 12:43:36 +00:00
Dominique Leuenberger
38c8a1faca Accepting request 448455 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/448455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=57
2017-01-19 09:33:22 +00:00
be50f5a16b Accepting request 448373 from Archiving
1

OBS-URL: https://build.opensuse.org/request/show/448373
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=85
2017-01-02 08:54:34 +00:00
Dominique Leuenberger
8538a752f1 Accepting request 374985 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/374985
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=56
2016-03-26 14:07:38 +00:00
93631f13cc Accepting request 370848 from home:pluskalm:branches:Base:System
- Install xznew with correct permissions (boo#970842)

OBS-URL: https://build.opensuse.org/request/show/370848
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=83
2016-03-18 10:08:27 +00:00
Dominique Leuenberger
bff3b2bac8 Accepting request 359928 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/359928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=55
2016-02-22 09:09:36 +00:00
9aeddcac2a Accepting request 359921 from home:scarabeus_iv:branches:Base:System
- Do not split out lang_package conditional, used in sle10 out of support

OBS-URL: https://build.opensuse.org/request/show/359921
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=81
2016-02-17 10:01:31 +00:00
Stephan Kulow
ae44d32ab3 Accepting request 344924 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/344924
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=54
2015-11-22 09:57:43 +00:00
03702b508f fix minor typo
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=79
2015-11-10 15:05:35 +00:00
3206fdcfc8 Accepting request 343469 from home:frispete:tools
Hi Andreas,

thanks for catching the missed parts.

To be honest, I don't get the meaning of of the 2nd sentence of the 
description in the man page, but I'm probably too simple minded for
a couple of GNU tools (code and description). ;)

Cheers,
Pete

- fix conversion: spell the missed parts correctly

- add xznew{,.1}, converted from bznew

OBS-URL: https://build.opensuse.org/request/show/343469
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=78
2015-11-10 14:52:35 +00:00
Dominique Leuenberger
238d0235a7 Accepting request 334900 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/334900
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=53
2015-10-06 11:23:24 +00:00
Stephan Kulow
10a36cef1b Accepting request 334878 from home:AndreasStieger:branches:Base:System
xz 5.2.2

OBS-URL: https://build.opensuse.org/request/show/334878
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=76
2015-09-30 04:37:54 +00:00
Dominique Leuenberger
e29d9748f6 Accepting request 288183 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/288183
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=52
2015-03-05 14:31:17 +00:00
Stephan Kulow
037431a7a8 Accepting request 288132 from home:AndreasStieger:branches:Base:System
xz 5.2.1

OBS-URL: https://build.opensuse.org/request/show/288132
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=74
2015-02-28 08:37:57 +00:00
Dominique Leuenberger
ed13dc91ca Accepting request 282206 from Base:System
- Avoid running configure twice and using -fprofile-generate or
  -fprofile-use for compiling configure tests when profiling.

OBS-URL: https://build.opensuse.org/request/show/282206
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=51
2015-01-30 05:01:18 +00:00
Richard Biener
dd816714ab - Avoid running configure twice and using -fprofile-generate or
-fprofile-use for compiling configure tests when profiling.

OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=72
2015-01-21 11:25:49 +00:00
Dominique Leuenberger
f587f7612a Accepting request 266417 from Base:System
xz 5.2.0 (forwarded request 266416 from AndreasStieger)

OBS-URL: https://build.opensuse.org/request/show/266417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=50
2015-01-03 21:00:40 +00:00
d657d56649 Accepting request 266416 from home:AndreasStieger:branches:Base:System
xz 5.2.0

OBS-URL: https://build.opensuse.org/request/show/266416
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=70
2014-12-25 21:06:48 +00:00
Dominique Leuenberger
8bcb1696b8 Accepting request 265895 from Base:System
- build with PIE support.

- Build XZ with full RELRO.

OBS-URL: https://build.opensuse.org/request/show/265895
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=49
2014-12-23 11:32:56 +00:00
c953072ddd - build with PIE support.
OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=68
2014-12-19 09:44:59 +00:00