Commit Graph

71 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
Nick Cao
0799b6de74
foundationdb: use msgpack-cxx instead of msgpack 2024-02-11 21:26:26 -05:00
Weijia Wang
b0613d65f1 foundationdb: 7.1.30 -> 7.1.32 2023-06-08 14:58:47 +03:00
Weijia Wang
03ae11014e foundationdb{51,52,60,61}: drop 2023-06-06 16:34:31 +03:00
Weijia Wang
e068055c01 foundationdb71: 7.1.26 -> 7.1.30 2023-04-26 16:35:10 +03:00
Jente Hidskes Ankarberg
73ca83e965
foundationdb: build on aarch64-linux 2023-03-30 16:01:18 +02:00
Jente Hidskes Ankarberg
6fc2ba036a
foundationdb: add 7.1.26 2023-03-30 16:01:17 +02:00
Jente Hidskes Ankarberg
79c547bb97
foundationdb: add pkg-config to help find libraries 2023-03-30 13:11:17 +02:00
Jente Hidskes Ankarberg
b9a6bd815a
foundationdb: remove seemingly no longer needed patching of fdb_install 2023-03-30 13:11:17 +02:00
Jente Hidskes Ankarberg
2f3759f4ff
foundationdb: remove unused with builtins 2023-03-30 13:11:17 +02:00
Jente Hidskes Ankarberg
f5f5051d81
foundationdb: don't set CMAKE_BUILD_TYPE
It's set to Release by our cmake builder already
2023-03-30 13:11:17 +02:00
Jente Hidskes Ankarberg
3c78f8bbaf
foundationdb: remove unused branch parameter to cmakeBuild 2023-03-30 13:11:16 +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
Fabián Heredia Montiel
0cf5d85f0c treewide: add gcc12 flags 2023-01-27 21:20:52 -06:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
github-actions[bot]
f8c265f433
Merge master into staging-next 2022-04-26 06:01:08 +00:00
Anders Kaseorg
6920d8ca42 treewide: Simplify negated uses of versionAtLeast, versionOlder
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-04-25 13:35:24 -07:00
Ben Siraphob
259fa13d53 treewide: remove nativeBuildInputs that are in stdenv 2022-04-16 21:46:46 +03:00
Will Young
8b0b5be13a
foundationdb61: pin Boost dep to boost168 (#157967) 2022-02-07 23:01:47 -05:00
Sandro
d5bd34ebf2
treewide: convert phases that contain ":" to dont* = true (#130500) 2021-07-18 23:42:48 +02:00
Frederik Rietdijk
f0754b8ab8 foundationdb: use python2 and python3 2021-03-25 13:12:27 +01:00
Frederik Rietdijk
c15ad415b1 foundationdb vsmake: stay with python2
CMake builds already use python3. Stay with python2, just to be safe.
2021-03-25 12:55:20 +01:00
Sandro
a908dd415d
Merge pull request #114176 from omasanori/fix-foundationdb61
foundationdb61: 6.1.12 -> 6.1.13, fix build
2021-03-05 02:12:20 +01:00
Masanori Ogino
cd98de0816 foundationdb60: fix build
- Add missing #include, mainly <cmath>
- Add missing 'std::'
- Remove prototype conflicting with the libc's definition

Signed-off-by: Masanori Ogino <167209+omasanori@users.noreply.github.com>
2021-02-24 12:48:58 +09:00
Masanori Ogino
3aa47450f1 foundationdb61: 6.1.12 -> 6.1.13, fix build
Signed-off-by: Masanori Ogino <167209+omasanori@users.noreply.github.com>
2021-02-24 06:19:32 +09:00
Pavol Rusnak
a6ce00c50c
treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
Pavol Rusnak
90f7338112
treewide: stdenv.lib -> lib 2021-01-24 01:49:49 +01:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Ben Siraphob
3ae5e6ce03 treewide: remove enableParallelBuilding = true if using cmake 2021-01-03 18:37:40 +07:00
Raphael Borun Das Gupta
450de176cf foundationdb: fix build: use glibc's gettid()
to avoid build error due to conflicting declaration:

    flow/Profiler.actor.cpp: In function 'uint64_t gettid()':
    flow/Profiler.actor.cpp:56:17: error: ambiguating new declaration of 'uint64_t gettid()'
      FILE* f;
                     ^
    In file included from /nix/store/4wy9j24psf9ny4di3anjs7yk2fvfb0gq-glibc-2.31-dev/include/unistd.h:1170:0,
                     from ./flow/Platform.h:49,
                     from ./flow/flow.h:40,
                     from flow/Profiler.actor.cpp:39:
    /nix/store/4wy9j24psf9ny4di3anjs7yk2fvfb0gq-glibc-2.31-dev/include/bits/unistd_ext.h:34:16: note: old declaration '__pid_t gettid()'
     extern __pid_t gettid (void) __THROW;
                    ^~~~~~
2020-10-11 19:53:53 +02:00
Raphael Borun Das Gupta
4406883af1 foundationdb: fix "was not declared" build errors
Since glibc 2.28, `<sys/types.h>` no longer includes
`<sys/sysmacros.h>`, which provides these macros,
so we have to explicitly import the latter, too, to fix the following
build problems:

    flow/Platform.cpp: In function 'void getDiskStatistics(const string&, uint64_t&, uint64_t&, uint64_t&, uint64_t&, uint64_t&, uint64_t&)':
    flow/Platform.cpp:626:56: error: 'gnu_dev_major' was not declared in this scope
       if(majorId == (unsigned int) gnu_dev_major(buf.st_dev) && minorId == (unsigned int) gnu_dev_minor(buf.st_dev)) {
                                                            ^
    flow/Platform.cpp:626:111: error: 'gnu_dev_minor' was not declared in this scope
       if(majorId == (unsigned int) gnu_dev_major(buf.st_dev) && minorId == (unsigned int) gnu_dev_minor(buf.st_dev)) {
                                                                                                                   ^
2020-10-11 15:32:17 +02:00
Raphael Borun Das Gupta
f1e628e7af foundationdb: refresh gcc-fixes-patch
by applying it to apple/foundationdb@5.1.7 and running

    git diff > ${path_to_nixpkgs}/pkgs/servers/foundationdb/patches/gcc-fixes.patch

again.
2020-10-11 15:25:28 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Maximilian Bosch
ea8ae88f04
Merge branch 'staging' into glibc230 2020-02-01 17:42:03 +01:00
Maximilian Bosch
a064678390
foundationdb5: build with gcc6 2020-01-28 20:11:02 +01:00
Maximilian Bosch
c36d8a8338
foundationdb61: fix build w/glibc-2.30 2020-01-23 09:33:34 +01:00
Austin Seipp
53a7ae0185
foundationdb: no clang, use default gcc
These options should be experimental, and I'm keeping them off for now.
This also avoids any ABI concerns between libraries, too.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-11-01 00:36:31 -05:00
Austin Seipp
462d2b73c2
foundationdb61: 6.1.10 -> 6.1.12
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-11-01 00:36:27 -05:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
worldofpeace
cab7c6cbd9 treewide: use dontConfigure 2019-07-01 04:23:51 -04:00
Austin Seipp
348489c685
foundationdb61: 6.1.8 -> 6.1.10
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-06-16 19:20:11 -05:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Austin Seipp
2a56ea3593
foundationdb61: 6.1.7pre4928_a990458e -> 6.1.8
This bumps the 6.1.x branch to the official 6.1.8 release. Also fixes a
minor bug in the new CMake build (an invalid parameter passed to CMake)

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-27 23:27:38 -05:00
Austin Seipp
b38b0f610f
foundationdb61: 6.1.6pre4898 -> 6.1.7pre4928
Also includes some minor, miscellaneous cleanups to the CMake build
expression.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-21 10:48:56 -05:00
Austin Seipp
3f1c6801a2
foundationdb: init 6.1.6pre4898_26fbbbf, cmake build
This adds a new build of FoundationDB 6.1, using the new, much improved
with CMake build system with fewer patches and rough edges.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-15 09:54:10 -05:00
Austin Seipp
a13a0c8de4
foundationdb: refactor vsmake patch application
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-15 09:54:10 -05:00
Austin Seipp
34e15b1c73
foundationdb: refactor 'vsmake' build system into its own file [NFC]
FoundationDB is currently in the process of migrating to CMake, and it
will eventually be the only build system. In preparation for this, split
off the current (somewhat nasty) builder into its own file, and allow
default.nix to be more declarative -- containing only the main supported
versions.

Similarly, a cmake.nix file will be added later.

There is no functional change here (NFC), only an organizational change
(file moves, no hash changes).

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-15 09:54:07 -05:00
Austin Seipp
c19807e25d
foundationdb60: 6.0.17 -> 6.0.18
Fixes numerous bugs in blobstore backup.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-02-12 23:03:25 -06:00