expat: split dev output

This commit is contained in:
Vladimír Čunát 2015-10-15 13:57:38 +02:00
parent ad02a45af0
commit dd915f82e7
11 changed files with 19 additions and 16 deletions

View File

@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
buildPhase = '' buildPhase = ''
# Fix up the LD_LIBRARY_PATH so that expat is on it # Fix up the LD_LIBRARY_PATH so that expat is on it
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${expat}/lib" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${expat.out}/lib"
python mscript.py configure --prefix="$out" python mscript.py configure --prefix="$out"
python mscript.py build python mscript.py build

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig autoreconfHook gettext confuse vte gtk makeWrapper ]; buildInputs = [ pkgconfig autoreconfHook gettext confuse vte gtk makeWrapper ];
LD_LIBRARY_PATH = "${expat}/lib"; # ugly hack for xgettext to work during build LD_LIBRARY_PATH = "${expat.out}/lib"; # ugly hack for xgettext to work during build
# The config locking scheme relies on the binary being called "tilda", # The config locking scheme relies on the binary being called "tilda",
# (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice: # (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice:

View File

@ -40,7 +40,7 @@ rec {
cd .. cd ..
''; '';
configureFlags = "--with-expat --with-expat-inc=${expat}/include " + configureFlags = "--with-expat --with-expat-inc=${expat.dev}/include " +
"--with-expat-lib=-lexpat --with-opus "; "--with-expat-lib=-lexpat --with-opus ";
buildInputs = [ libyaml alsaLib openssl libuuid pkgconfig libpulseaudio libsamplerate buildInputs = [ libyaml alsaLib openssl libuuid pkgconfig libpulseaudio libsamplerate

View File

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
makeFlagsArray=( makeFlagsArray=(
LUA_LDIR="$out/share/lua/${lua5.luaversion}" LUA_LDIR="$out/share/lua/${lua5.luaversion}"
LUA_INC="-I${lua5}/include" LUA_CDIR="$out/lib/lua/${lua5.luaversion}" LUA_INC="-I${lua5}/include" LUA_CDIR="$out/lib/lua/${lua5.luaversion}"
EXPAT_INC="-I${expat}/include"); EXPAT_INC="-I${expat.dev}/include");
''; '';
meta = { meta = {

View File

@ -64,8 +64,8 @@ let
] ++ optional (variant == "release") "debug-symbols=off"; ] ++ optional (variant == "release") "debug-symbols=off";
nativeB2Flags = [ nativeB2Flags = [
"-sEXPAT_INCLUDE=${expat}/include" "-sEXPAT_INCLUDE=${expat.dev}/include"
"-sEXPAT_LIBPATH=${expat}/lib" "-sEXPAT_LIBPATH=${expat.out}/lib"
] ++ optional (toolset != null) "toolset=${toolset}" ] ++ optional (toolset != null) "toolset=${toolset}"
++ optional (mpi != null) "--user-config=user-config.jam"; ++ optional (mpi != null) "--user-config=user-config.jam";
nativeB2Args = concatStringsSep " " (genericB2Flags ++ nativeB2Flags); nativeB2Args = concatStringsSep " " (genericB2Flags ++ nativeB2Flags);

View File

@ -10,6 +10,10 @@ stdenv.mkDerivation rec {
patches = [ ./CVE-2015-1283.patch ]; patches = [ ./CVE-2015-1283.patch ];
outputs = [ "dev" "out" ]; # TODO: fix referrers
outputBin = "dev";
outputMan = "dev"; # tiny page for a dev tool
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://www.libexpat.org/; homepage = http://www.libexpat.org/;
description = "A stream-oriented XML parser library written in C"; description = "A stream-oriented XML parser library written in C";

View File

@ -5,6 +5,6 @@ runCommand "gettext-expat-${gettext.name}" { buildInputs = [ makeWrapper ]; } ''
cp -rf ${gettext}/* $out/ cp -rf ${gettext}/* $out/
chmod a+w $out/bin chmod a+w $out/bin
for p in $out/bin/*; do for p in $out/bin/*; do
wrapProgram $p --prefix LD_LIBRARY_PATH : ${expat}/lib wrapProgram $p --prefix LD_LIBRARY_PATH : ${expat.out}/lib
done done
'' ''

View File

@ -28,8 +28,8 @@ stdenv.mkDerivation {
postPatch = '' postPatch = ''
substituteInPlace "unittest.ml" \ substituteInPlace "unittest.ml" \
--replace "/home/maas/xml-samples/REC-xml-19980210.xml.txt" "${testcase}" --replace "/home/maas/xml-samples/REC-xml-19980210.xml.txt" "${testcase}"
substituteInPlace Makefile --replace "EXPAT_LIBDIR=/usr/local/lib" "EXPAT_LIBDIR=${expat}/lib" \ substituteInPlace Makefile --replace "EXPAT_LIBDIR=/usr/local/lib" "EXPAT_LIBDIR=${expat.out}/lib" \
substituteInPlace Makefile --replace "EXPAT_INCDIR=/usr/local/include" "EXPAT_INCDIR=${expat}/include" \ substituteInPlace Makefile --replace "EXPAT_INCDIR=/usr/local/include" "EXPAT_INCDIR=${expat.dev}/include" \
''; '';
configurePhase = "true"; # Skip configure configurePhase = "true"; # Skip configure

View File

@ -24,11 +24,10 @@ stdenv.mkDerivation rec {
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ]; installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
# get rid of runtime dependencies on $dev outputs # get rid of runtime dependencies on $dev outputs
postInstall = '' postInstall = ''substituteInPlace "$lib/lib/libunbound.la" ''
substituteInPlace "$lib/lib/libunbound.la" \ + stdenv.lib.concatMapStrings
--replace '-L${openssl.dev}/lib' "" \ (pkg: " --replace '-L${pkg.dev}/lib' '-L${pkg.out}/lib' ")
--replace '-L${libevent.dev}/lib' "" [ openssl expat libevent ];
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Validating, recursive, and caching DNS resolver"; description = "Validating, recursive, and caching DNS resolver";

View File

@ -99,7 +99,7 @@ let
makeFlagsArray=( makeFlagsArray=(
LUA_LDIR="$out/share/lua/${lua.luaversion}" LUA_LDIR="$out/share/lua/${lua.luaversion}"
LUA_INC="-I${lua}/include" LUA_CDIR="$out/lib/lua/${lua.luaversion}" LUA_INC="-I${lua}/include" LUA_CDIR="$out/lib/lua/${lua.luaversion}"
EXPAT_INC="-I${expat}/include"); EXPAT_INC="-I${expat.dev}/include");
''; '';
meta = { meta = {

View File

@ -12451,7 +12451,7 @@ let self = _self // overrides; _self = with self; {
patchPhase = if stdenv.isCygwin then '' patchPhase = if stdenv.isCygwin then ''
sed -i"" -e "s@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. \$Config{_exe};@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. (\$^O eq 'cygwin' ? \"\" : \$Config{_exe});@" inc/Devel/CheckLib.pm sed -i"" -e "s@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. \$Config{_exe};@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. (\$^O eq 'cygwin' ? \"\" : \$Config{_exe});@" inc/Devel/CheckLib.pm
'' else null; '' else null;
makeMakerFlags = "EXPATLIBPATH=${pkgs.expat}/lib EXPATINCPATH=${pkgs.expat}/include"; makeMakerFlags = "EXPATLIBPATH=${pkgs.expat.out}/lib EXPATINCPATH=${pkgs.expat.dev}/include";
}; };
XMLXPath = buildPerlPackage { XMLXPath = buildPerlPackage {