diff -u cpu-1.4.3/debian/patches/00list cpu-1.4.3/debian/patches/00list --- cpu-1.4.3/debian/patches/00list +++ cpu-1.4.3/debian/patches/00list @@ -4,0 +5 @@ +add_flag_for_O_CREAT diff -u cpu-1.4.3/debian/changelog cpu-1.4.3/debian/changelog --- cpu-1.4.3/debian/changelog +++ cpu-1.4.3/debian/changelog @@ -1,3 +1,10 @@ +cpu (1.4.3-11ubuntu1) intrepid; urgency=low + + * Rebuild for cracklib2 transition (LP: 254788). + * Add add_flag_for_O_CREAT.dpatch patch, fix FTBFS. + + -- Devid Antonio Filoni Wed, 06 Aug 2008 21:43:29 +0200 + cpu (1.4.3-11) unstable; urgency=low * Apply patch from Michael Bienia to correctly handle CFLAGS diff -u cpu-1.4.3/debian/control cpu-1.4.3/debian/control --- cpu-1.4.3/debian/control +++ cpu-1.4.3/debian/control @@ -1,7 +1,8 @@ Source: cpu Section: admin Priority: optional -Maintainer: Guido Trotter +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Guido Trotter Uploaders: Paul J Stevens Build-Depends: debhelper (>= 4.1.6), dpatch, libldap2-dev, cracklib2-dev Standards-Version: 3.7.3 only in patch2: unchanged: --- cpu-1.4.3.orig/debian/patches/add_flag_for_O_CREAT.dpatch +++ cpu-1.4.3/debian/patches/add_flag_for_O_CREAT.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## add_flag_for_O_CREAT.dpatch by Devid Filoni +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix FTBFS in Intrepid caused by -D_FORTIFY_SOURCE=2 flag. + +@DPATCH@ +diff -urNad cpu-1.4.3~/src/util/fileaction.c cpu-1.4.3/src/util/fileaction.c +--- cpu-1.4.3~/src/util/fileaction.c 2003-02-18 00:25:37.000000000 +0100 ++++ cpu-1.4.3/src/util/fileaction.c 2008-08-06 21:49:42.000000000 +0200 +@@ -197,7 +197,7 @@ + } + close (fd1); + +- if ((fd2 = open (homefile, O_CREAT | O_EXCL | O_WRONLY)) == -1) ++ if ((fd2 = open (homefile, O_CREAT | O_EXCL | O_WRONLY, S_IRUSR|S_IWUSR)) == -1) + { + perror ("open"); + free (data);