[libsdl-perl] 03/04: added patch to fix Inline::C failure on i386 (Closes: #730549)

dod at debian.org dod at debian.org
Thu Jan 9 18:23:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libsdl-perl.

commit e3963fafb01cf49830d740b1ff706db3059e323f
Author: Dominique Dumont <dod at debian.org>
Date:   Thu Jan 9 18:47:40 2014 +0100

    added patch to fix Inline::C failure on i386 (Closes: #730549)
---
 debian/patches/fix-inline-ccflags | 24 ++++++++++++++++++++++++
 debian/patches/series             |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/fix-inline-ccflags b/debian/patches/fix-inline-ccflags
new file mode 100644
index 0000000..798757a
--- /dev/null
+++ b/debian/patches/fix-inline-ccflags
@@ -0,0 +1,24 @@
+Description:Fix inline ccflags
+ When Inline::C,  CFLAGS is overridden with the flags provided by
+ 'sdl-config --cflags'. This command does not provide the flags used
+ to compile Perl. In Debian case, omitting the flags used to compile
+ Perl will lead to exceution failure when using Inline::C on i386.
+ .
+ This patch uses Inline::C CFLAGSEX to extend the original Perl compilation
+ flags with sdl flags. 
+ .
+ Thamks to Niko Tyni for the analysis and fix.
+Bug:https://github.com/PerlGameDev/SDL_Manual/issues/15
+Bug-Debian:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730549
+Author:dod
+--- a/lib/SDL.pm
++++ b/lib/SDL.pm
+@@ -112,7 +112,7 @@
+ 			$path = $find if -e $find } @INC;
+     return {
+ 	LIBS => $libs,
+-	CCFLAGS => $cflags,
++	CCFLAGSEX => $cflags,
+ 	TYPEMAPS => $path,
+ 	AUTO_INCLUDE => '#include <SDL.h>'
+     };
diff --git a/debian/patches/series b/debian/patches/series
index 011f7f8..fdb98a9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ fix_whatis_entries
 fix_spelling
 fix_api_spelling
 hardcode-default-font
+fix-inline-ccflags

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsdl-perl.git



More information about the Pkg-perl-cvs-commits mailing list