Package: pavuk
Version: 0.9.35-2.3
Severity: normal
Tags: upstream patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: jaunty

pavuk fails to build with -DFORTIFY_SOURCE=2 flag (which is default in Ubuntu).

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -g -O2  -D_LARGEFILE64_SOURCE 
-D_FILE_OFFSET_BITS=64  -Wall   -pthread -pthread -I/usr/include/gtk-2.0 
-I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 
-I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12   
-DGETTEXT_DEFAULT_CATALOG_DIR="\"/usr/share/locale\"" 
-DDEFAULTRC="\"/etc/pavukrc\""    -MT tools.o -MD -MP -MF ".deps/tools.Tpo" -c 
-o tools.o tools.c; \
        then mv -f ".deps/tools.Tpo" ".deps/tools.Po"; else rm -f 
".deps/tools.Tpo"; exit 1; fi
In file included from /usr/include/fcntl.h:252:0,
                 from config.h:24,
                 from tools.c:7:
In function 'open',
    inlined from 'tl_save_text_file' at tools.c:1729:10:
/usr/include/i386-linux-gnu/bits/fcntl2.h:51:24: error: call to 
'__open_missing_mode' declared with attribute error: open with O_CREAT in 
second argument needs 3 arguments
make[3]: *** [tools.o] Error 1

The following patch was applied in Ubuntu. Please consider it for its inclusion
in Debian.

--- pavuk-0.9.35.orig/src/tools.c
+++ pavuk-0.9.35/src/tools.c
@@ -1726,7 +1726,7 @@
   if(length < 0)
     length = strlen(content);
 
-  if((fd = open(filename, O_WRONLY | O_BINARY | O_CREAT | O_TRUNC), 0644) < 0)
+  if((fd = open(filename, O_WRONLY | O_BINARY | O_CREAT | O_TRUNC, 0644)) < 0)
   {
     xperror(filename);
     return -1;


See also:
https://launchpad.net/ubuntu/+source/pavuk/0.9.35-2.1ubuntu1
https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-D_FORTIFY_SOURCE.3D2

-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise-proposed'), (500, 'precise'), (100, 'precise-backports')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-26-generic (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to