diff --git a/hplip-newline.patch b/hplip-newline.patch new file mode 100644 index 0000000..a94f67f --- /dev/null +++ b/hplip-newline.patch @@ -0,0 +1,12 @@ +diff -up hplip-3.10.9/prnt/hpcups/HPCupsFilter.cpp.newline hplip-3.10.9/prnt/hpcups/HPCupsFilter.cpp +--- hplip-3.10.9/prnt/hpcups/HPCupsFilter.cpp.newline 2010-12-14 15:10:25.730407116 +0000 ++++ hplip-3.10.9/prnt/hpcups/HPCupsFilter.cpp 2010-12-14 15:11:27.343440547 +0000 +@@ -608,7 +608,7 @@ int HPCupsFilter::processRasterData(cups + WriteBMPHeader (kfp, cups_header.cupsWidth, cups_header.cupsHeight, BLACK_RASTER); + } + +- fprintf(stderr, "PAGE: %d %s", current_page_number, m_argv[4]); ++ fprintf(stderr, "PAGE: %d %s\n", current_page_number, m_argv[4]); + // Iterating through the raster per page + for (int y = 0; y < (int) cups_header.cupsHeight; y++) { + cupsRasterReadPixels (cups_raster, m_pPrinterBuffer, cups_header.cupsBytesPerLine); diff --git a/hplip.spec b/hplip.spec index 83e9a0d..0206dd5 100644 --- a/hplip.spec +++ b/hplip.spec @@ -45,6 +45,7 @@ Patch28: hplip-fab-root-crash.patch Patch29: hplip-addprinter.patch Patch30: hplip-dbus-exception.patch Patch31: hplip-hpaio-segfault.patch +Patch32: hplip-newline.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -280,6 +281,9 @@ done # Prevent hpaio segfaulting on invalid URIs (bug #649092). %patch31 -p1 -b .hpaio-segfault +# Another missing newline in filter output (Ubuntu #418053). +%patch32 -p1 -b .newline + sed -i.duplex-constraints \ -e 's,\(UIConstraints.* \*Duplex\),//\1,' \ prnt/drv/hpcups.drv.in @@ -506,7 +510,8 @@ fi %postun libs -p /sbin/ldconfig %changelog -* Mon Dec 13 2010 Tim Waugh - 3.10.9-9 +* Tue Dec 14 2010 Tim Waugh - 3.10.9-9 +- Another missing newline in filter output (Ubuntu #418053). - Prevent hpaio segfaulting on invalid URIs (bug #649092). - Catch D-Bus exceptions in fax dialog (bug #645316).