76 Commits

Author SHA1 Message Date
Michael Daniels a7a6bd99a2 gzip: security fixes
Fixes #536998
2026-07-01 17:48:42 -04:00
Aleksi Hannula ae147f005a pkgsi686Linux.pkgsMusl.gzip: Fix build
Set -no-pie for gzip on this specific platform.

The ASM fast-path makes object references without going through PLT,
which would need to be relocated. Then musl ldd tries to apply
relocations to an R-X .text section and crashes.
2026-03-05 10:52:01 +02:00
nixpkgs-ci[bot] 10c19f803c Merge staging-next into staging 2026-01-03 18:06:04 +00:00
David McFarland 3d54445b2b gzip: fix cygwin build 2026-01-02 12:48:09 -04:00
sternenseemann 66b87c1507 Merge staging-next into staging 2025-12-30 16:11:51 +01:00
Michael Daniels 04d1ee368b Revert "gzip: set passthru.updateScript"
This reverts commit 63a72682ee.

Does not eval when run.
2025-12-30 08:35:05 -05:00
Michael Daniels 2c8543c3f3 gzip: add passthru test 2025-12-28 10:09:01 -05:00
Michael Daniels dad138e3de gzip: adopt 2025-12-26 20:17:54 -05:00
Michael Daniels 43983f9f0e gzip: use finalAttrs 2025-12-25 17:28:03 -05:00
Michael Daniels 63a72682ee gzip: set passthru.updateScript 2025-12-25 17:25:51 -05:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
R. Ryantm c8fe0355aa gzip: 1.13 -> 1.14 2025-04-10 12:36:22 +00:00
Silvan Mosberger 374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Arne Keller e84636c9d8 gzip: use makeShellWrapper instead of makeWrapper (#351097) 2024-12-20 13:02:07 +01:00
Karel Kočí 5dd6467e7b gzip: use makeShellWrapper instead of makeWrapper
makeWrapper is in default makeShellWrapper but sometimes it is
beneficial to switch it in overlay to makeBinaryWrapper, but gzip is
injecting shell expansion that doesn't work binary wrapper. Thus this
takes shell wrapper explicitly as a dependency now.
2024-10-25 09:06:44 +02:00
piegames ae207af82b treewide: More string indentation fixes
Follow-up on #350296 with the packages that cause big rebuilds and need
to go through staging.
2024-10-23 21:52:18 +02:00
Peder Bergebakken Sundt 8c8c27bb19 treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
Audrey Dutcher 846de80d1c various: Enable updateAutotoolsGnuConfigScriptsHook
Prior to August 2023, any config.guess generated by autoconf will
include a hardcoded /usr/bin/uname invocation for FreeBSD on any
architecture other than arm. This clearly doesn't work under nix.
We must then update or otherwise patch each old config.guess.
2024-05-27 11:09:28 -04:00
Audrey Dutcher be0a824971 gzip: Add runtimeShell to buildInputs
This package distributes shell scripts in /bin. Its shebangs are
always patched to a /nix/store shell, but by default, they are patched to
use the stdenv's shell, which during bootstrap is build in the previous
stdenv. By using runtimeShell from the current stdenv, we can shorten the
FreeBSD bootstrap process significantly.
2024-05-26 23:24:01 -07:00
Austin Horstman 12aef2eb5d gzip: add meta.mainProgram 2024-04-09 22:47:30 -05:00
Janne Heß d004ba09a3 gzip: 1.12 -> 1.13 2023-08-21 09:21:21 +02:00
Artturin d29b1ecb89 make-bootstrap-tools.nix: fix for wrapped gzip 2023-01-21 17:19:38 +02:00
Artturin 88f36d2694 gzip: make reproducible when GZIP_NO_TIMESTAMPS is set
the logic can be tested with

```
$ GZIP_NO_TIMESTAMPS=1 && echo "${GZIP_NO_TIMESTAMPS:+-n }"
-n
$ unset GZIP_NO_TIMESTAMPS && echo "${GZIP_NO_TIMESTAMPS:+-n }"

```
2023-01-12 01:30:29 +02:00
Ivan Kozik 23e5407bd4 gzip: build and install zless which went missing in gzip-1.12
Fixes https://github.com/NixOS/nixpkgs/issues/187697
2022-08-21 08:28:48 +00:00
Martin Weinelt c4d4de89dd gzip: 1.11 -> 1.12
https://savannah.gnu.org/forum/forum.php?forum_id=10157
https://git.savannah.gnu.org/cgit/gzip.git/commit/?id=dc9740df61e575e8c3148b7bd3c147a81ea00c7c

Fixes: CVE-2022-1271
2022-04-08 00:53:02 +02:00
Sergei Trofimovich 4a107d9b6d gzip: 1.10 -> 1.11 2021-09-15 00:10:05 +01:00
Ben Siraphob 8c5d37129f pkgs/tools: stdenv.lib -> lib 2021-01-15 17:12:36 +07:00
Matthew Bauer d0677e6d45 treewide: add warning comment to “boot” packages
This adds a warning to the top of each “boot” package that reads:

  Note: this package is used for bootstrapping fetchurl, and thus cannot
  use fetchpatch! All mutable patches (generated by GitHub or cgit) that
  are needed here should be included directly in Nixpkgs as files.

This makes it clear to maintainer that they may need to treat this
package a little differently than others. Importantly, we can’t use
fetchpatch here due to using <nix/fetchurl.nix>. To avoid having stale
hashes, we need to include patches that are subject to changing
overtime (for instance, gitweb’s patches contain a version number at
the bottom).
2020-07-31 08:56:53 +02:00
Pavol Rusnak a9d90273d8 gzip: add setup-hook to stop gzip from adding timestamps to headers 2020-05-11 22:16:44 +02:00
Scott Worley d2d7fbc431 gzip: Don't depend on gzip being in $PATH 2020-04-21 08:24:27 +02:00
Michael Reilly 84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Will Dietz 06dc418292 gzip: 1.9 -> 1.10
https://savannah.gnu.org/forum/forum.php?forum_id=9339
2018-12-30 17:05:33 -06:00
volth 52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Jan Malakhovski 7438083a4d tree-wide: disable doCheck and doInstallCheck where it fails (the trivial part) 2018-04-25 04:18:46 +00:00
Daiderd Jordan f968949c75 gzip: remove darwin format patch 2018-01-27 20:08:35 +01:00
Lancelot SIX 31eedb3084 gzip: 1.8 -> 1.9
See http://lists.gnu.org/archive/html/info-gnu/2018-01/msg00004.html
for release informations.
2018-01-11 11:17:18 +01:00
Dan Peebles 0419452113 Fix Darwin stdenv to work on 10.13
The main changes are in libSystem, which lost the coretls component in 10.13
and some hardening changes that quietly crash any program that uses %n in
a non-constant format string, so we've needed to patch a lot of programs that
use gnulib.
2017-07-11 21:56:38 -04:00
David McFarland 23efc95a74 gzip: remove cygwin hack
The file being patched doesn't exist any more, and gzip now builds
on cygwin without this.
2017-06-26 09:26:10 -03:00
John Ericson b518598a40 gzip: xz.bin should be native input---accidentally worked because bin (#21887)
Otherwise http://hydra.nixos.org/build/46501984/nixlog/2
2017-01-14 19:21:10 +01:00
Lancelot SIX 8a67abb820 pkgs.gzip: 1.7 -> 1.8
See http://lists.gnu.org/archive/html/info-gnu/2016-04/msg00012.html
2016-04-28 19:36:27 +02:00
Aneesh Agrawal a01fdb3ad4 gzip: 1.6 -> 1.7 (close #14828) 2016-04-20 16:40:53 +02:00
Vladimír Čunát daa543a455 gzip: split man and info outputs 2015-10-28 10:09:33 +01:00
Vladimír Čunát 5227fb1dd5 Merge commit staging+systemd into closure-size
Many non-conflict problems weren't (fully) resolved in this commit yet.
2015-10-03 13:33:37 +02:00
Florian Friesdorf 6756d7cdf8 cygwin: gzip fpending 2015-05-28 10:53:35 +02:00
Vladimír Čunát bf414c9d4f Merge 'staging' into closure-size
- there were many easy merge conflicts
- cc-wrapper needed nontrivial changes

Many other problems might've been created by interaction of the branches,
but stdenv and a few other packages build fine now.
2015-04-18 11:22:20 +02:00
Eelco Dolstra 2ed5c2bd6b Set some meta.platforms
Also fix meta.platform -> meta.platforms in a few places.
2015-03-20 20:04:42 +01:00
Aristid Breitkreuz 2c107b86f6 remove unused parameter from gzip derivation 2014-10-08 20:23:27 +02:00
Vladimír Čunát 8da52a642a Merge branch 'staging' into v/modular
Conflicts (easy):
	pkgs/development/interpreters/perl/5.10/setup-hook.sh
	pkgs/development/interpreters/perl/5.8/setup-hook.sh
	pkgs/development/libraries/gtk+/2.x.nix
2014-08-31 12:23:18 +02:00
Vladimír Čunát 030af0a803 fix .xz in stdenv bootstrap
Presumably needed due to the last staging merge.
There was some stdenv stage refactoring within, IIRC.
2014-08-30 15:48:17 +02:00