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

Bug 767838

Summary: media-sound/mixxx-2.2.4 : AttributeError: module SCons.Warnings has no attribute Warning:
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Professional Audio Applications Maintainers <proaudio>
Severity: normal CC: anton.gubarkov, atoth, david.guglielmi, kripton, remi, sam, StormByte, zseri.devel
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
Fix scons >= 4.1 compat

Description Toralf Förster gentoo-dev 2021-01-29 10:47:27 UTC
INFO:root:Crosscompile: NO
INFO:root:Qt path: /usr/lib64/qt5
AttributeError: module 'SCons.Warnings' has no attribute 'Warning':
  File "/var/tmp/portage/media-sound/mixxx-2.2.4/work/mixxx-release-2.2.4/SConstruct", line 72:
    build = mixxx.MixxxBuild(target, machine, build_type,
  File "/var/tmp/portage/media-sound/mixxx-2.2.4/work/mixxx-release-2.2.4/build/", line 216:


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20210123-112139


gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
Python 3.8.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Jan 29 02:34:30 UTC 2021

emerge -qpvO media-sound/mixxx
[ebuild  N    ] media-sound/mixxx-2.2.4  USE="aac mp3 mp4 -doc -ffmpeg -hid -lv2 -opus -shout -wavpack"
Comment 1 Toralf Förster gentoo-dev 2021-01-29 10:47:28 UTC
Created attachment 685077 [details]
Comment 2 Toralf Förster gentoo-dev 2021-01-29 10:47:29 UTC
Created attachment 685080 [details]
Comment 3 Toralf Förster gentoo-dev 2021-01-29 10:47:31 UTC
Created attachment 685083 [details]
Comment 4 Toralf Förster gentoo-dev 2021-01-29 10:47:32 UTC
Created attachment 685086 [details]
Comment 5 Toralf Förster gentoo-dev 2021-01-29 10:47:33 UTC
Created attachment 685089 [details]
Comment 6 Toralf Förster gentoo-dev 2021-01-29 10:47:34 UTC
Created attachment 685092 [details]
Comment 7 David Carlos Manuelda 2021-02-16 04:45:10 UTC
This bugs happens when trying to build mixxx with =scons-4.1.0-r1.

Reverting to scons-4.0.1 made mixxx able to build again.
Comment 8 jospezial 2021-03-12 12:38:38 UTC
(In reply to David Carlos Manuelda from comment #7)
> This bugs happens when trying to build mixxx with =scons-4.1.0-r1.
> Reverting to scons-4.0.1 made mixxx able to build again.

As alternative you can try the cmake based live ebuilds of mixxx until mixxx-2.3 will be released.
A lot of interesting changes upstream since last release mixxx-2.2.4.
Testing feedback welcome.
Comment 9 David 2021-03-17 10:29:04 UTC
Created attachment 692127 [details, diff]
Fix scons >= 4.1 compat

"SCons.Warnings.Warning" has been renamed to "SCons.Warnings.SConsWarning" (

So, I guess we should depend on >=dev-util/scons-4.1 and apply this patch.
Comment 10 jms 2021-05-06 11:38:41 UTC
(In reply to David from comment #9)
> Created attachment 692127 [details, diff] [details, diff]
> Fix scons >= 4.1 compat
> "SCons.Warnings.Warning" has been renamed to "SCons.Warnings.SConsWarning"
> (
> b71dbb402a8e1235564a8127853ba80f688eb073)
> So, I guess we should depend on >=dev-util/scons-4.1 and apply this patch.

on the top of this 
there is only 
dev-util/scons-4.1.0-r1 in portage now
so patch should be included otherwise everybody is going to have failure when building mixx
as there is also only 
media-sound/mixxx-2.2.4 in portage
Comment 11 Larry the Git Cow gentoo-dev 2021-05-08 17:58:50 UTC
The bug has been closed via the following commit(s):

commit 87d9d3175dcbcb7b9aecb9a50bd896cdc8b6feab
Author:     Rémi Cardona <>
AuthorDate: 2021-05-08 17:58:03 +0000
Commit:     Rémi Cardona <>
CommitDate: 2021-05-08 17:58:44 +0000

    media-sound/mixxx: add patch to fix build with scons 4.1
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Rémi Cardona <>

 .../mixxx/files/mixxx-2.2.4-fix-scons-compat.patch | 24 ++++++++++++++++++++++
 media-sound/mixxx/mixxx-2.2.4.ebuild               |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2021-05-08 18:01:51 UTC
Hi proaudio, I took the liberty to push the attached patch, I hope that's ok with you. Please let me know if I overstepped my bounds.

David, thanks for the patch!