[Pkg-cyrus-sasl2-commits] r129 - in /cyrus-sasl-2.1/trunk/debian/patches: 0012_xopen_crypt_prototype.dpatch 00list

fabbe at users.alioth.debian.org fabbe at users.alioth.debian.org
Wed Nov 8 12:52:27 CET 2006


Author: fabbe
Date: Wed Nov  8 12:52:27 2006
New Revision: 129

URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/?sc=1&rev=129
Log:
Avoid segfault on architectures where size of pointer is greater than size of
integer (ia64, amd64). Patch by Dann Frazier.

Added:
    cyrus-sasl-2.1/trunk/debian/patches/0012_xopen_crypt_prototype.dpatch   (with props)
Modified:
    cyrus-sasl-2.1/trunk/debian/patches/00list

Added: cyrus-sasl-2.1/trunk/debian/patches/0012_xopen_crypt_prototype.dpatch
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/patches/0012_xopen_crypt_prototype.dpatch?rev=129&op=file
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/patches/0012_xopen_crypt_prototype.dpatch (added)
+++ cyrus-sasl-2.1/trunk/debian/patches/0012_xopen_crypt_prototype.dpatch Wed Nov  8 12:52:27 2006
@@ -1,0 +1,24 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 0012_xopen_crypt_prototype.dpatch by  <dannf at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: When _XOPEN_SOURCE is defined, the subsequent #include <unistd.h>
+## DP: will define a correct function prototype for the crypt function.
+## DP: This avoids segfaults on architectures where the size of a pointer
+## DP: is greater than the size of an integer (ia64 and amd64 are examples).
+## DP: This may be detected by looking for build log lines such as the
+## DP: following:
+## DP: auth_shadow.c:183: warning: implicit declaration of function ‘crypt’
+## DP: auth_shadow.c:183: warning: cast to pointer from integer of different
+## DP: size
+
+
+ at DPATCH@
+diff -urNad trunk~/saslauthd/auth_shadow.c trunk/saslauthd/auth_shadow.c
+--- trunk~/saslauthd/auth_shadow.c	2006-05-29 22:52:42.000000000 +0300
++++ trunk/saslauthd/auth_shadow.c	2006-11-08 13:44:23.000000000 +0200
+@@ -1,3 +1,4 @@
++#define _XOPEN_SOURCE
+ #define PWBUFSZ 256 /***SWB***/
+ 
+ /* MODULE: auth_shadow */

Propchange: cyrus-sasl-2.1/trunk/debian/patches/0012_xopen_crypt_prototype.dpatch
------------------------------------------------------------------------------
    svn:executable = *

Modified: cyrus-sasl-2.1/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/patches/00list?rev=129&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/patches/00list (original)
+++ cyrus-sasl-2.1/trunk/debian/patches/00list Wed Nov  8 12:52:27 2006
@@ -9,3 +9,4 @@
 0009_sasldb_al
 0010_maintainer_mode
 0011_saslauthd_ac_prog_libtool
+0012_xopen_crypt_prototype




More information about the Pkg-cyrus-sasl2-commits mailing list