Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 817962 - app-office/libreoffice-bin: unable to sign existing PDF
Summary: app-office/libreoffice-bin: unable to sign existing PDF
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
: 917054 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-13 07:23 UTC by Anton Bolshakov
Modified: 2023-11-09 10:02 UTC (History)
3 users (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 Anton Bolshakov 2021-10-13 07:23:54 UTC
Hi,

I started to sign PDF documents recently and noticed a problem. If I compile libreoffice myself it works fine, my flags are the following:

[ebuild  N     ] app-office/libreoffice-7.1.5.2::gentoo  USE="branding clang cups dbus googledrive gstreamer gtk java kde mariadb pdfimport -accessibility (-base) -bluetooth (-coinmp) -custom-cflags -debug -eds (-firebird) -ldap -odk -postgres -test -vulkan" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_9 (-python3_10) -python3_8" 361,741 KiB

However, the provided app-office/libreoffice-bin-7.1.5.2 binary opens up a PDF as a plain next in Libreoffice Writer directly (and I can edit its binary content for some strange reason).

Can you check the flags please and include this functionally in binary version as well please?

Steps to reproduce:
Start Libreoffice Writer, go to File -> Digital Signature -> Sign Existing Pdf.


Thank you.


emerge --info
Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/hardened, gcc-11.2.0, glibc-2.33-r1, 5.14.8-pentoo x86_64)
=================================================================
System uname: Linux-5.14.8-pentoo-x86_64-Intel-R-_Core-TM-_i7-10750H_CPU_@_2.60GHz-with-glibc2.33
KiB Mem:    16303252 total,   3112412 free
KiB Swap:    8388604 total,   8338792 free
Timestamp of repository gentoo: Wed, 13 Oct 2021 00:45:01 +0000
Head commit of repository gentoo: 8a4f273e5c7e1c990b59954691b7f12d1c0d7f5c
Head commit of repository pentoo: 25673d5bd44588b2e732b23f6c0faab6fe4c4a95

Timestamp of repository steam-overlay: Fri, 01 Oct 2021 20:07:16 +0000
Head commit of repository steam-overlay: adea528ec8200c211c739b67d4aff95383963a3a

sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          3.9.6_p2::gentoo
dev-lang/rust-bin:        1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.43.5::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r1::gentoo
Repositories:

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

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

pentoo
    location: /var/db/repos/pentoo-overlay
    sync-type: git
    sync-uri: https://github.com/pentoo/pentoo-overlay
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/unifi"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compress-build-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://ftp.iij.ad.jp/pub/linux/gentoo/"
INSTALL_MASK="*.la"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
LINGUAS="en ru"
MAKEOPTS="-j12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="https://pentoo.emjay-embedded.co.uk/Packages/amd64_r1-hardened/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--omit-dir-times"
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"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdda crypt cups dbus declarative dri dri3 dts dvdr elogind emboss encode exif ffmpeg flac gif gtk gui hackrf hardened iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad minipentoo mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opencl opengl openmp pam pango pcre pdf pie plasma png policykit ppds pulseaudio qml qt5 readline samba sdl seccomp semantic-desktop spell split-usr ssl ssp startup-notification svg tiff truetype udev udisks unicode upower usb vlc vorbis widgets wxwidgets x264 xattr xcb xinerama xml xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 rdrand 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" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" UNICORN_TARGETS="x86 mips" USERLAND="GNU" VIDEO_CARDS="vesa intel i965 nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2022-10-03 18:35:22 UTC
Sorry, no can do. 

USE=pdfimport would require us to rebuild the binaries very frequently.
Comment 2 Anton Bolshakov 2022-10-04 01:07:23 UTC
(In reply to Andreas K. Hüttel from comment #1)
> Sorry, no can do. 
> 
> USE=pdfimport would require us to rebuild the binaries very frequently.

Sorry, I didn't get it. The set of flags shouldn't matter since you compile it anyway.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 01:09:37 UTC
(In reply to Anton Bolshakov from comment #2)
> (In reply to Andreas K. Hüttel from comment #1)
> > Sorry, no can do. 
> > 
> > USE=pdfimport would require us to rebuild the binaries very frequently.
> 
> Sorry, I didn't get it. The set of flags shouldn't matter since you compile
> it anyway.

Poppler's ABI changes very often, so it would require us to rebuild libreoffice-bin even more often.
Comment 4 Andreas Sturmlechner gentoo-dev 2023-11-09 10:02:08 UTC
*** Bug 917054 has been marked as a duplicate of this bug. ***