From d11c1c344d5426c1c7397cd0a4c000a6433ab544 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 11 Jul 2011 17:37:53 +0200 Subject: [PATCH] xbps: added patch from master branch to build on x86. --- ...fc74041d8e063b4945967fffce9d40e5c107.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/xbps/patches/5917fc74041d8e063b4945967fffce9d40e5c107.patch 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; + }