From 09dbc74814d067839312b2cb3caa2dfd2dfdf700 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 21 Mar 2015 09:47:53 +0100 Subject: [PATCH] xbps{,-static}: patch from master to fix build on ARM. --- srcpkgs/xbps-static/template | 2 +- ...stion.c-char-is-not-enough-for-fgetc.patch | 26 +++++++++++++++++++ srcpkgs/xbps/template | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/xbps/patches/0001-xbps-install-question.c-char-is-not-enough-for-fgetc.patch diff --git a/srcpkgs/xbps-static/template b/srcpkgs/xbps-static/template index 58e16b68e44..d819bc69267 100644 --- a/srcpkgs/xbps-static/template +++ b/srcpkgs/xbps-static/template @@ -3,7 +3,7 @@ # NOTE: keep this package synchronized with "srcpkgs/xbps". pkgname=xbps-static version=0.44.1 -revision=1 +revision=2 build_style=configure short_desc="The XBPS package system utilities - static binaries" maintainer="Juan RP " diff --git a/srcpkgs/xbps/patches/0001-xbps-install-question.c-char-is-not-enough-for-fgetc.patch b/srcpkgs/xbps/patches/0001-xbps-install-question.c-char-is-not-enough-for-fgetc.patch new file mode 100644 index 00000000000..091a3130a48 --- /dev/null +++ b/srcpkgs/xbps/patches/0001-xbps-install-question.c-char-is-not-enough-for-fgetc.patch @@ -0,0 +1,26 @@ +From 62b21a4f93a8f3dcc7350630b5bf250af7663757 Mon Sep 17 00:00:00 2001 +From: Juan RP +Date: Sat, 21 Mar 2015 09:45:29 +0100 +Subject: [PATCH] xbps-install/question.c: char is not enough for fgetc, use + int (HI GOTTOX) + +--- + bin/xbps-install/question.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bin/xbps-install/question.c b/bin/xbps-install/question.c +index 1d61af2..bb74214 100644 +--- bin/xbps-install/question.c ++++ bin/xbps-install/question.c +@@ -40,7 +40,7 @@ + static bool + question(bool preset, const char *fmt, va_list ap) + { +- char response; ++ int response; + + vfprintf(stderr, fmt, ap); + if(preset) +-- +2.3.3 + diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index fadcfd3accc..81729015cb6 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.44.1 -revision=1 +revision=2 bootstrap=yes build_style=configure short_desc="The XBPS package system utilities"