Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914493 - app-office/scribus-1.5.8-r5[pdf] w/ app-text/podofo-0.10.1: CMake Error at cmake/modules/FindLIBPODOFO.cmake:38 (file): file STRINGS file "/usr/include/podofo/base/podofo_config.h" cannot be read
Summary: app-office/scribus-1.5.8-r5[pdf] w/ app-text/podofo-0.10.1: CMake Error at cm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Miroslav Šulc
URL: https://bugs.scribus.net/view.php?id=...
Whiteboard:
Keywords: PullRequest, UPSTREAM
: 914555 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-09-21 16:51 UTC by Harris Landgarten
Modified: 2023-09-24 08:02 UTC (History)
3 users (show)

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


Attachments
build log (build.log,11.76 KB, text/x-log)
2023-09-21 16:51 UTC, Harris Landgarten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2023-09-21 16:51:34 UTC
Created attachment 871025 [details]
build log

CMake Error at cmake/modules/FindLIBPODOFO.cmake:38 (file):
  file STRINGS file "/usr/include/podofo/base/podofo_config.h" cannot be
  read.
Call Stack (most recent call first):
  CMakeLists_Dependencies.cmake:273 (find_package)
  CMakeLists.txt:399 (include)


CMake Error at cmake/modules/FindLIBPODOFO.cmake:39 (file):
  file STRINGS file "/usr/include/podofo/base/podofo_config.h" cannot be
  read.
Call Stack (most recent call first):
  CMakeLists_Dependencies.cmake:273 (find_package)
  CMakeLists.txt:399 (include)


CMake Error at cmake/modules/FindLIBPODOFO.cmake:40 (file):
  file STRINGS file "/usr/include/podofo/base/podofo_config.h" cannot be
  read.
Call Stack (most recent call first):
  CMakeLists_Dependencies.cmake:273 (find_package)
  CMakeLists.txt:399 (include)
Comment 1 Harris Landgarten 2023-09-21 16:51:56 UTC
emerge --info =app-office/scribus-1.5.8-r5::gentoo
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r2, 6.5.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.5.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_970_@_3.20GHz-with-glibc2.38
KiB Mem:    24606744 total,   3044632 free
KiB Swap:   62403572 total,  62393532 free
Timestamp of repository gentoo: Thu, 21 Sep 2023 15:01:45 +0000
Head commit of repository gentoo: 6fa5c5b72a87516ae6582f2a2f7f9eb55c1647be

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.41 p2) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.5::gentoo, 3.12.0_rc3::gentoo
dev-lang/rust-bin:         1.72.0::gentoo
dev-util/cmake:            3.27.6::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.4::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.41-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.5::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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-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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US en_US"
MAKEOPTS="-j12"
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/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri drm dts dvd dvdr eds egl encode esd evo exif flac fortran gbm gdbm gif gles1 gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline screencast sdl seccomp sound spell ssl startup-notification svg sysprof systemd test-rust tiff tracker truetype udev udisks unicode upower usb vdpau vdpaui vorbis vulkan wayland wxwidgets x264 xattr xcb xft xinerama xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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 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="evdev libinput wacom" KERNEL="linux" 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="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_12 python3_11 python3_10" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="nouveau" 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, LFLAGS, LIBTOOL, 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

=================================================================
                        Package Settings
=================================================================

app-office/scribus-1.5.8-r5::gentoo was built with the following:
USE="boost minimal pdf templates -debug -examples -graphicsmagick -hunsp
Comment 2 hangglider 2023-09-21 19:45:14 UTC
same here, and this also applies to app-text/calibre. Downgrading to app-text/podofo-0.9.8-r1.
Comment 3 Andreas Sturmlechner gentoo-dev 2023-09-23 18:25:17 UTC
*** Bug 914555 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Sturmlechner gentoo-dev 2023-09-23 19:58:42 UTC
Backports necessary (including some for conflict resolution)

> Updated PoDoFo finder CMake file
>  2 files changed, 17 insertions(+), 17 deletions(-)
> Adapt CMake FindLIBPODOFO.cmake to use pkgconfig, and allow custom find path. Still testing.
>  2 files changed, 41 insertions(+), 20 deletions(-)
> Fix typo
>  1 file changed, 1 insertion(+), 1 deletion(-)
> #17005: Restore compatibility with podofo <= 0.9.6
>  3 files changed, 350 insertions(+), 138 deletions(-)
> #16948: Fix build with podofo 0.10.x
>  6 files changed, 985 insertions(+), 103 deletions(-)
> Preparation work for PoDoFo 0.10.0x support: get rid of GetIndirectKey() calls
>  3 files changed, 148 insertions(+), 105 deletions(-)
> PDFAnalyzer: code style fixes and cleanups
>  1 file changed, 30 insertions(+), 26 deletions(-)
> Small indentation fix
>  1 file changed, 1 insertion(+), 1 deletion(-)
> Rename m_doc in pdf_analyser to avoid confusion with m_doc in other code
>  2 files changed, 7 insertions(+), 7 deletions(-)
> Code cleanup now possible thanks to podofo >= 0.9.0 requirement
>  1 file changed, 8 deletions(-)
> Bump minimum podofo version to 0.9.0
>  1 file changed, 1 insertion(+), 1 deletion(-)
> Swap dependency checking for podofo and poppler to the beginning to force C++17 when their versions require it
>  1 file changed, 44 insertions(+), 30 deletions(-)
> Update CMake PoDoFo finder to allow for PoDoFo 0.10.0 podofo-config.h location
>  1 file changed, 10 insertions(+), 1 deletion(-)
Comment 5 Larry the Git Cow gentoo-dev 2023-09-24 08:02:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cad1d78982a56aa4f57a009fb52c93282c085b4

commit 8cad1d78982a56aa4f57a009fb52c93282c085b4
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2023-09-23 19:56:16 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2023-09-24 08:02:36 +0000

    app-office/scribus: Fix build with >=app-text/podofo-0.10, python3_12
    
    Closes: https://bugs.gentoo.org/914493
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/33015
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 app-office/scribus/Manifest                        |   1 +
 .../scribus/files/scribus-1.5.8-python-3.12.patch  |  32 ++++
 app-office/scribus/scribus-1.5.8-r6.ebuild         | 171 +++++++++++++++++++++
 3 files changed, 204 insertions(+)