diff --git a/srcpkgs/xbps/patches/5917fc74041d8e063b4945967fffce9d40e5c107.patch b/srcpkgs/xbps/patches/5917fc74041d8e063b4945967fffce9d40e5c107.patch new file mode 100644 index 00000000000..154a268b9e3 --- /dev/null +++ b/srcpkgs/xbps/patches/5917fc74041d8e063b4945967fffce9d40e5c107.patch @@ -0,0 +1,28 @@ +commit 5917fc74041d8e063b4945967fffce9d40e5c107 +Author: Juan RP +Date: Mon Jul 11 12:12:55 2011 +0200 + + xbps-repo: printf uint64_t with PRIu64. + +diff --git a/bin/xbps-repo/main.c b/bin/xbps-repo/main.c +index a7ac504..5d61dc0 100644 +--- bin/xbps-repo/main.c ++++ bin/xbps-repo/main.c +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + + #include + #include "defs.h" +@@ -59,7 +60,8 @@ repo_list_uri_cb(struct repository_pool_index *rpi, void *arg, bool *done) + prop_dictionary_get_cstring_nocopy(rpi->rpi_repod, + "pkgindex-version", &pkgidx); + prop_dictionary_get_uint64(rpi->rpi_repod, "total-pkgs", &npkgs); +- printf("%s (index %s, %zu packages)\n", rpi->rpi_uri, pkgidx, npkgs); ++ printf("%s (index %s, " "%" PRIu64 " packages)\n", ++ rpi->rpi_uri, pkgidx, npkgs); + + return 0; + }