uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/tools/backup/partimage/default.nix
Normal file
49
pkgs/tools/backup/partimage/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{lib, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, bzip2
|
||||
, zlib
|
||||
, newt
|
||||
, openssl
|
||||
, pkg-config
|
||||
, slang
|
||||
, autoreconfHook
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "partimage";
|
||||
version = "0.6.9";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/partimage/partimage-${version}.tar.bz2";
|
||||
sha256 = "0db6xiphk6xnlpbxraiy31c5xzj0ql6k4rfkmqzh665yyj0nqfkm";
|
||||
};
|
||||
|
||||
configureFlags = [ "--with-ssl-headers=${openssl.dev}/include/openssl" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||||
buildInputs = [ bzip2 zlib newt newt openssl slang ];
|
||||
|
||||
patches = [
|
||||
./gentoos-zlib.patch
|
||||
(fetchpatch {
|
||||
name = "openssl-1.1.patch";
|
||||
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-block/partimage/files/"
|
||||
+ "partimage-0.6.9-openssl-1.1-compatibility.patch?id=3fe8e9910002b6523d995512a646b063565d0447";
|
||||
sha256 = "1hs0krxrncxq1w36bhad02yk8yx71zcfs35cw87c82sl2sfwasjg";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://sources.debian.org/data/main/p/partimage/0.6.9-8/debian/patches/04-fix-FTBFS-glic-2.28.patch";
|
||||
sha256 = "0xid5636g58sxbhxnjmfjdy7y8rf3c77zmmpfbbqv4lv9jd2gmxm";
|
||||
})
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Opensource disk backup software";
|
||||
homepage = "http://www.partimage.org";
|
||||
license = lib.licenses.gpl2;
|
||||
maintainers = [lib.maintainers.marcweber];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
33
pkgs/tools/backup/partimage/gentoos-zlib.patch
Normal file
33
pkgs/tools/backup/partimage/gentoos-zlib.patch
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
http://bugs.gentoo.org/405323
|
||||
|
||||
--- a/src/client/imagefile.cpp
|
||||
+++ b/src/client/imagefile.cpp
|
||||
@@ -783,7 +783,7 @@
|
||||
else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
|
||||
{
|
||||
showDebug(1, "open gzip\n");
|
||||
- m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h");
|
||||
+ m_gzImageFile = gzdopen(m_nFdImage, "wb"); //"wb1h");
|
||||
if (m_gzImageFile == NULL)
|
||||
{
|
||||
showDebug(1, "error:%d %s\n", errno, strerror(errno));
|
||||
@@ -1098,7 +1098,7 @@
|
||||
}
|
||||
else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression
|
||||
{
|
||||
- m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb");
|
||||
+ m_gzImageFile = gzdopen(m_nFdImage, "rb");
|
||||
if (m_gzImageFile == NULL)
|
||||
THROW(ERR_ERRNO, errno);
|
||||
else
|
||||
--- a/src/client/imagefile.h
|
||||
+++ b/src/client/imagefile.h
|
||||
@@ -41,7 +41,7 @@
|
||||
COptions m_options;
|
||||
|
||||
FILE *m_fImageFile;
|
||||
- gzFile *m_gzImageFile;
|
||||
+ gzFile m_gzImageFile;
|
||||
BZFILE *m_bzImageFile;
|
||||
|
||||
int m_nFdImage;
|
||||
Loading…
Add table
Add a link
Reference in a new issue