[libmail-cclient-perl] 01/05: Add patch by Nicolas Sévelin-Radiguet to fix compilation with clang (Closes: #742431)
Axel Beckert
abe at deuxchevaux.org
Fri Sep 19 10:45:16 UTC 2014
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository libmail-cclient-perl.
commit bcc6c9966fac14cee86cc0e492d19e9ce076db70
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Fri Sep 19 12:14:27 2014 +0200
Add patch by Nicolas Sévelin-Radiguet to fix compilation with clang (Closes: #742431)
---
debian/changelog | 2 ++
debian/patches/1003_fix_clang_FTBFS_Wreturn-type.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
3 files changed, 19 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index a6c5651..7c74ca3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,8 @@ libmail-cclient-perl (1.12-12) UNRELEASED; urgency=low
* Drop obsolete and outdated emacs "Local variables" from
debian/changelog.
* Bump Standards-Version to 3.9.6 (no changes needed)
+ * Add patch by Nicolas Sévelin-Radiguet to fix compilation with clang.
+ (Closes: #742431)
-- Salvatore Bonaccorso <carnil at debian.org> Sun, 06 Jan 2013 22:03:19 +0100
diff --git a/debian/patches/1003_fix_clang_FTBFS_Wreturn-type.patch b/debian/patches/1003_fix_clang_FTBFS_Wreturn-type.patch
new file mode 100644
index 0000000..09786ee
--- /dev/null
+++ b/debian/patches/1003_fix_clang_FTBFS_Wreturn-type.patch
@@ -0,0 +1,16 @@
+Description: fix FTBFS with clang instead of gcc
+Author: Nicolas Sévelin-Radiguet <nicosr at free.fr>
+Last-Update: 2014-03-23
+Bug-Debian: https://bugs.debian.org/742431
+
+--- a/Cclient.xs
++++ b/Cclient.xs
+@@ -1028,7 +1028,7 @@
+ dSP;
+ SV *sv = mm_callback("diskerror");
+ if (!sv)
+- return;
++ return -1;
+ PUSHMARK(sp);
+ XPUSHs(sv_mortalcopy(get_mailstream_sv(stream, 0)));
+ XPUSHs(sv_2mortal(newSViv(errcode)));
diff --git a/debian/patches/series b/debian/patches/series
index bf76e3f..015f09f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
1001_fix_segfault_from_truncated_pointer.patch
1002_Don-t-use-PERL_POLLUTE-macros.patch
+1003_fix_clang_FTBFS_Wreturn-type.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmail-cclient-perl.git
More information about the Pkg-perl-cvs-commits
mailing list