Hello community, here is the log from the commit of package libcap1 for openSUSE:Factory checked in at 2014-09-28 19:53:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libcap1 (Old) and /work/SRC/openSUSE:Factory/.libcap1.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libcap1" Changes: -------- --- /work/SRC/openSUSE:Factory/libcap1/libcap1.changes 2011-10-04 18:13:11.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libcap1.new/libcap1.changes 2014-09-28 19:53:57.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Sep 19 20:46:38 UTC 2014 - [email protected] + +- feature-tests.patch: fix bogus uses of feature test macros + +------------------------------------------------------------------- New: ---- feature-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libcap1.spec ++++++ --- /var/tmp/diff_new_pack.IvpSyK/_old 2014-09-28 19:53:58.000000000 +0200 +++ /var/tmp/diff_new_pack.IvpSyK/_new 2014-09-28 19:53:58.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package libcap1 # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,16 +15,13 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: libcap1 +Summary: Library for Capabilities (linux-privs) Support License: BSD-3-Clause Group: System/Libraries -AutoReqProv: on -Summary: Library for Capabilities (linux-privs) Support Version: 1.10 -Release: 45 +Release: 0 Source: ftp://ftp.de.kernel.org/pub/linux/libs/security/linux-privs/old/kernel-2.4/libcap-1.10.tar.bz2 Source2: baselibs.conf Patch: libcap-%{version}.diff @@ -35,6 +32,7 @@ Patch6: libcap-invalid-free-fix.diff Patch7: libcap-array-range-fix.diff Patch8: libcap-no-version-check.diff +Patch9: feature-tests.patch #URL: http://www.kernel.org/ #Prefix: /usr BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -62,6 +60,7 @@ %patch6 %patch7 %patch8 +%patch9 -p1 %build lib=%{_lib} make %{?_smp_mflags} LDFLAGS= COPTFLAG="$RPM_OPT_FLAGS" CC="%{__cc}" ++++++ feature-tests.patch ++++++ Index: libcap-1.10/doc/cap_get_proc.3 =================================================================== --- libcap-1.10.orig/doc/cap_get_proc.3 +++ libcap-1.10/doc/cap_get_proc.3 @@ -15,8 +15,6 @@ arbitrary processes .br .BI "int cap_set_proc(cap_t " cap_p ); .sp -.B #undef _POSIX_SOURCE -.br .B #include <sys/capability.h> .sp .BI "cap_t capgetp(pid_t " pid ", cap_t " cap_d ); Index: libcap-1.10/doc/capget.2 =================================================================== --- libcap-1.10.orig/doc/capget.2 +++ libcap-1.10/doc/capget.2 @@ -6,8 +6,6 @@ .SH NAME capget, capset \- set/get process capabilities .SH SYNOPSIS -.B #undef _POSIX_SOURCE -.br .B #include <sys/capability.h> .sp .BI "int capget(cap_user_header_t " header ", cap_user_data_t " data ); Index: libcap-1.10/libcap/include/sys/capability.h =================================================================== --- libcap-1.10.orig/libcap/include/sys/capability.h +++ libcap-1.10/libcap/include/sys/capability.h @@ -92,20 +92,15 @@ cap_t cap_from_text(const char *); char * cap_to_text(cap_t, ssize_t *); /* - * Linux capability system calls: defined in libcap but only available - * if the following _POSIX_SOURCE is _undefined_ + * Linux capability system calls: defined in libcap */ -#if !defined(_POSIX_SOURCE) - extern int capset(cap_user_header_t header, cap_user_data_t data); extern int capget(cap_user_header_t header, const cap_user_data_t data); extern int capgetp(pid_t pid, cap_t cap_d); extern int capsetp(pid_t pid, cap_t cap_d); extern char const *_cap_names[]; -#endif /* !defined(_POSIX_SOURCE) */ - #ifdef __cplusplus } #endif Index: libcap-1.10/progs/getpcaps.c =================================================================== --- libcap-1.10.orig/progs/getpcaps.c +++ libcap-1.10/progs/getpcaps.c @@ -11,7 +11,6 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> -#undef _POSIX_SOURCE #include <sys/capability.h> static void usage(void) Index: libcap-1.10/progs/setpcaps.c =================================================================== --- libcap-1.10.orig/progs/setpcaps.c +++ libcap-1.10/progs/setpcaps.c @@ -11,7 +11,6 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> -#undef _POSIX_SOURCE #include <sys/capability.h> #include <unistd.h> Index: libcap-1.10/progs/sucap.c =================================================================== --- libcap-1.10.orig/progs/sucap.c +++ libcap-1.10/progs/sucap.c @@ -8,18 +8,18 @@ * privileges. All environment variables are inherited. */ +#define _BSD_SOURCE 1 #include <sys/types.h> #include <errno.h> #include <stdio.h> -#undef _POSIX_SOURCE #include <sys/capability.h> #include <pwd.h> -#define __USE_BSD #include <grp.h> #include <unistd.h> #include <sys/wait.h> #include <errno.h> #include <string.h> +#include <stdlib.h> static void usage(void) { -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
