diff --git a/vifm.changes b/vifm.changes index 83695a8..d70fba2 100644 --- a/vifm.changes +++ b/vifm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 27 16:08:17 UTC 2015 - normand@linux.vnet.ibm.com + +- new patch to avoid build failure for PowerPC architectures + vifm_utils_nix_dynamic_page_size_for_powerpc.patch + ------------------------------------------------------------------- Fri Jul 10 08:46:10 UTC 2015 - mvetter@suse.com diff --git a/vifm.spec b/vifm.spec index 824b293..1d64960 100644 --- a/vifm.spec +++ b/vifm.spec @@ -37,6 +37,7 @@ BuildRequires: pkgconfig(x11) %else BuildRequires: xorg-x11-devel %endif +Patch1: vifm_utils_nix_dynamic_page_size_for_powerpc.patch %description Vifm is a ncurses based file manager with vi like keybindings that allow complete @@ -46,6 +47,7 @@ and configurable color schemes. %prep %setup -q +%patch1 -p1 %build %configure \ diff --git a/vifm_utils_nix_dynamic_page_size_for_powerpc.patch b/vifm_utils_nix_dynamic_page_size_for_powerpc.patch new file mode 100644 index 0000000..5150d50 --- /dev/null +++ b/vifm_utils_nix_dynamic_page_size_for_powerpc.patch @@ -0,0 +1,26 @@ +From: Michel Normand +Subject: vifm utils nix dynamic page size for powerpc +Date: Thu, 27 Aug 2015 17:57:44 +0200 + +utils-nix.c needs dynamic PAGE_SIZE for powerpc +as not defined by default. + +Signed-off-by: Michel Normand +--- + src/utils/utils_nix.c | 3 +++ + 1 file changed, 3 insertions(+) + +Index: vifm-0.8/src/utils/utils_nix.c +=================================================================== +--- vifm-0.8.orig/src/utils/utils_nix.c ++++ vifm-0.8/src/utils/utils_nix.c +@@ -261,6 +261,9 @@ char ** + make_execv_array(char shell[], char cmd[]) + { + #ifdef MAX_ARG_STRLEN ++#ifndef PAGE_SIZE ++#define PAGE_SIZE sysconf(_SC_PAGESIZE) ++#endif + /* Don't use maximum length, leave some room or commands fail to run. */ + const size_t safe_arg_len = MIN(MAX_ARG_STRLEN, MAX_ARG_STRLEN - 4096U); + const size_t npieces = DIV_ROUND_UP(strlen(cmd), safe_arg_len);