fix various build failures
Some checks reported errors
Hydra emoji-volpeon-drgn Hydra build #54748 of nix-packages:aarch64-linux-master-pr276:emoji-volpeon-drgn
Hydra vf2Kernel Hydra build #53961 of nix-packages:riscv64-linux-master-pr276:vf2Kernel
Hydra plover-plugin-yaml-dictionary Hydra build #54773 of nix-packages:riscv64-linux-master:plover-plugin-yaml-dictionary
Hydra plover-plugin-tapey-tape Hydra build #54784 of nix-packages:riscv64-linux-master:plover-plugin-tapey-tape
Hydra admin-fe Hydra build #54789 of nix-packages:riscv64-linux-master:admin-fe
Hydra plover-plugin-rkb1-hid Hydra build #54796 of nix-packages:riscv64-linux-master:plover-plugin-rkb1-hid
Hydra packages.pleroma-fe.riscv64-linux Hydra build #54836 of flakes:nix-packages:packages.pleroma-fe.riscv64-linux
Hydra packages.fcitx5.riscv64-linux Hydra build #54856 of flakes:nix-packages:packages.fcitx5.riscv64-linux
Hydra plover-plugins-manager Hydra build #54739 of nix-packages:riscv64-linux-master-pr276:plover-plugins-manager
Hydra akkoma Hydra build #54755 of nix-packages:riscv64-linux-master-pr276:akkoma
Hydra plover-plugin-machine-hid Hydra build #54757 of nix-packages:riscv64-linux-master:plover-plugin-machine-hid
Hydra pleroma-fe Hydra build #54764 of nix-packages:riscv64-linux-master:pleroma-fe
Hydra plover Hydra build #54766 of nix-packages:riscv64-linux-master:plover
Hydra fcitx5 Hydra build #54767 of nix-packages:riscv64-linux-master:fcitx5
Hydra plover-plugin-emoji Hydra build #54771 of nix-packages:riscv64-linux-master:plover-plugin-emoji
Hydra packages.plover-plugin-machine-hid.riscv64-linux Hydra build #55077 of flakes:nix-packages:packages.plover-plugin-machine-hid.riscv64-linux
Hydra packages.plover-plugin-emoji.riscv64-linux Hydra build #55145 of flakes:nix-packages:packages.plover-plugin-emoji.riscv64-linux
Hydra packages.plover-plugin-tapey-tape.riscv64-linux Hydra build #55199 of flakes:nix-packages:packages.plover-plugin-tapey-tape.riscv64-linux
Hydra packages.plover-plugin-yaml-dictionary.riscv64-linux Hydra build #54866 of flakes:nix-packages:packages.plover-plugin-yaml-dictionary.riscv64-linux
Hydra packages.plover-plugins-manager.riscv64-linux Hydra build #54884 of flakes:nix-packages:packages.plover-plugins-manager.riscv64-linux
Hydra packages.admin-fe.riscv64-linux Hydra build #54921 of flakes:nix-packages:packages.admin-fe.riscv64-linux
Hydra packages.plover-plugin-rkb1-hid.riscv64-linux Hydra build #54931 of flakes:nix-packages:packages.plover-plugin-rkb1-hid.riscv64-linux
Hydra packages.plover.riscv64-linux Hydra build #54935 of flakes:nix-packages:packages.plover.riscv64-linux
Hydra packages.akkoma.riscv64-linux Hydra build #54943 of flakes:nix-packages:packages.akkoma.riscv64-linux
Hydra valgrind Hydra build #54777 of nix-packages:riscv64-linux-master:valgrind
Hydra packages.valgrind.riscv64-linux Hydra build #55128 of flakes:nix-packages:packages.valgrind.riscv64-linux
Hydra element-web Hydra build #53967 of nix-packages:riscv64-linux-master-pr276:element-web
Hydra woodpecker-server Hydra build #54692 of nix-packages:riscv64-linux-master-pr276:woodpecker-server
Hydra woodpecker-frontend Hydra build #54693 of nix-packages:riscv64-linux-master-pr276:woodpecker-frontend
Hydra packages.woodpecker-server.riscv64-linux Hydra build #55194 of flakes:nix-packages:packages.woodpecker-server.riscv64-linux
Hydra packages.element-web.riscv64-linux Hydra build #54883 of flakes:nix-packages:packages.element-web.riscv64-linux
Hydra packages.woodpecker-frontend.riscv64-linux Hydra build #54966 of flakes:nix-packages:packages.woodpecker-frontend.riscv64-linux
Hydra packages.matrix-media-repo.riscv64-linux Hydra build #55089 of flakes:nix-packages:packages.matrix-media-repo.riscv64-linux
Hydra matrix-media-repo Hydra build #53977 of nix-packages:riscv64-linux-master-pr276:matrix-media-repo
Hydra packages.mautrix-whatsapp.riscv64-linux Hydra build #54859 of flakes:nix-packages:packages.mautrix-whatsapp.riscv64-linux
Hydra woodpecker-agent Hydra build #54695 of nix-packages:riscv64-linux-master-pr276:woodpecker-agent
Hydra mautrix-discord Hydra build #54697 of nix-packages:riscv64-linux-master-pr276:mautrix-discord
Hydra kubo Hydra build #54758 of nix-packages:riscv64-linux-master:kubo
Hydra woodpecker-cli Hydra build #54760 of nix-packages:riscv64-linux-master:woodpecker-cli
Hydra mautrix-whatsapp Hydra build #54769 of nix-packages:riscv64-linux-master:mautrix-whatsapp
Hydra packages.mautrix-discord.riscv64-linux Hydra build #55071 of flakes:nix-packages:packages.mautrix-discord.riscv64-linux
Hydra packages.woodpecker-agent.riscv64-linux Hydra build #55072 of flakes:nix-packages:packages.woodpecker-agent.riscv64-linux
Hydra packages.woodpecker-cli.riscv64-linux Hydra build #55102 of flakes:nix-packages:packages.woodpecker-cli.riscv64-linux
Hydra packages.kubo.riscv64-linux Hydra build #54889 of flakes:nix-packages:packages.kubo.riscv64-linux
Hydra miifox-net Hydra build #54783 of nix-packages:riscv64-linux-master:miifox-net
Hydra packages.miifox-net.riscv64-linux Hydra build #54969 of flakes:nix-packages:packages.miifox-net.riscv64-linux
Hydra wordpress-plugins.indieauth Hydra build #53976 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.indieauth
Hydra wordpress-plugins.modern-footnotes Hydra build #53978 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.modern-footnotes
Hydra wordpress-plugins.webfinger Hydra build #53971 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.webfinger
Hydra wordpress-plugins.indieweb Hydra build #53982 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.indieweb
Hydra wordpress-themes.sempress Hydra build #53988 of nix-packages:riscv64-linux-master-pr276:wordpress-themes.sempress
Hydra constructium Hydra build #53984 of nix-packages:riscv64-linux-master-pr276:constructium
Hydra wordpress-plugins.wp-super-cache Hydra build #53987 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.wp-super-cache
Hydra alco-sans Hydra build #53990 of nix-packages:riscv64-linux-master-pr276:alco-sans
Hydra wordpress-plugins.wordpress-seo Hydra build #53991 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.wordpress-seo
Hydra fairfax Hydra build #53992 of nix-packages:riscv64-linux-master-pr276:fairfax
Hydra wordpress-plugins.activitypub Hydra build #53994 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.activitypub
Hydra wordpress-plugins.pubsubhubbub Hydra build #53997 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.pubsubhubbub
Hydra wordpress-plugins.micropub Hydra build #53998 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.micropub
Hydra wordpress-plugins.modern-images-wp Hydra build #54004 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.modern-images-wp
Hydra wordpress-plugins.jetpack Hydra build #53993 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.jetpack
Hydra kreative-square Hydra build #54005 of nix-packages:riscv64-linux-master-pr276:kreative-square
Hydra wordpress-plugins.google-sitemap-generator Hydra build #54008 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.google-sitemap-generator
Hydra wordpress-plugins.indieweb-post-kinds Hydra build #54010 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.indieweb-post-kinds
Hydra wordpress-plugins.classic-editor Hydra build #54015 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.classic-editor
Hydra wordpress-plugins.friends Hydra build #54017 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.friends
Hydra wordpress-plugins.polylang Hydra build #54021 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.polylang
Hydra wordpress-plugins.nodeinfo Hydra build #54026 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.nodeinfo
Hydra wordpress-plugins.the-plus-addons-for-block-editor Hydra build #54024 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.the-plus-addons-for-block-editor
Hydra wordpress-plugins.webmention Hydra build #54027 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.webmention
Hydra wordpress-plugins.ilab-media-tools Hydra build #54013 of nix-packages:riscv64-linux-master-pr276:wordpress-plugins.ilab-media-tools

