SHA256
1
0
forked from pool/kbuild

Accepting request 495832 from devel:tools:building

1

OBS-URL: https://build.opensuse.org/request/show/495832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kbuild?expand=0&rev=34
This commit is contained in:
Dominique Leuenberger 2017-05-27 11:07:58 +00:00 committed by Git OBS Bridge
commit 683873b352
3 changed files with 24 additions and 1 deletions

14
kbuild-gcc7.patch Normal file
View File

@ -0,0 +1,14 @@
Index: kbuild-0.1.9998svn2814/src/kash/mystring.h
===================================================================
--- kbuild-0.1.9998svn2814.orig/src/kash/mystring.h
+++ kbuild-0.1.9998svn2814/src/kash/mystring.h
@@ -44,9 +44,7 @@ void scopyn(const char *, char *, ssize_
int prefix(const char *, const char *);
int number(struct shinstance *, const char *);
int is_number(const char *);
-#ifdef _MSC_VER
size_t strlcpy(char *dst, const char *src, size_t siz);
-#endif
#define equal(s1, s2) (strcmp(s1, s2) == 0)
#define scopy(s1, s2) ((void)strcpy(s2, s1))

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 17 16:38:25 UTC 2017 - dimstar@opensuse.org
- Add kbuild-gcc7.patch: Fix build with GCC7 (boo#1039375): we also
need the definition of strlcpy on Linux; only *BSD has this by
default.
-------------------------------------------------------------------
Sat Nov 12 13:58:15 CET 2016 - ro@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package kbuild
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -43,6 +43,7 @@ Patch7: kbuild-armv7l.diff
Patch8: kbuild-wrong-memset.patch
Patch9: ppc64le.patch
Patch10: aarch64.patch
Patch11: kbuild-gcc7.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -69,6 +70,7 @@ The goals of the kBuild framework:
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"