Commit Graph

68 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
Philip Taron
26a7a87293
avahi: remove config.avahi
This was added in 6832a42b7f, which
replaced an attrset with `qt4Support = config.avahi.qt4Support or false;`.

As qt4 support is now out of the tree, so should this be as well.
2024-09-03 14:54:27 -07:00
Giel van Schijndel
a4e8e2477a
avahi: patches to handle malformed content from the network
Specifically these where recommended by an upstream maintainer in
[this comment]:

* https://github.com/avahi/avahi/pull/480
* https://github.com/avahi/avahi/pull/515
* https://github.com/avahi/avahi/pull/519

[this comment]: https://github.com/NixOS/nixpkgs/pull/269599#issuecomment-1839059467
2024-03-25 11:39:39 +01:00
Giel van Schijndel
88d2a029e9
avahi: patch to handle bogus services gracefully
This applies the fix for avahi/avahi#212 where having a single invalid
service being published inside a network could DoS discovery for all
avahi clients.

For me this happened with a "SIEMENS HM676G0S6". AFAIK Bosch (from the
original GitHub issue) is a subsidiary of Siemens.

Fixes: avahi/avahi#212
2024-03-25 11:29:12 +01:00
Giel van Schijndel
9a6a13cc09
avahi: use fetchpatch's "exclude" option instead of manual patch maintenance
And grab only the single required commit in case of avahi/avahi#499.
2024-03-25 11:29:00 +01:00
eryngion
b04217c07a avahi: remove unused perl dependency
Perl is only required for doxygen which we don't use here
and xmltoman which we don't even package. In any case if
it was used it should have been in nativeBuildInputs, not
buildInputs like now.
2024-01-28 02:40:19 +03:00
Arnout Engelen
e89c902564
avahi: apply patch for CVE-2023-38472 2023-11-26 16:13:50 +01:00
Arnout Engelen
fb22f402f4
avahi: apply patch for CVE-2023-38471
And the follow-up PR
2023-11-26 16:10:09 +01:00
Arnout Engelen
f65b41f13d
avahi: apply patch for CVE-2023-38470 2023-11-26 16:10:09 +01:00
Arnout Engelen
38b85cb444
avahi: apply patch for CVE-2023-38469 2023-11-26 16:10:07 +01:00
Arnout Engelen
73ff1fc601
avahi: apply patch for CVE-2023-38473
As no release appears to be imminent...
https://github.com/lathiat/avahi/issues/503
2023-11-24 10:36:49 +01:00
Henri Rosten
ae58f00617 avahi: add patch for CVE-2023-1981
Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
2023-08-11 15:18:20 +03:00
Sergei Trofimovich
1f3fda9457 avahi: split headers to "dev" output 2023-04-16 21:56:30 +01:00
Alyssa Ross
64867daeae
avahi: fix build for FreeBSD 2023-01-26 21:54:31 +00:00
Sandro Jäckel
3836639c13
avahi: remove not required ? null from inputs 2022-12-10 03:41:07 +01:00
Yorick van Pelt
039e1a05f5
avahi: add patch for CVE-2021-3468 2022-10-10 09:23:41 +02:00
Jan Tojnar
eb31cd04f1
avahi: remove Qt 4 support
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-06-10 02:51:47 +02:00
Jan Tojnar
8fa4e66def avahi: simplify path handling 2022-05-21 19:30:39 +02:00
Jan Tojnar
14dafc194f avahi: Simplify pkg-config cross fix
Building `pkgsCross.aarch64-multiplatform.avahi` would fail in the past with:

    checking for pkg-config... no
    configure: error: pkg-config is required to install this program

To fix that, two independent workarounds were applied, each sufficient:

- 34e4d0fd98
- 65a5313de5

These days, it is more common to just add `pkg-config` to `depsBuildBuild`.
2022-05-21 18:55:10 +02:00
Jan Tojnar
c55e200bb0 avahi: drop intltool & outdated flags
- intltool was replaced by vanilla gettext 3d5a0c6805
- gtk2 and qt4 disabled by default f060abee28
- qt3 disabled by default 6ae71484f4
- howl-compat was disabled by default 17 years ago 16d9e30dd7
2022-05-21 18:54:38 +02:00
Jan Tojnar
d5cf13f483 avahi: format the expression
- Use `nixpkgs-fmt`.
- Order attributes according to common convention.
- Use `enableFeature` consistently.
2022-05-21 18:53:14 +02:00
Profpatsch
46baf627e2 avahi: patch segfault on resolving .local addresses
Avahi would segfault on a NULL pointer dereference when trying to
resolve .local addresses.

