* Remove the NIX_STRIP_DEBUG flag. It was undocumented and confusing
in its interaction with the ‘dontStrip’ attribute. svn path=/nixpkgs/branches/stdenv-updates/; revision=30848
This commit is contained in:
@@ -1,93 +0,0 @@
|
||||
* genericBuild performs a generic build of (typically) autotool-style
|
||||
packages
|
||||
|
||||
|
||||
* unpack phase
|
||||
|
||||
** may be overriden by setting $unpackPhase to point at a function that
|
||||
unpacks the source (which should set $sourceRoot)
|
||||
|
||||
** the generic unpacker unpacks all sources specified by $srcs, or
|
||||
$src if $srcs is empty
|
||||
|
||||
** supports tar, bzipped tar, gzipped tar, compressed tar, zip
|
||||
|
||||
** zip must be in scope (in $buildinputs)
|
||||
|
||||
** additional file types may be supported by setting $findUnpacker,
|
||||
which is called with a single argument specifying the file to be
|
||||
unpacked
|
||||
|
||||
** $findUnpacker should set $unpackCmd, specifying the full command to
|
||||
unpack the file (must include the file name)
|
||||
|
||||
** alternatively, $unpackCmd can be set before calling the generic
|
||||
builder (e.g., 'unpackCmd="unrar x $src"'); this only works if
|
||||
there is a single source file
|
||||
|
||||
** the generic unpacker then sets $sourceRoot to the name of the
|
||||
directory created by unpacking the source archives
|
||||
|
||||
** the source archives should produce only one directory
|
||||
|
||||
** alternatively, $setSourceRoot may be set to a function that sets
|
||||
$sourceRoot
|
||||
|
||||
|
||||
* the generic builder then chdirs to $sourceRoot
|
||||
|
||||
|
||||
* patch phase (skipped if neither $patchPhase nor $patches are set)
|
||||
|
||||
** may be overriden by setting $patchPhase to point at a function that
|
||||
unpacks the source (which should set $sourceRoot)
|
||||
|
||||
** if the $patches variable is set, it runs `patch -p1 < ...' in
|
||||
$sourceRoot for each element in $patches (the `patch' command
|
||||
should be in $PATH; note that it isn't in the standard environment)
|
||||
|
||||
|
||||
* configuration phase
|
||||
|
||||
** may be overriden by setting $configurePhase to point at a function
|
||||
|
||||
** calls $preConfigurer first, if set (useful for running
|
||||
autoconf/automake)
|
||||
|
||||
** the configure script is specified by $configureScript, which
|
||||
defaults to ./configure
|
||||
|
||||
** if no executable file exists at $configureScript, does nothing
|
||||
|
||||
** if a file ./ltmain.sh exists and $dontFixLibtool is not set, calls
|
||||
function fixLibtool to remove its default search path (/usr etc.)
|
||||
|
||||
** adds "--prefix=$out" to $configureFlags unless $dontAddPrefix is
|
||||
set
|
||||
|
||||
** calls $configureScript with $configureFlags
|
||||
|
||||
** calls $postConfigurer, if set (useful for any last-minute patches
|
||||
prior to building)
|
||||
|
||||
|
||||
* build phase
|
||||
|
||||
** may be overriden by setting $buildPhase to point at a function
|
||||
|
||||
** runs make with flags $makeFlags
|
||||
|
||||
|
||||
* install phase
|
||||
|
||||
** may be overriden by setting $installPhase to point at a function
|
||||
|
||||
** runs make with flags $installFlags
|
||||
|
||||
** unless $dontStrip is set or $NIX_STRIP_DEBUG is not 1, finds all *.a
|
||||
files in $out and runs "strip -S" on them (executables and dynamic
|
||||
libraries can be stripped automatically by setting NIX_STRIP_DEBUG
|
||||
to 1 (default))
|
||||
|
||||
** if $propagatedBuildInputs is set, its contents are written to
|
||||
$out/nix-support/propagated-build-inputs
|
||||
@@ -237,13 +237,6 @@ if test "$NIX_NO_SELF_RPATH" != "1"; then
|
||||
fi
|
||||
|
||||
|
||||
# Strip debug information by default.
|
||||
if test -z "$NIX_STRIP_DEBUG"; then
|
||||
export NIX_STRIP_DEBUG=1
|
||||
export NIX_CFLAGS_STRIP="-g0 -Wl,--strip-debug"
|
||||
fi
|
||||
|
||||
|
||||
# Set the TZ (timezone) environment variable, otherwise commands like
|
||||
# `date' will complain (e.g., `Tue Mar 9 10:01:47 Local time zone must
|
||||
# be set--see zic manual page 2004').
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
# ensuring purity of components produced by it.
|
||||
|
||||
# The function defaults are for easy testing.
|
||||
{system ? "i686-linux", allPackages ? import ../../top-level/all-packages.nix, platform}:
|
||||
{ system ? "i686-linux"
|
||||
, allPackages ? import ../../top-level/all-packages.nix
|
||||
, platform ? null }:
|
||||
|
||||
rec {
|
||||
|
||||
|
||||
@@ -202,13 +202,6 @@ if test "$NIX_NO_SELF_RPATH" != "1"; then
|
||||
fi
|
||||
|
||||
|
||||
# Strip debug information by default.
|
||||
if test -z "$NIX_STRIP_DEBUG"; then
|
||||
export NIX_STRIP_DEBUG=1
|
||||
export NIX_CFLAGS_STRIP="-g0 -Wl,--strip-debug"
|
||||
fi
|
||||
|
||||
|
||||
# Set the TZ (timezone) environment variable, otherwise commands like
|
||||
# `date' will complain (e.g., `Tue Mar 9 10:01:47 Local time zone must
|
||||
# be set--see zic manual page 2004').
|
||||
|
||||
@@ -19,7 +19,6 @@ rec {
|
||||
export NIX_DONT_SET_RPATH=1
|
||||
export NIX_NO_SELF_RPATH=1
|
||||
dontFixLibtool=1
|
||||
NIX_STRIP_DEBUG=0
|
||||
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
|
||||
'';
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ if test "$system" = "i686-darwin" -o "$system" = "powerpc-darwin" -o "$system" =
|
||||
export NIX_DONT_SET_RPATH=1
|
||||
export NIX_NO_SELF_RPATH=1
|
||||
dontFixLibtool=1
|
||||
NIX_STRIP_DEBUG=0 # !!! do we still need this?
|
||||
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
|
||||
xargsFlags=" "
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user