- Update to release 11.2

OBS-URL: https://build.opensuse.org/package/show/devel:tools/cdecl?expand=0&rev=51
This commit is contained in:
Jan Engelhardt 2021-10-03 16:58:10 +00:00 committed by Git OBS Bridge
parent 14005595b6
commit 9c747603c5
5 changed files with 45 additions and 4 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b21ccf86860739399b0bc9cd52450ce572b18eb53b06446c2c545eb564927d0b
size 1181881

3
cdecl-11.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f2df7c410a52efaded9db4fcba4924dcf81ca5cb71dc8dd8c3ae70dbff507d7
size 1184770

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sun Oct 3 16:16:55 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Update to release 11.2
* const_cast, dynamic_cast, and reinterpret_cast now perform
additional checks.
- Add unbreak-gnulib.diff
-------------------------------------------------------------------
Fri Oct 1 22:22:52 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -17,7 +17,7 @@
Name: cdecl
Version: 11.1
Version: 11.2
Release: 0
Summary: C/C++ function declaration translator
License: GPL-3.0-or-later
@ -25,6 +25,7 @@ Group: Development/Languages/C and C++
URL: https://github.com/paul-j-lucas/cdecl/
Source: https://github.com/paul-j-lucas/cdecl/releases/download/cdecl-%version/cdecl-%version.tar.gz
Patch1: unbreak-gnulib.diff
BuildRequires: bison
BuildRequires: flex
BuildRequires: ncurses-devel

32
unbreak-gnulib.diff Normal file
View File

@ -0,0 +1,32 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2021-10-03 18:24:41.647102516 +0200
Resolve a build failure due to unexpanded macros.
(string.in.h is missing the fallback definition for _GL_*
that are already present in stdlib.in.h.)
---
lib/string.in.h | 11 +++++++++++
1 file changed, 11 insertions(+)
Index: cdecl-11.2/lib/string.in.h
===================================================================
--- cdecl-11.2.orig/lib/string.in.h
+++ cdecl-11.2/lib/string.in.h
@@ -420,6 +420,17 @@ _GL_WARN_ON_USE (strchrnul, "strchrnul i
# endif
#endif
+#ifndef _GL_ATTRIBUTE_MALLOC
+# if __GNUC__ >= 3 || defined __clang__
+# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
+# else
+# define _GL_ATTRIBUTE_MALLOC
+# endif
+#endif
+#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
+# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
+#endif
+
/* Duplicate S, returning an identical malloc'd string. */
#if @GNULIB_STRDUP@
# if @REPLACE_STRDUP@