Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] sonata: update to 1.7.0.
@ 2021-07-11 19:05 paper42
  2021-07-11 19:11 ` [PR PATCH] [Updated] " paper42
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: paper42 @ 2021-07-11 19:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]

There is a new pull request by paper42 against master on the void-packages repository

https://github.com/paper42/void-packages sonata-1.7.0
https://github.com/void-linux/void-packages/pull/31912

sonata: update to 1.7.0.
This PR adds a reverts=1.7b1_* line to allow updating to 1.7.0, because xbps considers 1.7b1 to be newer than 1.7.0

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31912.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sonata-1.7.0-31912.patch --]
[-- Type: text/x-diff, Size: 8865 bytes --]

From e6b1c557b7fe74183867596af3dae83bc5b424a1 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 11 Jul 2021 20:17:34 +0200
Subject: [PATCH] sonata: update to 1.7.0.

* add a reverts=1.7b1_* line to allow updating to 1.7.0, because xbps
considers 1.7b1 to be newer than 1.7.0
---
 .../patches/fix-gi_require_version.patch      | 209 ------------------
 .../sonata/patches/fix-sonata_css_px.patch    |  16 --
 srcpkgs/sonata/template                       |  13 +-
 3 files changed, 8 insertions(+), 230 deletions(-)
 delete mode 100644 srcpkgs/sonata/patches/fix-gi_require_version.patch
 delete mode 100644 srcpkgs/sonata/patches/fix-sonata_css_px.patch

diff --git a/srcpkgs/sonata/patches/fix-gi_require_version.patch b/srcpkgs/sonata/patches/fix-gi_require_version.patch
deleted file mode 100644
index b7009ead71ed..000000000000
--- a/srcpkgs/sonata/patches/fix-gi_require_version.patch
+++ /dev/null
@@ -1,209 +0,0 @@
---- a/sonata/about.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/about.py	2017-01-02 23:41:16.245799994 +0100
-@@ -20,6 +20,8 @@
- import gettext
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GdkPixbuf
- 
- from sonata import misc, ui
---- a/sonata/artwork.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/artwork.py	2017-01-02 23:41:37.584805301 +0100
-@@ -23,6 +23,8 @@
- import shutil
- import threading # artwork_update starts a thread _artwork_update
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GLib, GObject
- 
- from sonata import img, ui, misc, consts, mpdhelper as mpdh
---- a/sonata/breadcrumbs.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/breadcrumbs.py	2017-01-02 23:42:21.093816289 +0100
-@@ -17,6 +17,8 @@
- # You should have received a copy of the GNU General Public License
- # along with Sonata.  If not, see <http://www.gnu.org/licenses/>.
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango
- 
- 
---- a/sonata/current.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/current.py	2017-01-02 23:41:03.040796737 +0100
-@@ -22,6 +22,8 @@
- import re
- import urllib.parse, urllib.request
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango, GLib
- 
- from sonata import ui, misc, formatting
---- a/sonata/img.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/img.py	2017-01-02 23:41:34.596804555 +0100
-@@ -19,6 +19,8 @@
- import itertools
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GLib
- 
- from sonata import consts
---- a/sonata/info.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/info.py	2017-01-02 23:40:47.879793023 +0100
-@@ -22,6 +22,8 @@
- import logging
- import threading
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Pango, Gdk, GdkPixbuf, GLib
- 
- from sonata import ui, misc, consts, mpdhelper as mpdh, img
---- a/sonata/launcher.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/launcher.py	2017-01-02 23:42:10.253813530 +0100
-@@ -155,6 +155,8 @@
-     ## Deal with GTK:
- 
-     if not args.skip_gui:
-+        import gi
-+        gi.require_version("Gtk", "3.0")
-         # importing gtk does sys.setdefaultencoding("utf-8"), sets locale etc.
-         from gi.repository import Gtk, Gdk
-     else:
---- a/sonata/library.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/library.py	2017-01-02 23:40:59.564795883 +0100
-@@ -23,6 +23,8 @@
- import threading # libsearchfilter_toggle starts thread libsearchfilter_loop
- import operator
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, GLib, Pango
- 
- from sonata import ui, misc, consts, formatting, breadcrumbs, mpdhelper as mpdh
---- a/sonata/main.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/main.py	2017-01-02 23:41:54.461809537 +0100
-@@ -33,6 +33,8 @@
- import tempfile
- import threading
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, Gio, GLib, Pango
- 
- import pkg_resources
---- a/sonata/misc.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/misc.py	2017-01-02 23:41:12.333799027 +0100
-@@ -23,6 +23,8 @@
- import logging
- import sys
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GLib
- 
- 
---- a/sonata/mpdhelper.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/mpdhelper.py	2017-01-02 23:42:24.485817154 +0100
-@@ -22,6 +22,8 @@
- import os
- import socket
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GObject
- import mpd
- 
---- a/sonata/playlists.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/playlists.py	2017-01-02 23:41:07.749797896 +0100
-@@ -33,6 +33,8 @@
- 
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Pango, Gdk
- 
- from sonata import ui, misc, mpdhelper as mpdh
---- a/sonata/plugins/localmpd.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/plugins/localmpd.py	2017-01-02 23:41:48.333807996 +0100
-@@ -18,6 +18,8 @@
- import subprocess, locale, os
- from pwd import getpwuid
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GLib, Gtk
- 
- from sonata.misc import escape_html
---- a/sonata/plugins/test.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/plugins/test.py	2017-01-02 23:41:51.388808763 +0100
-@@ -20,6 +20,8 @@
- 
- # nothing magical from here on
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, Pango
- 
- from sonata.misc import escape_html
---- a/sonata/preferences.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/preferences.py	2017-01-02 23:41:44.464807024 +0100
-@@ -29,6 +29,8 @@
- 
- import gettext, hashlib
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf
- 
- from sonata.config import Config
---- a/sonata/streams.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/streams.py	2017-01-02 23:41:21.405801273 +0100
-@@ -32,6 +32,8 @@
- import logging
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango
- 
- from sonata import misc, ui
---- a/sonata/tagedit.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/tagedit.py	2017-01-02 23:40:55.678794930 +0100
-@@ -29,6 +29,8 @@
- import os
- import re
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GLib
- tagpy = None # module loaded when needed
- 
---- a/sonata/tray.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/tray.py	2017-01-02 23:41:28.637803070 +0100
-@@ -18,6 +18,8 @@
- 
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GLib
- 
- from sonata import ui, img
---- a/sonata/ui.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/ui.py	2017-01-02 23:41:25.068802182 +0100
-@@ -21,6 +21,8 @@
- import pkg_resources
- import sys
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk
- 
- 
diff --git a/srcpkgs/sonata/patches/fix-sonata_css_px.patch b/srcpkgs/sonata/patches/fix-sonata_css_px.patch
deleted file mode 100644
index 806a06631e51..000000000000
--- a/srcpkgs/sonata/patches/fix-sonata_css_px.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/sonata/ui/sonata.css	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/ui(sonata.css	2017-01-02 23:47:57.875908636 +0100
-@@ -4,11 +4,11 @@
- }
- 
- GtkLabel.fullscreen_label {
--  font-size: 19.5;/*= 20000 / 1024 */
-+  font-size: 19.5px;/*= 20000 / 1024 */
- }
- 
- GtkLabel.fullscreen_label2 {
--  font-size: 11.7;/*= 12000/1024 */
-+  font-size: 11.7px;/*= 12000/1024 */
- }
- 
- GtkLabel.fullscreen_label,
diff --git a/srcpkgs/sonata/template b/srcpkgs/sonata/template
index f4456abd175d..d7225c044fe2 100644
--- a/srcpkgs/sonata/template
+++ b/srcpkgs/sonata/template
@@ -1,13 +1,16 @@
 # Template file for 'sonata'
 pkgname=sonata
-version=1.7b1
-revision=4
+version=1.7.0
+# allow updating to 1.7.0, xbps considers 1.7b1 to be newer than 1.7.0
+reverts="1.7b1_1 1.7b1_2 1.7b1_3 1.7b1_4"
+revision=1
 build_style=python3-module
 hostmakedepends="gettext python3-setuptools"
-depends="python3-mpd2 python3-gobject gtk+3 ${hostmakedepends}"
+depends="python3-mpd2 python3-gobject gtk+3"
+checkdepends="python3-pytest $depends"
 short_desc="Elegant GTK 3 client for the Music Player Daemon"
 maintainer="Jens E. Becker <v2px@v2px.de>"
 license="GPL-3.0-or-later"
-homepage="http://www.nongnu.org/sonata/"
+homepage="https://nongnu.org/sonata/"
 distfiles="https://github.com/multani/sonata/archive/v${version}.tar.gz"
-checksum=401f6b796ca3cc176813b9f1639741a3fd226499c7ab25bbc740778ebb15f81d
+checksum=564a226f8d57b286836742d234aa9fa8bc47b897a4f1d61f99a544777c5aab1e

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Updated] sonata: update to 1.7.0.
  2021-07-11 19:05 [PR PATCH] sonata: update to 1.7.0 paper42
@ 2021-07-11 19:11 ` paper42
  2021-07-12  5:30 ` ericonr
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paper42 @ 2021-07-11 19:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]

There is an updated pull request by paper42 against master on the void-packages repository

https://github.com/paper42/void-packages sonata-1.7.0
https://github.com/void-linux/void-packages/pull/31912

sonata: update to 1.7.0.
This PR adds a reverts=1.7b1_* line to allow updating to 1.7.0, because xbps considers 1.7b1 to be newer than 1.7.0

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31912.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sonata-1.7.0-31912.patch --]
[-- Type: text/x-diff, Size: 8865 bytes --]

From f0e2abedea2e1b0b3dd1017b2caf039bc7627a46 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 11 Jul 2021 20:17:34 +0200
Subject: [PATCH] sonata: update to 1.7.0.

* add a reverts=1.7b1_* line to allow updating to 1.7.0, because xbps
considers 1.7b1 to be newer than 1.7.0
---
 .../patches/fix-gi_require_version.patch      | 209 ------------------
 .../sonata/patches/fix-sonata_css_px.patch    |  16 --
 srcpkgs/sonata/template                       |  13 +-
 3 files changed, 8 insertions(+), 230 deletions(-)
 delete mode 100644 srcpkgs/sonata/patches/fix-gi_require_version.patch
 delete mode 100644 srcpkgs/sonata/patches/fix-sonata_css_px.patch

diff --git a/srcpkgs/sonata/patches/fix-gi_require_version.patch b/srcpkgs/sonata/patches/fix-gi_require_version.patch
deleted file mode 100644
index b7009ead71ed..000000000000
--- a/srcpkgs/sonata/patches/fix-gi_require_version.patch
+++ /dev/null
@@ -1,209 +0,0 @@
---- a/sonata/about.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/about.py	2017-01-02 23:41:16.245799994 +0100
-@@ -20,6 +20,8 @@
- import gettext
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GdkPixbuf
- 
- from sonata import misc, ui
---- a/sonata/artwork.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/artwork.py	2017-01-02 23:41:37.584805301 +0100
-@@ -23,6 +23,8 @@
- import shutil
- import threading # artwork_update starts a thread _artwork_update
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GLib, GObject
- 
- from sonata import img, ui, misc, consts, mpdhelper as mpdh
---- a/sonata/breadcrumbs.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/breadcrumbs.py	2017-01-02 23:42:21.093816289 +0100
-@@ -17,6 +17,8 @@
- # You should have received a copy of the GNU General Public License
- # along with Sonata.  If not, see <http://www.gnu.org/licenses/>.
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango
- 
- 
---- a/sonata/current.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/current.py	2017-01-02 23:41:03.040796737 +0100
-@@ -22,6 +22,8 @@
- import re
- import urllib.parse, urllib.request
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango, GLib
- 
- from sonata import ui, misc, formatting
---- a/sonata/img.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/img.py	2017-01-02 23:41:34.596804555 +0100
-@@ -19,6 +19,8 @@
- import itertools
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GLib
- 
- from sonata import consts
---- a/sonata/info.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/info.py	2017-01-02 23:40:47.879793023 +0100
-@@ -22,6 +22,8 @@
- import logging
- import threading
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Pango, Gdk, GdkPixbuf, GLib
- 
- from sonata import ui, misc, consts, mpdhelper as mpdh, img
---- a/sonata/launcher.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/launcher.py	2017-01-02 23:42:10.253813530 +0100
-@@ -155,6 +155,8 @@
-     ## Deal with GTK:
- 
-     if not args.skip_gui:
-+        import gi
-+        gi.require_version("Gtk", "3.0")
-         # importing gtk does sys.setdefaultencoding("utf-8"), sets locale etc.
-         from gi.repository import Gtk, Gdk
-     else:
---- a/sonata/library.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/library.py	2017-01-02 23:40:59.564795883 +0100
-@@ -23,6 +23,8 @@
- import threading # libsearchfilter_toggle starts thread libsearchfilter_loop
- import operator
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, GLib, Pango
- 
- from sonata import ui, misc, consts, formatting, breadcrumbs, mpdhelper as mpdh
---- a/sonata/main.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/main.py	2017-01-02 23:41:54.461809537 +0100
-@@ -33,6 +33,8 @@
- import tempfile
- import threading
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, Gio, GLib, Pango
- 
- import pkg_resources
---- a/sonata/misc.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/misc.py	2017-01-02 23:41:12.333799027 +0100
-@@ -23,6 +23,8 @@
- import logging
- import sys
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GLib
- 
- 
---- a/sonata/mpdhelper.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/mpdhelper.py	2017-01-02 23:42:24.485817154 +0100
-@@ -22,6 +22,8 @@
- import os
- import socket
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GObject
- import mpd
- 
---- a/sonata/playlists.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/playlists.py	2017-01-02 23:41:07.749797896 +0100
-@@ -33,6 +33,8 @@
- 
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Pango, Gdk
- 
- from sonata import ui, misc, mpdhelper as mpdh
---- a/sonata/plugins/localmpd.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/plugins/localmpd.py	2017-01-02 23:41:48.333807996 +0100
-@@ -18,6 +18,8 @@
- import subprocess, locale, os
- from pwd import getpwuid
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GLib, Gtk
- 
- from sonata.misc import escape_html
---- a/sonata/plugins/test.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/plugins/test.py	2017-01-02 23:41:51.388808763 +0100
-@@ -20,6 +20,8 @@
- 
- # nothing magical from here on
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, Pango
- 
- from sonata.misc import escape_html
---- a/sonata/preferences.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/preferences.py	2017-01-02 23:41:44.464807024 +0100
-@@ -29,6 +29,8 @@
- 
- import gettext, hashlib
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf
- 
- from sonata.config import Config
---- a/sonata/streams.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/streams.py	2017-01-02 23:41:21.405801273 +0100
-@@ -32,6 +32,8 @@
- import logging
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango
- 
- from sonata import misc, ui
---- a/sonata/tagedit.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/tagedit.py	2017-01-02 23:40:55.678794930 +0100
-@@ -29,6 +29,8 @@
- import os
- import re
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GLib
- tagpy = None # module loaded when needed
- 
---- a/sonata/tray.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/tray.py	2017-01-02 23:41:28.637803070 +0100
-@@ -18,6 +18,8 @@
- 
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GLib
- 
- from sonata import ui, img
---- a/sonata/ui.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/ui.py	2017-01-02 23:41:25.068802182 +0100
-@@ -21,6 +21,8 @@
- import pkg_resources
- import sys
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk
- 
- 
diff --git a/srcpkgs/sonata/patches/fix-sonata_css_px.patch b/srcpkgs/sonata/patches/fix-sonata_css_px.patch
deleted file mode 100644
index 806a06631e51..000000000000
--- a/srcpkgs/sonata/patches/fix-sonata_css_px.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/sonata/ui/sonata.css	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/ui(sonata.css	2017-01-02 23:47:57.875908636 +0100
-@@ -4,11 +4,11 @@
- }
- 
- GtkLabel.fullscreen_label {
--  font-size: 19.5;/*= 20000 / 1024 */
-+  font-size: 19.5px;/*= 20000 / 1024 */
- }
- 
- GtkLabel.fullscreen_label2 {
--  font-size: 11.7;/*= 12000/1024 */
-+  font-size: 11.7px;/*= 12000/1024 */
- }
- 
- GtkLabel.fullscreen_label,
diff --git a/srcpkgs/sonata/template b/srcpkgs/sonata/template
index f4456abd175d..b1fa7e9bdd92 100644
--- a/srcpkgs/sonata/template
+++ b/srcpkgs/sonata/template
@@ -1,13 +1,16 @@
 # Template file for 'sonata'
 pkgname=sonata
-version=1.7b1
-revision=4
+# allow updating to 1.7.0, xbps considers 1.7b1 to be newer than 1.7.0
+reverts="1.7b1_1 1.7b1_2 1.7b1_3 1.7b1_4"
+version=1.7.0
+revision=1
 build_style=python3-module
 hostmakedepends="gettext python3-setuptools"
-depends="python3-mpd2 python3-gobject gtk+3 ${hostmakedepends}"
+depends="python3-mpd2 python3-gobject gtk+3"
+checkdepends="python3-pytest $depends"
 short_desc="Elegant GTK 3 client for the Music Player Daemon"
 maintainer="Jens E. Becker <v2px@v2px.de>"
 license="GPL-3.0-or-later"
-homepage="http://www.nongnu.org/sonata/"
+homepage="https://nongnu.org/sonata/"
 distfiles="https://github.com/multani/sonata/archive/v${version}.tar.gz"
-checksum=401f6b796ca3cc176813b9f1639741a3fd226499c7ab25bbc740778ebb15f81d
+checksum=564a226f8d57b286836742d234aa9fa8bc47b897a4f1d61f99a544777c5aab1e

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sonata: update to 1.7.0.
  2021-07-11 19:05 [PR PATCH] sonata: update to 1.7.0 paper42
  2021-07-11 19:11 ` [PR PATCH] [Updated] " paper42
