Skip to content

Commit

Permalink
e2fsprogs: allow static build
Browse files Browse the repository at this point in the history
Backport of NixOS#74485. Fixes NixOS#71813.

(cherry picked from commit f6ea330)
  • Loading branch information
malbarbo authored and nh2 committed Dec 6, 2019
1 parent 131ff6d commit 1e3da6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/tools/filesystems/e2fsprogs/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildPackages, fetchurl, fetchpatch, pkgconfig, libuuid, gettext, texinfo }:
{ stdenv, buildPackages, fetchurl, fetchpatch, pkgconfig, libuuid, gettext, texinfo, shared ? true }:

stdenv.mkDerivation rec {
pname = "e2fsprogs";
Expand Down Expand Up @@ -36,7 +36,9 @@ stdenv.mkDerivation rec {

configureFlags =
if stdenv.isLinux then [
"--enable-elf-shlibs"
# It seems that the e2fsprogs is one of the few packages that cannot be
# build with shared and static libs.
(if shared then "--enable-elf-shlibs" else "--disable-elf-shlibs")
"--enable-symlink-install"
"--enable-relative-symlinks"
"--with-crond-dir=no"
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ in {
zlib = super.zlib.override {
static = true;
shared = false;
splitStaticOutput = false;

# Don’t use new stdenv zlib because
# it doesn’t like the --disable-shared flag
Expand Down

0 comments on commit 1e3da6c

Please sign in to comment.