git.iko.soy/typeable/nixpkgs
on master help sign in
RPM: 4.13.0-rc1 -> 4.13.0.1 (#24910)
commitfed7d4a6e95fa715ec3e28221790c8ec11d9a9c4 authorarmijnhemel <armijnhemel@users.noreply.github.com> dateSat 15 Apr 2017, 10:18 (10 years ago) parentb7d2ffe
2 files changed+19−5
pkgs/tools/package-management/rpm/default.nix+8−5 pkgs/tools/package-management/rpm/rpm-4.13.0.1-bfd-config.patch+11
pkgs/tools/package-management/rpm/default.nix+8−5
@@ -1,11 +1,12 @@
1−{ stdenv, fetchurl, cpio, zlib, bzip2, file, elfutils, libarchive, nspr, nss, popt, db, xz, python, lua, pkgconfig, autoreconfHook }:
1+{ stdenv, fetchurl, cpio, zlib, bzip2, file, elfutils, libarchive, nspr, nss, popt, db, xz, python, lua, pkgconfig, binutils, autoreconfHook }:
22
33stdenv.mkDerivation rec {
4− name = "rpm-4.13.0-rc1";
4+ name = "rpm-${version}";
5+ version = "4.13.0.1";
56
67 src = fetchurl {
7− url = "http://www.rpm.org/releases/testing/rpm-4.13.0-rc1.tar.bz2";
8− sha256 = "097mc0kkrf09c01hrgi71df7maahmvayfgsvspnxigvl3xysv8hp";
8+ url = "http://ftp.rpm.org/releases/rpm-4.13.x/rpm-${version}.tar.bz2";
9+ sha256 = "27fc7ba7d419622b1ce34d6507aa70b0808bc344021d298072a0c2ec165f9b0d";
910 };
1011
1112 outputs = [ "out" "dev" "man" ];
@@ -13,7 +14,7 @@ stdenv.mkDerivation rec {
1314 buildInputs = [ cpio zlib bzip2 file libarchive nspr nss db xz python lua pkgconfig autoreconfHook ];
1415
1516 # rpm/rpmlib.h includes popt.h, and then the pkg-config file mentions these as linkage requirements
16− propagatedBuildInputs = [ popt elfutils nss db bzip2 libarchive ];
17+ propagatedBuildInputs = [ popt elfutils nss db bzip2 libarchive binutils ];
1718
1819 NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss";
1920
@@ -25,6 +26,8 @@ stdenv.mkDerivation rec {
2526 "--sharedstatedir=/com"
2627 ];
2728
29+ patches = [ ./rpm-4.13.0.1-bfd-config.patch ];
30+
2831 postPatch = ''
2932 # For Python3, the original expression evaluates as 'python3.4' but we want 'python3.4m' here
3033 substituteInPlace configure.ac --replace 'python''${PYTHON_VERSION}' ${python.executable}
pkgs/tools/package-management/rpm/rpm-4.13.0.1-bfd-config.patchnew file+11
@@ -0,0 +1,11 @@
1+diff -ru rpm-4.13.0.1/tools/sepdebugcrcfix.c rpm-4.13.0.1.new/tools/sepdebugcrcfix.c
2+--- rpm-4.13.0.1/tools/sepdebugcrcfix.c 2017-02-16 10:40:09.988649399 +0100
3++++ rpm-4.13.0.1.new/tools/sepdebugcrcfix.c 2017-04-15 00:02:21.151359876 +0200
4+@@ -28,6 +28,7 @@
5+ #include <error.h>
6+ #include <libelf.h>
7+ #include <gelf.h>
8++#include <config.h>
9+ #include <bfd.h>
10+
11+ #define _(x) x