Commit Graph

231 Commits

Author SHA1 Message Date
K900
f1bd0e72c7 libreoffice: build with system liblangtag, backport libxml 2.12 build fixes 2024-01-08 18:53:32 +03:00
Thomas Gerbet
910fb6d8bf libreoffice-fresh: 7.6.2.1 -> 7.6.4.1
Fixes CVE-2023-6185 and CVE-2023-6186.

https://www.libreoffice.org/about-us/security/advisories/cve-2023-6185
https://www.libreoffice.org/about-us/security/advisories/cve-2023-6186
2024-01-07 01:25:29 +01:00
Doron Behar
202588714c libreoffice-unwrapped: fix default --with-help build value
Previously, only if `withHelp` was `false`, we added the `./configure`
flag `--without-help`, but apparently `--without-help` does nothing, as
not building help is the default behavior. Using `lib.withFeature` gives
the most expected behavior no matter what are the defaults. Quoting from
`./configure --help` for reference:

> --with-help             Enable the build of help. There is a special
>                         parameter "common" that can be used to bundle only
>                         the common part, .e.g help-specific icons. This is
>                         useful when you build the helpcontent separately.
>
>                         Usage:     --with-help    build the old local help
>                                --without-help     no local help (default)
>                                --with-help=html   build the new HTML local help
>                                --with-help=online build the new HTML online help

This commit fixes #276400.
2023-12-24 11:52:54 +02:00
Alyssa Ross
f52f3f8be6
libreoffice: backport fix for expired test certs 2023-11-30 15:28:37 +01:00
Doron Behar
4b2b0f1425 libreoffice: disable a test failing on aarch64 2023-10-04 05:45:25 +03:00
Doron Behar
0c56f2756d libreoffice-fresh: disable a failing test 2023-10-04 05:45:25 +03:00
Doron Behar
159b8a6eb2 libreoffice: reformat a bit kdeIntegration postPatch hook
Put the xdg-open -> kde-open5 substitution in the kdeIntegration
conditioned block, also put the comment about it from above the
postPatch near there.
2023-10-04 05:45:25 +03:00
Doron Behar
eb6574af29 libreoffice-fresh-unwrapped: 7.5.4.2 -> 7.6.2.1 2023-10-04 05:45:25 +03:00
Doron Behar
4981cf1288 libreoffice-still-unwrapped: 7.4.7.1 -> 7.5.7.1
Remove dolphin templates, as these seem empty now (for libreoffice-fresh
as well).
2023-10-04 05:45:25 +03:00
Doron Behar
582e1924c9 libreoffice: write a whole, batteries included updateScript 2023-10-01 15:52:12 +03:00
Doron Behar
90160e5fe3 libreoffice: reorder/reformat buildInputs a bit
The versionAtleast 7.4 is no longer needed due to still and fresh
variants' versions.
2023-09-29 19:10:01 +03:00
Doron Behar
27b1afd006 libreoffice: use finalAttrs in mkDerivation 2023-09-29 16:08:41 +03:00
Doron Behar
7932ddf604 libreoffice: always use stdenv.mkDerivation
`mkDerivation` from `libsForQt5` is deprecated. Hooks are preferred, see
https://github.com/NixOS/nixpkgs/issues/180841 .
2023-09-29 16:08:41 +03:00
Doron Behar
babd79315b libreoffice: get rid of src-$VARIANT/override.nix
Towards simplfying the expression.
2023-09-29 16:08:41 +03:00
Doron Behar
b597a74a22 libreoffice: small reformatting to postConfigure 2023-09-29 16:08:41 +03:00
Vladimír Čunát
bf170fec12
libreoffice*: fixup build with curl-8.2.0 2023-08-03 20:45:28 +02:00
Maximilian Bosch
9e0bf8497f
libreoffice-qt: fix build
Broke in 408ece7d3d because the
`disallowedRequisites` fails here since the QT variant apparently needs
to reference a few dev outputs[1].

I won't look into the details of that now, so the easiest way to unbreak
is to skip the check for the QT variant. It should be kept for non-QT
though to make sure that a change similar to the BUILDCONFIG thing isn't
missed again by us.

