Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2005 16:24:03 +0100 (CET)
From:      Jean-Yves Lefort <jylefort@brutele.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/79201: Update port: audio/streamtuner (fix Python plugin crash)
Message-ID:  <20050324152403.38E0A8649@jsite.lefort.net>
Resent-Message-ID: <200503241530.j2OFU2DH007150@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         79201
>Category:       ports
>Synopsis:       Update port: audio/streamtuner (fix Python plugin crash)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 24 15:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: Mon Feb 14 18:06:40 CET 2005 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
>How-To-Repeat:
>Fix:
diff -ruN /usr/ports/audio/streamtuner/Makefile streamtuner/Makefile
--- /usr/ports/audio/streamtuner/Makefile	Mon Mar 14 00:13:05 2005
+++ streamtuner/Makefile	Thu Mar 24 15:55:39 2005
@@ -7,7 +7,7 @@
 
 PORTNAME=		streamtuner
 PORTVERSION=		0.99.99
-PORTREVISION=	1
+PORTREVISION=		2
 CATEGORIES=		audio www
 MASTER_SITES=		${MASTER_SITE_SAVANNAH}
 MASTER_SITE_SUBDIR=	${PORTNAME}
diff -ruN /usr/ports/audio/streamtuner/files/patch-src::plugins::python::pst-main.c streamtuner/files/patch-src::plugins::python::pst-main.c
--- /usr/ports/audio/streamtuner/files/patch-src::plugins::python::pst-main.c	Thu Jan  1 01:00:00 1970
+++ streamtuner/files/patch-src::plugins::python::pst-main.c	Thu Mar 24 15:55:59 2005
@@ -0,0 +1,18 @@
+--- src/plugins/python/pst-main.c.orig	Thu Mar 24 15:52:58 2005
++++ src/plugins/python/pst-main.c	Thu Mar 24 15:53:59 2005
+@@ -94,6 +94,7 @@
+ {
+   gboolean status = FALSE;
+   PyObject *module;
++  char *argv[] = { "" };
+ 
+   if (! check_api_version(err))
+     return FALSE;
+@@ -109,6 +110,7 @@
+     }
+ 
+   Py_Initialize();
++  PySys_SetArgv(G_N_ELEMENTS(argv), argv);
+   PyEval_InitThreads();
+ 
+   module = PyImport_AddModule("__main__");
>Release-Note:
>Audit-Trail:
>Unformatted:



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