diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-05-19 02:52:36 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-05-19 02:52:36 +0000 |
commit | 41840af6894bf718a1038ba1045adef26a687919 (patch) | |
tree | 0975bb732d3c3bd20ea3b31558c7fa8aba060702 | |
parent | 76c0be09f8aa397231f81c998c9b4d850e4a50df (diff) | |
download | nixpkgs-41840af6894bf718a1038ba1045adef26a687919.tar nixpkgs-41840af6894bf718a1038ba1045adef26a687919.tar.gz nixpkgs-41840af6894bf718a1038ba1045adef26a687919.tar.bz2 nixpkgs-41840af6894bf718a1038ba1045adef26a687919.tar.lz nixpkgs-41840af6894bf718a1038ba1045adef26a687919.tar.xz nixpkgs-41840af6894bf718a1038ba1045adef26a687919.tar.zst nixpkgs-41840af6894bf718a1038ba1045adef26a687919.zip |
* Add a setup hook ‘autoreconfHook’ to simplify packages that need to
run autoreconf: buildInputs = [ autoreconfHook ]; is essentially equivalent to buildInputs = [ autoconf automake libtool ]; preConfigure = "autoreconf -i"; svn path=/nixpkgs/branches/x-updates/; revision=34181
-rw-r--r-- | pkgs/build-support/setup-hooks/autoreconf.sh | 11 | ||||
-rw-r--r-- | pkgs/build-support/setup-hooks/make-wrapper.sh (renamed from pkgs/build-support/make-wrapper/make-wrapper.sh) | 0 | ||||
-rw-r--r-- | pkgs/os-specific/linux/mountall/default.nix | 6 | ||||
-rw-r--r-- | pkgs/os-specific/linux/usbutils/default.nix | 4 | ||||
-rw-r--r-- | pkgs/tools/networking/sitecopy/default.nix | 6 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 10 |
6 files changed, 23 insertions, 14 deletions
diff --git a/pkgs/build-support/setup-hooks/autoreconf.sh b/pkgs/build-support/setup-hooks/autoreconf.sh new file mode 100644 index 00000000000..027c8322163 --- /dev/null +++ b/pkgs/build-support/setup-hooks/autoreconf.sh @@ -0,0 +1,11 @@ +preConfigurePhases+=" autoreconfPhase" + +for i in @autoconf@ @automake@ @libtool@; do + findInputs $i nativePkgs propagated-build-native-inputs +done + +autoreconfPhase() { + runHook preAutoreconf + autoreconf ${autoreconfFlags:---install --force} + runHook postAutoreconf +} diff --git a/pkgs/build-support/make-wrapper/make-wrapper.sh b/pkgs/build-support/setup-hooks/make-wrapper.sh index 41f2a59246d..41f2a59246d 100644 --- a/pkgs/build-support/make-wrapper/make-wrapper.sh +++ b/pkgs/build-support/setup-hooks/make-wrapper.sh diff --git a/pkgs/os-specific/linux/mountall/default.nix b/pkgs/os-specific/linux/mountall/default.nix index b563b80f9a9..3d72b0a258e 100644 --- a/pkgs/os-specific/linux/mountall/default.nix +++ b/pkgs/os-specific/linux/mountall/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, libnih, dbus, udev, autoconf, automake, libtool, gettext }: +{ stdenv, fetchurl, pkgconfig, libnih, dbus, udev, gettext, autoreconfHook }: stdenv.mkDerivation { name = "mountall-2.35"; @@ -10,9 +10,7 @@ stdenv.mkDerivation { patches = [ ./no-plymouth.patch ./fix-usr1-race.patch ]; - preConfigure = "rm -R aclocal.m4; gettextize -f; autoreconf -vfi"; - - buildInputs = [ pkgconfig libnih dbus.libs udev autoconf automake libtool gettext ]; + buildInputs = [ pkgconfig libnih dbus.libs udev gettext autoreconfHook ]; makeFlags = "initramfshookdir=$(out)/share/initramfs-tools/hooks upstart_jobs_initramfs_configdir=$(out)/share/initramfs-tools/event-driven/upstart-jobs"; diff --git a/pkgs/os-specific/linux/usbutils/default.nix b/pkgs/os-specific/linux/usbutils/default.nix index ed8cc56d267..5614f55a622 100644 --- a/pkgs/os-specific/linux/usbutils/default.nix +++ b/pkgs/os-specific/linux/usbutils/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, libusb1, zlib, autoconf, automake, libtool }: +{ stdenv, fetchurl, pkgconfig, libusb1, zlib, autoreconfHook }: let @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { sha256 = "05sxkm7b7lj8p8kr8kw68m49h66351s803z42233b8lssmc3wlra"; }; - buildInputs = [ pkgconfig libusb1 autoconf automake libtool zlib ]; + buildInputs = [ pkgconfig libusb1 autoreconfHook ]; preConfigure = "autoreconf -i"; diff --git a/pkgs/tools/networking/sitecopy/default.nix b/pkgs/tools/networking/sitecopy/default.nix index 6beaff56aea..5667744ef22 100644 --- a/pkgs/tools/networking/sitecopy/default.nix +++ b/pkgs/tools/networking/sitecopy/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, neon, zlib, openssl, autoconf, automake, libtool }: +{ stdenv, fetchurl, neon, zlib, openssl, autoreconfHook }: stdenv.mkDerivation rec { name = "sitecopy-0.16.6"; @@ -10,9 +10,7 @@ stdenv.mkDerivation rec { patches = [ ./neon-29.patch ]; - preConfigure = "autoreconf"; - - buildInputs = [ openssl neon zlib autoconf automake libtool ]; + buildInputs = [ openssl neon zlib autoreconfHook ]; configureFlags= "--with-ssl=openssl"; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c5b8dde2624..4ec940b6393 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -245,6 +245,10 @@ let theAttrSet = arg; }; + autoreconfHook = makeSetupHook + { substitutions = { inherit autoconf automake libtool; }; } + ../build-support/setup-hooks/autoreconf.sh; + buildEnv = import ../build-support/buildenv { inherit (pkgs) runCommand perl; }; @@ -327,7 +331,7 @@ let inherit stdenv perl cpio contents ubootChooser; }; - makeWrapper = makeSetupHook {} ../build-support/make-wrapper/make-wrapper.sh; + makeWrapper = makeSetupHook { } ../build-support/setup-hooks/make-wrapper.sh; makeModulesClosure = {kernel, rootModules, allowMissing ? false}: import ../build-support/kernel/modules-closure.nix { @@ -5824,9 +5828,7 @@ let module_init_tools = callPackage ../os-specific/linux/module-init-tools { }; - mountall = callPackage ../os-specific/linux/mountall { - automake = automake111x; - }; + mountall = callPackage ../os-specific/linux/mountall { }; aggregateModules = modules: import ../os-specific/linux/module-init-tools/aggregator.nix { |