Hello,
I am not sure whether I am doing things properly here, but I have a small issue with a port/package on FreeBSD 10.0-RELEASE. The thing is, I love to use xmms (version 1) for music playback, including module files, for which xmms has its built-in MikMod player plugin.
The thing is, that plugin segfaults when using more modern versions of the libmikmod.so library. A person named Jakob Steltner however has submitted a patch to the ArchLinux project, which can be examined here.
I modified that patch to work with the multimedia/xmms port, so here is patch-drv_xmms.c:
With that patch, multimedia/xmms builds and works just fine. Module playback has so far not caused me any issues, so I think I'll keep that version.
There is just one glitch with that solution. I usually upgrade all FreeBSD packages by just running
Now my question: How can I tell pkg to blacklist the xmms package, or tell it to accept my changes as being ok? What would be the best practice to do this in a clean fashion?
Thank you!
PS.: To the moderators, I hope I got all my formatting correct this time, I really tried not to make mistakes, like last time.
I am not sure whether I am doing things properly here, but I have a small issue with a port/package on FreeBSD 10.0-RELEASE. The thing is, I love to use xmms (version 1) for music playback, including module files, for which xmms has its built-in MikMod player plugin.
The thing is, that plugin segfaults when using more modern versions of the libmikmod.so library. A person named Jakob Steltner however has submitted a patch to the ArchLinux project, which can be examined here.
I modified that patch to work with the multimedia/xmms port, so here is patch-drv_xmms.c:
Code:
--- Input/mikmod/drv_xmms.c.orig 2003-05-19 23:22:06.000000000 +0200
+++ Input/mikmod/drv_xmms.c 2012-11-16 18:52:41.264644767 +0100
@@ -117,6 +117,10 @@
return VC_Init();
}
+static void xmms_CommandLine(CHAR * commandLine)
+{
+}
+
MDRIVER drv_xmms =
{
NULL,
@@ -126,7 +130,8 @@
#if (LIBMIKMOD_VERSION > 0x030106)
"xmms",
NULL,
-#endif
+#endif
+ xmms_CommandLine, // Was missing
xmms_IsThere,
VC_SampleLoad,
VC_SampleUnload
With that patch, multimedia/xmms builds and works just fine. Module playback has so far not caused me any issues, so I think I'll keep that version.
There is just one glitch with that solution. I usually upgrade all FreeBSD packages by just running
# pkg upgrade
, which will however always tell me to reinstall xmms. Doing that will overwrite my customized port with the default package.Now my question: How can I tell pkg to blacklist the xmms package, or tell it to accept my changes as being ok? What would be the best practice to do this in a clean fashion?
Thank you!
PS.: To the moderators, I hope I got all my formatting correct this time, I really tried not to make mistakes, like last time.