From owner-svn-ports-head@FreeBSD.ORG Wed Jul 31 17:02:53 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E3510318; Wed, 31 Jul 2013 17:02:53 +0000 (UTC) (envelope-from oliver@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B847B2C52; Wed, 31 Jul 2013 17:02:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6VH2rUJ033605; Wed, 31 Jul 2013 17:02:53 GMT (envelope-from oliver@svn.freebsd.org) Received: (from oliver@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6VH2rQF033603; Wed, 31 Jul 2013 17:02:53 GMT (envelope-from oliver@svn.freebsd.org) Message-Id: <201307311702.r6VH2rQF033603@svn.freebsd.org> From: Oliver Lehmann Date: Wed, 31 Jul 2013 17:02:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324063 - in head/sysutils/xcdroast: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2013 17:02:54 -0000 Author: oliver Date: Wed Jul 31 17:02:53 2013 New Revision: 324063 URL: http://svnweb.freebsd.org/changeset/ports/324063 Log: add cdda2wav version patch from http://www.xcdroast.org/xcdr098/patches/ PR: ports/180957 Submitted by: Gerard Seibert Added: head/sysutils/xcdroast/files/ head/sysutils/xcdroast/files/patch-cdda2wav_version (contents, props changed) Modified: head/sysutils/xcdroast/Makefile Modified: head/sysutils/xcdroast/Makefile ============================================================================== --- head/sysutils/xcdroast/Makefile Wed Jul 31 16:52:45 2013 (r324062) +++ head/sysutils/xcdroast/Makefile Wed Jul 31 17:02:53 2013 (r324063) @@ -3,7 +3,7 @@ PORTNAME= xcdroast PORTVERSION= 0.98.a.16 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.98alpha16 \ http://www.xcdroast.org/download/ Added: head/sysutils/xcdroast/files/patch-cdda2wav_version ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/xcdroast/files/patch-cdda2wav_version Wed Jul 31 17:02:53 2013 (r324063) @@ -0,0 +1,53 @@ +--- src/io.c 2008-08-21 15:11:40.000000000 +0200 ++++ src/io.c 2009-12-29 22:54:08.571188849 +0100 +@@ -10062,6 +10062,7 @@ + + gint check_version_cdda2wav(gchar *match, gchar *found) { + gchar line[MAXLINE]; ++gchar vline[MAXLINE]; + gchar ver[MAXLINE]; + FILE *fpin; + gchar *p; +@@ -10076,32 +10077,38 @@ + } + + strcpy(line,""); ++ strcpy(vline,""); + for (;;) { + if (fgets(line,MAXLINE,fpin) == NULL) + break; + dodebug(10,"got: %s",line); ++ ++ /* only get first line */ ++ if (strcmp(vline,"") == 0) { ++ strncpy(vline, line, MAXLINE); ++ } + } + + if (pclose(fpin) == -1) { + g_error("pclose error\n"); + } + +- if (strcmp(line,"") == 0 || strstr(line,"sh:") != NULL) { ++ if (strcmp(vline,"") == 0 || strstr(vline,"sh:") != NULL) { + /* failed to open - permission denied */ + return 2; + } + +- /* now line contains the version string of cdda2wav */ ++ /* now vline contains the version string of cdda2wav */ + /* try to extract the version number */ + +- p = strstr(line,"version"); ++ p = strstr(vline,"version"); + if (p != NULL) { + p = strtok(p+8, " _"); + if (p != NULL) { + strcpy(ver,p); + } + } else { +- p = strstr(line,"cdda2wav"); ++ p = strstr(vline,"cdda2wav"); + if (p != NULL) { + p = strtok(p+9, " "); + if (p != NULL) {