Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 721136

Summary: app-text/texlive-core-2019-r11 w/ app-text/poppler-0.88.0: texk/web2c/pdftexdir/pdftosrc.cc:81:37: error: no match for 'operator=' (operand types are 'std::unique_ptr<GlobalParams>' and 'GlobalParams*')
Product: Gentoo Linux Reporter: Alex <barracuda72>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein, tex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=723404
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Alex 2020-05-05 19:05:10 UTC
Yep, it's EXACTLY the same error as #716344, only versions are one bump further.
Guessing by THIS piece of art in texlive-core ebuild:

if has_version ">=app-text/poppler-0.83" && has_version "<app-text/poppler-0.86"; then
        eapply "${WORKDIR}"/patches/${P}-poppler083.patch
        eapply "${WORKDIR}"/patches/${P}-poppler084.patch
    elif has_version "=app-text/poppler-0.86*"; then
        eapply "${WORKDIR}"/patches/${P}-poppler086.patch
    elif has_version "=app-text/poppler-0.87*"; then
        eapply "${WORKDIR}"/patches/${P}-poppler087.patch
    else
        eapply "${WORKDIR}"/patches/${P}-poppler076.patch
    fi

this will emerge (pun intended) again, and again, and again...

Reproducible: Always
Comment 1 Alex 2020-05-05 19:08:17 UTC
Created attachment 636290 [details]
build.log
Comment 2 Alex 2020-05-05 19:22:10 UTC
BTW, patch for poppler-0.86 (and -0.87, it's the same patch, but duplicated for some reason) seems to work.
Probably piece of the art mentioned above should be replaced with something like

if has_version ">=app-text/poppler-0.83" && has_version "<app-text/poppler-0.86"; then
        eapply "${WORKDIR}"/patches/${P}-poppler083.patch
        eapply "${WORKDIR}"/patches/${P}-poppler084.patch
    elif has_version ">=app-text/poppler-0.86"; then
        eapply "${WORKDIR}"/patches/${P}-poppler086.patch
    else
        eapply "${WORKDIR}"/patches/${P}-poppler076.patch
fi
Comment 3 Alex 2020-05-05 19:26:17 UTC
(In reply to Alex from comment #2)
> BTW, patch for poppler-0.86 (and -0.87, it's the same patch, but duplicated
> for some reason) seems to work.
> Probably piece of the art mentioned above should be replaced with something
> like
> 
> if has_version ">=app-text/poppler-0.83" && has_version
> "<app-text/poppler-0.86"; then
>         eapply "${WORKDIR}"/patches/${P}-poppler083.patch
>         eapply "${WORKDIR}"/patches/${P}-poppler084.patch
>     elif has_version ">=app-text/poppler-0.86"; then
>         eapply "${WORKDIR}"/patches/${P}-poppler086.patch
>     else
>         eapply "${WORKDIR}"/patches/${P}-poppler076.patch
> fi

Not that it's much better, but in contrast with current "solution" it at least should have _some_ chance to work with future poppler versions.
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-06-04 18:04:22 UTC
texlive 19 gone