New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 media-sound/audacity: fix various issues #35903
Conversation
This PR supersedes #35895. |
Pull request CI reportReport generated at: 2024-03-24 23:21 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
a45e2a1
to
b723533
Compare
Pull request CI reportReport generated at: 2024-03-25 00:20 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
opus? ( | ||
media-libs/opus | ||
media-libs/opusfile | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is using media-libs/libogg too (in modules/mod-opus/ExportOpus.cpp) and a USE_LIBOGG
Plus as far as I am aware changing dependencies needs a revbump.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review, @cjmayo!
It is using media-libs/libogg too (in modules/mod-opus/ExportOpus.cpp) and a
USE_LIBOGG
I've addressed this by adding REQUIRED_USE="opus? ( ogg )"
.
Plus as far as I am aware changing dependencies needs a revbump.
I've bumped 3.3.3
and 3.4.2
to 3.3.3-r1
and 3.4.2-r1
respectively.
Not sure about 9999
. Should I bump it as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting question - I don't know. This is going to need an expert to commit anyway!
If I was looking after this one I wouldn't worry about updating 3.3.3, and just go for 3.4.2-r1 stabilisation after 30 days if there are no further issues. But, I'm not, and maybe there is something special here (and as the previous sentence). Fair enough if you want to do the work.
Because it needs a bump, I would consider solving media-sound/mpg123-base
in this PR (albeit it can be as a separate commit), else that would mean another bump.
And, I spotted another one: looks like dev-libs/rapidjson
is headers only. I think meaning it would be a DEPEND only, and not trigger a rebuild on slot change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it needs a bump, I would consider solving
media-sound/mpg123-base
in this PR (albeit it can be as a separate commit), else that would mean another bump.And, I spotted another one: looks like
dev-libs/rapidjson
is headers only. I think meaning it would be a DEPEND only, and not trigger a rebuild on slot change.
I've addressed these imperfections in 05d838a.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
ba8f5d5
to
0dd84d9
Compare
Pull request CI reportReport generated at: 2024-04-02 12:35 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
@@ -38,6 +38,7 @@ LICENSE="GPL-2+ | |||
SLOT="0" | |||
IUSE="alsa audiocom ffmpeg +flac id3tag +ladspa +lv2 mpg123 ogg | |||
opus +portmixer sbsms test twolame vamp +vorbis wavpack" | |||
REQUIRED_USE="opus? ( ogg )" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REQUIRED_USE does look like the way to go to be in full control of:
if ( USE_LIBOPUS AND USE_OPUSFILE AND USE_LIBOGG )
list ( APPEND MODULES mod-opus )
endif()
But there is another module dependency issue, in that you only get the ogg module with vorbis too:
if ( USE_LIBOGG AND USE_LIBVORBIS )
list( APPEND MODULES mod-ogg )
endif()
but as above for the opus module you need ogg and not vorbis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I just tried building my own ebuild with -vorbis
and it didn't install the opus module. Assuming all these flags work as expected could be a mistake (as with lv2).
I had -opus
!
With ogg opus -vorbis
I don't get the ogg module as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mod-ogg
is a bit misleading name. Effectively, it's the mod-vorbis
under the hood, so I've added vorbis? ( ogg )
to the REQUIRED_USE
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the pragmatic way to go because of the misleading names and the way the audacity_use options work.
0dd84d9
to
05d838a
Compare
Pull request CI reportReport generated at: 2024-04-03 01:30 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Hello @mehw, |
Hello @Jamim, Do you have any suggestion about the tools to use in an LXC container (rif. #35887 (comment))?
This is what I read to prepare the LXC container for Audacity:
LXC container: |
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR 35903: gentoo/gentoo#35903 Head commit of PR 35903: Jamim/gentoo@05d838a Head commit of repository gentoo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" SUCCESS emerge =media-sound/audacity-3.4.2-r1
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR 35903: gentoo/gentoo#35903 Head commit of PR 35903: Jamim/gentoo@05d838a Head commit of repository gentoo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" FAILURE emerge --unmerge media-sound/audacity emerge --depclean rm /var/cache/binpkgs/media-sound/audacity/audacity-3.4.2-r1-* emerge -k =media-sound/audacity-3.4.2-r1
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR 35903: gentoo/gentoo#35903 Head commit of PR 35903: Jamim/gentoo@05d838a Head commit of repository gentoo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" SUCCESS cd /var/db/repos/localrepo/media-sound/audacity cp audacity-3.4.2-r{1,2}.ebuild patch -p1 < .../audacity-3.4.2-r2-3.patch ebuild audacity-3.4.2-r2.ebuild manifest emerge --unmerge media-sound/audacity emerge --depclean emerge -k =media-sound/audacity-3.4.2-r2
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR 35903: gentoo/gentoo#35903 Head commit of PR 35903: Jamim/gentoo@05d838a Head commit of repository gentoo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" SUCCESS emerge =media-sound/audacity-3.4.2-r1
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR 35903: gentoo/gentoo#35903 Head commit of PR 35903: Jamim/gentoo@05d838a Head commit of repository gentoo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" FAILURE emerge --unmerge media-sound/audacity emerge --depclean rm /var/cache/binpkgs/media-sound/audacity/audacity-3.4.2-r1-* emerge -k =media-sound/audacity-3.4.2-r1
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR 35903: gentoo/gentoo#35903 Head commit of PR 35903: Jamim/gentoo@05d838a Head commit of repository gentoo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" SUCCESS cd /var/db/repos/localrepo/media-sound/audacity cp audacity-3.4.2-r{1,2}.ebuild patch -p1 < .../audacity-3.4.2-r2-3.patch ebuild audacity-3.4.2-r2.ebuild manifest emerge --unmerge media-sound/audacity emerge --depclean emerge -k =media-sound/audacity-3.4.2-r2
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/05d838a28b1c2516741f7ff25b2c4e89984e76e8 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" SUCCESS emerge =media-sound/audacity-3.4.2-r1
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/05d838a28b1c2516741f7ff25b2c4e89984e76e8 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" FAILURE emerge --unmerge media-sound/audacity emerge --depclean rm /var/cache/binpkgs/media-sound/audacity/audacity-3.4.2-r1-* emerge -k =media-sound/audacity-3.4.2-r1
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/05d838a28b1c2516741f7ff25b2c4e89984e76e8 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" SUCCESS cd /var/db/repos/localrepo/media-sound/audacity cp audacity-3.4.2-r{1,2}.ebuild patch -p1 < .../audacity-3.4.2-r2-3.patch ebuild audacity-3.4.2-r2.ebuild manifest emerge --unmerge media-sound/audacity emerge --depclean emerge -k =media-sound/audacity-3.4.2-r2
LXC container: Gentoo amd64 (openrc) (20240406_16:07) Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/05d838a28b1c2516741f7ff25b2c4e89984e76e8 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/be766b5b349fc88b7c91c35074560d162240c3fd USE="-alsa -audiocom -ffmpeg -flac -id3tag -ladspa -lv2 -mpg123 -ogg -opus -portmixer -sbsms -test -twolame -vamp -vorbis -wavpack" SUCCESS emerge =media-sound/audacity-3.4.2-r1
I've got these warnings when run "pkgcheck scan --commits $(git merge-base HEAD origin/master)..HEAD", VariableShadowed: version 3.3.3-r1: variable 'REQUIRED_USE' may be shadowed, on lines: 41, 115 VariableShadowed: |
sounds good to me
No, I'd leave this up to you, I'm here merely to do some last step checking & help to merge this PR.. |
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 FAILURE USE="-* ABI_X86="(64)" Undefined references about libflac, required by Audacity's ondemand (aka OD) file handling, even when its support had been disabled via configure. emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 SUCCESS Fixes PR 35903 HEAD 911aff1 2.4.2-r3 iteration #1 via audacity-2.4.2-fix-libflac-undefined-references.patch. USE="-* ABI_X86="(64)" cd /var/db/repos/localrepo/media-sound/audacity patch -p1 < .../audacity-2.4.2-r3-2.patch ebuild audacity-2.4.2-r3.ebuild manifest emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
@Jamim could you please take a look at audacity-2.4.2-r3/2/files/audacity-2.4.2-fix-libflac-undefined-references.patch that closes bug#741969 and bug#884747?
Thanks. IMHO, due to new patches: If appropriate, also unstabilize What do you think?
@dlan17 thanks for verifying, I'll take a look.
About the missing |
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 FAILURE USE="-* ABI_X86="(64)" Undefined references about libflac, required by Audacity's ondemand (aka OD) file handling, even when its support had been disabled via configure. emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 SUCCESS Fixes PR 35903 HEAD 911aff1 2.4.2-r3 iteration 1 via audacity-2.4.2-fix-libflac-undefined-references.patch. USE="-* ABI_X86="(64)" cd /var/db/repos/localrepo/media-sound/audacity patch -p1 < .../audacity-2.4.2-r3-2.patch ebuild audacity-2.4.2-r3.ebuild manifest emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 SUCCESS Fixes PR 35903 HEAD 911aff1 2.4.2-r3 iteration 1 via audacity-2.4.2-fix-libflac-undefined-references.patch. USE="-* ABI_X86="(64)" cd /var/db/repos/localrepo/media-sound/audacity patch -p1 < .../audacity-2.4.2-r3-2.patch ebuild audacity-2.4.2-r3.ebuild manifest emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 FAILURE USE="-*" ABI_X86="(64)" Undefined references about libflac, required by Audacity's ondemand (aka OD) file handling, even when its support had been disabled via configure. emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 SUCCESS Fixes PR 35903 HEAD 911aff1 2.4.2-r3 iteration 1 via audacity-2.4.2-fix-libflac-undefined-references.patch. USE="-*" ABI_X86="(64)" cd /var/db/repos/localrepo/media-sound/audacity patch -p1 < .../audacity-2.4.2-r3-2.patch ebuild audacity-2.4.2-r3.ebuild manifest emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 SUCCESS USE="-* flac" ABI_X86="(64)" emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
Yes, sounds good if you want to drop them to unstable keywords, and this is the normal way how we handle new patch,
Ok, thanks for explanation
|
LXC container: Gentoo amd64 (openrc) (20240408_16:07) container Testing PR: gentoo/gentoo#35903 Head of PR: https://github.com/Jamim/gentoo/tree/911aff12f7fe07a527a7faa15c78156b1a15b8f7 Head of Gentoo's repo: https://github.com/gentoo/gentoo/tree/9428b7b54576cfaa84da562e1148a804acd6cc30 SUCCESS USE="-* lv2" ABI_X86="(64)" emerge --unmerge media-sound/audacity emerge --depclean nano /var/cache/binpkgs/Packages # remove audacity-2.4.2-r3 entries rm /var/cache/binpkgs/media-sound/audacity/audacity-2.4.2-r3-* emerge -k =media-sound/audacity-2.4.2-r3
The flac USE flag was mistakenly used instead of the opus USE flag for configuring. Also, Audacity 3.4.2 introduced a brand new USE_OPUSFILE option which must be set properly. These changes: - fix the opus USE flag - add proper REQUIRED_USE - replace media-sound/mpg123 with media-sound/mpg123-base - move dev-libs/rapidjson from RDEPEND to DEPEND - fix missing `#include <limits>` for 2.4.2-r4 - limit media-video/ffmpeg to <5 for 2.4.2-r4 - add x11-base/xorg-proto to DEPEND - add some ASM to BDEPEND - add audacity-3.4.2-audiocom-std-string.patch to PATCHES for 3.3.3-r1 - add audacity-2.4.2-fix-libflac-undefined-references.patch to PATCHES for 2.4.2-r4 - reset KEYWORDS for 2.4.2-r4 and 3.3.3-r1 Closes: https://bugs.gentoo.org/741969 Closes: https://bugs.gentoo.org/884747 Closes: https://bugs.gentoo.org/910723 Closes: https://bugs.gentoo.org/922595 Closes: https://bugs.gentoo.org/927659 Co-authored-by: Matthew White <mehw.is.me@inventati.org> Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com>
911aff1
to
649075c
Compare
Pull Request assignmentSubmitter: @Jamim media-sound/audacity: @gentoo/proaudio, Linked bugsBugs linked: 910723, 922595, 884747, 927659, 741969 In order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
Pull request CI reportReport generated at: 2024-04-16 19:30 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Hello everyone,
The
flac
USE flag was mistakenly used instead of theopus
USE flag for configuring.Also, Audacity
3.4.2
introduced a brand newUSE_OPUSFILE
option which must be set properly.These changes:
opus
USE flagREQUIRED_USE
media-sound/mpg123
withmedia-sound/mpg123-base
dev-libs/rapidjson
fromRDEPEND
toDEPEND
#include <limits>
for2.4.2-r3
media-video/ffmpeg
to<5
for2.4.2-r3
x11-base/xorg-proto
toDEPEND
BDEPEND
audacity-3.4.2-audiocom-std-string.patch
toPATCHES
for3.3.3-r1
audacity-2.4.2-fix-libflac-undefined-references.patch
toPATCHES
for2.4.2-r4
KEYWORDS
for2.4.2-r4
and3.3.3-r1
Closes:
Best regards!