Package Details: audacity-wxgtk2 3.1.3-1

Git Clone URL: https://aur.archlinux.org/audacity-wxgtk2.git (read-only, click to copy)
Package Base: audacity-wxgtk2
Description: Record and edit audio files
Upstream URL: https://audacityteam.org
Keywords: audacity audio gtk2
Licenses: GPL2, CCPL
Conflicts: audacity
Provides: audacity
Submitter: osch
Maintainer: osch
Last Packager: osch
Votes: 11
Popularity: 0.142901
First Submitted: 2018-06-22 07:58 (UTC)
Last Updated: 2021-12-29 13:27 (UTC)

Pinned Comments

osch commented on 2022-01-23 18:21 (UTC)

Audacity uses Conan build tool. Important note:

When upgrading Arch Linux system Python package from one major version to another, one needs to rebuild and reinstall all local or AUR-sourced Python-dependent packages. So, after going between Python 3.9 and 3.10 Conan and its dependencies from AUR need to be reinstalled.

See also https://github.com/conan-io/conan/issues/10260#issuecomment-1008148821

osch commented on 2021-07-29 09:07 (UTC) (edited on 2021-07-29 09:08 (UTC) by osch)

Version 3.0.3 of this package is without online update checks. AFAIK it has no builtin networking functionality at all.

Latest Comments

osch commented on 2022-07-26 09:18 (UTC)

@dvzrv wrote: "Given that upstream prefers gtk3 over gtk2"

No, thats not true: the official Audacity 3.1.3 AppImage from upstream (*) uses gtk2. AFAIK Audacity GUI does work best with gtk2 and has some glitches under gtk3, at least last time when I checked it.

(*): https://github.com/audacity/audacity/releases/download/Audacity-3.1.3/audacity-linux-3.1.3-x86_64.AppImage

dvzrv commented on 2022-07-26 09:13 (UTC)

Given that upstream prefers gtk3 over gtk2, gtk2 being EOL, wxgtk2 not being provided by Arch Linux anymore and Arch Linux eventually removing it from the repository, is there any additional benefit for providing this package alongside the one in [community]?

saburouta commented on 2022-06-15 07:33 (UTC)

Is anyone else seeing this linking error?

[100%] Linking CXX executable ../bin/Release/audacity
/bin/ld: /usr/lib/libvamp-hostsdk.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/Audacity.dir/build.make:6170: bin/Release/audacity] Error 1
make[1]: *** [CMakeFiles/Makefile2:1402: src/CMakeFiles/Audacity.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

osch commented on 2022-01-23 18:21 (UTC)

Audacity uses Conan build tool. Important note:

When upgrading Arch Linux system Python package from one major version to another, one needs to rebuild and reinstall all local or AUR-sourced Python-dependent packages. So, after going between Python 3.9 and 3.10 Conan and its dependencies from AUR need to be reinstalled.

See also https://github.com/conan-io/conan/issues/10260#issuecomment-1008148821

osch commented on 2022-01-23 18:16 (UTC) (edited on 2022-01-23 18:20 (UTC) by osch)

@Creto: someone reported similar problems to the conan issue tracker, see: https://github.com/conan-io/conan/issues/10260#issuecomment-1004023447

Solution from the above link:

When upgrading Arch Linux system Python package from one major version to another, one needs to rebuild and reinstall all local or AUR-sourced Python-dependent packages. So, after going between Python 3.9 and 3.10 Conan and its dependencies from AUR need to be reinstalled.

see https://github.com/conan-io/conan/issues/10260#issuecomment-1008148821

Creto commented on 2022-01-16 14:45 (UTC)

Error

==> Iniciando prepare()... Traceback (most recent call last): File "/usr/sbin/conan", line 33, in <module> sys.exit(load_entry_point('conan==1.44.0', 'console_scripts', 'conan')()) File "/usr/sbin/conan", line 22, in importlib_load_entry_point for entry_point in distribution(dist_name).entry_points File "/usr/lib/python3.10/importlib/metadata/init.py", line 919, in distribution return Distribution.from_name(distribution_name) File "/usr/lib/python3.10/importlib/metadata/init.py", line 518, in from_name raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: No package metadata was found for conan ==> ERRO: Uma falha ocorreu em prepare(). Abortando...

promike commented on 2022-01-06 15:59 (UTC)

@osch That's it, thank you very much! However, it's rather strange how you were able to compile the package when Conan 1.44.0 wasn't available. :O

If anyone has a similar issue, just update to Conan 1.44.0 and get rid of ~/.conan

osch commented on 2022-01-02 12:09 (UTC)

@promike: I compared your build output against my current build output and the only difference I see is that you are using Conan 1.43.1 and Python 3.10.1 whereas I'm using Conan 1.44.0 and Python 3.9.9 (I'm using Manjaro). It seems to me that your latest error log indicates some problems with Python and Conan, because there is only a Python stack trace without a dedicated error message.

