Skip to content

Commit

Permalink
libcupsfilters 2.0b4 Release
Browse files Browse the repository at this point in the history
Needs QPDF 11 now!
  • Loading branch information
tillkamppeter committed Feb 23, 2023
1 parent 381636a commit 9d64b80
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 18 deletions.
33 changes: 32 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
# CHANGES - OpenPrinting libcupsfilters v2.0b3 - 2023-01-31
# CHANGES - OpenPrinting libcupsfilters v2.0b4 - 2023-02-23

## CHANGES IN V2.0b4 (23rd February 2023)

- Do not free `cf_image_t` data structure in `_cfImageZoomDelete()`
(cups-filters issue #507)
The library-internal `_cfImageZoom...()` API does not create the
`cf_image_t` data structure, so it should not free it, to avoid
double-free crashes. This made the `cfFilterImageToRaster()` filter
function (`imagetoraster` CUPS filter) crash.

- `cfImageOpenFP()`: Removed leftover `HAVE_LIBZ` conditionals
In the 3rd beta we have removed the dependency on libz from the
build system as there is no explicit dependency on it in
libcupsfilters. Having forgotten to remove `HAVE_LIBZ` from the
conditionals in `cfImageOpenFP()` PNG images were rendered as blank
pages. See cups-filters issue #465.

- Compatibility with QPDF 11 and later
* Replaced deprecated `PointerHolder` with `shared_ptr` (PR #13)
* `cfFilterPDFToPDF()`: Replaced deprecated QPDF function name
`replaceOrRemoveKey` by `replaceKey`.
* Set `CXXFLAGS="-DPOINTERHOLDER_TRANSITION=0"` to silence QPDF warnings.

- Coverity check done by Zdenek Dohnal for the inclusion of libppd in
Fedora and Red Hat. Zdenek has fixed all the issues: Missing `free()`,
files not closed, potential string overflows, ... Thanks a lot!

- `configure.ac`: Change deprecated `AC_PROG_LIBTOOL` for `LT_INIT` (PR #12)

- `INSTALL`: Explain dependencies (PR #10)


## CHANGES IN V2.0b3 (31st January 2023)

Expand Down
37 changes: 23 additions & 14 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INSTALL - OpenPrinting libcupsfilters v2.0b3 - 2023-01-31
INSTALL - OpenPrinting libcupsfilters v2.0b4 - 2023-02-23
---------------------------------------------------------

This file describes how to compile and install libcupsfilters from
Expand All @@ -21,25 +21,33 @@ BEFORE YOU BEGIN
pdftoraster, pclmtoraster, pwgtopdf and pdftopdf written in C++)
- make program
- POSIX-compliant shell (/bin/sh)
- autoconf, autopoint, automake and libtool for ./autogen.sh to generate compilation scripts
- autoconf, autopoint, automake and libtool for ./autogen.sh to generate
compilation scripts
- CUPS devel files of version 2.2.2 or higher
- Poppler (with --enable-poppler-cpp options) devel files for pdftoraster
- fontconfig devel files for texttopdf
- liblcms (liblcms2 recommended) devel files for color management in functions which use
rasters (pdftoraster, pwgtoraster, pwgtopdf)
- QPDF devel files for PDF related functions (pwgtopdf, pdftopdf, bannertopdf) and pclmtoraster
- liblcms (liblcms2 recommended) devel files for color management in
functions which use rasters (pdftoraster, pwgtoraster, pwgtopdf)
- QPDF (11.0 or higher) devel files for PDF related functions (pwgtopdf,
pdftopdf, bannertopdf) and pclmtoraster

Then at least one of the following binaries is required for supporting non-PDF printers:
- Ghostscript 10.0.0 or higher built with support for output devices - "pdfwrite", "ps2write", "cups",
"pwgraster", "appleraster", "pclm", "pclm8", "pdfimage24", "pdfimage8", "pxlcolor", "pxlmono"
Then at least one of the following binaries is required for supporting
non-PDF printers:

- Ghostscript 10.0.0 or higher built with support for output devices -
"pdfwrite", "ps2write", "cups", "pwgraster", "appleraster", "pclm",
"pclm8", "pdfimage24", "pdfimage8", "pxlcolor", "pxlmono"

or

- MuPDF at version 1.15 to prevent bugs

Libcupsfilters provides an additional features, which are optional for the compilation,
but the library misses several file format support/feature support without them:
- libdbus devel files for dBUS communication with colord for color profiles support
Libcupsfilters provides an additional features, which are optional
for the compilation, but the library misses several file format
support/feature support without them:

- libdbus devel files for dBUS communication with colord for color
profiles support
- libjpeg devel files for JPEG file support
- libpng devel files for PNG file support
- libtiff devel files for TIFF file support
Expand Down Expand Up @@ -131,10 +139,11 @@ INSTALLING THE SOFTWARE

RUNTIME DEPENDENCIES

There are several packages which are required to be installed and working to get full capabalities
of software using cupsfilters:
There are several packages which are required to be installed and
working to get full capabalities of software using cupsfilters:

- in case libcupsfilters is built dBUS support, a dBUS provider (dbus-broker/dbus-daemon) and colord
- in case libcupsfilters is built dBUS support, a dBUS provider
(dbus-broker/dbus-daemon) and colord
have to be installed and running to get color profile support
- Ghostscript or MuPDF or both (based on your configuration)
- a monospace font (f.e. liberation-mono-fonts) for texttopdf
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenPrinting libcupsfilters v2.0b3 - 2023-01-31
# OpenPrinting libcupsfilters v2.0b4 - 2023-02-23

Looking for compile instructions? Read the file "INSTALL"
instead...
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AC_PREREQ([2.65])
# ====================
# Version informations
# ====================
AC_INIT([libcupsfilters], [2.0b3], [https://github.com/OpenPrinting/libcupsfilters/issues], [libcupsfilters], [https://github.com/OpenPrinting/libcupsfilters/])
AC_INIT([libcupsfilters], [2.0b4], [https://github.com/OpenPrinting/libcupsfilters/issues], [libcupsfilters], [https://github.com/OpenPrinting/libcupsfilters/])
libcupsfilters_version="AC_PACKAGE_VERSION"
libcupsfilters_version_major="`echo AC_PACKAGE_VERSION | awk -F. '{print $1}'`"
libcupsfilters_version_major="`echo AC_PACKAGE_VERSION | awk -F. '{printf("%d\n",$2);}'`"
Expand Down Expand Up @@ -241,7 +241,7 @@ AS_IF([test x"$lcms2" = "xno"], [
AC_DEFINE([USE_LCMS1], [1], [Defines if use lcms1])
])
PKG_CHECK_MODULES([FONTCONFIG], [fontconfig >= 2.0.0])
PKG_CHECK_MODULES([LIBQPDF], [libqpdf >= 10.3.2])
PKG_CHECK_MODULES([LIBQPDF], [libqpdf >= 11.0.0])

# =================
# Check for Poppler
Expand Down

0 comments on commit 9d64b80

Please sign in to comment.