summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2004-06-26 22:37:50 +0000
committerAlastair Tse <liquidx@gentoo.org>2004-06-26 22:37:50 +0000
commit8081afac1369c2058d125f36edeff06d653174db (patch)
tree6ef578109e12d0f72d97d2b3dec52b41f292f0c5 /app-pda/dynamite
parentreally fix the sandbox problem with 0.23, add fixes to gtkhtml2 detection via... (diff)
downloadgentoo-2-8081afac1369c2058d125f36edeff06d653174db.tar.gz
gentoo-2-8081afac1369c2058d125f36edeff06d653174db.tar.bz2
gentoo-2-8081afac1369c2058d125f36edeff06d653174db.zip
fix segv (#38766)
Diffstat (limited to 'app-pda/dynamite')
-rw-r--r--app-pda/dynamite/ChangeLog6
-rw-r--r--app-pda/dynamite/dynamite-0.1.ebuild9
-rw-r--r--app-pda/dynamite/files/dynamite-0.1-segv.patch23
3 files changed, 36 insertions, 2 deletions
diff --git a/app-pda/dynamite/ChangeLog b/app-pda/dynamite/ChangeLog
index 2e49385c669e..c60c8a822456 100644
--- a/app-pda/dynamite/ChangeLog
+++ b/app-pda/dynamite/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-pda/dynamite
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/dynamite/ChangeLog,v 1.4 2004/06/24 21:41:55 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/dynamite/ChangeLog,v 1.5 2004/06/26 22:37:50 liquidx Exp $
+
+ 26 Jun 2004; Alastair Tse <liquidx@gentoo.org>
+ +files/dynamite-0.1-segv.patch, dynamite-0.1.ebuild:
+ add patch to fix stupid segv (#38766)
25 Apr 2004; Aron Griffis <agriffis@gentoo.org> dynamite-0.1.ebuild:
Add die following econf for bug 48950
diff --git a/app-pda/dynamite/dynamite-0.1.ebuild b/app-pda/dynamite/dynamite-0.1.ebuild
index 8a5da9fe69c8..76c25a43d5ab 100644
--- a/app-pda/dynamite/dynamite-0.1.ebuild
+++ b/app-pda/dynamite/dynamite-0.1.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/dynamite/dynamite-0.1.ebuild,v 1.4 2004/06/24 21:41:55 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/dynamite/dynamite-0.1.ebuild,v 1.5 2004/06/26 22:37:50 liquidx Exp $
+
+inherit eutils
DESCRIPTION="Dynamite is a tool and library for decompressing data compressed with PKWARE Data Compression Library"
HOMEPAGE="http://sourceforge.net/projects/synce/"
@@ -13,6 +15,11 @@ IUSE=""
DEPEND=""
+src_unpack() {
+ unpack ${A}
+ cd ${S}; epatch ${FILESDIR}/${P}-segv.patch
+
+}
src_compile() {
econf || die "econf failed"
emake || die
diff --git a/app-pda/dynamite/files/dynamite-0.1-segv.patch b/app-pda/dynamite/files/dynamite-0.1-segv.patch
new file mode 100644
index 000000000000..4e540376eafa
--- /dev/null
+++ b/app-pda/dynamite/files/dynamite-0.1-segv.patch
@@ -0,0 +1,23 @@
+diff -ur dynamite-0.1/src/dynamite.c dynamite-0.1a/src/dynamite.c
+--- dynamite-0.1/src/dynamite.c 2003-08-22 04:55:42.000000000 -0400
++++ dynamite-0.1a/src/dynamite.c 2004-06-26 21:23:39.474501584 -0400
+@@ -1,6 +1,7 @@
+ /* $Id: dynamite-0.1-segv.patch,v 1.1 2004/06/26 22:37:50 liquidx Exp $ */
+ #include "libdynamite.h"
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #define FCLOSE(file) if (file) { fclose(file); file = NULL; }
+
+@@ -25,6 +26,11 @@
+ int result = -1;
+ Cookie cookie;
+
++ if (argc < 3) {
++ fprintf("Missing filename: dynamite <source> <destination>\n");
++ return 1;
++ }
++
+ cookie.input_file = fopen(argv[1], "r");
+ cookie.output_file = fopen(argv[2], "w");
+