This commit is contained in:
Charlotte 🦝 Delenk 2023-06-26 07:22:29 +01:00
parent ab4377ce75
commit 47bb10ac8f
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
5 changed files with 108 additions and 8 deletions

View file

@ -77,7 +77,7 @@ in
// ( // (
if pkgs.system == "riscv64-linux" if pkgs.system == "riscv64-linux"
then { then {
inherit (pkgsWithOverlay) vf2Kernel; inherit (pkgsWithOverlay) vf2Kernel valgrind;
} }
else {} else {}
) )

View file

@ -121,7 +121,7 @@
// ( // (
if system == "riscv64-linux" if system == "riscv64-linux"
then { then {
inherit (pkgs) vf2Kernel; inherit (pkgs) vf2Kernel valgrind;
} }
else {} else {}
) )

View file

@ -32,16 +32,23 @@ system: self: super: let
}); });
libopus = super.libopus.overrideAttrs (_: { libopus = super.libopus.overrideAttrs (_: {
mesonFlags = [ mesonFlags = [
(lib.mesonBool "fixed-point" false) "-Dfixed-point=false"
(lib.mesonBool "custom-modes" true) "-Dcustom-modes=true"
(lib.mesonEnable "intrinsics" false) "-Dintrinsics=disabled"
(lib.mesonEnable "rtcd" false) "-Drtcd=disabled"
(lib.mesonEnable "asm" false) "-Dasm=disabled"
(lib.mesonEnable "docs" false) "-Dasm=disabled"
"-Ddocs=disabled"
]; ];
doCheck = false; doCheck = false;
doInstallCheck = false; doInstallCheck = false;
}); });
valgrind = self.callPackage ./riscv/valgrind {};
valgrind-light = self.valgrind;
openldap = super.openldap.overrideAttrs (_: {
doCheck = false;
doInstallCheck = false;
});
}) })
else (_: _: {}); else (_: _: {});

