Package Details: mpdscribble 0.24-2

Git Clone URL: https://aur.archlinux.org/mpdscribble.git (read-only, click to copy)
Package Base: mpdscribble
Description: MPD client which submits track info to {Libre,Last}.fm
Upstream URL: https://www.musicpd.org/clients/mpdscribble/
Licenses: GPL
Submitter: xyproto
Maintainer: jasonwryan
Last Packager: jasonwryan
Votes: 67
Popularity: 0.193991
First Submitted: 2013-10-07 20:44 (UTC)
Last Updated: 2022-08-24 07:56 (UTC)

Pinned Comments

jasonwryan commented on 2021-06-28 22:48 (UTC)

This package doesn't support people who have failed to read the wiki page https://wiki.archlinux.org/index.php/Makepkg, or cannot interpret error messages.

Latest Comments

1 2 3 4 5 6 7 Next › Last »

jasonwryan commented on 2022-08-24 07:57 (UTC)

@ntfc thanks!

ntfc commented on 2022-08-23 16:30 (UTC)

I ran into compilation errors in src/Log.cxx like

[38/45] Compiling C++ object mpdscribble.p/src_Log.cxx.o
FAILED: mpdscribble.p/src_Log.cxx.o
c++ -Impdscribble.p -I. -I.. -Isrc -I../src -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++17 -O0 -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wundef -fno-threadsafe-statics -fmerge-all-constants -Wcomma-subscript -Wextra-semi -Wmismatched-tags -Woverloaded-virtual -Wsign-promo -Wvolatile -Wvirtual-inheritance -Wno-non-virtual-dtor -fvisibility=hidden -pthread -MD -MQ mpdscribble.p/src_Log.cxx.o -MF mpdscribble.p/src_Log.cxx.o.d -o mpdscribble.p/src_Log.cxx.o -c ../src/Log.cxx
../src/Log.cxx: In function ‘const char* log_date()’:
../src/Log.cxx:48:13: error: ‘time’ was not declared in this scope
   48 |         t = time(nullptr);
      |             ^~~~
../src/Log.cxx:35:1: note: ‘time’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
   34 | #include <syslog.h>
  +++ |+#include <ctime>
   35 | #endif
../src/Log.cxx:49:15: error: ‘localtime’ was not declared in this scope
   49 |         tmp = localtime(&t);
      |               ^~~~~~~~~
../src/Log.cxx:49:15: note: ‘localtime’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
../src/Log.cxx:55:14: error: ‘strftime’ was not declared in this scope
   55 |         if (!strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%S%z", tmp)) {
      |              ^~~~~~~~
../src/Log.cxx:55:14: note: ‘strftime’ is defined in header ‘<ctime>’; did you forget to ‘#include <ctime>’?
[44/45] Compiling C++ object mpdscribble.p/src_Scrobbler.cxx.o
ninja: build stopped: subcommand failed.

Turns out a #include <ctime> is missing in src/Log.cxx:

--- a/PKGBUILD  2022-08-23 18:28:06.857963493 +0200
+++ b/PKGBUILD  2022-08-23 18:30:07.367832734 +0200
@@ -23,6 +23,7 @@

 prepare() {
   cd "${pkgname}"-"${pkgver}"
+  sed -i "27i #include <ctime>" src/Log.cxx
   DESTDIR="${pkgdir}" meson build \
      --prefix=/usr \
      --sysconfdir=/etc

jasonwryan commented on 2022-01-13 17:47 (UTC) (edited on 2022-01-14 06:26 (UTC) by jasonwryan)

@BachoSeven - thanks for testing! I'll add it to the next version.

That error on the -git build doesn't suggest anything immediately, but I'll try and reproduce over the weekend.

Edit - I can't reproduce. Building in a clean chroot works fine for me.

BachoSeven commented on 2022-01-12 23:21 (UTC) (edited on 2022-01-12 23:26 (UTC) by BachoSeven)

That works as expected on this package, thanks!

However, when I tried to add it to mpdscribble-git, which I created since upstream had recently added unreleased support for the XDG specification, it gave me the following error:

gen 12 23:56:01 thinkfra mpdscribble[359728]: basic_string::_M_construct null not valid

Perhaps there is something with the -git version that somehow requires the home directory to be set to something else than /? I mention this because when I instead add manually the user with sudo useradd -r -s /usr/bin/nologin mpdscribble, it works, and that command generates this in /etc/passwd:

mpdscribble:x:969:969::/home/mpdscribble:/usr/bin/nologin

while the default chosen by leaving it up to sysusers appears to be

mpdscribble:x:969:969::/:/usr/bin/nologin

jasonwryan commented on 2022-01-12 22:20 (UTC)

@BachoSeven do you want to test?

u mpdscribble - - -
m mpdscribble audio

BachoSeven commented on 2022-01-12 20:12 (UTC) (edited on 2022-01-12 20:14 (UTC) by BachoSeven)

@jasonwryan I have two mpd instances set up, one as user and one as system since the user one is for local music while the system one connects via WebDAV to a homeserver, as described in the wiki. I don't think I would be able to do so with two user instances, I tried but there were some issues iirc.

jasonwryan commented on 2022-01-12 19:25 (UTC)

@BachoSeven is the instance not sufficient to run as a user?

BachoSeven commented on 2022-01-12 17:31 (UTC)

@jasonwryan since the system-wide .service file requires an mpdscribble user, could adding a .sysusers file to this package be useful?

rdr commented on 2022-01-01 19:36 (UTC)

Great little program, thanks for packaging it!

One note for people coming from older versions (0.22 especially), you have to modify your configuration a tiny bit. Remove the two header lines that begin with [, namely:

[mpdscribble]
and 
[last.fm]

No other changes are required.

cgirard commented on 2021-07-27 12:17 (UTC)

I got the confirmation of what I said by at least two TU: