Commit Graph

40 Commits

Author SHA1 Message Date
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Sandro Jäckel
ee736a3dc9
gd: disable fontconfig when built without Xorg 2023-11-26 22:34:35 +01:00
Sandro Jäckel
7c473eb699
gd: add withXorg flag, little cleanups 2022-12-04 10:38:20 +01:00
Malte-Christian
e986a2e0c2
gd: enable AVIF support (#158698)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-02-09 14:29:25 +01:00
Dmitry Kalinkin
32fdd7a9fd
gd: add --enable-gd-formats
fixes "GD Warning: GD2 image support has been disabled"
for example in perl5Packages.GD
2021-12-23 00:14:30 -05:00
Vladimír Čunát
dfe7010069
gd: apply upstream patch
The last version (PR #146992) broke API unintentionally,
breaking php build.  Upstream reverted the breakage.
2021-12-15 11:17:28 +01:00
Alvar Penning
05eb41e468 gd: 2.3.2 -> 2.3.3 2021-12-02 17:56:03 -08:00
Robert Scott
4afafc0893 gd: 2.3.0 -> 2.3.2, add patch for partial CVE-2021-40812 fix 2021-09-22 19:11:12 +01:00
Robert Scott
be290af6db Revert "gd: 2.3.0 -> 2.3.3"
This reverts commit 14a71668b8.

2.3.3 causes php build failures
2021-09-22 19:10:05 +01:00
Robert Scott
14a71668b8 gd: 2.3.0 -> 2.3.3
remove now-included patch

this partially resolves CVE-2021-40812
2021-09-19 09:20:13 +09:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Alyssa Ross
10ad3f66f5
gd: fix "Error: Problem doing text layout"
This backport allows the Wayland documentation to be successfully
built.
2020-07-03 03:36:44 +00:00
R. RyanTM
e895cacd9b gd: 2.2.5 -> 2.3.0 2020-04-05 13:31:16 +02: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
Jan Malakhovski
ead797e78b gd: disable tests 2018-08-11 09:35:37 +00:00
Franz Pletz
0653abc07a
gd: 2.2.4 -> 2.2.5 for multiple CVEs
Fixes:
  * CVE-2017-6362
  * CVE-2017-7890
2017-09-18 22:45:30 +02:00
Franz Pletz
6a02d48c72
gd: 2.2.3 -> 2.2.4 for multiple CVEs
Fixes:

  * CVE-2016-9317
  * CVE-2016-6912
2017-01-25 20:53:37 -05:00
Tuomas Tynkkynen
a17216af4c treewide: Shuffle outputs
Make either 'bin' or 'out' the first output.
2016-08-29 14:49:51 +03:00
Robin Gloster
f222d98746 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-07-25 12:47:13 +00:00
Joachim Fasting
bbae43a7a9
gd: remove left-over cruft from 9b658d51cb 2016-07-24 12:54:07 +02:00
Michael Stone
19f074a5c3 gd: 2.2.2 -> 2.2.3 2016-07-22 15:30:30 -04:00
Robin Gloster
1f04b4a566 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-07-21 00:56:43 +00:00
Anthony Cowley
9b658d51cb gd: cherry-pick a temporary patch for darwin 2016-07-19 12:57:42 -04:00
Robin Gloster
5185bc1773 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-07-15 14:41:01 +00:00
Vladimír Čunát
b1a07467d2 gd: security 2.2.1 -> 2.2.2
CVE-2015-8874, CVE-2016-5767
2016-07-09 17:17:38 +02:00
Robin Gloster
8031cba2ab Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-06-10 09:27:04 +00:00
Joachim Fasting
8b2fc35987
gd: propagate image format dependencies
After f8bdd7969d it has become necessary for users
of gd to also add inputs for optional image format support, such as libjpeg and
libwebp.

This patch makes the following commits obsolete:
- 972c438c03
- 2113b7389a
- 94286527ac
- a371094f1f
- f345d01974
2016-06-03 15:43:12 +02:00
Joachim Fasting
3a7ec4c8f4
gd: enable parallel building 2016-06-03 15:43:12 +02:00
Robin Gloster
2d382f3d98 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-05-30 19:39:34 +00:00
Franz Pletz
7d580b8339 gd: 2.1.1 -> 2.2.1 2016-05-30 09:49:12 +02:00
Joachim Fasting
63a8c58185
gd: multiple outputs 2016-05-22 20:03:00 +02:00
Franz Pletz
f8d481754c
Merge remote-tracking branch 'origin/master' into hardened-stdenv 2016-05-18 17:10:02 +02:00
Joachim Fasting
220836d066
gd: apply patch for CVE-2016-3074 from upstream
Source:
2bb97f407c.patch

The original patch contains binary data, however, which is not supported
by `patch`; we could use `git apply` here, of course, but it was simpler
to just copy-paste only the fix into a separate file and include it in
the repo.
2016-05-14 07:15:41 +02:00
Joachim Fasting
f8bdd7969d
gd: 2.0.35 -> 2.1.1
Upstream claims 2.1 is fully API compatible with 2.0

https://libgd.github.io/release-2.1.0.html
https://libgd.github.io/release-2.1.1.html

Also includes meta updates, adds pkg-config to the build environment,
for proper detection of dependencies, and adds optional support for tiff
and xpm image formats.
2016-05-14 07:15:41 +02:00
Franz Pletz
aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00
Robin Gloster
f6d3b7a2ae switch hardening flags 2016-01-30 16:36:57 +00:00
Franz Pletz
954e9903ad Use a hardened stdenv by default 2016-01-30 16:36:57 +00:00
Eelco Dolstra
ebacd32b71 * Added libgd.
* gnuplot 4.2.2.

svn path=/nixpkgs/trunk/; revision=9354
2007-09-21 20:43:43 +00:00