lol

policycoreutils: fix i686-linux compilation error, closes #9544

This adds a patch to quiet a compiler warning which would be harmless
except that it breaks the build due to use of -Werror.
See http://hydra.nixos.org/build/25151888/nixlog/1

authored by

Daniel Fox Franke and committed by
Rok Garbas
ca673d66 38e2c158

+14
+2
pkgs/os-specific/linux/policycoreutils/default.nix
··· 12 12 sha256 = "0y9l9k60iy21hj0lcvfdfxs1fxydg6d3pxp9rhy7hwr4y5vgh6dq"; 13 13 }; 14 14 15 + patches = [ ./fix-printf-type.patch ]; 16 + 15 17 postPatch = '' 16 18 # Fix references to libsepol.a 17 19 find . -name Makefile -exec sed -i 's,[^ ]*/libsepol.a,${libsepol}/lib/libsepol.a,g' {} \;
+12
pkgs/os-specific/linux/policycoreutils/fix-printf-type.patch
··· 1 + diff -Nru policycoreutils-2.4/setfiles/restore.c policycoreutils-2.4.new/setfiles/restore.c 2 + --- policycoreutils-2.4/setfiles/restore.c 2015-02-02 09:38:10.000000000 -0500 3 + +++ policycoreutils-2.4.new/setfiles/restore.c 2015-08-29 20:44:13.693023222 -0400 4 + @@ -118,7 +118,7 @@ 5 + r_opts->count++; 6 + if (r_opts->count % STAR_COUNT == 0) { 7 + if (r_opts->progress == 1) { 8 + - fprintf(stdout, "\r%luk", (size_t) r_opts->count / STAR_COUNT ); 9 + + fprintf(stdout, "\r%zuk", (size_t) r_opts->count / STAR_COUNT ); 10 + } else { 11 + if (r_opts->nfile > 0) { 12 + progress = (r_opts->count < r_opts->nfile) ? (100.0 * r_opts->count / r_opts->nfile) : 100;