Perhaps you could try to make a clean re-install to latest Conan version and try again? Perhaps deleting the ~/.conan folder again could improver some things?

promike commented on 2021-12-30 11:14 (UTC)

I don't know exactly how long I'd been missing those plugins. It seems that removing those files has solved the problem. At least there are no more plugins to enable. As if there were fewer plugins now. We'll see if anything is missing. (Maybe some calf plugins that weren't functional anyways)

I tried compiling the package and sorry to say, but unfortunately it got worse.

ERROR: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/conans/client/command.py", line 2232, in run
    method(args[0][1:])
  File "/usr/lib/python3.10/site-packages/conans/client/command.py", line 523, in install
    info = self._conan.install(path=args.path_or_reference,
  File "/usr/lib/python3.10/site-packages/conans/client/conan_api.py", line 93, in wrapper
    return f(api, *args, **kwargs)
  File "/usr/lib/python3.10/site-packages/conans/client/conan_api.py", line 606, in install
    deps_install(app=self.app,
  File "/usr/lib/python3.10/site-packages/conans/client/manager.py", line 58, in deps_install
    deps_graph = graph_manager.load_graph(ref_or_path, create_reference, graph_info, build_modes,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/graph_manager.py", line 122, in load_graph
    deps_graph = self._resolve_graph(root_node, profile_host, profile_build, graph_lock,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/graph_manager.py", line 279, in _resolve_graph
    deps_graph = self._load_graph(root_node, check_updates, update,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/graph_manager.py", line 396, in _load_graph
    graph = builder.load_graph(root_node, check_updates, update, remotes, profile_host,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/graph_builder.py", line 66, in load_graph
    self._expand_node(root_node, dep_graph, Requirements(), None, None, check_updates,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/graph_builder.py", line 131, in _expand_node
    self._expand_require(require, node, graph, check_updates, update, remotes, profile_host,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/graph_builder.py", line 246, in _expand_require
    new_node = self._create_new_node(node, graph, require, check_updates, update,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/graph_builder.py", line 442, in _create_new_node
    result = self._resolve_recipe(current_node, dep_graph, requirement, check_updates, update,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/graph_builder.py", line 402, in _resolve_recipe
    result = self._proxy.get_recipe(requirement.ref, check_updates, update,
  File "/usr/lib/python3.10/site-packages/conans/client/graph/proxy.py", line 37, in get_recipe
    result = self._get_recipe(layout, ref, check_updates, update, remotes, recorder)
  File "/usr/lib/python3.10/site-packages/conans/client/graph/proxy.py", line 58, in _get_recipe
    metadata = layout.load_metadata()
  File "/usr/lib/python3.10/site-packages/conans/paths/package_layouts/package_cache_layout.py", line 245, in load_metadata
    return PackageMetadata.loads(text)
  File "/usr/lib/python3.10/site-packages/conans/model/package_metadata.py", line 87, in loads
    data = json.loads(content)
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

CMake Error at cmake-proxies/cmake-modules/conan.cmake:631 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake-proxies/cmake-modules/AudacityDependencies.cmake:255 (conan_cmake_install)
  cmake-proxies/cmake-modules/AudacityDependencies.cmake:277 (_conan_install)
  CMakeLists.txt:541 (resolve_conan_dependencies)


-- Configuring incomplete, errors occurred!
See also "/tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.3/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.3/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in prepare().
    Aborting...

I'm providing you the full output in case it helps: https://bpa.st/X7TA

osch commented on 2021-12-29 13:55 (UTC)

@promike: it seems that a installed wxgtk2 3.0.5 package from "extra" caused compilation problems.

I tried to fix it by defining audacity_use_wxwidgets=local, although this should be default according to https://github.com/audacity/audacity/blob/master/CMAKE_OPTIONS.md

Could you try to build again?

Regarding disabled plugins: Are you having these problems still with version 3.1.3? If so: could you try to remove ~/.audacity-data/pluginsettings.cfg and .audacity-data/pluginregistry.cfg?

promike commented on 2021-12-28 08:18 (UTC)

As a workaround, I compiled the package in a virtual environment. It's strange, I've been using your package since 2018 December, and it used to work.

Anyway, there's something that I don't understand. Why are there so many plugins that cannot be enabled? Say; Click Track, Notch Filter or Vocal Remover.

promike commented on 2021-12-27 22:36 (UTC)

@osch: Unfortunately, it won't build with or without ~/.conan (The error message is still the same)

osch commented on 2021-12-26 11:41 (UTC)

@promike: could you try to delete the whole folder ~/.conan in your home directory and try building again?

promike commented on 2021-12-26 11:20 (UTC)

@osch It's as clean as can be: pacman -Syu; cd /tmp; git clone https://aur.archlinux.org/audacity-wxgtk2; cd audacity-wxgtk2; makepkg -sri

I'm not going to insert the output because it's the very same. These dependencies are installed:

alsa-lib 1.2.6.1-1
curl 7.80.0-1
expat 2.4.1-1
ffmpeg 2:4.4.1-1
flac 1.3.3-3
glib2 2.70.2-1
gtk2 2.24.33-2
jack2 1.9.19-2
lame 3.100-3
libid3tag 0.15.1b-11
libmad 0.15.1b-9
libogg 1.3.5-1
libsndfile 1.0.31-1
libsoxr 0.1.3-2
libvorbis 1.3.7-2
lilv 0.24.12-4
lv2 1.18.2-1
portaudio 1:19.7.0-1
portmidi 236-1
portsmf 234-2
python 3.10.1-1
serd 0.30.10-1
sord 0.16.8-1
soundtouch 2.3.0-1
sratom 0.6.8-3
suil 0.10.10-2
twolame 0.4.0-2
util-linux 2.37.2-4
util-linux-libs 2.37.2-4
vamp-plugin-sdk 2.10.0-1
zlib 1:1.2.11-4
autoconf 2.71-1
automake 1.16.5-1
cmake 3.22.1-5
conan 1.43.1-1
git 2.34.1-1
libtool 2.4.6+42+gb88cebd5-16

osch commented on 2021-12-24 11:26 (UTC)

@promike: yes I can compile this package (I just also tried the new version 3.1.3). From the sources it seems that wxUSE_STD_STRING is not defined in your case. But I'm sorry I don't know how this could happen. Did you try a clean build?

promike commented on 2021-12-24 08:32 (UTC) (edited on 2021-12-24 08:37 (UTC) by promike)

Can you compile this package? It's failing here.

[ 26%] Building CXX object libraries/lib-string-utils/CMakeFiles/lib-string-utils.dir/CodeConversions.cpp.o
/tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.2/libraries/lib-string-utils/CodeConversions.cpp: In function ‘std::string audacity::ToUTF8(const wxString&)’:
/tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.2/libraries/lib-string-utils/CodeConversions.cpp:31:29: error: no matching function for call to ‘wxString::ToStdString(wxMBConvStrictUTF8&) const’
   31 |     return wstr.ToStdString (wxGet_wxConvUTF8 ());
      |            ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.2/libraries/lib-string-utils/CodeConversions.h:14,
                 from /tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.2/libraries/lib-string-utils/CodeConversions.cpp:11:
/usr/include/wx-3.0/wx/string.h:1363:17: note: candidate: ‘std::string wxString::ToStdString() const’
 1363 |     std::string ToStdString() const
      |                 ^~~~~~~~~~~
/usr/include/wx-3.0/wx/string.h:1363:17: note:   candidate expects 0 arguments, 1 provided
/tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.2/libraries/lib-string-utils/CodeConversions.cpp: In function ‘wxString audacity::ToWXString(const string&)’:
/tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.2/libraries/lib-string-utils/CodeConversions.cpp:51:32: error: cannot convert ‘const string’ {aka ‘const std::__cxx11::basic_string<char>’} to ‘const char*’
   51 |     return wxString::FromUTF8 (str);
      |                                ^~~
      |                                |
      |                                const string {aka const std::__cxx11::basic_string<char>}
In file included from /tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.2/libraries/lib-string-utils/CodeConversions.h:14,
                 from /tmp/makepkg/audacity-wxgtk2/src/audacity-Audacity-3.1.2/libraries/lib-string-utils/CodeConversions.cpp:11:
/usr/include/wx-3.0/wx/string.h:1742:42: note:   initializing argument 1 of ‘static wxString wxString::FromUTF8(const char*, size_t)’
 1742 |     static wxString FromUTF8(const char *utf8, size_t len = npos)
      |                              ~~~~~~~~~~~~^~~~
make[2]: *** [libraries/lib-string-utils/CMakeFiles/lib-string-utils.dir/build.make:104: libraries/lib-string-utils/CMakeFiles/lib-string-utils.dir/CodeConversions.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:808: libraries/lib-string-utils/CMakeFiles/lib-string-utils.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

osch commented on 2021-08-03 17:34 (UTC) (edited on 2021-08-04 05:08 (UTC) by osch)

@Master81: the problem seems to be

zlib/1.2.11: Not found in local cache, looking in remotes...
zlib/1.2.11: Trying with 'conancenter'...
ERROR: Permission denied for user: 'None'. [Remote: conancenter]

So the audacity build script uses conan as build tool and conan seems to download something from "conancenter".

On my system I have:

zlib/1.2.11: Not found in local cache, looking in remotes...
zlib/1.2.11: Trying with 'conancenter'...
Downloading conanmanifest.txt
Downloading conanfile.py
Downloading conan_export.tgz
zlib/1.2.11: Downloaded recipe revision 0

According to https://stackoverflow.com/questions/68488938/conan-permission-denied-for-user this could be a problem with ~/.conan/remotes.json

Could you try to delete the whole folder ~/.conan and try building again?

On my system ~/.conan/remotes.json looks like:

{
 "remotes": [
  {
   "name": "conancenter",
   "url": "https://center.conan.io",
   "verify_ssl": true
  },
  {
   "name": "conan-center",
   "url": "https://conan.bintray.com",
   "verify_ssl": true
  },
  {
   "name": "audacity",
   "url": "https://artifactory.audacityteam.org/artifactory/api/conan/conan-local",
   "verify_ssl": true
  }
 ]
}

The last entry seems to be added by the audacity build process.

I must say this conan thing seems to be a bad idea :-(

BTW the next version of Audacity seems to provide a solution for building it without additional downloads from conancenter, see https://github.com/audacity/audacity/pull/1388

Master81 commented on 2021-08-03 10:44 (UTC)

@osch still not working.

https://uupload.ir/view/logfile2_r9ur.zip/

osch commented on 2021-08-02 18:20 (UTC)

@Master81: I tried to fix the problem. Could you please retry?

Master81 commented on 2021-08-02 18:12 (UTC)

Hello the latest update does not work for me can you fix it plz:

my logfile: https://uupload.ir/view/my_log_file_from_pamac_gui.txt_a5y4.zip/

Creto commented on 2021-08-01 15:25 (UTC)

LOL

@osch, thank you very much and I'm happy to have people like that so willing to help dumb users like me, again thank you very much, if remedied, but hopefully the audacity guys can sort this out, steve is a very helpful guy there too the way you were with me

Audacity-wxgtk2 working in pt_BR

Best regards, Paulo Creto

osch commented on 2021-08-01 07:32 (UTC) (edited on 2021-08-01 07:41 (UTC) by osch)

@Creto: this might be a bug in Audacity. The language file is installed with this package at /usr/share/locale/pt_BR/LC_MESSAGES/audacity.mo.

However $ LC_ALL=pt_BR.utf8 audacity doesn't work. It seems Audacity is ignoring the language settings.

Also in preferences settings there is only listed English and System.

This behaviour is not only with the audacity-wxgtk2 package, it's also the same if using the official Audacity AppImage.

But I have a workaround: edit the file ~/.audacity-data/audacity.cfg, search for the entry [Locale] and set the language:

[Locale]
Language=pt_BR

I also wrote about the above workaround at: https://forum.audacityteam.org/viewtopic.php?f=48&t=119499

Creto commented on 2021-08-01 02:53 (UTC)

audacity-wxgtk2 does not support languages other than English, I am Brazilian and there is no translation package for the AUR audacity-wxgtk2 package

osch commented on 2021-07-29 09:07 (UTC) (edited on 2021-07-29 09:08 (UTC) by osch)

Version 3.0.3 of this package is without online update checks. AFAIK it has no builtin networking functionality at all.

FabioLolix commented on 2021-07-07 18:29 (UTC)

audiocity is already on hold (since a month)

Another fork with to watch is tenacity https://aur.archlinux.org/packages/tenacity-git/

osch commented on 2021-07-06 08:03 (UTC) (edited on 2021-07-06 08:20 (UTC) by osch)

@bazza Thanks for the interesting link.

I moreover found two audacity forks without telemetry in AUR: - https://aur.archlinux.org/packages/audacium-git/ - https://aur.archlinux.org/packages/audiocity-git/

"Audacium" is the Audacity fork with the nicest name IMHO.

bazza commented on 2021-07-06 03:34 (UTC)

I think you could keep out of syrup programs with the version without telemetry: https://github.com/temporary-audacity/audacity

osch commented on 2021-07-01 20:57 (UTC)

@kerostampcrab I was able to reproduce your problem and changed the PKGBUILD to include option -Daudacity_use_sqlite=local. This solved the issue for me. Please try re-building the package with the latest audacity-wxgtk2 version 3.0.2-2.

kerostampcrab commented on 2021-07-01 11:44 (UTC) (edited on 2021-07-01 11:48 (UTC) by kerostampcrab)

Yes. Steve on the Audacity forums said this was probably using another version of wxWidgets. https://forum.audacityteam.org/viewtopic.php?f=48&t=118888

osch commented on 2021-07-01 11:26 (UTC)

@kerostampcrab the current PKGBUILD uses -Daudacity_use_wxwidgets=local. AFAIK this means that Audacity's wxWidgets fork is used.

ldd audacity gives:

...
    libwx_gtk2u_adv-3.1.so => /usr/lib/audacity/libwx_gtk2u_adv-3.1.so (0x00007f651c2e8000)
    libwx_gtk2u_html-3.1.so => /usr/lib/audacity/libwx_gtk2u_html-3.1.so (0x00007f651c1d0000)
    libwx_baseu_net-3.1.so => /usr/lib/audacity/libwx_baseu_net-3.1.so (0x00007f651c16f000)
    libwx_gtk2u_qa-3.1.so => /usr/lib/audacity/libwx_gtk2u_qa-3.1.so (0x00007f651c132000)
    libwx_gtk2u_core-3.1.so => /usr/lib/audacity/libwx_gtk2u_core-3.1.so (0x00007f651b737000)
...
    libwx_baseu_xml-3.1.so => /usr/lib/audacity/libwx_baseu_xml-3.1.so (0x00007f651b1ed000)
    libwx_baseu-3.1.so => /usr/lib/audacity/libwx_baseu-3.1.so (0x00007f651aed3000)
...

Did you try to build the current version audacity-wxgtk2 3.0.2 ?

kerostampcrab commented on 2021-07-01 11:13 (UTC)

Audacity should be built using Audacity's wxWidgets fork. https://github.com/audacity/wxWidgets/ Otherwise i get an error closing Audacity: Internal error at audacity-wxgtk2-3.0.2/src/DBConnection.cpp line 410.

bittin commented on 2021-04-19 14:11 (UTC)

https://pastebin.com/P4TwA4ft 3.0.2 PKGBUILD

defaultxr commented on 2020-07-06 17:59 (UTC)

Oops, guess I should've tried upgrading first. Yes all is well now, thanks :)

osch commented on 2020-07-06 17:01 (UTC)

Does nyquist also not work with current version 2.4.2 which I prepared today?

In 2.4.2 the files plug-ins/*.ny and nyquist/*.lsp are included.

defaultxr commented on 2020-07-06 16:35 (UTC)

...Though, I've found one issue with this package: Nyquist doesn't seem to work. I was able to fix this by installing the official audacity package, copying /usr/share/audacity/nyquist/ , reinstalling this package, and then copying those files back into the same directory. After that, Nyquist works as expected. It seems like the package() function in the PKGBUILD for the official audacity package may be what's needed to fix this issue.

defaultxr commented on 2020-07-05 22:35 (UTC)

Thanks a lot for making this package, the version of Audacity from the official repo is completely unusable for me.