* Revived RPM. Damn, RPM is nasty to build.
svn path=/nixpkgs/trunk/; revision=8407
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
{stdenv, fetchurl, cpio, zlib, bzip2, file, sqlite, beecrypt, neon, elfutils}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "rpm-4.4.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://wraptastic.org/pub/rpm-4.4.x/rpm-4.4.8.tar.gz;
|
||||
sha256 = "02ddf076bwcpxzxq9i0ii1fzw2r69fk0gjkk2yrzgzsmb01na230";
|
||||
};
|
||||
|
||||
# Note: we don't add elfutils to buildInputs, since it provides a
|
||||
# bad `ld' and other stuff.
|
||||
buildInputs = [cpio zlib bzip2 file sqlite beecrypt neon];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-I${beecrypt}/include/beecrypt -I${neon}/include/neon -I${elfutils}/include";
|
||||
|
||||
NIX_CFLAGS_LINK = "-L${elfutils}/lib";
|
||||
|
||||
preConfigure = "
|
||||
rm -rf zlib file sqlite
|
||||
|
||||
# Grrr, rpcgen can't find cpp. (NIXPKGS-48)
|
||||
mkdir rpcgen
|
||||
echo \"#! $shell\" > rpcgen/rpcgen
|
||||
echo \"exec $(type -tp rpcgen) -Y $(dirname $(type -tp cpp)) \\\"\\$@\\\"\" >> rpcgen/rpcgen
|
||||
chmod +x rpcgen/rpcgen
|
||||
export PATH=$(pwd)/rpcgen:$PATH
|
||||
|
||||
substituteInPlace ./installplatform --replace /usr/bin/env $(type -tp env)
|
||||
substituteInPlace Makefile.in --replace /var/tmp $(pwd)/dummy
|
||||
";
|
||||
|
||||
configureFlags = "--without-selinux --without-lua --without-python --without-perl";
|
||||
|
||||
patches = [./no-lua.patch];
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
diff -rc rpm-4.4.8-orig/lib/poptALL.c rpm-4.4.8/lib/poptALL.c
|
||||
*** rpm-4.4.8-orig/lib/poptALL.c 2007-03-21 19:46:31.000000000 +0100
|
||||
--- rpm-4.4.8/lib/poptALL.c 2007-03-21 19:44:45.000000000 +0100
|
||||
***************
|
||||
*** 483,489 ****
|
||||
--- 483,491 ----
|
||||
rpmFreeMacros(NULL);
|
||||
/*@i@*/ rpmFreeMacros(rpmCLIMacroContext);
|
||||
rpmFreeRpmrc();
|
||||
+ #ifdef WITH_LUA
|
||||
(void) rpmluaFree(NULL);
|
||||
+ #endif
|
||||
rpmFreeFilesystems();
|
||||
/*@i@*/ urlFreeCache();
|
||||
rpmlogClose();
|
||||
Reference in New Issue
Block a user