Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672854 - =app-text/texlive-core-2017-r4 with >=app-text/poppler-0.71.0 - .../work/texlive-20170524-source/texk/web2c/pdftexdir/pdftosrc.cc:170:76: error: 'gTrue' was not declared in this scope
Summary: =app-text/texlive-core-2017-r4 with >=app-text/poppler-0.71.0 - .../work/texl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords: EBUILD, PATCH, PullRequest
Depends on:
Blocks: poppler-0.71.0
  Show dependency tree
 
Reported: 2018-12-09 23:36 UTC by maurerpe
Modified: 2019-02-16 21:52 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,533.70 KB, text/plain)
2018-12-09 23:36 UTC, maurerpe
Details
texlive-core-2017-r4.ebuild (texlive-core-2017-r4.ebuild,11.97 KB, text/plain)
2018-12-10 01:20 UTC, maurerpe
Details
texlive-core-2017-poppler071.patch (texlive-core-2017-poppler071.patch,7.81 KB, patch)
2018-12-10 01:22 UTC, maurerpe
Details | Diff
texlive-core-2017-r4.patch (texlive-core-2017-r4.patch,812 bytes, patch)
2018-12-10 01:25 UTC, maurerpe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description maurerpe 2018-12-09 23:36:58 UTC
Created attachment 557482 [details]
build.log

# emerge --info
Portage 2.3.52 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop, gcc-8.2.0, glibc-2.28-r2, 4.16.12-gentoo x86_64)
=================================================================
System uname: Linux-4.16.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-4570_CPU_@_3.20GHz-with-gentoo-2.6
KiB Mem:    23525504 total,   2598372 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 09 Dec 2018 17:30:01 +0000
Head commit of repository gentoo: f57ea76c2a978f351c8bc8f9db71ee739fd88058
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo
dev-util/cmake:           3.12.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r4::gentoo
sys-devel/gcc:            6.4.0-r5::gentoo, 7.3.0-r3::gentoo, 8.2.0-r5::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    eclass-overrides: maurerpe
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

crossdev
    location: /usr/local/overlay/crossdev
    masters: gentoo
    priority: 10
    eclass-overrides: maurerpe

maurerpe
    location: /usr/local/overlay/maurerpe
    masters: gentoo
    priority: 11
    eclass-overrides: maurerpe

qt5
    location: /usr/local/overlay/qt5
    masters: gentoo maurerpe
    priority: 12
    eclass-overrides: maurerpe

libressl
    location: /home/maurerpe/src/libressl
    masters: gentoo
    priority: 13
    eclass-overrides: maurerpe

compiz
    location: /usr/local/overlay/compiz
    masters: gentoo maurerpe
    priority: 14
    eclass-overrides: maurerpe

cura
    location: /usr/local/overlay/cura
    masters: gentoo
    priority: 15
    eclass-overrides: maurerpe

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50
    eclass-overrides: maurerpe

vaca
    location: /var/lib/layman/vaca
    masters: gentoo
    priority: 50
    eclass-overrides: maurerpe

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x Oracle-BCLA-JavaSE"
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/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/php/apache2-php7.1/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://lug.mtu.edu/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdio cdr cgroups cli colordiff consolekit crypt cups cxx dbus dri dts dv dvd dvdr dvi egl emacs emboss emerald encode evdev exif fam ffmpeg fftw flac fontconfig fortran ftdi gdbm gif gimp glamor gpm gtk gtk3 iconv icu introspection ipv6 jpeg latex lcms libnotify libressl libsamplerate libtirpc logrotate lz4 lzma mad minizip mng mp3 mp4 mpeg mpi mtp multilib ncurses nls nptl ogg opendx openexr opengl openmp pam pango paraview pcre pcre16 pdf plotutils png policykit postscript ppds pulseaudio python qt5 raw readline romio sbcl sdl seccomp smp snmp spell sqlite ssl startup-notification svg tcpd theora threads tiff truetype udev unicode urandom usb vaapi vorbis vpx vulkan webp wxwidgets x264 x265 xattr xcb xetex xft xml xpm xps xv xvid zlib" ABI_X86="64" 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 plan sheets stage words" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput joystick evdev" KERNEL="linux" L10N="en_US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5 python2_7" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby25" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="vesa intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 maurerpe 2018-12-09 23:51:35 UTC
Note that fixing texk/web2c/pdftexdir/pdftosrc.cc just moves onto several other files that fail.

Preliminary list of problem files:
texk/web2c/luatexdir/lua/lepdflib.cc
texk/web2c/luatexdir/lua/lpdfscannerlib.cc
texk/web2c/luatexdir/image/epdf.h
texk/web2c/luatexdir/image/pdftoepdf.w
texk/web2c/pdftexdir/pdftoepdf.cc
texk/web2c/pdftexdir/pdftosrc.cc
Comment 2 maurerpe 2018-12-10 01:20:37 UTC
Created attachment 557484 [details]
texlive-core-2017-r4.ebuild

Fixed ebuild
Comment 3 maurerpe 2018-12-10 01:22:02 UTC
Created attachment 557486 [details, diff]
texlive-core-2017-poppler071.patch

Patch for fixed ebuild
Comment 4 maurerpe 2018-12-10 01:25:06 UTC
Created attachment 557488 [details, diff]
texlive-core-2017-r4.patch

Diff of current ebuild to the fixed ebuild.
Comment 5 Andreas Sturmlechner gentoo-dev 2019-01-01 22:36:37 UTC
Thanks for your work, please create a proper patch to the sources instead of the sed.
Comment 6 Larry the Git Cow gentoo-dev 2019-02-16 21:46:00 UTC
The bug has been referenced in the following commit(s):

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

commit a2fce90a0cb751294b36db4cfa639e9307be38fc
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-01-12 20:50:53 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-02-16 21:44:56 +0000

    app-text/texlive-core: Fix build with poppler-0.71 and poppler-0.72
    
    Bug: https://bugs.gentoo.org/672854
    Package-Manager: Portage-2.3.55, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/texlive-core-2017-poppler069.patch       | 216 ++++++++++++++++
 .../files/texlive-core-2017-poppler071.patch       | 281 +++++++++++++++++++++
 .../files/texlive-core-2017-poppler072.patch       | 157 ++++++++++++
 app-text/texlive-core/texlive-core-2017-r4.ebuild  |   6 +-
 4 files changed, 659 insertions(+), 1 deletion(-)