Commit Graph

13 Commits

Author SHA1 Message Date
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
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Franz Pletz
5072f4792e
db{48,53,60,62}: add patch to fix CVE-2017-10140 2017-10-24 13:20:37 +02: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
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
89316e726c db4: turn off format hardening 2016-02-07 16:20:07 +00:00
janus
a1ade02cdc FreeBSD support 2016-01-01 16:59:48 +00: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
William A. Kennington III
99f5d2edb4 db: Reorganize Berkeley Database Packaging
Currently, the berkeley databases resuses a lot of the same code for the
expressions of each version. This consolidates all of the build routines
similar to that of the linux kernel.

This patch also adds version 6 of BDB.
2014-02-15 12:03:01 +01:00