Package Details: sonata-git 1.7.0.r11.g48f7456-2

Git Clone URL: https://aur.archlinux.org/sonata-git.git (read-only, click to copy)
Package Base: sonata-git
Description: Elegant GTK+3 music client for MPD (Git Version)
Upstream URL: https://github.com/multani/sonata
Licenses: GPL3
Conflicts: sonata, sonata-svn
Provides: sonata
Submitter: Florian
Maintainer: intensity
Last Packager: Florian
Votes: 5
Popularity: 0.000000
First Submitted: 2016-01-06 13:20 (UTC)
Last Updated: 2022-04-06 16:04 (UTC)

Dependencies (8)

Required by (0)

Sources (1)

Latest Comments

Florian commented on 2024-05-21 19:05 (UTC)

Hi, I haven't been using sonata in a while, so I've disowned this package. Please feel free to adopt it and update the PKGBUILD.

intensity commented on 2024-05-21 03:05 (UTC)

There's some errors due to python 3.12. I've put an upstream PR here: https://github.com/multani/sonata/pull/153

Until then, we can make these changes:

$ git diff
diff --git PKGBUILD PKGBUILD
index 782c38a..f12dfb1 100644
--- PKGBUILD
+++ PKGBUILD
@@ -15,8 +15,13 @@ depends=('python' 'python-gobject' 'gtk3' 'python-mpd2')
 makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
 optdepends=('python-tagpy: metadata editing support'
             'python-dbus: multimedia keys support')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/multani/sonata/archive/refs/tags/v${pkgver}.tar.gz)
-sha256sums=('564a226f8d57b286836742d234aa9fa8bc47b897a4f1d61f99a544777c5aab1e')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/multani/sonata/archive/refs/tags/v${pkgver}.tar.gz 'python3.12.patch')
+sha256sums=('564a226f8d57b286836742d234aa9fa8bc47b897a4f1d61f99a544777c5aab1e' 'SKIP')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -p0 -i "$srcdir/python3.12.patch"
+}

 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"

and here's the python-3.12.patch contents:

diff --git sonata/pluginsystem.py sonata/pluginsystem.py
index 98d87da..4d6b933 100644
--- sonata/pluginsystem.py
+++ sonata/pluginsystem.py
@@ -195,8 +195,8 @@ class PluginSystem:
         infotext = re.search(pat, text, re.MULTILINE).group(1)
         uncommented = '\n'.join(line[1:].strip()
                     for line in infotext.split('\n'))
-        info = configparser.SafeConfigParser()
-        info.readfp(StringIO(uncommented))
+        info = configparser.ConfigParser()
+        info.read_file(StringIO(uncommented))

         plugin = Plugin(path, name, info,
                 lambda:self.import_plugin(name))

Florian commented on 2023-02-07 21:10 (UTC)

Looks like python-setuptools>=67 started to reject version numbers that aren't conformant according to PEP-440 [1]. The git describe --long string is used internally, which is why the package fails to build.

This is not an issue with packaging, please file a bug upstream [2].

[1] https://peps.python.org/pep-0440/ [2] https://github.com/multani/sonata/issues

wooptoo commented on 2023-02-06 09:58 (UTC)

The build seems to fail with: https://gist.github.com/radupotop/f5d62c8c70b231f0e9f043e218004644

eduard commented on 2021-08-30 06:42 (UTC) (edited on 2021-08-30 06:43 (UTC) by eduard)

Add python-setuptools dependency:

Traceback (most recent call last): File "/home/none/.cache/yay/sonata-git/src/sonata/setup.py", line 11, in <module> from setuptools import setup, Extension ModuleNotFoundError: No module named 'setuptools' ==> ERROR: A failure occurred in package(). Aborting... error making: sonata-git

yochananmarqos commented on 2019-12-13 19:59 (UTC) (edited on 2020-04-10 16:59 (UTC) by yochananmarqos)

Please see VCS package guidelines:

If tag contains a prefix, like v or project name then it should be cut off:

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    # cutting off 'v' prefix that presents in the git tag
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
1.7b1.r29.g0c807e5

Please add a build() function per Python package guidelines.

Please use https:

source=('git+https://github.com/multani/sonata.git')