Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678002 - media-libs/allegro-5.2.4.0 : [QA] One or more CMake variables were not used by the project:
Summary: media-libs/allegro-5.2.4.0 : [QA] One or more CMake variables were not used b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-14 16:01 UTC by Toralf Förster
Modified: 2019-05-24 10:08 UTC (History)
1 user (show)

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


Attachments
etc.portage.tbz2 (etc.portage.tbz2,15.92 KB, application/x-bzip)
2019-02-14 16:01 UTC, Toralf Förster
Details
media-libs:allegro-5.2.4.0:20190214-143951.log (media-libs:allegro-5.2.4.0:20190214-143951.log,157.62 KB, text/plain)
2019-02-14 16:01 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-02-14 16:01:04 UTC
QA: other
One or more CMake variables were not used by the project:
  WANT_FLAC
  WANT_MODAUDIO
  WANT_OPUS
  WANT_VORBIS

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-hardened_libressl_20190211-201550

  -------------------------------------------------------------------
Comment 1 Toralf Förster gentoo-dev 2019-02-14 16:01:07 UTC
Created attachment 565344 [details]
etc.portage.tbz2
Comment 2 Toralf Förster gentoo-dev 2019-02-14 16:01:10 UTC
Created attachment 565346 [details]
media-libs:allegro-5.2.4.0:20190214-143951.log
Comment 3 Ben Kohler gentoo-dev 2019-05-23 15:23:03 UTC
FYI this is triggered with USE=-alsa.  Maybe these 4 options should only be appended to mycmakeargs 'if use alsa'.  Possibly also REQUIRED_USE ?
Comment 4 Stefan Strogin gentoo-dev 2019-05-23 17:12:05 UTC
Reproduces with USE="-alsa -openal -oss -pulseaudio"

If any one of these flags is enabled then there is no warning.
Comment 5 Ben Kohler gentoo-dev 2019-05-23 17:13:14 UTC
An easy way out would be to force at least one audio backend.  Is there some use-case for installing w/o audio support?
Comment 6 Stefan Strogin gentoo-dev 2019-05-23 17:34:30 UTC
I don't know about use cases.

Is it not simple enough?

	if use alsa || use openal || use oss || use pulseaudio; then
		mycmakeargs+=(
			-DWANT_FLAC=$(usex flac)
			-DWANT_MODAUDIO=$(usex dumb)
			-DWANT_OPUS=$(usex opus)
			-DWANT_VORBIS=$(usex vorbis)
		)
	fi
Comment 7 Ben Kohler gentoo-dev 2019-05-23 17:37:35 UTC
maybe also with:

elif use flac || use dumb || use opus || use vorbis; then
    ewarn "All audio backends are disabled so audio codec support cannot be enabled"
fi


Or something like that?  It's not ideal if USE=flac still silently disables flac, for example
Comment 8 Stefan Strogin gentoo-dev 2019-05-23 18:00:19 UTC
(In reply to Ben Kohler from comment #7)
> maybe also with:
> 
> elif use flac || use dumb || use opus || use vorbis; then
>     ewarn "All audio backends are disabled so audio codec support cannot be
> enabled"
> fi
> 
> 
> Or something like that?  It's not ideal if USE=flac still silently disables
> flac, for example

Looks nice but I doubt anybody will ever notice such a warning in src_configure()...
Comment 9 Stefan Strogin gentoo-dev 2019-05-23 18:39:43 UTC
How about this?

IUSE="... +sound ..."

REQUIRED_USE="...
	sound? ( || ( alsa openal oss pulseaudio ) )
	sound? ( || ( dumb flac opus vorbis ) )"
Comment 10 Ben Kohler gentoo-dev 2019-05-23 18:48:55 UTC
I thank you can combine those like "sound? ( || ( alsa openal oss pulseaudio ) || ( dumb flac opus vorbis )" but otherwise yeah that seems reasonable
Comment 11 Stefan Strogin gentoo-dev 2019-05-23 19:05:15 UTC
No that's not right:(

The library can also read WAV, so USE="sound -dumb -flac -opus -vorbis" would be correct.

Maybe just REQUIRED_USE="|| ( alsa openal oss pulseaudio )" is better, otherwise it may become too complex...
Comment 12 Larry the Git Cow gentoo-dev 2019-05-24 10:08:55 UTC
The bug has been closed via the following commit(s):

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

commit 81cf1a0cfd9db6aee35b2a6a3d2e973d1d87dda2
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2019-05-24 07:46:40 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2019-05-24 10:08:00 +0000

    media-libs/allegro: bump version to 5.2.5.0
    
    Closes: https://bugs.gentoo.org/666996
    Closes: https://bugs.gentoo.org/672634
    Closes: https://bugs.gentoo.org/678002
    Closes: https://bugs.gentoo.org/684808
    Package-Manager: Portage-2.3.66, Repoman-2.3.12
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 media-libs/allegro/Manifest               |  1 +
 media-libs/allegro/allegro-5.2.5.0.ebuild | 88 +++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)