Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881703 - [GURU] app-text/OCRmyPDF-14.0.1-r3: postinst fails, "USE Flag 'png' not in IUSE for app-text/OCRmyPDF-14.0.1-r3"
Summary: [GURU] app-text/OCRmyPDF-14.0.1-r3: postinst fails, "USE Flag 'png' not in IU...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alarig Le Lay
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2022-11-17 22:51 UTC by Scott Alfter
Modified: 2023-04-28 17:52 UTC (History)
1 user (show)

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


Attachments
fixed ebuild (OCRmyPDF-14.0.1-r3.ebuild,1.85 KB, text/plain)
2022-11-17 22:53 UTC, Scott Alfter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Alfter 2022-11-17 22:51:47 UTC
postinst() for this ebuild has a conditional based on a USE flag that isn't declared in IUSE.  The package is installed, but emerge halts with an error.

Reproducible: Always

Steps to Reproduce:
1. emerge OCRtoPDF
2.
3.
Actual Results:  
 * FAILED postinst: 1
 * Install additional packages for optional runtime features:
 *   media-libs/jbig2enc for JBIG2 optimization support
 * ERROR: app-text/OCRmyPDF-14.0.1-r3::guru failed (postinst phase):
 *   USE Flag 'png' not in IUSE for app-text/OCRmyPDF-14.0.1-r3
 *
 * Call stack:
 *          ebuild.sh, line  122:  Called pkg_postinst
 *        environment, line 3001:  Called use 'png'
 *   phase-helpers.sh, line  256:  Called die


Expected Results:  
installation without error
Comment 1 Scott Alfter 2022-11-17 22:53:19 UTC
Created attachment 833263 [details]
fixed ebuild

This should resolve this issue.
Comment 2 Larry the Git Cow gentoo-dev 2023-04-28 17:52:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1d7c8b7d6ab72ec7214d3cf5f25db33889e9fd77

commit 1d7c8b7d6ab72ec7214d3cf5f25db33889e9fd77
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
AuthorDate: 2023-04-28 04:50:59 +0000
Commit:     Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
CommitDate: 2023-04-28 05:21:24 +0000

    app-text/OCRmyPDF: add 14.1.0
    
    Closes: https://bugs.gentoo.org/881703
    Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>

 app-text/OCRmyPDF/Manifest               |  1 +
 app-text/OCRmyPDF/OCRmyPDF-14.1.0.ebuild | 68 ++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)