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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ lib, stdenv, fetchurl, fetchpatch, cutee }:
stdenv.mkDerivation rec {
pname = "mimetic";
version = "0.9.8";
src = fetchurl {
url = "http://www.codesink.org/download/${pname}-${version}.tar.gz";
sha256 = "003715lvj4nx23arn1s9ss6hgc2yblkwfy5h94li6pjz2a6xc1rs";
};
buildInputs = [ cutee ];
patches = [
# Fix build with gcc11
(fetchpatch {
url = "https://github.com/tat/mimetic/commit/bf84940f9021950c80846e6b1a5f8b0b55991b00.patch";
sha256 = "sha256-1JW9zPg67BgNsdIjK/jp9j7QMg50eRMz5FsDsbbzBlI=";
})
] ++ lib.optional stdenv.isAarch64 ./narrowing.patch;
meta = with lib; {
description = "MIME handling library";
homepage = "http://www.codesink.org/mimetic_mime_library.html";
license = licenses.mit;
maintainers = with maintainers; [ leenaars];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,32 @@
diff -ru a/mimetic/codec/base64.cxx b/mimetic/codec/base64.cxx
--- a/mimetic/codec/base64.cxx 2014-06-17 10:12:00.000000000 +0200
+++ b/mimetic/codec/base64.cxx 2020-07-30 20:54:10.212742011 +0200
@@ -14,19 +14,19 @@
"0123456789+/=";
const char Base64::sDecTable[] = {
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
- -1,-1,-1,62,-1,-1,-1,63,52,53,
- 54,55,56,57,58,59,60,61,-1,-1,
- -1, eq_sign, -1,-1,-1, 0, 1, 2, 3, 4,
+ 255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,62,255,255,255,63,52,53,
+ 54,55,56,57,58,59,60,61,255,255,
+ 255, eq_sign, 255,255,255, 0, 1, 2, 3, 4,
5, 6, 7, 8, 9,10,11,12,13,14,
15,16,17,18,19,20,21,22,23,24,
- 25,-1,-1,-1,-1,-1,-1,26,27,28,
+ 25,255,255,255,255,255,255,26,27,28,
29,30,31,32,33,34,35,36,37,38,
39,40,41,42,43,44,45,46,47,48,
- 49,50,51,-1
+ 49,50,51,255
};
const int Base64::sDecTableSz = sizeof(Base64::sDecTable) / sizeof(char);