summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Ostorga <vostorga@gentoo.org>2009-10-08 16:22:33 +0000
committerVictor Ostorga <vostorga@gentoo.org>2009-10-08 16:22:33 +0000
commitbcecdc04468181fe994a00ab168288fd45736c82 (patch)
tree2c7e5ba8d5395a9268abf5abf099096c4c28806e /media-radio
parentVersion bump. Remove old. (diff)
downloadgentoo-2-bcecdc04468181fe994a00ab168288fd45736c82.tar.gz
gentoo-2-bcecdc04468181fe994a00ab168288fd45736c82.tar.bz2
gentoo-2-bcecdc04468181fe994a00ab168288fd45736c82.zip
Fixing segfault if called with 'tlf -n' patch thanks to Thomas Beierlein <tb@forth-ev.de> bug 287640
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'media-radio')
-rw-r--r--media-radio/tlf/ChangeLog11
-rw-r--r--media-radio/tlf/files/tlf-0.9.31.2-segfault-fix.patch39
-rw-r--r--media-radio/tlf/tlf-0.9.31.2-r1.ebuild42
3 files changed, 90 insertions, 2 deletions
diff --git a/media-radio/tlf/ChangeLog b/media-radio/tlf/ChangeLog
index ed9e1529403e..4a7578a4e66e 100644
--- a/media-radio/tlf/ChangeLog
+++ b/media-radio/tlf/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-radio/tlf
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-radio/tlf/ChangeLog,v 1.16 2008/12/05 10:06:21 armin76 Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-radio/tlf/ChangeLog,v 1.17 2009/10/08 16:22:32 vostorga Exp $
+
+*tlf-0.9.31.2-r1 (08 Oct 2009)
+
+ 08 Oct 2009; Víctor Ostorga <vostorga@gentoo.org>
+ +tlf-0.9.31.2-r1.ebuild, +files/tlf-0.9.31.2-segfault-fix.patch:
+ Fixing segfault if called with 'tlf -n' patch thanks to Thomas Beierlein
+ <tb@forth-ev.de> bug 287640
05 Dec 2008; Raúl Porcel <armin76@gentoo.org> tlf-0.9.31.2.ebuild:
x86 stable wrt #249491
diff --git a/media-radio/tlf/files/tlf-0.9.31.2-segfault-fix.patch b/media-radio/tlf/files/tlf-0.9.31.2-segfault-fix.patch
new file mode 100644
index 000000000000..34cb90fa4a8f
--- /dev/null
+++ b/media-radio/tlf/files/tlf-0.9.31.2-segfault-fix.patch
@@ -0,0 +1,39 @@
+--- src/cluster_bg.c.orig 2009-10-03 09:14:28.000000000 +0200
++++ src/cluster_bg.c 2009-10-02 08:25:40.000000000 +0200
+@@ -463,7 +463,10 @@
+ for (j=15; j < 23; j++)
+ mvprintw(j,4, " ");
+
+-if (cluster == SPOTS) linepos = i - 8;
++if (cluster == SPOTS){
++ linepos = i - 8;
++ if (linepos < 0) linepos = 0;
++}
+ else linepos = 0;
+
+
+--- src/clear_display.c.orig 2007-12-18 16:08:05.000000000 +0100
++++ src/clear_display.c 2009-10-06 07:25:30.000000000 +0200
+@@ -100,10 +100,7 @@
+ else
+ strftime(time_buf, 60, "DIG %d-%b-%y %H:%M ", time_ptr);
+
+-strncat (month, time_buf + 2, 2); /* month for muf calc */
+-m = atoi ( month);
+-if (m == 0)
+- m++;
++ m = time_ptr->tm_mon; /* month for muf calc */
+
+ mvprintw(12, 3,time_buf);
+
+--- src/displayit.c.orig 2009-10-06 16:27:22.000000000 +0200
++++ src/displayit.c 2009-10-06 16:45:31.000000000 +0200
+@@ -39,7 +39,7 @@
+ strncat(term2buf, termbuf, strlen(termbuf) - 1 );
+ strncat(term2buf, backgrnd_str, 81 - strlen(termbuf)); /* fill with blanks */
+
+- strcat(term2buf, "\n");
++ term2buf[80] = '\0';
+ strcpy(terminal1, terminal2);
+ strcpy(terminal2, terminal3);
+ strcpy(terminal3, terminal4);
diff --git a/media-radio/tlf/tlf-0.9.31.2-r1.ebuild b/media-radio/tlf/tlf-0.9.31.2-r1.ebuild
new file mode 100644
index 000000000000..69ceebf23e06
--- /dev/null
+++ b/media-radio/tlf/tlf-0.9.31.2-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-radio/tlf/tlf-0.9.31.2-r1.ebuild,v 1.1 2009/10/08 16:22:32 vostorga Exp $
+
+inherit eutils flag-o-matic versionator multilib
+
+MY_PV=$(replace_version_separator 3 '-')
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Console-mode amateur radio contest logger"
+HOMEPAGE="http://home.iae.nl/users/reinc/TLF-0.2.html"
+SRC_URI="http://sharon.esrac.ele.tue.nl/pub/linux/ham/tlf/${MY_P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses
+ media-libs/hamlib"
+DEPEND="${RDEPEND}
+ sys-apps/gawk"
+
+S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-segfault-fix.patch
+}
+
+src_compile() {
+ append-flags -L/usr/$(get_libdir)/hamlib
+ econf --enable-hamlib
+ emake || die "emake failed."
+}
+
+src_install() {
+ einstall || die "einstall failed."
+ rm -fR "${D}"/usr/share/${PN}/doc
+ dodoc AUTHORS ChangeLog NEWS doc/README
+}