This patch fixes that quite annoying behaviour, but apparently wasn’t
worth a release yet.
2022-03-12 10:52:19 +01:00
Felix Buehler
b69be3d855 avahi: rename name to pname 2022-02-24 19:08:45 +01:00
Léo Gaspard
742886cc3a avahi: add link to nixos tests 2021-05-08 21:41:06 +02:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Tim Steinbach
1bec9d20da avahi: 0.7 -> 0.8 2020-11-24 17:04:01 +01:00
Frederik Rietdijk
ae1584dc98
Merge pull request #91457 from matthewbauer/prefixed-pkg-config
Fixes from prefixed pkg config
2020-07-02 17:26:16 +02:00
Michael Bishop
65a5313de5 avahi: fix cross 2020-07-02 17:15:54 +02:00
Matthew Bauer
34e4d0fd98 avahi: use prefixed pkg-config 2020-06-25 00:09:22 -04:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
worldofpeace
5067fb6562 avahi: Move D-Bus conf file to share/dbus-1/system.d
Since D-Bus 1.9.18 configuration files installed by third-party should
go in share/dbus-1/system.d. The old location is for sysadmin overrides.
2019-09-16 13:59:08 -04:00
Robin Gloster
4e60b0efae
treewide: update globin's maintained drvs 2019-08-20 19:36:05 +02:00
Robin Gloster
68c30f0d9b
Merge pull request #62153 from WilliButz/avahi-refactor
avahi: set service directory and refactor module
2019-06-11 14:04:33 +00:00
Ben Wolsieffer
f9750a769f avahi: add Python support 2019-06-09 12:21:58 +02:00
WilliButz
c260e9e399
avahi: set AVAHI_SERVICE_DIR to well-known location
Avahi now uses `/etc/avahi/services` instead of its
store path to look for files with service definitions.
2019-06-04 00:22:48 +02:00
Andreas Rammhold
87a762269f
avahi: apply patches for CVE-2017-6519 & CVE-2018-1000845 2019-03-26 21:32:00 +01:00
Peter Hoeg
6e802e3347 avahi: add -compat option 2019-02-25 15:42:04 +08:00
Jan Tojnar
994a63a91d
avahi: add gtk support 2018-12-24 02:29:16 +01:00
volth
c0fed1ba77 perlXMLParser -> perlPackages.XMLParser 2018-10-12 22:56:15 +00:00
Ben Gamari
86a778a80a avahi: Enable cross-compilation 2018-05-03 17:06:01 -04:00
Franz Pletz
1c5ab2f639
avahi: 0.6.12 -> 0.7 2017-08-01 08:33:35 +02:00
Bjørn Forsman
79ed40cd69 avahi: 0.6.31 -> 0.6.32
Bugfix release, backwards compatible:

  https://github.com/lathiat/avahi/releases/tag/v0.6.32

* Update src URL to github (the latest release is only available there).
* Change "$(mkdir_p)" to "$(MKDIR_P)" in the patch to keep it working
  (apply'able).
2016-07-04 14:10:09 +02:00
Vladimír Čunát
7d8ee80dab avahi: don't install broken symlinks
/cc maintainer @lovek323 and @wkennington who added these links 4118e632e8.
2016-01-01 10:01:36 +01:00
Eric Seidel
e08b9ab8d3 kill libiconvOr*
Conflicts:
	pkgs/applications/networking/mailreaders/sup/default.nix
	pkgs/development/compilers/ghc/7.8.3-binary.nix
	pkgs/development/interpreters/php/5.3.nix
	pkgs/development/interpreters/ruby/patches.nix
	pkgs/development/libraries/cairo/default.nix
	pkgs/development/libraries/poppler/default.nix
	pkgs/top-level/all-packages.nix
2015-02-07 20:29:28 -08:00
William A. Kennington III
4118e632e8 Upgeade avahi to 0.6.31
Additionally, link compatability files for dns_sd.h and howl as these are
needed to build mumble and potentially other avahi using derivations.
2013-12-02 20:15:01 -06:00
Bjørn Forsman
28ac782583 Some description fixes
There are many more packages to fix, this is just a start.

Rules:
 * Don't repeat the package name (not always that easy...)
 * Start with capital letter
 * Don't end with full stop
 * Don't start with "The ..." or "A ..."

I've also added descriptions to some packages and rewritten others.
2013-10-05 19:36:23 +02:00
Ludovic Courtès
2e937c437a unmaintain several packages 2013-08-16 23:45:01 +02:00
Jason \"Don\" O'Conal
ec9f54602e avahi: fix build on darwin 2013-07-07 13:44:06 +02:00
Eelco Dolstra
ab3eeabfed Rename buildNativeInputs -> nativeBuildInputs
Likewise for propagatedBuildNativeInputs, etc.  "buildNativeInputs"
sounds like an imperative rather than a noun phrase.
2012-12-28 19:20:09 +01:00