Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2023 14:00:57 GMT
From:      Dima Panov <fluffy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: bfa40b5bbf3c - main - audio/libmpd: actually fix the bug in code instead of masking it
Message-ID:  <202302191400.31JE0vAd005540@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bfa40b5bbf3c3299e0337ca9b736635bbdbdc295

commit bfa40b5bbf3c3299e0337ca9b736635bbdbdc295
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-02-19 14:00:03 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-02-19 14:00:03 +0000

    audio/libmpd: actually fix the bug in code instead of masking it
---
 audio/libmpd/Makefile                          |  2 --
 audio/libmpd/files/patch-src_libmpd-playlist.c | 11 +++++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/audio/libmpd/Makefile b/audio/libmpd/Makefile
index 2c742eeb51b0..beaf17f02035 100644
--- a/audio/libmpd/Makefile
+++ b/audio/libmpd/Makefile
@@ -16,8 +16,6 @@ USE_GNOME=	glib20
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
-CFLAGS+=	-Wno-error=int-conversion
-
 post-patch:
 	@${REINPLACE_CMD} -e 's,libmpd-1.0\/libmpd,libmpd,' \
 		${WRKSRC}/src/Makefile.in
diff --git a/audio/libmpd/files/patch-src_libmpd-playlist.c b/audio/libmpd/files/patch-src_libmpd-playlist.c
new file mode 100644
index 000000000000..fb0c79fe88cf
--- /dev/null
+++ b/audio/libmpd/files/patch-src_libmpd-playlist.c
@@ -0,0 +1,11 @@
+--- src/libmpd-playlist.c.orig	2011-08-17 12:31:47 UTC
++++ src/libmpd-playlist.c
+@@ -780,7 +780,7 @@ int mpd_playlist_load(MpdObj *mi, const char *path)
+ 	if(mpd_lock_conn(mi))
+ 	{
+ 		debug_printf(DEBUG_ERROR,"lock failed\n");
+-		return NULL;
++		return 0;
+ 	}
+     mpd_sendLoadCommand(mi->connection,path);
+ 	mpd_finishCommand(mi->connection);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302191400.31JE0vAd005540>