Hello community,

here is the log from the commit of package numatop for openSUSE:Factory checked 
in at 2018-11-29 23:00:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/numatop (Old)
 and      /work/SRC/openSUSE:Factory/.numatop.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "numatop"

Thu Nov 29 23:00:21 2018 rev:6 rq:652394 version:1.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/numatop/numatop.changes  2016-03-31 
13:03:09.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.numatop.new.19453/numatop.changes       
2018-11-29 23:00:29.815499278 +0100
@@ -1,0 +2,5 @@
+Mon Nov 19 20:56:43 UTC 2018 - Cristian Rodríguez <crrodrig...@opensuse.org>
+
+- numatop-ncursesw.patch: Switch to ncursesw6 
+
+-------------------------------------------------------------------

New:
----
  numatop-ncursesw.patch

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

Other differences:
------------------
++++++ numatop.spec ++++++
--- /var/tmp/diff_new_pack.ZJtgIl/_old  2018-11-29 23:00:30.451498494 +0100
+++ /var/tmp/diff_new_pack.ZJtgIl/_new  2018-11-29 23:00:30.479498460 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package numatop
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -25,9 +25,10 @@
 Url:            https://01.org/numatop
 Source0:        
https://01.org/sites/default/files/%{name}_linux_%{version}.tar.gz
 BuildRequires:  libnuma-devel
-BuildRequires:  ncurses-devel
+BuildRequires:  pkgconfig(ncursesw)
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 ExclusiveArch:  x86_64
+Patch0:         numatop-ncursesw.patch
 
 %description
 NumaTOP is an observation tool for runtime memory locality characterization
@@ -41,9 +42,11 @@
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
-make %{?_smp_mflags} CFLAGS="%{optflags}"
+export CFLAGS="%{optflags}"
+make %{?_smp_mflags}
 
 %install
 mkdir -p %{buildroot}/%{_bindir}

++++++ numatop-ncursesw.patch ++++++
Index: numatop/Makefile
===================================================================
--- numatop.orig/Makefile
+++ numatop/Makefile
@@ -4,9 +4,9 @@ MANDIR = /usr/share/man/man8
 PROG = numatop
 CC = gcc
 LD = gcc
-CFLAGS = -g -Wall -O2
+CFLAGS += -pthread $(shell pkg-config --cflags ncursesw) -g -Wall -O2
 LDFLAGS = -g
-LDLIBS = -lncurses -lpthread -lnuma
+LDLIBS = $(shell pkg-config --libs ncursesw) -lnuma
 
 COMMON_OBJS = cmd.o disp.o lwp.o numatop.o page.o perf.o \
        proc.o reg.o util.o win.o
@@ -19,7 +19,7 @@ INTEL_OBJS = wsm.o snb.o nhm.o
 all: $(PROG)
 
 $(PROG): $(COMMON_OBJS) $(OS_OBJS) $(INTEL_OBJS)
-       $(LD) $(LDFLAGS) -o $@ $(COMMON_OBJS) $(OS_OBJS) $(INTEL_OBJS) $(LDLIBS)
+       $(LD) $(CFLAGS) $(LDFLAGS) -o $@ $(COMMON_OBJS) $(OS_OBJS) 
$(INTEL_OBJS) $(LDLIBS)
 
 %.o: ./common/%.c ./common/include/*.h ./common/include/os/*.h
        $(CC) $(CFLAGS) -o $@ -c $<
Index: numatop/common/numatop.c
===================================================================
--- numatop.orig/common/numatop.c
+++ numatop/common/numatop.c
@@ -42,6 +42,8 @@
 #include <sys/stat.h>
 #include <signal.h>
 #include <libgen.h>
+#include <locale.h>
+
 #include "include/types.h"
 #include "include/util.h"
 #include "include/proc.h"
@@ -75,6 +77,7 @@ main(int argc, char *argv[])
        boolean_t locked = B_FALSE;
        char c;
 
+    setlocale(LC_ALL, "");
        if (!os_authorized()) {
                return (1);             
        }

Reply via email to