git.iko.soy/typeable/nixpkgs
on master help sign in
mimetic: patch for aarch64
commitf153d9f8556014d2066a298f30aa1552a4ae9744 authorEmery Hemingway <ehmry@posteo.net> dateThu 30 Jul 2020, 19:46 (6 years ago) parentb0edcfd
2 files changed+34
pkgs/development/libraries/mimetic/default.nix+2 pkgs/development/libraries/mimetic/narrowing.patch+32
pkgs/development/libraries/mimetic/default.nix+2
@@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
1111
1212 buildInputs = [ cutee ];
1313
14+ patches = stdenv.lib.optional stdenv.isAarch64 ./narrowing.patch;
15+
1416 meta = with stdenv.lib; {
1517 description = "MIME handling library";
1618 homepage = "http://www.codesink.org/mimetic_mime_library.html";
pkgs/development/libraries/mimetic/narrowing.patchnew file+32
@@ -0,0 +1,32 @@
1+diff -ru a/mimetic/codec/base64.cxx b/mimetic/codec/base64.cxx
2+--- a/mimetic/codec/base64.cxx 2014-06-17 10:12:00.000000000 +0200
3++++ b/mimetic/codec/base64.cxx 2020-07-30 20:54:10.212742011 +0200
4+@@ -14,19 +14,19 @@
5+ "0123456789+/=";
6+
7+ const char Base64::sDecTable[] = {
8+- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
9+- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
10+- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
11+- -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
12+- -1,-1,-1,62,-1,-1,-1,63,52,53,
13+- 54,55,56,57,58,59,60,61,-1,-1,
14+- -1, eq_sign, -1,-1,-1, 0, 1, 2, 3, 4,
15++ 255,255,255,255,255,255,255,255,255,255,
16++ 255,255,255,255,255,255,255,255,255,255,
17++ 255,255,255,255,255,255,255,255,255,255,
18++ 255,255,255,255,255,255,255,255,255,255,
19++ 255,255,255,62,255,255,255,63,52,53,
20++ 54,55,56,57,58,59,60,61,255,255,
21++ 255, eq_sign, 255,255,255, 0, 1, 2, 3, 4,
22+ 5, 6, 7, 8, 9,10,11,12,13,14,
23+ 15,16,17,18,19,20,21,22,23,24,
24+- 25,-1,-1,-1,-1,-1,-1,26,27,28,
25++ 25,255,255,255,255,255,255,26,27,28,
26+ 29,30,31,32,33,34,35,36,37,38,
27+ 39,40,41,42,43,44,45,46,47,48,
28+- 49,50,51,-1
29++ 49,50,51,255
30+ };
31+
32+ const int Base64::sDecTableSz = sizeof(Base64::sDecTable) / sizeof(char);