Skip to content

Commit

Permalink
Merge pull request #328782 from rhelmot/freebsd-gdb
Browse files Browse the repository at this point in the history
gdb + deps: fix build on FreeBSD
  • Loading branch information
Ericson2314 authored Jul 24, 2024
2 parents 44afce2 + beb34f1 commit 89af439
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/libipt/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake, freebsd }:

stdenv.mkDerivation rec {
pname = "libipt";
Expand All @@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
};

nativeBuildInputs = [ cmake ];
buildInputs = lib.optional stdenv.isFreeBSD freebsd.libstdthreads;

meta = with lib; {
description = "Intel Processor Trace decoder library";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/libraries/mpfr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, fetchurl
, gmp
, writeScript
, updateAutotoolsGnuConfigScriptsHook
}:

# Note: this package is used for bootstrapping fetchurl, and thus
Expand All @@ -25,6 +26,9 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "doc" "info" ];

strictDeps = true;
# necessary to build on FreeBSD native pending inclusion of
# https://git.savannah.gnu.org/cgit/config.git/commit/?id=e4786449e1c26716e3f9ea182caf472e4dbc96e0
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
# mpfr.h requires gmp.h
propagatedBuildInputs = [ gmp ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/misc/gdb/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ stdenv.mkDerivation rec {
license = lib.licenses.gpl3Plus;

# GDB upstream does not support ARM darwin
platforms = with platforms; linux ++ cygwin ++ ["x86_64-darwin"];
platforms = with platforms; linux ++ cygwin ++ freebsd ++ ["x86_64-darwin"];
maintainers = with maintainers; [ pierron globin lsix ];
};
}
5 changes: 5 additions & 0 deletions pkgs/os-specific/bsd/freebsd/pkgs/libstdthreads.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{ mkDerivation }:
mkDerivation {
path = "lib/libstdthreads";
extraPaths = [ "lib/libc/Versions.def" ];
}
5 changes: 4 additions & 1 deletion pkgs/tools/text/source-highlight/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchpatch, fetchurl, boost }:
{ lib, stdenv, fetchpatch, fetchurl, boost, updateAutotoolsGnuConfigScriptsHook }:

stdenv.mkDerivation rec {
pname = "source-highlight";
Expand Down Expand Up @@ -43,6 +43,9 @@ stdenv.mkDerivation rec {
'';

strictDeps = true;
# necessary to build on FreeBSD native pending inclusion of
# https://git.savannah.gnu.org/cgit/config.git/commit/?id=e4786449e1c26716e3f9ea182caf472e4dbc96e0
nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ];
buildInputs = [ boost ];

configureFlags = [
Expand Down

0 comments on commit 89af439

Please sign in to comment.