Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927741 - Unable to print pdf
Summary: Unable to print pdf
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-24 17:56 UTC by Klaus Ethgen
Modified: 2024-07-17 22:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Ethgen 2024-03-24 17:56:32 UTC
Recently I migrated my main workstation from devuan to gentoo. While under devuan, my printer, an OKI C5750, worked well, I have some troubles under gentoo.

The printer itself and printing as such works well, but when I try to print some pdf with lp, it fails with the error 'lp: Unsupported document-format "application/pdf".'.

I installed net-print/cups-meta and added the following use flags:
app-text/ghostscript-gpl cups
net-print/cups-meta pdf
net-print/libcupsfilters pdf

There is a /usr/libexec/cups/filter/pdftops and a /usr/bin/pdftops installed (from net-print/cups-filters-2.0.0 and app-text/poppler-24.02.0).

Reproducible: Always

Steps to Reproduce:
1. Try to print a pdf file with lp
2.
3.
Actual Results:  
lp: Unsupported document-format "application/pdf".

Expected Results:  
It prints the file
Comment 1 Jonas Stein gentoo-dev 2024-03-24 21:10:38 UTC
It is sad to read that you have problems with the software. The situation seems to be a bit more complicate and requires some analysis.
We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. 

I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3].
I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4].
Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product.

[1] https://www.gentoo.org/get-involved/irc-channels/
[2] https://forums.gentoo.org/
[3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html
[4] https://www.gentoo.org/support/
Comment 2 Klaus Ethgen 2024-03-27 07:11:09 UTC
Well, there is nothing support that I need as the package seems to be broken. (Or the documentation.)

One or the other, I like to improve packages.

But you are right, there are too little info from my side.

Here my emerge info:
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/hardened, gcc-13, glibc-2.38-r10, 6.6.21-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.21-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7_CPU_960_@_3.20GHz-with-glibc2.38
KiB Mem:    12236392 total,   2309112 free
KiB Swap:    2097144 total,   1749240 free
Timestamp of repository gentoo: Sun, 24 Mar 2024 09:00:00 +0000
Head commit of repository gentoo: c26039d783061d7f8344835ec5b43c07672c6df4
Timestamp of repository guru: Sat, 23 Mar 2024 16:18:24 +0000
Head commit of repository guru: 213cc0aeae7ff8795186becccb7e90baf1fc4f11

Timestamp of repository mv: Sun, 24 Mar 2024 08:33:15 +0000
Head commit of repository mv: 8877deb048380d3c2af5a10089c45fe4c92a1dd5

Timestamp of repository rion: Thu, 21 Mar 2024 22:34:11 +0000
Head commit of repository rion: 9f434da4994e6cd30ebdb276ed9cf4011c740e44

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
ccache version 4.9.1 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
dev-util/ccache:           4.9.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo
    volatile: False

rion
    location: /var/db/repos/rion
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/rion.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost-hardened
    priority: 100
    sync-uri: https://mirror.init7.net/gentoo/releases/amd64/binpackages/17.1/x86-64_hardened

gentoobinhost
    priority: 1
    sync-uri: https://mirror.init7.net/gentoo/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/cxoffice/etc/cxoffice.conf /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/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 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --usepkg-exclude 'sys-kernel/gentoo-sources virtual/* dev-perl/*'"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict suidctl unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.init7.net/gentoo/ https://distfiles.gentoo.org"
LANG="de_DE"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j9 -l8"
PKGDIR="/var/cache/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/zsh"
USE="X acl alsa alsa-plugin amd64 bluetooth bzip2 cacert caps cet cli crypt dri fortran gdbm hardened iconv ipv6 jpeg libtirpc multilib ncurses nls openmp pam pcre pcsc-lite pic pie png readline seccomp split-usr ssl ssp test-rust threads udev unicode vaapi vdpau vulkan xattr xtpax zlib zsh-completion" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" L10N="de de-1901 de-DE de-CH" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="dummy fbdev nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


I have all packages as binary.

Also I read the information of the deprecated filter configuration and that it should be not needed.

As about IRC support: I have only bad experiences. When one has the luck to find someone who had the same problem in the past, it is a good help but most of the time it is a hurden to be kicked out cause not finding a free username or staying forever with no answer at all. (I know IRC from 30 years ago where it was really fun but today...) Moreover, if a solution is found, it is not available for others having the same troubles.
Comment 3 Mike Pagano gentoo-dev 2024-03-27 16:04:20 UTC
Any pdf setting in mime.types?
Comment 4 Klaus Ethgen 2024-03-27 19:21:32 UTC
Some, but nothing hand crafted:

/etc> grep pdf mime.types
application/pdf                                 pdf
application/vnd.cups-pdf
application/vnd.sealedmedia.softseal.pdf        spdf spd s1a
Comment 5 Mike Pagano gentoo-dev 2024-03-27 19:31:32 UTC
what printer details do you have in cups.

Could be in:

http://127.0.0.1:631/printers/
Comment 6 Klaus Ethgen 2024-03-27 19:35:56 UTC
Which detail you are looking for?

Beschreibung:	OKI C5750
Ort:	
Treiber:	OKI C5750(PS) (farbig, 2-seitiges Drucken)
Verbindung:	http://shada:631/ipp
Standardeinstellungen:	job-sheets={job_sheets_default} media=iso_a4_210x297mm sides=two-sided-long-edge

And that one works with printing postscript.
Comment 7 Klaus Ethgen 2024-03-29 10:46:09 UTC
Which Informations do you need?