Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938945 - media-gfx/hugin: Should require tiff USE flag for media-libs/vigra, fails without
Summary: media-gfx/hugin: Should require tiff USE flag for media-libs/vigra, fails wit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 943176
  Show dependency tree
 
Reported: 2024-09-02 19:35 UTC by Alef Farah
Modified: 2024-11-17 15:47 UTC (History)
1 user (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 Alef Farah 2024-09-02 19:35:21 UTC
Currently only the openexr USE flag is required for media-libs/vigra, but it seems that tiff is required even when not using TIFF format in hugin. I belive tiff is default for media-libs/vigra but if the user has -tiff in make.conf a USE flag change will not be required for media-libs/vigra when installing media-gfx/hugin, when it should, otherwise hugin does not work even when not using TIFF at all.

# Steps to reproduce

0. Emerge media-gfx/hugin with default USE flags and -tiff in make.conf
1. Open Hugin UI
2. Click "Load Images", select JPEG images
3. Click "Align"
4. Click "Create Panorama", select JPEG as LDR format (unselect TIFF)

# Expected result

Batch job completes without errors and JPEG panorama is saved.

# Actual result

Batch job finishes with error:

Precondition violation!
did not find a matching codec for the given file extension
(/var/tmp/portage/media-libs/vigra-1.11.1-r9/work/vigra-1.11.1/src/impex/codecmanager.cxx:270)

# Proposed solution

Re-emerging media-libs/vigra with tiff USE flag solves the issue (repeat steps to reproduce above after re-emerging and the outcome is as expected).

Since tiff USE flag is required even when not working with TIFF, I believe it should be required by default.

I don't know if there is an issue in Hugin itself that it's using TIFF at some point even when JPEG is selected as the LDR format for JPEG inputs, but, anyhow, it fails today on Gentoo.
Comment 1 Larry the Git Cow gentoo-dev 2024-10-31 20:47:23 UTC
The bug has been referenced in the following commit(s):

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

commit 3e6882ffa9a5d78c4820114ce56da803edc8f9b9
Author:     Markus Meier <maekke@gentoo.org>
AuthorDate: 2024-10-31 20:47:22 +0000
Commit:     Markus Meier <maekke@gentoo.org>
CommitDate: 2024-10-31 20:47:22 +0000

    media-gfx/hugin: version bump
    
    Bug: https://bugs.gentoo.org/938945
    Signed-off-by: Markus Meier <maekke@gentoo.org>

 media-gfx/hugin/Manifest                                              | 2 +-
 .../hugin/{hugin-2024.0_beta1.ebuild => hugin-2024.0_rc1.ebuild}      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Comment 2 Andreas Sturmlechner gentoo-dev 2024-11-17 15:47:46 UTC
Apparently, yes, so let me close this for you?