Dr. Werner Fink 2011-11-22 13:44:00 +00:00 committed by Git OBS Bridge
parent d90811f9e9
commit c26c5b4591
3 changed files with 23 additions and 0 deletions

16
procps-3.2.8-tinfo.dif Normal file
View File

@ -0,0 +1,16 @@
--- Makefile
+++ Makefile 2011-11-22 13:36:47.115145920 +0000
@@ -117,6 +117,13 @@ ifneq ($(MAKECMDGOALS),tar)
ifneq ($(MAKECMDGOALS),extratar)
ifneq ($(MAKECMDGOALS),beta)
+# This macro gcc_library checks for a specifig library
+gcc_library = $(shell if $(CC) dummy.c -o /dev/null -l$(1:lib%=%) > /dev/null 2>&1 ; then echo "-l$(1:lib%=%)"; else echo "$(2)"; fi)
+
+ifneq ($(call gcc_library,libtinfo),)
+CURSES += -ltinfo
+endif
+
# Unlike the kernel one, this check_gcc goes all the way to
# producing an executable. There might be a -m64 that works
# until you go looking for a 64-bit curses library.

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Nov 22 13:43:26 UTC 2011 - werner@suse.de
- Add patch to use libtinfo if available
-------------------------------------------------------------------
Thu Oct 20 09:38:08 UTC 2011 - idonmez@suse.com

View File

@ -78,6 +78,7 @@ Patch39: procps-3.2.8-implement-pattern-option.diff
Patch40: procps-3.2.8-read-sysctls-also-from-boot-sysctl.conf-kernelversion.diff
Patch41: procps-3.2.7-petabytes.patch
Patch42: procps-3.2.7-large_pcpu.patch
Patch43: procps-3.2.8-tinfo.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -148,6 +149,7 @@ Authors:
%patch40 -p1
%patch41 -p1
%patch42 -p1
%patch43
%build
make %{?_smp_mflags} CFLAGS="-Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $RPM_OPT_FLAGS -pipe" \