From c6b435600b90e871b533d601274ce5ec0a9752cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Tue, 24 Jan 2017 16:40:36 +0100 Subject: [PATCH] pthread_once.3p: fix return type of initialize_random() function - resolves #1415757 --- man-pages-posix-2013-a-pthread_once.patch | 35 +++++++++++++++++++++++ man-pages.spec | 10 +++++-- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 man-pages-posix-2013-a-pthread_once.patch diff --git a/man-pages-posix-2013-a-pthread_once.patch b/man-pages-posix-2013-a-pthread_once.patch new file mode 100644 index 0000000..91e9a1b --- /dev/null +++ b/man-pages-posix-2013-a-pthread_once.patch @@ -0,0 +1,35 @@ +From 0409c3370ddd08cec10586f6f52fe1fbe3c717ef Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Nikola=20Forr=C3=B3?= +Date: Tue, 24 Jan 2017 16:35:02 +0100 +Subject: [PATCH] pthread_once.3p: fix return type of initialize_random() + function + +--- + man-pages-posix-2013-a/man3p/pthread_once.3p | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/man-pages-posix-2013-a/man3p/pthread_once.3p b/man-pages-posix-2013-a/man3p/pthread_once.3p +index 316b1e9..db83d63 100644 +--- a/man-pages-posix-2013-a/man3p/pthread_once.3p ++++ b/man-pages-posix-2013-a/man3p/pthread_once.3p +@@ -86,7 +86,7 @@ on entry to a routine, as follows: + .nf + \fB + static int random_is_initialized = 0; +-extern int initialize_random(); ++extern void initialize_random(); + .P + int random_function() + { +@@ -125,7 +125,7 @@ becomes: + \fB + #include + static pthread_once_t random_is_initialized = PTHREAD_ONCE_INIT; +-extern int initialize_random(); ++extern void initialize_random(); + .P + int random_function() + { +-- +2.7.4 + diff --git a/man-pages.spec b/man-pages.spec index 5efa5c5..f4b26f6 100644 --- a/man-pages.spec +++ b/man-pages.spec @@ -7,7 +7,7 @@ Summary: Linux kernel and C library user-space interface documentation Name: man-pages Version: 4.09 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL+ and GPLv2+ and BSD and MIT and Copyright only and IEEE Group: Documentation URL: http://www.kernel.org/doc/man-pages/ @@ -26,7 +26,8 @@ BuildArch: noarch ## Patches ## # POSIX man pages -# Currently none +# resolves: #1415757 +Patch0: man-pages-posix-2013-a-pthread_once.patch # Regular man pages # resolves: #650985 @@ -39,6 +40,7 @@ A large collection of manual pages from the Linux Documentation Project (LDP). %prep %setup -q -a 1 -a 2 +%patch0 -p1 %patch21 -p1 # rename posix README so we don't have conflict @@ -76,6 +78,10 @@ popd %{_mandir}/man*/* %changelog +* Tue Jan 24 2017 Nikola Forró - 4.09-2 +- pthread_once.3p: fix return type of initialize_random() function + resolves #1415757 + * Tue Dec 13 2016 Nikola Forró - 4.09-1 - update to 4.09 resolves #1403813