After upgrading media-libs/lcms to version 2.13, my HP OfficeJetPro 8715 printer (using net-print/hplip) started printing pages with a dark gray background instead of leaving the background white. I tried this with a text document written with LibreOffice and with a PDF file produced with xelatex. Downgrading lcms to version 2.12 makes the issue disappear. Another user reported a similar issue with another HP printer, which was also solved by downgrading lcms (see https://archives.gentoo.org/gentoo-user/message/e0d5f5be9e54d5967d6e80457ea1d15e). Reproducible: Always Steps to Reproduce: 1. Create a text document with LibreOffice Writer 2. Print it using an HP OfficeJetPro 8715 printer Actual Results: The background of the printed page is dark gray Expected Results: The background of the page should have been white Output from emerge --info Portage 3.0.30 (python 3.9.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.1, glibc-2.34-r7, 5.15.18 x86_64) ================================================================= System uname: Linux-5.15.18-x86_64-Intel-R-_Core-TM-_i9-9900K_CPU_@_3.60GHz-with-glibc2.34 KiB Mem: 32784160 total, 20117188 free KiB Swap: 112507892 total, 112498708 free Timestamp of repository gentoo: Tue, 01 Feb 2022 06:30:01 +0000 Head commit of repository gentoo: 7c8658852f6514c4492b8d9f0a8bedd63449684d sh bash 5.1_p16 ld GNU ld (Gentoo 2.37_p1 p2) 2.37 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r6::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.6.15-r1::gentoo, 3.9.10-r1::gentoo, 3.10.2-r1::gentoo, 3.11.0_alpha4::gentoo dev-lang/rust-bin: 1.58.1::gentoo dev-util/cmake: 3.22.2::gentoo dev-util/meson: 0.60.3::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.10::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.37_p1-r2::gentoo sys-devel/binutils-config: 5.4::gentoo sys-devel/clang: 13.0.0::gentoo sys-devel/gcc: 11.2.1_p20220115::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/llvm: 13.0.0::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.16::gentoo (virtual/os-headers) sys-libs/glibc: 2.34-r7::gentoo Repositories: gentoo location: /var/portage/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: local location: /var/portage/repos/local masters: gentoo crossdev location: /var/portage/repos/portage-crossdev masters: gentoo priority: 10 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: https://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 Installed sets: @needed-from-outside-portage, @virtualbox ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/angband/gamedata/ /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/var/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -march=native -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=native -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j16" PKGDIR="/var/portage/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi activities alsa amd64 bash-completion bluetooth branding bzip2 c++0x cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gui iconv icu jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc lzma mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf plasma png policykit ppds pulseaudio qml qt5 readline scanner sdl seccomp spell split-usr ssl startup-notification svg threads tiff truetype udev udisks unicode upower usb vorbis wayland widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput evdev keyboard mouse" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27 ruby30" SANE_BACKENDS="hp hpsj5s" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Same problem printing PDFs with an Epson ET-7750. Reverting to lcms-2.12 resolves the issue for me as well. I noticed Okular's print preview was also affected.
Does https://github.com/mm2/Little-CMS/commit/fdbfb7694f9d7048d53674b79ddfc38068bfdaf7.patch help? Put it in /etc/portage/patches/media-libs/lcms/bug832520.patch. If it works, we can add it to Gentoo.
Same issue with any PDF/ODT printing (CUPS test page printed fine) on HP DeskJet F380, and on Okular print preview. The suggested patch helps; downgrading to 2.12 works fine, too.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98cddc12ba0bbc204444db2162389fa1b430a14e commit 98cddc12ba0bbc204444db2162389fa1b430a14e Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-03 10:50:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-03 10:50:10 +0000 media-libs/lcms: backport grayscale regression fix Closes: https://bugs.gentoo.org/832520 Signed-off-by: Sam James <sam@gentoo.org> .../files/lcms-2.13-grayscale-regression.patch | 38 ++++++++++++++++++++++ .../lcms/{lcms-2.13.ebuild => lcms-2.13-r1.ebuild} | 4 +++ 2 files changed, 42 insertions(+)
(In reply to Arusekk from comment #3) > Same issue with any PDF/ODT printing (CUPS test page printed fine) on HP > DeskJet F380, and on Okular print preview. > > The suggested patch helps; downgrading to 2.12 works fine, too. Thanks!
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d345a2a91f782d33a2d1217fdf63617e962413 commit 01d345a2a91f782d33a2d1217fdf63617e962413 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-06 11:21:16 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-06 11:22:16 +0000 media-libs/lcms: add 2.13.1 Bug: https://bugs.gentoo.org/832520 Closes: https://bugs.gentoo.org/832733 Thanks-to: Matt Whitlock <gentoo@mattwhitlock.name> (bashism fix) Signed-off-by: Sam James <sam@gentoo.org> media-libs/lcms/Manifest | 1 + .../files/lcms-2.13.1-fix-configure-bashisms.patch | 22 +++++++++ media-libs/lcms/lcms-2.13.1.ebuild | 57 ++++++++++++++++++++++ 3 files changed, 80 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff1f94f0199ddd89190540dbe66be07b3da14f3b commit ff1f94f0199ddd89190540dbe66be07b3da14f3b Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-14 23:08:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-14 23:11:07 +0000 dev-python/pillow: drop test skips in 9.0.1 These were actually a bug in LCMS 2.13 (fixed in 2.13-r1, 2.13.1). Thanks to Pillow upstream for debugging this with us! Bug: https://bugs.gentoo.org/832520 Bug: https://github.com/python-pillow/Pillow/issues/6013 Signed-off-by: Sam James <sam@gentoo.org> dev-python/pillow/pillow-9.0.1-r1.ebuild | 9 --------- dev-python/pillow/pillow-9.0.1.ebuild | 9 --------- 2 files changed, 18 deletions(-)