[SCM] Qt 4 packaging branch, experimental, updated. debian/4.7.4-1-48-g361be8b

Fathi Boudra fabo at alioth.debian.org
Thu Dec 29 10:05:43 UTC 2011


The following commit has been merged in the experimental branch:
commit dcabbacef1dbd268a21ccd48d5e241ce39b13b03
Author: Fathi Boudra <fabo at debian.org>
Date:   Thu Dec 29 12:02:28 2011 +0200

    Add QTBUG-14724_close_orphaned_file_descriptors_after_printing.patch
---
 debian/changelog                                   |    1 +
 ..._orphaned_file_descriptors_after_printing.patch |   37 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 3 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6666dbe..4e576e2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -28,6 +28,7 @@ qt4-x11 (4:4.8.0-0multiarch1) UNRELEASED; urgency=low
       built with -Werror=format-security and trigger an error: format not a
       string literal and no format arguments.
     - fix_qvfb_build.patch - fix qvfb build on Qt 4.8.0
+    - QTBUG-14724_close_orphaned_file_descriptors_after_printing.patch
   * Update debian/compat: bump to 9 for multiarch.
   * Update debian/control:
     - mark Qt libraries as Multi-Arch.
diff --git a/debian/patches/QTBUG-14724_close_orphaned_file_descriptors_after_printing.patch b/debian/patches/QTBUG-14724_close_orphaned_file_descriptors_after_printing.patch
new file mode 100644
index 0000000..9acae10
--- /dev/null
+++ b/debian/patches/QTBUG-14724_close_orphaned_file_descriptors_after_printing.patch
@@ -0,0 +1,37 @@
+Description:
+ QPainter together with QPrinter leaves a lot of temporary files in
+ /tmp with every printout. That is a problem for embedded devices,
+ which have not such a large /tmp-partition. We are using 80 MByte as
+ tmpfs, i.e. in RAM. After some printounts cups deactivates the printer
+ because there is no space to copy the temporary files to /tmp.
+
+ What happened: In QPdfBaseEnginePrivate::openPrintDevice() noone
+ remembers the file descriptor opened by tempFile() which is a call to
+ the cups library to cupsTempFile()
+
+ Later in closePrintDevice the check for fd<0 fails, so no one closes
+ the file descriptor. If you later remove the file, the descriptor is
+ still open and cannot removed until you close the application.
+
+ If you print 20 times and more during your application is running and
+ you print out large files (complicate forms with a lot of elements
+ produces files with 3-4 MByte) your temporary file can be full, but
+ you don't see (with ls) files in it.
+
+Bug: https://bugreports.qt.nokia.com/browse/QTBUG-14724
+Author: Georg Scherzer
+
+---
+ src/gui/painting/qpdf.cpp |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/src/gui/painting/qpdf.cpp
++++ b/src/gui/painting/qpdf.cpp
+@@ -1686,6 +1686,7 @@ bool QPdfBaseEnginePrivate::openPrintDev
+         cupsTempFile = ret.second;
+         outDevice = new QFile();
+         static_cast<QFile *>(outDevice)->open(ret.first, QIODevice::WriteOnly);
++        fd = ret.first;
+ #endif
+ #ifndef QT_NO_LPR
+     } else {
diff --git a/debian/patches/series b/debian/patches/series
index a3075e8..729494d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,6 @@
 # upstream patches
 Add_support_for_QT_USE_DRAG_DISTANCE_env_var.patch
+QTBUG-14724_close_orphaned_file_descriptors_after_printing.patch
 
 # qt-copy patches
 0195-compositing-properties.diff

-- 
Qt 4 packaging



More information about the pkg-kde-commits mailing list