@ 2021-07-12  5:30 ` ericonr
  2021-07-12  8:38 ` [PR PATCH] [Updated] " paper42
  2021-07-12 19:23 ` [PR PATCH] [Merged]: " ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-07-12  5:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/31912#issuecomment-877984238

Comment:
You need to revert the version before that as well:

1.7a2 revisions 1 to 3

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Updated] sonata: update to 1.7.0.
  2021-07-11 19:05 [PR PATCH] sonata: update to 1.7.0 paper42
  2021-07-11 19:11 ` [PR PATCH] [Updated] " paper42
  2021-07-12  5:30 ` ericonr
@ 2021-07-12  8:38 ` paper42
  2021-07-12 19:23 ` [PR PATCH] [Merged]: " ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: paper42 @ 2021-07-12  8:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1715 bytes --]

There is an updated pull request by paper42 against master on the void-packages repository

https://github.com/paper42/void-packages sonata-1.7.0
https://github.com/void-linux/void-packages/pull/31912

sonata: update to 1.7.0.
This PR adds a reverts=1.7b1_* line to allow updating to 1.7.0, because xbps considers 1.7b1 to be newer than 1.7.0

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/31912.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sonata-1.7.0-31912.patch --]
[-- Type: text/x-diff, Size: 8902 bytes --]

From c0a187d04a6bf797ba55ce154c5cb423c100f19a Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 11 Jul 2021 20:17:34 +0200
Subject: [PATCH] sonata: update to 1.7.0.

* add a reverts= line to allow updating to 1.7.0, because xbps
considers 1.7b1 and 1.7a1 to be newer than 1.7.0
---
 .../patches/fix-gi_require_version.patch      | 209 ------------------
 .../sonata/patches/fix-sonata_css_px.patch    |  16 --
 srcpkgs/sonata/template                       |  13 +-
 3 files changed, 8 insertions(+), 230 deletions(-)
 delete mode 100644 srcpkgs/sonata/patches/fix-gi_require_version.patch
 delete mode 100644 srcpkgs/sonata/patches/fix-sonata_css_px.patch

diff --git a/srcpkgs/sonata/patches/fix-gi_require_version.patch b/srcpkgs/sonata/patches/fix-gi_require_version.patch
deleted file mode 100644
index b7009ead71ed..000000000000
--- a/srcpkgs/sonata/patches/fix-gi_require_version.patch
+++ /dev/null
@@ -1,209 +0,0 @@
---- a/sonata/about.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/about.py	2017-01-02 23:41:16.245799994 +0100
-@@ -20,6 +20,8 @@
- import gettext
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GdkPixbuf
- 
- from sonata import misc, ui
---- a/sonata/artwork.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/artwork.py	2017-01-02 23:41:37.584805301 +0100
-@@ -23,6 +23,8 @@
- import shutil
- import threading # artwork_update starts a thread _artwork_update
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GLib, GObject
- 
- from sonata import img, ui, misc, consts, mpdhelper as mpdh
---- a/sonata/breadcrumbs.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/breadcrumbs.py	2017-01-02 23:42:21.093816289 +0100
-@@ -17,6 +17,8 @@
- # You should have received a copy of the GNU General Public License
- # along with Sonata.  If not, see <http://www.gnu.org/licenses/>.
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango
- 
- 
---- a/sonata/current.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/current.py	2017-01-02 23:41:03.040796737 +0100
-@@ -22,6 +22,8 @@
- import re
- import urllib.parse, urllib.request
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango, GLib
- 
- from sonata import ui, misc, formatting
---- a/sonata/img.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/img.py	2017-01-02 23:41:34.596804555 +0100
-@@ -19,6 +19,8 @@
- import itertools
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GLib
- 
- from sonata import consts
---- a/sonata/info.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/info.py	2017-01-02 23:40:47.879793023 +0100
-@@ -22,6 +22,8 @@
- import logging
- import threading
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Pango, Gdk, GdkPixbuf, GLib
- 
- from sonata import ui, misc, consts, mpdhelper as mpdh, img
---- a/sonata/launcher.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/launcher.py	2017-01-02 23:42:10.253813530 +0100
-@@ -155,6 +155,8 @@
-     ## Deal with GTK:
- 
-     if not args.skip_gui:
-+        import gi
-+        gi.require_version("Gtk", "3.0")
-         # importing gtk does sys.setdefaultencoding("utf-8"), sets locale etc.
-         from gi.repository import Gtk, Gdk
-     else:
---- a/sonata/library.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/library.py	2017-01-02 23:40:59.564795883 +0100
-@@ -23,6 +23,8 @@
- import threading # libsearchfilter_toggle starts thread libsearchfilter_loop
- import operator
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, GLib, Pango
- 
- from sonata import ui, misc, consts, formatting, breadcrumbs, mpdhelper as mpdh
---- a/sonata/main.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/main.py	2017-01-02 23:41:54.461809537 +0100
-@@ -33,6 +33,8 @@
- import tempfile
- import threading
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, Gio, GLib, Pango
- 
- import pkg_resources
---- a/sonata/misc.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/misc.py	2017-01-02 23:41:12.333799027 +0100
-@@ -23,6 +23,8 @@
- import logging
- import sys
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GLib
- 
- 
---- a/sonata/mpdhelper.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/mpdhelper.py	2017-01-02 23:42:24.485817154 +0100
-@@ -22,6 +22,8 @@
- import os
- import socket
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GObject
- import mpd
- 
---- a/sonata/playlists.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/playlists.py	2017-01-02 23:41:07.749797896 +0100
-@@ -33,6 +33,8 @@
- 
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Pango, Gdk
- 
- from sonata import ui, misc, mpdhelper as mpdh
---- a/sonata/plugins/localmpd.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/plugins/localmpd.py	2017-01-02 23:41:48.333807996 +0100
-@@ -18,6 +18,8 @@
- import subprocess, locale, os
- from pwd import getpwuid
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import GLib, Gtk
- 
- from sonata.misc import escape_html
---- a/sonata/plugins/test.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/plugins/test.py	2017-01-02 23:41:51.388808763 +0100
-@@ -20,6 +20,8 @@
- 
- # nothing magical from here on
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, Pango
- 
- from sonata.misc import escape_html
---- a/sonata/preferences.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/preferences.py	2017-01-02 23:41:44.464807024 +0100
-@@ -29,6 +29,8 @@
- 
- import gettext, hashlib
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, GdkPixbuf
- 
- from sonata.config import Config
---- a/sonata/streams.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/streams.py	2017-01-02 23:41:21.405801273 +0100
-@@ -32,6 +32,8 @@
- import logging
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk, Pango
- 
- from sonata import misc, ui
---- a/sonata/tagedit.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/tagedit.py	2017-01-02 23:40:55.678794930 +0100
-@@ -29,6 +29,8 @@
- import os
- import re
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GLib
- tagpy = None # module loaded when needed
- 
---- a/sonata/tray.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/tray.py	2017-01-02 23:41:28.637803070 +0100
-@@ -18,6 +18,8 @@
- 
- import os
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, GLib
- 
- from sonata import ui, img
---- a/sonata/ui.py	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/ui.py	2017-01-02 23:41:25.068802182 +0100
-@@ -21,6 +21,8 @@
- import pkg_resources
- import sys
- 
-+import gi
-+gi.require_version("Gtk", "3.0")
- from gi.repository import Gtk, Gdk
- 
- 
diff --git a/srcpkgs/sonata/patches/fix-sonata_css_px.patch b/srcpkgs/sonata/patches/fix-sonata_css_px.patch
deleted file mode 100644
index 806a06631e51..000000000000
--- a/srcpkgs/sonata/patches/fix-sonata_css_px.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/sonata/ui/sonata.css	2016-01-31 15:36:20.000000000 +0100
-+++ b/sonata/ui(sonata.css	2017-01-02 23:47:57.875908636 +0100
-@@ -4,11 +4,11 @@
- }
- 
- GtkLabel.fullscreen_label {
--  font-size: 19.5;/*= 20000 / 1024 */
-+  font-size: 19.5px;/*= 20000 / 1024 */
- }
- 
- GtkLabel.fullscreen_label2 {
--  font-size: 11.7;/*= 12000/1024 */
-+  font-size: 11.7px;/*= 12000/1024 */
- }
- 
- GtkLabel.fullscreen_label,
diff --git a/srcpkgs/sonata/template b/srcpkgs/sonata/template
index f4456abd175d..64fe318f587c 100644
--- a/srcpkgs/sonata/template
+++ b/srcpkgs/sonata/template
@@ -1,13 +1,16 @@
 # Template file for 'sonata'
 pkgname=sonata
-version=1.7b1
-revision=4
+# allow updating to 1.7.0, xbps considers 1.7a1 and 1.7b1 to be newer than 1.7.0
+reverts="1.7a1_1 1.7a1_2 1.7a1_3 1.7b1_1 1.7b1_2 1.7b1_3 1.7b1_4"
+version=1.7.0
+revision=1
 build_style=python3-module
 hostmakedepends="gettext python3-setuptools"
-depends="python3-mpd2 python3-gobject gtk+3 ${hostmakedepends}"
+depends="python3-mpd2 python3-gobject gtk+3"
+checkdepends="python3-pytest $depends"
 short_desc="Elegant GTK 3 client for the Music Player Daemon"
 maintainer="Jens E. Becker <v2px@v2px.de>"
 license="GPL-3.0-or-later"
-homepage="http://www.nongnu.org/sonata/"
+homepage="https://nongnu.org/sonata/"
 distfiles="https://github.com/multani/sonata/archive/v${version}.tar.gz"
-checksum=401f6b796ca3cc176813b9f1639741a3fd226499c7ab25bbc740778ebb15f81d
+checksum=564a226f8d57b286836742d234aa9fa8bc47b897a4f1d61f99a544777c5aab1e

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PR PATCH] [Merged]: sonata: update to 1.7.0.
  2021-07-11 19:05 [PR PATCH] sonata: update to 1.7.0 paper42
                   ` (2 preceding siblings ...)
  2021-07-12  8:38 ` [PR PATCH] [Updated] " paper42
@ 2021-07-12 19:23 ` ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-07-12 19:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1554 bytes --]

There's a merged pull request on the void-packages repository

sonata: update to 1.7.0.
https://github.com/void-linux/void-packages/pull/31912

Description:
This PR adds a reverts=1.7b1_* line to allow updating to 1.7.0, because xbps considers 1.7b1 to be newer than 1.7.0

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-12 19:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-11 19:05 [PR PATCH] sonata: update to 1.7.0 paper42
2021-07-11 19:11 ` [PR PATCH] [Updated] " paper42
2021-07-12  5:30 ` ericonr
2021-07-12  8:38 ` [PR PATCH] [Updated] " paper42
2021-07-12 19:23 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).