Merge pull request #328782 from rhelmot/freebsd-gdb

gdb + deps: fix build on FreeBSD
This commit is contained in:
John Ericson
2024-07-24 14:05:14 -04:00
committed by GitHub
5 changed files with 16 additions and 3 deletions
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake, freebsd }:
stdenv.mkDerivation rec {
pname = "libipt";
@@ -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";
@@ -3,6 +3,7 @@
, fetchurl
, gmp
, writeScript
, updateAutotoolsGnuConfigScriptsHook
}:
# Note: this package is used for bootstrapping fetchurl, and thus
@@ -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 ];
+1 -1
View File
@@ -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 ];
};
}
@@ -0,0 +1,5 @@
{ mkDerivation }:
mkDerivation {
path = "lib/libstdthreads";
extraPaths = [ "lib/libc/Versions.def" ];
}
+4 -1
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchpatch, fetchurl, boost }:
{ lib, stdenv, fetchpatch, fetchurl, boost, updateAutotoolsGnuConfigScriptsHook }:
stdenv.mkDerivation rec {
pname = "source-highlight";
@@ -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 = [