tag 667420 patch
thanks

Matthias Klose <d...@debian.org> (03/04/2012):
> Package: xdrawchem
> Version: 2.0-1
> Severity: important
> Tags: sid wheezy
> User: debian-...@lists.debian.org
> Usertags: ftbfs-gcc-4.7

The actual error wasn't quoted but the changelog entry in the attached
patch clarifies the issue. I don't intend to NMU.

Mraw,
KiBi.
diff -Nru xdrawchem-2.0/debian/changelog xdrawchem-2.0/debian/changelog
--- xdrawchem-2.0/debian/changelog	2011-05-07 19:26:30.000000000 +0000
+++ xdrawchem-2.0/debian/changelog	2012-04-04 14:46:15.000000000 +0000
@@ -1,3 +1,11 @@
+xdrawchem (2.0-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Fix FTBFS with gcc 4.7 by fixing missing <unistd.h> include for getpid()
+    (Closes: #667420).
+
+ -- Cyril Brulebois <k...@debian.org>  Wed, 04 Apr 2012 14:45:56 +0000
+
 xdrawchem (2.0-1) unstable; urgency=low
 
   * upgraded to the SVN subdir xdrawchem-qt4 published 3 years ago.
diff -Nru xdrawchem-2.0/debian/patches/fix-ftbfs-with-gcc-4.7 xdrawchem-2.0/debian/patches/fix-ftbfs-with-gcc-4.7
--- xdrawchem-2.0/debian/patches/fix-ftbfs-with-gcc-4.7	1970-01-01 00:00:00.000000000 +0000
+++ xdrawchem-2.0/debian/patches/fix-ftbfs-with-gcc-4.7	2012-04-04 14:46:57.000000000 +0000
@@ -0,0 +1,15 @@
+Description: Fix FTBFS with gcc 4.7 by fixing missing <unistd.h> include for getpid().
+Author: Cyril Brulebois <k...@debian.org>
+Bug-Debian: http://bugs.debian.org/667420
+
+--- xdrawchem-2.0.orig/xdrawchem/application.cpp
++++ xdrawchem-2.0/xdrawchem/application.cpp
+@@ -22,6 +22,8 @@
+ #include <QLineEdit>
+ #include <QBitmap>
+ 
++#include <unistd.h>
++
+ #include "defs.h"
+ #include "drawable.h"
+ #include "renderarea.h"
diff -Nru xdrawchem-2.0/debian/patches/series xdrawchem-2.0/debian/patches/series
--- xdrawchem-2.0/debian/patches/series	2011-05-07 17:22:11.000000000 +0000
+++ xdrawchem-2.0/debian/patches/series	2012-04-04 14:46:43.000000000 +0000
@@ -1 +1,2 @@
 debian-changes-2.0-1
+fix-ftbfs-with-gcc-4.7

Attachment: signature.asc
Description: Digital signature

Reply via email to