Hello community, here is the log from the commit of package audacious for openSUSE:Factory checked in at 2020-07-17 20:53:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/audacious (Old) and /work/SRC/openSUSE:Factory/.audacious.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "audacious" Fri Jul 17 20:53:02 2020 rev:11 rq:821509 version:4.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/audacious/audacious.changes 2020-06-04 17:54:53.328715961 +0200 +++ /work/SRC/openSUSE:Factory/.audacious.new.3592/audacious.changes 2020-07-17 20:53:54.305111481 +0200 @@ -1,0 +2,6 @@ +Wed Jul 15 18:41:09 UTC 2020 - Alexei Sorokin <[email protected]> + +- Update to version 4.0.5: + * See https://audacious-media-player.org/news/50-audacious-4-0-5-released + +------------------------------------------------------------------- Old: ---- audacious-4.0.4.tar.bz2 New: ---- audacious-4.0.5.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ audacious.spec ++++++ --- /var/tmp/diff_new_pack.zELCA1/_old 2020-07-17 20:53:55.573112804 +0200 +++ /var/tmp/diff_new_pack.zELCA1/_new 2020-07-17 20:53:55.577112808 +0200 @@ -22,7 +22,7 @@ %define qt_soname 2 %define tag_soname 3 Name: audacious -Version: 4.0.4 +Version: 4.0.5 Release: 0 Summary: Audio player with graphical UI and library functionality License: BSD-2-Clause ++++++ audacious-4.0.4.tar.bz2 -> audacious-4.0.5.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/acinclude.m4 new/audacious-4.0.5/acinclude.m4 --- old/audacious-4.0.4/acinclude.m4 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/acinclude.m4 2020-07-10 21:37:14.000000000 +0200 @@ -220,6 +220,7 @@ PKG_CHECK_VAR([QTBINPATH], [Qt5Core >= 5.2], [host_bins]) PKG_CHECK_MODULES([QT], [Qt5Core Qt5Gui Qt5Widgets >= 5.2]) AC_DEFINE([USE_QT], [1], [Define if Qt support enabled]) + AC_DEFINE([QT_NO_DEPRECATED_WARNINGS], [1], [Qt 6 is not supported yet]) # needed if Qt was built with -reduce-relocations QTCORE_CFLAGS="$QTCORE_CFLAGS -fPIC" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/config.h.in new/audacious-4.0.5/config.h.in --- old/audacious-4.0.4/config.h.in 2020-06-01 19:10:02.000000000 +0200 +++ new/audacious-4.0.5/config.h.in 2020-07-10 22:35:13.000000000 +0200 @@ -94,6 +94,9 @@ /* Suffix for plugins */ #undef PLUGIN_SUFFIX +/* Qt 6 is not supported yet */ +#undef QT_NO_DEPRECATED_WARNINGS + /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/configure new/audacious-4.0.5/configure --- old/audacious-4.0.4/configure 2020-06-01 19:10:02.000000000 +0200 +++ new/audacious-4.0.5/configure 2020-07-10 22:35:13.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for audacious 4.0.4. +# Generated by GNU Autoconf 2.69 for audacious 4.0.5. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -579,8 +579,8 @@ # Identity of this package. PACKAGE_NAME='audacious' PACKAGE_TARNAME='audacious' -PACKAGE_VERSION='4.0.4' -PACKAGE_STRING='audacious 4.0.4' +PACKAGE_VERSION='4.0.5' +PACKAGE_STRING='audacious 4.0.5' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1369,7 +1369,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures audacious 4.0.4 to adapt to many kinds of systems. +\`configure' configures audacious 4.0.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1435,7 +1435,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of audacious 4.0.4:";; + short | recursive ) echo "Configuration of audacious 4.0.5:";; esac cat <<\_ACEOF @@ -1568,7 +1568,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -audacious configure 4.0.4 +audacious configure 4.0.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2036,7 +2036,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by audacious $as_me 4.0.4, which was +It was created by audacious $as_me 4.0.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -6914,6 +6914,9 @@ $as_echo "#define USE_QT 1" >>confdefs.h +$as_echo "#define QT_NO_DEPRECATED_WARNINGS 1" >>confdefs.h + + # needed if Qt was built with -reduce-relocations QTCORE_CFLAGS="$QTCORE_CFLAGS -fPIC" QT_CFLAGS="$QT_CFLAGS -fPIC" @@ -10952,7 +10955,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by audacious $as_me 4.0.4, which was +This file was extended by audacious $as_me 4.0.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -11018,7 +11021,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -audacious config.status 4.0.4 +audacious config.status 4.0.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/configure.ac new/audacious-4.0.5/configure.ac --- old/audacious-4.0.4/configure.ac 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/configure.ac 2020-07-10 21:37:14.000000000 +0200 @@ -6,7 +6,7 @@ dnl ========== AC_PREREQ([2.59]) -AC_INIT([audacious], [4.0.4]) +AC_INIT([audacious], [4.0.5]) AC_COPYRIGHT([Copyright (C) 2001-2020 Audacious developers and others]) AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE_NAME", [Name of package]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/mkrelease.sh new/audacious-4.0.5/mkrelease.sh --- old/audacious-4.0.4/mkrelease.sh 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/mkrelease.sh 2020-07-10 21:37:14.000000000 +0200 @@ -1,6 +1,6 @@ #!/bin/sh -if ! test -d .git +if ! test -e .git then echo This script must be run in a Git repository exit 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudqt/audqt.cc new/audacious-4.0.5/src/libaudqt/audqt.cc --- old/audacious-4.0.4/src/libaudqt/audqt.cc 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudqt/audqt.cc 2020-07-10 21:37:14.000000000 +0200 @@ -105,6 +105,7 @@ infopopup_hide_now(); infowin_hide(); log_inspector_hide(); + plugin_prefs_hide(); prefswin_hide(); queue_manager_hide(); @@ -228,6 +229,7 @@ auto msgbox = new QMessageBox(icon, title, text, QMessageBox::Close); msgbox->button(QMessageBox::Close)->setText(translate_str(N_("_Close"))); msgbox->setAttribute(Qt::WA_DeleteOnClose); + msgbox->setTextInteractionFlags(Qt::TextSelectableByMouse); msgbox->show(); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudqt/fileopener.cc new/audacious-4.0.5/src/libaudqt/fileopener.cc --- old/audacious-4.0.4/src/libaudqt/fileopener.cc 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudqt/fileopener.cc 2020-07-10 21:37:14.000000000 +0200 @@ -78,7 +78,7 @@ if (mode == FileMode::ExportPlaylist) dialog->setAcceptMode(QFileDialog::AcceptSave); - QObject::connect(dialog, &QFileDialog::directoryEntered, + QObject::connect(dialog.data(), &QFileDialog::directoryEntered, [](const QString & path) { aud_set_str("audgui", "filesel_path", path.toUtf8().constData()); @@ -87,7 +87,7 @@ auto playlist = Playlist::active_playlist(); QObject::connect( - dialog, &QFileDialog::accepted, [dialog, mode, playlist]() { + dialog.data(), &QFileDialog::accepted, [dialog, mode, playlist]() { Index<PlaylistAddItem> files; for (const QUrl & url : dialog->selectedUrls()) files.append(String(url.toEncoded().constData())); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudqt/font-entry.cc new/audacious-4.0.5/src/libaudqt/font-entry.cc --- old/audacious-4.0.4/src/libaudqt/font-entry.cc 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudqt/font-entry.cc 2020-07-10 21:37:14.000000000 +0200 @@ -148,7 +148,7 @@ { m_dialog = new QFontDialog(this); - QObject::connect(m_dialog, &QFontDialog::fontSelected, + QObject::connect(m_dialog.data(), &QFontDialog::fontSelected, [this](const QFont & font) { setText((const char *)qfont_to_string(font)); end(false); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudqt/info-widget.cc new/audacious-4.0.5/src/libaudqt/info-widget.cc --- old/audacious-4.0.4/src/libaudqt/info-widget.cc 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudqt/info-widget.cc 2020-07-10 21:37:14.000000000 +0200 @@ -162,10 +162,11 @@ InfoModel(QObject * parent = nullptr) : QAbstractTableModel(parent) {} - int rowCount(const QModelIndex &) const override + int rowCount(const QModelIndex & parent) const override { - return aud::n_elems(tuple_field_map); + return parent.isValid() ? 0 : aud::n_elems(tuple_field_map); } + int columnCount(const QModelIndex &) const override { return 2; } QVariant data(const QModelIndex & index, int role) const override; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudqt/libaudqt-internal.h new/audacious-4.0.5/src/libaudqt/libaudqt-internal.h --- old/audacious-4.0.4/src/libaudqt/libaudqt-internal.h 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudqt/libaudqt-internal.h 2020-07-10 21:37:14.000000000 +0200 @@ -36,6 +36,9 @@ void log_init(); void log_cleanup(); +/* prefs-plugin.cc */ +void plugin_prefs_hide(); + /* util-qt.cc */ class PopupWidget : public QWidget { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudqt/log-inspector.cc new/audacious-4.0.5/src/libaudqt/log-inspector.cc --- old/audacious-4.0.4/src/libaudqt/log-inspector.cc 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudqt/log-inspector.cc 2020-07-10 21:37:14.000000000 +0200 @@ -67,8 +67,9 @@ protected: int rowCount(const QModelIndex & parent = QModelIndex()) const { - return m_entries.len(); + return parent.isValid() ? 0 : m_entries.len(); } + int columnCount(const QModelIndex & parent = QModelIndex()) const { return LogEntryColumn::Count; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudqt/prefs-plugin.cc new/audacious-4.0.5/src/libaudqt/prefs-plugin.cc --- old/audacious-4.0.4/src/libaudqt/prefs-plugin.cc 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudqt/prefs-plugin.cc 2020-07-10 21:37:14.000000000 +0200 @@ -17,8 +17,11 @@ * the use of this software. */ +#include <memory> + #include <QDialog> #include <QDialogButtonBox> +#include <QPointer> #include <QPushButton> #include <QVBoxLayout> @@ -29,6 +32,7 @@ #include <libaudcore/preferences.h> #include <libaudcore/runtime.h> +#include "libaudqt-internal.h" #include "libaudqt.h" namespace audqt @@ -61,17 +65,19 @@ struct ConfigWindow { PluginHandle * ph; - QDialog * root; + QPointer<QDialog> root; + + ~ConfigWindow() { delete root; } }; -static Index<ConfigWindow *> config_windows; +static Index<std::unique_ptr<ConfigWindow>> config_windows; static ConfigWindow * find_config_window(PluginHandle * ph) { - for (ConfigWindow * cw : config_windows) + for (auto & cw : config_windows) { if (cw && cw->ph == ph) - return cw; + return cw.get(); } return nullptr; @@ -108,11 +114,9 @@ if (p->init) p->init(); - QObject::connect(cw->root, &QObject::destroyed, [p, cw]() { + QObject::connect(cw->root.data(), &QObject::destroyed, [p]() { if (p->cleanup) p->cleanup(); - - cw->root = nullptr; }); const char * name = header->info.name; @@ -147,7 +151,7 @@ ->setText(translate_str(N_("_Close"))); } - QObject::connect(bbox, &QDialogButtonBox::rejected, cw->root, + QObject::connect(bbox, &QDialogButtonBox::rejected, cw->root.data(), &QObject::deleteLater); vbox->addWidget(bbox); @@ -155,4 +159,6 @@ window_bring_to_front(cw->root); } +void plugin_prefs_hide(void) { config_windows.clear(); } + } // namespace audqt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudqt/queue-manager-qt.cc new/audacious-4.0.5/src/libaudqt/queue-manager-qt.cc --- old/audacious-4.0.4/src/libaudqt/queue-manager-qt.cc 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudqt/queue-manager-qt.cc 2020-07-10 21:37:14.000000000 +0200 @@ -50,7 +50,11 @@ const QItemSelection & deselected); protected: - int rowCount(const QModelIndex & parent) const { return m_rows; } + int rowCount(const QModelIndex & parent) const + { + return parent.isValid() ? 0 : m_rows; + } + int columnCount(const QModelIndex & parent) const { return 2; } QVariant data(const QModelIndex & index, int role) const; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/audacious-4.0.4/src/libaudtag/ape/ape.cc new/audacious-4.0.5/src/libaudtag/ape/ape.cc --- old/audacious-4.0.4/src/libaudtag/ape/ape.cc 2020-06-01 18:52:06.000000000 +0200 +++ new/audacious-4.0.5/src/libaudtag/ape/ape.cc 2020-07-10 21:37:14.000000000 +0200 @@ -44,7 +44,8 @@ #pragma pack(pop) struct ValuePair { - String key, value; + String key; + Index<char> value; }; #define APE_FLAG_HAS_HEADER (1 << 31) @@ -193,17 +194,19 @@ value ++; - if (header[0] > (unsigned) (data + length - value)) + uint32_t value_len = FROM_LE32 (header[0]); + if (value_len > (unsigned) (data + length - value)) { AUDWARN ("Item value of length %d, but only %d bytes remain in tag.\n", - (int) header[0], (int) (data + length - value)); + (int) value_len, (int) (data + length - value)); return nullptr; } pair.key = String (data + 8); - pair.value = String (str_copy (value, header[0])); + pair.value.insert (value, -1, value_len); + pair.value.append (0); - return value + header[0]; + return value + value_len; } static Index<ValuePair> ape_read_items (VFSFile & handle) @@ -233,7 +236,7 @@ if (! (item = ape_read_item (item, data.end () - item, pair))) break; - AUDDBG ("Read: %s = %s.\n", (const char *) pair.key, (const char *) pair.value); + AUDDBG ("Read: %s = %s.\n", (const char *) pair.key, pair.value.begin ()); list.append (std::move (pair)); } @@ -247,27 +250,27 @@ for (const ValuePair & pair : list) { if (! strcmp_nocase (pair.key, "Artist")) - tuple.set_str (Tuple::Artist, pair.value); + tuple.set_str (Tuple::Artist, pair.value.begin ()); else if (! strcmp_nocase (pair.key, "Title")) - tuple.set_str (Tuple::Title, pair.value); + tuple.set_str (Tuple::Title, pair.value.begin ()); else if (! strcmp_nocase (pair.key, "Album")) - tuple.set_str (Tuple::Album, pair.value); + tuple.set_str (Tuple::Album, pair.value.begin ()); else if (! strcmp_nocase (pair.key, "Comment")) - tuple.set_str (Tuple::Comment, pair.value); + tuple.set_str (Tuple::Comment, pair.value.begin ()); else if (! strcmp_nocase (pair.key, "Genre")) - tuple.set_str (Tuple::Genre, pair.value); + tuple.set_str (Tuple::Genre, pair.value.begin ()); else if (! strcmp_nocase (pair.key, "Track")) - tuple.set_int (Tuple::Track, atoi (pair.value)); + tuple.set_int (Tuple::Track, atoi (pair.value.begin ())); else if (! strcmp_nocase (pair.key, "Year")) - tuple.set_int (Tuple::Year, atoi (pair.value)); + tuple.set_int (Tuple::Year, atoi (pair.value.begin ())); else if (! strcmp_nocase (pair.key, "REPLAYGAIN_TRACK_GAIN")) - tuple.set_gain (Tuple::TrackGain, Tuple::GainDivisor, pair.value); + tuple.set_gain (Tuple::TrackGain, Tuple::GainDivisor, pair.value.begin ()); else if (! strcmp_nocase (pair.key, "REPLAYGAIN_TRACK_PEAK")) - tuple.set_gain (Tuple::TrackPeak, Tuple::PeakDivisor, pair.value); + tuple.set_gain (Tuple::TrackPeak, Tuple::PeakDivisor, pair.value.begin ()); else if (! strcmp_nocase (pair.key, "REPLAYGAIN_ALBUM_GAIN")) - tuple.set_gain (Tuple::AlbumGain, Tuple::GainDivisor, pair.value); + tuple.set_gain (Tuple::AlbumGain, Tuple::GainDivisor, pair.value.begin ()); else if (! strcmp_nocase (pair.key, "REPLAYGAIN_ALBUM_PEAK")) - tuple.set_gain (Tuple::AlbumPeak, Tuple::PeakDivisor, pair.value); + tuple.set_gain (Tuple::AlbumPeak, Tuple::PeakDivisor, pair.value.begin ()); } return true; @@ -393,7 +396,7 @@ ! strcmp_nocase (pair.key, "Year")) continue; - if (! ape_write_item (handle, pair.key, pair.value, & length)) + if (! ape_write_item (handle, pair.key, pair.value.begin (), & length)) return false; items ++;
