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

Bug 784362

Summary: media-gfx/zbar-0.23-r1: configure: error: Unable to find GraphicsMagick:
Product: Gentoo Linux Reporter: Joonas Niilola <juippis>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
build.log
autoconf.out
build.log
config.log
build.log

Description Joonas Niilola gentoo-dev 2021-04-20 10:18:43 UTC
Created attachment 700995 [details]
build.log

build.log attached.

Looks to be a multilib issue.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-29 06:53:41 UTC
I wonder if it needs the library or if it's just a pkg-config check (bit like kmod the other day, bug 702568 perhaps). GM lacks multilib as does IM which makes sense given the ABI instability.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-29 06:56:18 UTC
(In reply to Sam James from comment #1)
> I wonder if it needs the library or if it's just a pkg-config check (bit
> like kmod the other day, bug 702568 perhaps). GM lacks multilib as does IM
> which makes sense given the ABI instability.

It's the native build which is failing so not multilib.

Need:

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-gfx/zbar-0.23-r1/work/zbar-0.23-abi_x86_64.amd64/config.log
 * ERROR: media-gfx/zbar-0.23-r1::gentoo failed (configure phase):.
Comment 3 Joonas Niilola gentoo-dev 2022-07-29 07:06:22 UTC
Looking at the ebuild, it has weird conditions regarding imagemagick and graphicsmagick relationship:

	imagemagick? (
		!graphicsmagick? ( media-gfx/imagemagick:=[png,jpeg?] )
		graphicsmagick? ( media-gfx/graphicsmagick:=[png,jpeg?] )

(bot nothing about -imagemagick graphicsmagick)

src_configure:
	if multilib_is_native_abi; then
		# both must be enabled to use GraphicsMagick
		if use graphicsmagick; then
			myeconfargs+=(
				--with-graphicsmagick
				--without-imagemagick
			)
		elif use imagemagick; then
			myeconfargs+=(
				--with-imagemagick
				--without-graphicsmagick
			)
		else
			myeconfargs+=(
				--without-imagemagick
				--without-graphicsmagick
			)
		fi

disregarding the comment about both having to be enabled, src_configure looks fine, but the block in COMMON_DEPEND doesn't.
Comment 4 Joonas Niilola gentoo-dev 2022-07-29 07:07:36 UTC
Created attachment 795362 [details]
build.log
Comment 5 Joonas Niilola gentoo-dev 2022-07-29 07:07:43 UTC
Created attachment 795365 [details]
autoconf.out
Comment 6 Joonas Niilola gentoo-dev 2022-07-29 07:09:35 UTC
After installing gettext:
Comment 7 Joonas Niilola gentoo-dev 2022-07-29 07:10:04 UTC
Created attachment 795368 [details]
build.log
Comment 8 Joonas Niilola gentoo-dev 2022-07-29 07:10:14 UTC
Created attachment 795371 [details]
config.log
Comment 9 Joonas Niilola gentoo-dev 2022-07-29 07:13:41 UTC
After installing graphicsmagick and not touching the ebuild I get past that error, onto another issue. This package...

anyway since it's m-n I can fix it based on the reasoning in #c3 if you agree - that the handling of graphicsmagick dep is wrong in COMMON_DEPEND.
Comment 10 Joonas Niilola gentoo-dev 2022-07-29 07:14:12 UTC
Created attachment 795389 [details]
build.log
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-30 08:13:03 UTC
(In reply to Joonas Niilola from comment #3)
> Looking at the ebuild, it has weird conditions regarding imagemagick and
> graphicsmagick relationship:
> 
> 	imagemagick? (
> 		!graphicsmagick? ( media-gfx/imagemagick:=[png,jpeg?] )
> 		graphicsmagick? ( media-gfx/graphicsmagick:=[png,jpeg?] )
> 
> (bot nothing about -imagemagick graphicsmagick)
> 
> src_configure:
> 	if multilib_is_native_abi; then
> 		# both must be enabled to use GraphicsMagick
> 		if use graphicsmagick; then
> 			myeconfargs+=(
> 				--with-graphicsmagick
> 				--without-imagemagick
> 			)
> 		elif use imagemagick; then
> 			myeconfargs+=(
> 				--with-imagemagick
> 				--without-graphicsmagick
> 			)
> 		else
> 			myeconfargs+=(
> 				--without-imagemagick
> 				--without-graphicsmagick
> 			)
> 		fi
> 
> disregarding the comment about both having to be enabled, src_configure
> looks fine, but the block in COMMON_DEPEND doesn't.

Ah, right!

See https://bugs.gentoo.org/314431#c28 for how the logic should work, i.e. I think the dependencies are okay, but the src_configure logic isn't.
Comment 12 Larry the Git Cow gentoo-dev 2022-08-02 10:13:58 UTC
The bug has been closed via the following commit(s):

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

commit 48c9cdacf049a7af3a8ead57312188e813b47108
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-08-02 10:12:21 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-08-02 10:13:56 +0000

    media-gfx/zbar: fix configure logic for imagemagick<->graphicsmagick
    
     - tested on stable amd64.
    
    Closes: https://bugs.gentoo.org/784362
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-gfx/zbar/zbar-0.23.90.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)