Commit Graph

55 Commits

Author SHA1 Message Date
Vladimír Čunát
6e1fd32078 db4, db5, db6*: fixup build on darwin by older autoconf
https://hydra.nixos.org/build/325898125/nixlog/2/tail
Same situation as in commit 8ab9645b5a
2026-04-18 08:45:49 +02:00
Stefan Frijters
2b382aefc8 db: fix build with structuredAttrs 2026-01-30 18:16:17 +01:00
Wolfgang Walther
46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Fabián Heredia Montiel
4e7384feb2 db{48,53,60,62}: get gentoo patch for gcc15 and Wno-error=incompatible-pointer-types 2025-12-01 11:29:10 -06:00
Guy Chronister
475a0e3a44 various: remove superflous usages of pname 2025-09-25 20:45:06 -05:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02: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 a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01: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
Reno Dakota
91069620ea db4: fix pthread configure detection
add header stdlib.h so pthread detection doesn't fail do to a missing
function prototype for exit.

```
configure:21863: clang -o conftest -O3   -D_GNU_SOURCE -D_REENTRANT
conftest.c  >&5
conftest.c:52:2: error: call to undeclared library function 'exit' with
type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not
support implicit function declarations [-Wimplicit-function-declaration]
   52 |         exit (
      |         ^
conftest.c:52:2: note: include the header <stdlib.h> or explicitly
provide a declaration for 'exit'
```
2024-07-04 04:00:10 +00:00
Reno Dakota
f8f44e1610 Revert "db4: fix configure with llvm"
the configure program fails to compile due to using exit without a
function prototype. the fix should be to patch the configure script.

This reverts commit 227afde6d8.
2024-07-04 03:43:02 +00:00
Tristan Ross
227afde6d8 db4: fix configure with llvm 2024-06-15 21:46:09 -07:00
Jussi Kuokkanen
82b45bf454 treewide: remove licenses.agpl3 2024-03-21 18:09:24 +02:00
Luke Granger-Brown
c301c46a01 Merge pull request #282223 from simonhollingshead/db62
db62: 6.2.23 -> 6.2.32
2024-02-10 22:03:53 +00:00
Simon Hollingshead
0520a00194 db62: 6.2.23 -> 6.2.32 2024-01-20 04:43:01 +00:00
Simon Hollingshead
b6933c94d8 db60: 6.0.20 -> 6.0.30 2024-01-20 04:00:04 +00:00
Randy Eckenrode
a76023f256 db: make patches and autoreconfHook unconditional 2023-07-07 08:39:42 -06:00
Randy Eckenrode
38018514e8 db: fix build with clang 16 on Darwin
Both `_spin_lock_try` and `_spin_unlock` are private and deprecated
APIs, which are not exported by any headers in the SDK. The build fails
because the configure script does not define the functions before
calling them, which is treated as error by clang 16.

This patch replaces use of those APIs with `os_unfair_lock`, which is
the recommended replacement per the deprecation messages.
2023-07-02 17:46:15 -04:00
Randy Eckenrode
6302ba07e3 db: fix build with clang 16
The configure scripts frequently use `main` returning an implicit `int`,
which causes spurious failures when CC is clang 16+. This is fixed by
patching the provided macros and regenerating the scripts with
autoreconfHook, though it requires some manual processing (see below).

The upstream `configure.ac` is written in such a way that it requires
fixups and post-processing.

* Fixups are required because the original build process just cats the
  macros together into one file. When `aclocal` is run, it does not pick
  up all of them. This is worked around by catting the missing macros to
  a file that is picked up by autoreconfHook.
* Post-processing is required to populate the version information. This
  is done in a subshell to avoid polluting the environment with the
  contents of `RELEASE`. Otherwise, the build will fail because the
  version C macros it expects will not be defined.
2023-07-02 17:46:14 -04:00
Sandro
07c7197b58 db: update meta.homepage 2022-10-15 03:37:04 +02:00
Nick Cao
9e0c1bce40 db: use pname and version instead of name 2021-12-25 10:57:58 -08:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Ben Hipple
2c7b8769f3 db: enable parallel building
Appears to work without issue and speeds up builds
2019-03-11 16:44:06 -04:00
volth
52f53c69ce pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
Silvan Mosberger
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
Tuomas Tynkkynen
0fd461d5b5 db: Use more conventional outputs, also split bin 2018-05-22 17:49:04 +03:00
Nikolay Amiantov
4b0638394d db: split outputs 2018-04-26 13:56:17 +03:00
Franz Pletz
5072f4792e db{48,53,60,62}: add patch to fix CVE-2017-10140 2017-10-24 13:20:37 +02:00
Dario Bertini
5850b243ea BerkeleyDB 5.3 is under the Sleepycat license, not AGPL 2017-10-17 00:01:18 +01:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
rht
fef784d09f zcash: reinit at 1.0.8 2017-06-28 03:26:30 +02:00
Daiderd Jordan
02341c20bc db: disable dbm support by default 2017-01-23 22:21:20 +01:00
Daiderd Jordan
b82ad1ba76 db: fix all versions with libc++3.8 2016-11-13 23:02:00 +01:00
Daiderd Jordan
c7d1925b6e Revert "db: fix build with libc++-3.8"
This reverts commit 7e933af173.
2016-11-13 00:42:23 +01:00
Daiderd Jordan
7e933af173 db: fix build with libc++-3.8 2016-11-13 00:04:50 +01:00
Dan Peebles
50874525d1 db47: remove outdated version 2016-11-01 03:18:01 +00:00
Dan Peebles
89915f8206 db45: remove outdated version 2016-11-01 03:10:13 +00:00
Dan Peebles
e41d2a8306 db44: remove outdated version 2016-11-01 03:06:57 +00:00
Daiderd Jordan
10dae237c6 db: now builds on darwin with libc++-3.8 2016-09-14 00:05:58 +02:00
Daiderd Jordan
e0974c8948 db: fixes for darwin build with libc++-3.8 2016-09-13 22:10: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
80df5752f7 db45: turn off format hardening 2016-02-10 23:27:39 +00:00
Robin Gloster
3fb8ce5aae db44, db47: turn off format hardening 2016-02-09 01:26:35 +00:00
Robin Gloster
89316e726c db4: turn off format hardening 2016-02-07 16:20:07 +00:00
janus
a472d836f6 FreeBSD: apr-util, cyrus-sasl, berkeley db, glib, gnutls, kerberos, libelf-freebsd, openldap, serf, guile, tet, shishi, gawk, gnugrep 2016-01-01 17:01:13 +00:00
janus
a1ade02cdc FreeBSD support 2016-01-01 16:59:48 +00:00
William A. Kennington III
539a954955 bdb: Build with dbm 2015-05-29 14:55:23 -07:00
Mateusz Kowalczyk
0c43a02e36 Attach a bunch of meta.branch info for the monitor
This should stop explicitly-versioned expressions from showing up in the
monitor as in need of update.
2014-11-17 18:04:59 +00:00