[1] https://github.com/NixOS/nixpkgs/pull/245361#issuecomment-1651389735

    error: output '/nix/store/2y0czyy26gcsqhmcvd2mlqa35f0gcl4l-libreoffice-7.5.4.1' is not allowed to refer to the following paths:
             /nix/store/0hmvklj0mbhrn8flwbcwivvkv45limhg-freetype-2.13.0-dev
             /nix/store/0rnx7rc87hwkbrhsys7mgwq4jw6pz7ma-zlib-1.2.13-dev
             [...]
2023-07-26 12:54:36 +02:00
Maximilian Bosch
408ece7d3d
libreoffice-fresh: strip away BUILDCONFIG, reduce runtime closure size by ~20%
In v7.5.x a change was introduced that writes the BUILDCONFIG into
`$out/lib/libreoffice/program/libsofficeapp.so` including the
`PKG_CONFIG_PATH` containing references to all `dev` outputs of library
dependencies:

    $ strings $(nix-build -A libreoffice-fresh)/lib/libreoffice/program/libsofficeapp.so|grep PKG_CONFIG_PATH
    [...], "BuildConfig": "[...] 'PKG_CONFIG_PATH=[...]'"

This isn't really needed because this information can also be obtained
by `nix derivation show`. Also, this causes a 20% larger runtime-closure
because of all the dev dependencies being referenced by the output and
thus downloaded whenever libreoffice is substituted somewhere. The
actual numbers look like this:

    $ nix path-info -Sh ./result-old
    /nix/store/3mzrqh4gg7v27vdrrap9dj3x8myysmyf-libreoffice-7.5.4.1-wrapped	  2.0G
    $ nix path-info -Sh ./result
    /nix/store/g5y60s0a2q2v6r58xcayv62z7fjfi816-libreoffice-7.5.4.1-wrapped	  1.6G

Only `libreoffice-fresh` is affected, `pkgs.libreoffice` isn't because
it still points to 7.4 whereas the problematic change was introduced in
7.5.

To make sure this doesn't get reintroduced by accident, the derivation
also prohibits now to reference any dev output from a build input.

[1] https://gerrit.libreoffice.org/c/core/+/141197
2023-07-25 18:05:49 +02:00
Felix Buehler
f3719756b5 treewide: use optionalString instead of 'then ""' 2023-06-24 20:19:19 +02:00
Michael Raskin
e057b8492a
libreoffice*: drop test which regressed on libxml2 update
https://hydra.nixos.org/build/215973648/nixlog/6/tail
(cherry picked from commit 9a0662c50374bdec6ed6029b2c33559f7623ed23)
2023-04-23 09:38:41 +02:00
Doron Behar
07bfa152b6 libreoffice-still: Disable more failing tests 2023-04-07 10:24:11 +03:00
Doron Behar
699d543e9e libreoffice.unwrapped: Remove $dev output
It makes the build fail, and not package in Nixpkgs seems to be using
this.
2023-04-02 18:17:02 +03:00
Doron Behar
e0b64b3a82 libreoffice: Remove failing test 2023-04-02 18:15:53 +03:00
Doron Behar
c613b68e4c libreoffice-still: 7.3.7.2 -> 7.4.6.2 2023-04-02 18:15:53 +03:00
Vladimír Čunát
1f7eeea8ee
Merge branch 'master' into staging-next 2023-03-12 17:21:00 +01:00
Moritz 'e1mo' Fromm
7d15a39781
libreoffice: Fix invalid desktop files
Fixes a regression introduced in #219166 by again setting the correct
binary name in the Exec filed for the .desktop files.

