Commit Graph

143 Commits

Author SHA1 Message Date
Lily Foster
3070d8a681
ghostscript: fix build on darwin
3230e58d06
https://hydra.nixos.org/build/274082857/nixlog/3/tail
2024-10-02 20:14:24 +02:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
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
Simon Hauser
18459ab73c
ghostscript: 10.03.1 -> 10.04.0 2024-09-18 17:17:10 +02:00
Tobias Mayer
4535a56495
ghostscript, logrotate, linux-perf: adopt 2024-07-28 17:15:17 +02:00
Aleksana
ee9cf00e6d
Merge pull request #315240 from Cryolitia/ghost-font
ghostscript: add output `fonts`
2024-06-15 19:32:39 +08:00
北雁 Cryolitia
93a9ca34fe
ghostscript: add output fonts 2024-05-28 11:50:34 +08:00
Dmitry Kalinkin
2dcfa4787b ghostscript: 10.3.0 -> 10.3.1 2024-05-22 17:47:43 -04:00
Alexis Hildebrandt
6faa002dc1 ghostscript: 10.02.1 -> 10.03.0 2024-05-16 19:23:16 +02:00
Jussi Kuokkanen
82b45bf454 treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
Enno Richter
4df141fe3f ghostscript: 10.02.0 -> 10.02.1 2023-11-21 06:24:38 +01:00
Vincenzo Mantova
87d7169f5c
ghostscript: pad headers at link time to prevent install_name_tool failure on Darwin (#263833) 2023-11-05 14:46:28 -05:00
Robert Scott
4d2b986d7e ghostscript: 10.01.2 -> 10.02.0 2023-09-18 20:31:13 +01:00
Robert Scott
c45a792653 ghostscript.tests.test-corpus-render: unstable-2022-12-01 -> unstable-2023-05-19 2023-09-09 14:23:41 +01:00
Vladimír Čunát
bc263d91ce
Merge #243316: ghostscript: 10.01.1 -> 10.01.2
..into staging-next.  This is a topologically earlier re-merge,
as it seems fairly important security fix and not that huge rebuild.
2023-07-15 14:21:07 +02:00
Samae
cd5749c5b0 ghostscript: 10.01.1 -> 10.01.2
Minor update to counter CVE-2023-36664

Closes #243250
2023-07-14 00:53:43 +03:00
Vincenzo Mantova
67bf09ea95 ghostscript: fix dynamic linking of gsx on darwin 2023-06-26 23:12:31 +01:00
figsoda
b643a42a1f ghostscript: don't use lib.optional with a list 2023-05-29 19:41:39 -04:00
Robert Scott
bcf58d9125 ghostscript.tests.test-corpus-render: unstable-2020-02-19 -> unstable-2022-12-01 2023-04-12 23:05:55 +01:00
Robert Scott
a0878852ff ghostscript: add some key reverse-dependencies to passthru.tests 2023-04-12 00:25:58 +01:00
Robert Scott
0afc44be9a ghostscript: 9.56.1 -> 10.01.1 2023-04-12 00:25:57 +01:00
Sergei Trofimovich
051228cee4 ghostscript: use xorg.* packages directly instead of xlibsWrapper indirection
Validated as no change in `out`, `man`, `doc` outputs with diffoscope on
`ghostscript` expression.
2022-10-04 19:59:30 +01:00
Robert Scott
2047e6eb7d ghostscript: 9.55.0 -> 9.56.1 2022-04-29 22:36:08 +01:00
Maximilian Bosch
d9218155d2
ghostscript: use system-wide openjpeg
The following error occurs when using `imagemagickBig`:

    $ ./result/bin/identify sample.jp2
    [1]    699089 IOT instruction (core dumped)  ./result/bin/identify sample.jp2

When looking at the call-trace it seems as if certain symbols, e.g.
`opj_malloc` are mixed up:

    #8  0x00007f78c79ad2f5 in MagickSignalHandler.cold () from /nix/store/bqy80qiw6czqh7vsmmmivwdswp9zzjgl-imagemagick-7.1.0-29/lib/libMagickCore-7.Q16HDRI.so.10
    #9  <signal handler called>
    #10 0x00007f78c5a6095f in opj_malloc () from /nix/store/wg6ly83k1k1fjiygiv1jr7li3p6dwsvq-ghostscript-with-X-9.55.0/lib/libgs.so.9
    #11 0x00007f78c5a60981 in opj_calloc () from /nix/store/wg6ly83k1k1fjiygiv1jr7li3p6dwsvq-ghostscript-with-X-9.55.0/lib/libgs.so.9
    #12 0x00007f78c4f48e24 in opj_create_decompress () from /nix/store/qwalb0kjz1p9c4j48qkk6ql47ds2lnhh-openjpeg-2.4.0/lib/libopenjp2.so.7

The `opj_create_decompress()` is called from the `openjpeg`-integration
of `imagemagick` and thus shouldn't affect `ghostscript` at all.
However, `ghostscript` (`libgs.so` to be precise) also exposes e.g.
`opj_malloc`:

    $ objdump -t /nix/store/wg6ly83k1k1fjiygiv1jr7li3p6dwsvq-ghostscript-with-X-9.55.0/lib/libgs.so.9.55|grep opj_malloc
    0000000000205940 g     F .text	000000000000002b              opj_malloc

Because of that, two incompatible symbols are used in the same process
and thus the `identify`-call breaks because the wrong one is used. To
work around that I decided to use the system-wide openjpeg instead.
I'm not sure why `libgs.so` wants to expose these symbols anyways, but
with that workaround the problem is solved.

Even though it's mentioned that ghostscript's openjpeg is heavily
patched, I think that this is somewhat outdated or at least irrelevant
considering that both ArchLinux[1] and Fedora[2] use the system-wide
`openjpeg` instead.

[1] bafcb5473b/trunk/PKGBUILD (L50)
[2] e4eec13ab6/f/ghostscript.spec (_245)
2022-04-23 00:54:22 +02:00
Felix Buehler
c01851e31c ghostscriptX: remove appendToName to have a consistent package name for repology 2022-02-23 10:22:05 +01:00
Robert Scott
f789367c26
ghostscript: 9.53.3 -> 9.55.0 (#153239)
leaving new tesseract support disabled for now
2022-01-08 20:01:38 -05:00
Alyssa Ross
4e1852096f
Merge remote-tracking branch 'nixpkgs/staging-next' into staging
Conflicts:
	pkgs/development/tools/parsing/flex/2.6.1.nix
2021-11-14 14:17:46 +00:00
Markus S. Wamser
b0249fdf99 pkgs.misc: remove unused args 2021-11-13 23:09:33 +01:00
Sandro Jäckel
1ab1b4561d
ghostscript: remove ? null, format 2021-11-05 21:08:58 +01:00
Artturin
75fd86fb25 ghostscript: fix cross-compile
zlib has to be in nativeBuildInputs too because its run during the
build, i think.
2021-11-05 19:57:04 +02:00
Samuel Gräfenstein
5323733f7b
ghostscript: set meta.mainProgram 2021-10-11 16:44:25 +02:00
Robert Scott
57692f6d3e ghostscript: add passthru.tests.test-corpus-render
this simply attempts rendering every ps/eps/pdf file in the ghostscript
test corpus
2021-09-12 13:14:03 +01:00
Robert Scott
8dba41756b
Merge pull request #137421 from risicle/ris-ghostscript-install-tests
ghostscript: disable checkPhase, expand installCheckPhase
2021-09-12 12:32:19 +01:00
Robert Scott
d24d65786c ghostscript: disable checkPhase, expand installCheckPhase
upon closer inspection, `make check` does little except rebuild
everything with some different options. ghostscript has a python-based
test suite, but it looks like an unmaintained disaster zone.

so the best we can probably do for now is ensure we can render all the
provided examples.
2021-09-11 19:42:38 +01:00
Timothy
79eed79c8f ghostscript: add patch for CVE-2021-3781 2021-09-11 11:11:19 +07:00
Ben Siraphob
badf51221d treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
Sirio Balmelli
a775974c8a
ghostscript: fix broken rpath on Darwin
Dynamic library name on Darwin contains only 'maj.min' eg "9.53";
the build however used $version to set rpath;
this broke on 2029ca37 when $version went from "9.52" to "9.53.3".

Add a call to 'gs' in installCheckPhase,
to break the build if dylib issues arise in the future.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
2020-11-25 10:28:21 +01:00
Jan Tojnar
6b76a2d004 ghostscript: clean up
* Do not use pkgconfig alias.
* Move version & hash inline.
2020-11-01 10:04:30 +01:00
TredwellGit
2029ca3791 ghostscript: 9.52 -> 9.53.3
https://www.ghostscript.com/doc/9.53.3/News.htm
2020-11-01 10:04:08 +01:00
Robert Scott
9292dbf7fa ghostscript: add patch for CVE-2020-15900 2020-08-24 11:57:06 +02:00
Alyssa Ross
39fef703bf ghostscript: fix build
This hack is no longer necessary, since multiple-outputs.sh has been
fixed to install docs in the right location.
2020-06-29 13:56:27 +00:00
Martin Milata
1c7d22e663 ghostscript: 9.50 -> 9.52
https://www.ghostscript.com/doc/9.51/News.htm
https://www.ghostscript.com/doc/9.52/News.htm
2020-06-04 18:27:53 +02:00
Benno Fünfstück
260be73708 ghostscript: apply patch to fix parallel build
The build process of ghostscript has missing dependencies, causing
failures in parallel builds (see hydra build
https://hydra.nixos.org/build/117095669/, reported as ghostscript bug
https://bugs.ghostscript.com/show_bug.cgi?id=702364 here)
2020-05-01 17:03:24 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Robin Gloster
e9c27ed5f9
treewide: configureFlags is a flat list 2019-12-31 01:34:39 +01:00
Robert Scott
6217e94778 ghostscript: add patch for CVE-2019-14869 2019-11-16 13:36:25 +00:00
Robert Scott
0b32782d33 ghostscript: 9.27 -> 9.50 2019-10-29 13:31:22 +01:00
Robert Scott
4bf03aa616 ghostscript: add patches for CVE-2019-10216, CVE-2019-14811, CVE-2019-14812, CVE-2019-14813 and most of CVE-2019-14817
the latter's patch is only partially applied because it doesn't apply
cleanly to 9.27, still the fixes that do apply work and are better than
nothing
2019-10-22 09:48:50 +02:00
Robert Scott
6882778e26 ghostscript: 9.26 -> 9.27 (security) 2019-10-22 09:48:50 +02:00
volth
c814d72b51 treewide: name -> pname 2019-08-17 10:54:38 +00:00