Accepting request 360788 from home:Andreas_Schwab:Factory

- remove-bad-symbol-use.patch: Remove bad use of internal glibc interface
  (bnc#967437)

OBS-URL: https://build.opensuse.org/request/show/360788
OBS-URL: https://build.opensuse.org/package/show/Base:System/blog?expand=0&rev=13
This commit is contained in:
Dirk Mueller 2016-02-22 15:05:36 +00:00 committed by Git OBS Bridge
parent 0b53bae596
commit 18e030ae2b
3 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 22 10:00:13 UTC 2016 - schwab@suse.de
- remove-bad-symbol-use.patch: Remove bad use of internal glibc interface
(bnc#967437)
-------------------------------------------------------------------
Fri Feb 19 16:30:46 UTC 2016 - werner@suse.de

View File

@ -16,8 +16,6 @@
#
%define __filter_GLIBC_PRIVATE 1
Name: blog
Version: 2.17
Release: 0
@ -27,6 +25,7 @@ Group: System/Base
Url: https://build.opensuse.org/package/show/Base:System/blog
Source: showconsole-%{version}.tar.bz2
Source1: blog-rpmlintrc
Patch: remove-bad-symbol-use.patch
BuildRequires: suse-module-tools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: sysvinit-tools:/sbin/blogd
@ -66,6 +65,7 @@ the LSB startproc command.
%prep
%setup -q -n showconsole-%version
%patch -p1
%build
make %{?_smp_mflags} CC="%__cc" \

View File

@ -0,0 +1,22 @@
Index: showconsole-2.17/libconsole/shm.c
===================================================================
--- showconsole-2.17.orig/libconsole/shm.c
+++ showconsole-2.17/libconsole/shm.c
@@ -17,8 +17,6 @@
#include <unistd.h>
#include "libconsole.h"
-extern char *__mktemp(char *) __THROW __nonnull ((1));
-
void* shm_malloc(size_t size, int flags)
{
static char temp[] = "/blogd-XXXXXX";
@@ -27,7 +25,7 @@ void* shm_malloc(size_t size, int flags)
int shmfd = -1;
int ret;
- name = __mktemp(&temp[0]);
+ name = mktemp(&temp[0]);
if (!name)
error("can not generate temporay name");