Fixes #220693
2023-03-12 16:08:26 +01:00
Weijia Wang
7f436901f1 libreoffice-still: fix build on aarch64-linux 2023-03-12 00:11:48 +02:00
Doron Behar
3966519d12 libreoffice: wrapper.nix rewrite
Cleanup the unwrapped derivation's postInstall. Delete wrapper.sh, and
put it's contents in the wrapped derivation via configurable
`makeWrapper`. Also, always install dolphin templates in the unwrapped
derivation.
2023-03-07 01:23:22 +02:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Artturin
6f6cc4a22d treewide: use toString on list NIX_CFLAGS_COMPILE
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper
2023-02-22 21:23:04 +02:00
squalus
09720f1dc3 libreoffice: support postgresql by default 2023-02-02 16:59:30 -08:00
me00001
1a93ad6e56
libreoffice: add Arabic language pack 2023-01-13 16:27:44 +03:00
Artturin
c55b931644 treewide: fix lints and remove a unneeded cmake input 2022-12-09 01:16:08 +02:00
Mario Rodas
eed05da3a3
Merge pull request #199802 from jerith666/openjdk-19
OpenJDK: init 19.0.1
2022-11-30 08:01:20 -05:00
Matt McHenry
e7cfa26a86 openjdk: init 19.0.1
as usual this is mostly copy-pasted from 18, so this commit is best
reviewed with '--find-copies-harder'

stop exposing openjdk 18 since it was not a long-term support release

change the default openjdk from 17 to 19 since nixpkgs is a
rolling-release repository

drop the ceremony around bootstrapping via adoptopenjdk for 64-bit
builds vs. via earlier openjdk builds for 32-bit, because, to be
frank, since we're using temurin now, it's not a simple copy-paste
job.  :-/  if someone needs a 32-bit openjdk, that work can be done
separately.

JavaFX revs from 17 to 19; it looks like 18 was never packaged along
with JDK 18.

* the gradle invocation used to build JavaFX must still be done with
  Java 18, as gradle does not yet support running itself on Java 19.

* a couple of patches need to be applied, since a new State enum was
  introduced in the JDK that collides with one in JavaFX.

* the hash of the gradle dependencies has not changed, which is
  surprising, but as far as I can tell correct.

One application (libreoffice) doesn't work with 19 yet, so pin it to
jdk 17 for now.

Co-authored-by: Mario Rodas <marsam@users.noreply.github.com>
2022-11-22 20:33:24 -05:00
Mustafa Çalışkan
56639875f7
libreoffice: add Turkish language pack 2022-11-17 16:09:39 +03:00
Ian M. Jones
90eb7cc0aa libreoffice: fix *.desktop files Exec commands 2022-10-24 10:03:13 +08:00
Florian Brandes
3e3301db78
libreoffice: fix test and cleanup
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-10-18 07:33:04 +02:00
Florian Brandes
2b690476d2 libreoffice-fresh: 7.4.0.3 -> 7.4.2.3
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-10-17 21:35:00 +02:00
ajs124
7be2ecc973 libreoffice-*: drop poppler patches 2022-10-17 21:35:00 +02:00
ajs124
c4785c567e libreoffice-fresh: 7.3.3.2 -> 7.4.0.3 2022-10-17 21:35:00 +02:00
Artturin
0734f54ef2 treewide: move pkg-config, autoreconfHook, intltool to nativeBuildInputs
found with nixpkgs-lint
2022-09-26 17:53:26 +03:00
Vladimír Čunát
6b4195366a
libreoffice*: hack-fix build after gpgme update 2022-08-18 17:40:39 +02:00
K900
523bd0ae27 libreoffice: add java.sql dependency
Otherwise Base crashes on startup.
2022-06-23 18:26:35 +02:00
Robert Scott
3b6bc4b69c treewide: set sourceProvenance for packages containing downloaded jars
these are the easily identifiable cases and will not be comprehensive
2022-06-04 19:47:57 +01:00
Peter Hoeg
d75e54f70c libreoffice: fix -qt build 2022-05-12 22:56:10 +08:00
Florian Brandes
28942721a1
libreoffice-fresh: 7.2.5.2 -> 7.3.3.2
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-05-08 21:44:27 +02:00
Jan Tojnar
ced814af20 libreoffice-fresh: Fix build with poppler 22.04 2022-05-04 14:42:39 +02:00
Jan Tojnar
9102478153 libreoffice: fix build with Poppler 22.03 2022-03-25 19:27:18 +01:00
Peter Hoeg
6340db6249 libreoffice-qt: kf5 header files have moved into a subdir 2022-03-22 19:18:43 +08:00