Package Details: audacity-git 3.6.3.r257.g652bfea82-1

Git Clone URL: https://aur.archlinux.org/audacity-git.git (read-only, click to copy)
Package Base: audacity-git
Description: A program that lets you manipulate digital audio waveforms
Upstream URL: https://www.audacityteam.org/
Keywords: audio editor
Licenses: GPL2, CCPL
Groups: pro-audio
Conflicts: audacity
Provides: audacity, ladspa-host, lv2-host, vamp-host, vst-host, vst3-host
Submitter: proudzhu
Maintainer: matthewq337
Last Packager: ongyx
Votes: 16
Popularity: 0.057783
First Submitted: 2015-11-02 16:13 (UTC)
Last Updated: 2024-09-10 16:47 (UTC)

Required by (160)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

ongyx commented on 2021-08-31 15:09 (UTC) (edited on 2021-09-18 13:21 (UTC) by ongyx)

Audacity doesn't seem to compile because of warnings being treated as errors when building flac. This is probably due to the flag being set in conan.

ongyx commented on 2021-08-31 14:44 (UTC) (edited on 2021-08-31 14:45 (UTC) by ongyx)

@rcrath I'll remove the patch from this package. It was only needed because clang was being used to compile Audacity (and by extension PortAudio) instead of gcc, so it was kind of a hack.

rcrath commented on 2021-08-24 01:56 (UTC)

falls with the following, no such file as pa_alsa_linux.c on my system as far as I can tell:

==> Starting prepare()...
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --unified --recursive --text audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c audacity.new/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c
|--- audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c    2021-07-02 00:17:06.606660728 +0800
|+++ audacity.new/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c    2021-07-02 00:18:22.376662323 +0800
--------------------------
File to patch:

rev.cressy commented on 2021-08-08 13:05 (UTC)

Good morning, You might consider adding docbook2x to the makedepends.

The compile halted without docbook2x installed. I have not used sgml and docbook for years.

Have a great day

ongyx commented on 2021-07-02 01:40 (UTC)

The PKGBUILD now patches Audacity's sources so Clang can compile it. If you are updating from an older version, you may have to clean your AUR helper's cache (i.e yay -Sc).

ongyx commented on 2021-07-01 16:58 (UTC) (edited on 2021-07-01 16:59 (UTC) by ongyx)

I used the commands in the PKGBUILD to compile Audacity by hand so I could see all errors emited by make and clang. It seems it is a error in portaudio-v19, which Audacity vendors:

/home/ongyx/.cache/yay/audacity-git/src/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c:4377:5: error: cannot jump from this goto statem
ent to its label
    goto end;
    ^
/home/ongyx/.cache/yay/audacity-git/src/audacity/lib-src/portaudio-v19/src/hostapi/alsa/pa_linux_alsa.c:4202:5: note: jump bypasses initialization of va
riable with __attribute__((cleanup))
    pthread_cleanup_push( &OnExit, stream );
    ^

Relevant part of portaudio's code:


    /* Execute OnExit when exiting */
    pthread_cleanup_push( &OnExit, stream );

    /* ... */

end:
    ; /* Hack to fix "label at end of compound statement" error caused by pthread_cleanup_pop(1) macro. */
    /* Match pthread_cleanup_push */
    pthread_cleanup_pop( 1 );

    PA_DEBUG(( "%s: Thread %d exiting\n ", __FUNCTION__, pthread_self() ));
    PaUnixThreading_EXIT( result );

error:
    PA_DEBUG(( "%s: Thread %d is canceled due to error %d\n ", __FUNCTION__, pthread_self(), result ));
    goto end;
}

The pthread_cleanup_push macro actually has a __attribute__((cleanup)) in it.

It is not guaranteed that pthread_cleanup_pop will run because goto end only occurs in specific cases. Clang throws a hard error on this, but gcc won't.

This error was reported on upstream portaudio too.

The fix is to just move pthread_cleanup_pop before the end: goto label. I tried this and Audacity compiles sucessfully. I'll test out this patch on the PKGBUILD.

EDIT: I'll also open a PR to upstream to fix this.

RichF77 commented on 2021-06-21 14:09 (UTC) (edited on 2021-06-21 14:11 (UTC) by RichF77)

This package does not build and audicity-3.0.2 package either. The error I'm getting now is:

-- Detecting CXX compile features - done
CMake Error at cmake-proxies/cmake-modules/conan.cmake:806 (message):
Conan --version failed='1'
Call Stack (most recent call first):
cmake-proxies/cmake-modules/conan.cmake:841 (conan_check)
cmake-proxies/cmake-modules/AudacityDependencies.cmake:4 (conan_add_remote)
CMakeLists.txt:158 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/pamac-build-user/audacity-git/src/audacity/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
    Aborting...

FabioLolix commented on 2021-06-18 19:10 (UTC)

When I updated on 22 May I was working since several days, broke the day after -_-

FabioLolix commented on 2021-06-18 19:05 (UTC) (edited on 2021-06-27 20:22 (UTC) by FabioLolix)

I have added conan to makedepends, however the build still fails at about 40%