Hello community,

here is the log from the commit of package vifm for openSUSE:Factory checked in 
at 2015-08-29 20:05:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vifm (Old)
 and      /work/SRC/openSUSE:Factory/.vifm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vifm"

Changes:
--------
--- /work/SRC/openSUSE:Factory/vifm/vifm.changes        2015-07-14 
17:44:55.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.vifm.new/vifm.changes   2015-08-29 
20:05:09.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Aug 27 16:08:17 UTC 2015 - [email protected]
+
+- new patch to avoid build failure for PowerPC architectures
+  vifm_utils_nix_dynamic_page_size_for_powerpc.patch
+
+-------------------------------------------------------------------

New:
----
  vifm_utils_nix_dynamic_page_size_for_powerpc.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ vifm.spec ++++++
--- /var/tmp/diff_new_pack.rfe0yM/_old  2015-08-29 20:05:09.000000000 +0200
+++ /var/tmp/diff_new_pack.rfe0yM/_new  2015-08-29 20:05:09.000000000 +0200
@@ -37,6 +37,7 @@
 %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 @@
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %configure \

++++++ vifm_utils_nix_dynamic_page_size_for_powerpc.patch ++++++
From: Michel Normand <[email protected]>
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 <[email protected]>
---
 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);

Reply via email to