View file

@ -0,0 +1,82 @@
{
lib,
stdenv,
fetchFromGitHub,
perl,
gdb,
autoreconfHook,
}: let
source = builtins.fromJSON (builtins.readFile ./source.json);
in
stdenv.mkDerivation rec {
pname = "valgrind-riscv64";
version = source.date;
src = fetchFromGitHub {
owner = "petrpavlu";
repo = "valgrind-riscv64";
inherit (source) rev sha256;
};
outputs = ["out" "dev"];
hardeningDisable = ["stackprotector"];
# GDB is needed to provide a sane default for `--db-command'.
# Perl is needed for `callgrind_{annotate,control}'.
buildInputs = [gdb perl];
# Perl is also a native build input.
nativeBuildInputs = [autoreconfHook perl];
enableParallelBuilding = true;
separateDebugInfo = stdenv.isLinux;
# To prevent rebuild on linux when moving darwin's postPatch fixes to preConfigure
postPatch = "";
doCheck = true;
postInstall = ''
for i in $out/libexec/valgrind/*.supp; do
substituteInPlace $i \
--replace 'obj:/lib' 'obj:*/lib' \
--replace 'obj:/usr/X11R6/lib' 'obj:*/lib' \
--replace 'obj:/usr/lib' 'obj:*/lib'
done
'';
passthru.updateScript = [
../../scripts/update-git.sh
"https://github.com/petrpavlu/valgrind-riscv64"
"riscv/valgrind/source.json"
];
meta = {
homepage = "http://www.valgrind.org/";
description = "Debugging and profiling tool suite";
longDescription = ''
Valgrind is an award-winning instrumentation framework for
building dynamic analysis tools. There are Valgrind tools that
can automatically detect many memory management and threading
bugs, and profile your programs in detail. You can also use
Valgrind to build new tools.
'';
license = lib.licenses.gpl2Plus;
maintainers = [lib.maintainers.nickcao];
platforms = lib.platforms.unix;
badPlatforms = [
"armv5tel-linux"
"armv6l-linux"
"armv6m-linux"
"sparc-linux"
"sparc64-linux"
"riscv32-linux"
"alpha-linux"
];
broken = stdenv.isDarwin || stdenv.hostPlatform.isStatic; # https://hydra.nixos.org/build/128521440/nixlog/2
};
}

View file

@ -0,0 +1,11 @@
{
"url": "https://github.com/petrpavlu/valgrind-riscv64",
"rev": "71272b252977fe52f03ea4fa8306b457b098cca5",
"date": "2023-04-10T20:43:50+02:00",
"path": "/nix/store/g00qg2qhm10c0a6v5v7al89pc57b4bjy-valgrind-riscv64",
"sha256": "0znk98hypdh7j84h237131aqsczz91mrwpwkvy1xgaxkhiskhgy4",
"fetchLFS": false,
"fetchSubmodules": false,
"deepClone": false,
"leaveDotGit": false
}