19 Commits
Author SHA1 Message Date
ghpzin 3c8da751e6 dmraid: fix build with gcc15
- add rebased patch from alpine:
https://gitlab.alpinelinux.org/alpine/aports/-/raw/dc5b3135517ede55f5e3530e538ca75048d26565/main/dmraid/008-gcc15.patch
(does not apply with `fetchpatch` even with `stripLen` and `extraPrefix`)

Fixes build failure with gcc15:
```
activate/activate.c:893:34: error: passing argument 3 of 'do_device'
from incompatible pointer type [-Wincompatible-pointer-types]
  893 |         return do_device(lc, rs, dm_register_for_event);
      |                                  ^~~~~~~~~~~~~~~~~~~~~
      |                                  |
      |                                  int (*)(char *, char *)
activate/activate.c:869:62: note: expected 'int (*)(void)' but argument
is of type 'int (*)(char *, char *)'
  869 | do_device(struct lib_context *lc, struct raid_set *rs, int (*f) ())
      |                                                        ~~~~~~^~~~~
activate/activate.c:850:1: note: 'dm_register_for_event' declared here
  850 | dm_register_for_event(char *dev_name, char *lib_name)
      | ^~~~~~~~~~~~~~~~~~~~~
misc/file.c:66:17: error: initialization of 'ssize_t (*)(void)'
{aka 'long int (*)(void)'} from incompatible pointer type
'ssize_t (*)(int,  void *, size_t)' {aka 'long int (*)(int,  void *, long unsigned int)'} [-Wincompatible-pointer-types]
   66 |                 read, "read"}, {
      |                 ^~~~
misc/file.c:67:9: error: initialization of 'ssize_t (*)(void)' {aka 'long int (*)(void)'}
from incompatible pointer type 'ssize_t (*)(int,  const void *, size_t)'
{aka 'long int (*)(int,  const void *, long unsigned int)'} [-Wincompatible-pointer-types]
   67 |         write, "writ"},}, *rw = rw_spec + ((flags & O_WRONLY) ? 1 : 0);
      |         ^~~~~
misc/file.c:67:9: note: (near initialization for 'rw_spec[1].func')
```
2025-09-28 13:31:09 +03:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
totaltaxamount f298cd74e6 dmraid: patch dmevent_tool.c to compile on modern gcc versions 2024-12-26 19:04:05 -07:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Sergei Trofimovich dc05610fd4 dmraid: explicitly disable parallel building 2021-10-20 16:34:45 +01:00
Felix Buehler 540499bf10 os-specific/linux: replace name with pname&version 2021-08-29 11:28:34 +02:00
Ben Siraphob 16d91ee628 pkgs/os-specific: stdenv.lib -> lib 2021-01-17 23:26:08 +07:00
Pascal Wittmann 89da937013 dmraid: add license
see issue #43716
2018-08-05 16:31:42 +02:00
Matthew Bauer 76999cc40e treewide: remove aliases in nixpkgs
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases =
true;}'’ work in Nixpkgs.

Misc...

- qtikz: use libsForQt5.callPackage

  This ensures we get the right poppler.

- rewrites:

  docbook5_xsl -> docbook_xsl_ns
  docbook_xml_xslt -> docbook_xsl

diffpdf: fixup
2018-07-18 23:25:20 -04:00
Silvan Mosbergerandxeji 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00
Will Dietz db7d403b63 dmraid: patch to fix users of dmraid
I hoped that setting -D_GNU_SOURCE in the build would avoid
the need for this patch -- but that only fixes the build itself,
this patch adds the define so headers work elsewhere.

Particularly, this fixes libblockdev w/musl -- before this change
it fails to "detect" headers for dmraid.h since it doesn't compile.
2018-06-23 20:42:14 -05:00
Will Dietz 59eca689cc dmraid: fix w/musl (missing includes, -D_GNU_SOURCE) 2018-06-18 20:43:03 -05:00
Robin Gloster f222d98746 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-07-25 12:47:13 +00:00
Tuomas Tynkkynen 9cccf35f98 dmraid: Fix typo 2016-07-23 13:24:18 +03:00
Robin Gloster cce1bad2e1 dmraid: add patch to build with format hardening 2016-01-30 16:36:57 +00:00
aszlig 499c51016e dmraid: Fix install target in lib/Makefile.in.
The dmraid shared object file is created with a soname that contains a
version. Unfortunately, the install target in the Makefile does not
properly match on files ending with .so and so does not install it with
the version suffix.

Previously we only had a static library, which doesn't do much trouble
if the version is missing, but with the dynamic library the ELF file
depending on libdmraid uses the version, while the library itself isn't
present with that suffix.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-10-03 01:14:53 +02:00
Michael Raskin 5f22bc48cd Update dmraid 2014-08-31 21:16:07 +04:00
Eelco Dolstra 26fa2425c6 Fix dmraid build
http://hydra.nixos.org/build/2842473
2012-07-18 09:25:58 -04:00
Michael Raskin 107a5ee327 Adding dmraid
svn path=/nixpkgs/trunk/; revision=17292
2009-09-20 08:38:30 +00:00