Closed birkb closed 10 months ago
I have added
ls -l configure
./configure --help
to the preConfigure
variable and it returns this:
-rwxr-xr-x 1 nixbld nixbld 238402 Dec 22 09:45 configure
/nix/store/d4jf1cbbk494zwgbqz31pxgigpsbh6w2-stdenv-linux/setup: line 116: ./configure: Permission denied
/nix/store/d4jf1cbbk494zwgbqz31pxgigpsbh6w2-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
This also does not happen in a manual nix-shell interactive test.
/nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/sh ./configure --help
works properly within nix-build. Is something wrong with the bash version 5.2-p21
in the master branch compared with 5.2.15
used for 23.11
?
This would build for me:
diff --git pkgs/os-specific/linux/drbd/default.nix pkgs/os-specific/linux/drbd/default.nix
index 0c5acd0ac064..783a852dd4f4 100644
--- pkgs/os-specific/linux/drbd/default.nix
+++ pkgs/os-specific/linux/drbd/default.nix
@@ -11,6 +11,7 @@
, nixosTests
, perl
, systemd
+, keyutils
# drbd-utils are compiled twice, once with forOCF = true to extract
# its OCF definitions for use in the ocf-resource-agents derivation,
@@ -22,11 +23,11 @@
stdenv.mkDerivation rec {
pname = "drbd";
- version = "9.19.1";
+ version = "9.27.0";
src = fetchurl {
url = "https://pkg.linbit.com/downloads/drbd/utils/${pname}-utils-${version}.tar.gz";
- sha256 = "1l99kcrb0j85wxxmrdihpx9bk1a4sdi7wlp5m1x5l24k8ck1m5cf";
+ sha256 = "sha256-WJE9JPhFcUJsAC/6YBr2XH6mcGa9IGbYRh9p9bLMjeM=";
};
nativeBuildInputs = [
@@ -34,6 +35,7 @@ stdenv.mkDerivation rec {
libxslt
docbook_xsl
asciidoctor
+ keyutils
];
buildInputs = [
I am not sure renaming the package isn't going to break anyone's usecase. :shrug:
Have you used the master
branch or 23.11
to test that? Which bash version was used for the build?
I am not sure renaming the package isn't going to break anyone's usecase. 🤷
True that is a risk. I have only found the ocf-resource-agents
package using drbd and i have updated it, but i would still break the configs of the users. Let's see if i can find a better way to have utils and optionally the driver.
Branch master
as of 3349a3d56d59
Thanks! I will check my build environment...
I had /tmp
mounted with the noexec
option. After disabling it the build works as expected.
Steps To Reproduce
Steps to reproduce the behavior:
export NIXPKGS=/home/user/nixpkgs
nix-build $NIXPKGS -A drbd-utils
Build log
Additional context
I have renamed the
drbd
package to drbd-utils to avoid confusion with the out-of-tree DRBD kernel driver that i want to add too.the
configurePhase
returnsno configure script, doing nothing
, but the configure script is part of the source archivea manual
nix-shell -E 'with import <nixpkgs> { }; callPackage nixpkgs/pkgs/os-specific/linux/drbd-utils { }'
with the following steps is successfulpkgs/top-level/all-packages.nix
nixos/modules/services/network-filesystems/drbd.nix
Notify maintainers
@astro @ryantm
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.