From 260e73db8904fc7f5734ddedfe2c91120a77dca4 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Wed, 6 Aug 2014 07:56:13 +0000 Subject: [PATCH] Fix build with clang and newer texinfo Phabric: D478 Submitted by: kan Reviewed by: bapt and i --- devel/ddd/files/patch-ddd-ddd.texi | 34 +++++++++++++++++++++++ devel/ddd/files/patch-ddd-strclass.h | 41 ++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 devel/ddd/files/patch-ddd-ddd.texi create mode 100644 devel/ddd/files/patch-ddd-strclass.h diff --git a/devel/ddd/files/patch-ddd-ddd.texi b/devel/ddd/files/patch-ddd-ddd.texi new file mode 100644 index 000000000000..a0672798eb0a --- /dev/null +++ b/devel/ddd/files/patch-ddd-ddd.texi @@ -0,0 +1,34 @@ +--- ddd/ddd.texi.orig 2009-02-11 17:25:07 +0000 ++++ ddd/ddd.texi +@@ -1,4 +1,4 @@ +-\def\postscript{}\input texinfo @c -*- texinfo -*- ++\def\postscript\input texinfo @c -*- texinfo -*- + @c $Id$ + @c DDD Manual + +@@ -154,7 +154,7 @@ + @c The title page. + @ifnothtml + @titlepage +-@sp -7 ++@sp 7 + @ifnottex + @title Debugging with @value{DDD} + @subtitle User's Guide and Reference Manual +--- ddd/ddd-themes.texi.orig 2009-02-11 17:25:07 +0000 ++++ ddd/ddd-themes.texi +@@ -1,4 +1,4 @@ +-\def\postscript{}\input texinfo @c -*- texinfo -*- ++\def\postscript\input texinfo @c -*- texinfo -*- + @c $Id$ + @c Writing DDD Themes + +@@ -136,7 +136,7 @@ + @c The title page. + @ifnothtml + @titlepage +-@sp -7 ++@sp 7 + @ifnottex + @title Writing @value{DDD} Themes + @subtitle User's Guide and Reference Manual diff --git a/devel/ddd/files/patch-ddd-strclass.h b/devel/ddd/files/patch-ddd-strclass.h new file mode 100644 index 000000000000..c37be0ed534e --- /dev/null +++ b/devel/ddd/files/patch-ddd-strclass.h @@ -0,0 +1,41 @@ +--- ddd/strclass.h.orig 2009-02-11 17:25:06 +0000 ++++ ddd/strclass.h +@@ -811,9 +811,9 @@ + const regex& sep); + + friend string common_prefix(const string& x, const string& y, +- int startpos = 0); ++ int startpos); + friend string common_suffix(const string& x, const string& y, +- int startpos = -1); ++ int startpos); + friend string replicate(char c, int n); + friend string replicate(const string& y, int n); + friend string join(const string *src, int n, const string& sep); +@@ -864,8 +864,8 @@ + friend std::istream& operator>>(std::istream& s, string& x); + + friend int readline(std::istream& s, string& x, +- char terminator = '\n', +- int discard_terminator = 1); ++ char terminator, ++ int discard_terminator); + + // Status + unsigned int length() const; +@@ -892,6 +892,15 @@ + typedef string strTmp; // for backward compatibility + #endif + ++string common_prefix(const string& x, const string& y, ++ int startpos = 0); ++string common_suffix(const string& x, const string& y, ++ int startpos = -1); ++ ++int readline(std::istream& s, string& x, ++ char terminator = '\n', ++ int discard_terminator = 1); ++ + // Other externs + + int compare(const string& x, const string& y);