summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2009-03-22 07:56:01 +0000
committerMichael Januszewski <spock@gentoo.org>2009-03-22 07:56:01 +0000
commitfba85038133a23f9d54dbab1c2d21946131f72eb (patch)
treecbf379a2b724049e052cc0171e6d08a578f56908 /app-text/clara
parentFix the postinst messages so that they point to the correct location of the d... (diff)
downloadgentoo-2-fba85038133a23f9d54dbab1c2d21946131f72eb.tar.gz
gentoo-2-fba85038133a23f9d54dbab1c2d21946131f72eb.tar.bz2
gentoo-2-fba85038133a23f9d54dbab1c2d21946131f72eb.zip
Fix missing open() arguments (bug #260081, patch by Magnus Granberg).
(Portage version: 2.1.6.9/cvs/Linux x86_64)
Diffstat (limited to 'app-text/clara')
-rw-r--r--app-text/clara/ChangeLog8
-rw-r--r--app-text/clara/clara-20031214.ebuild10
-rw-r--r--app-text/clara/files/clara_open_mode.patch20
3 files changed, 32 insertions, 6 deletions
diff --git a/app-text/clara/ChangeLog b/app-text/clara/ChangeLog
index f98ca28e4f1d..b503a9002521 100644
--- a/app-text/clara/ChangeLog
+++ b/app-text/clara/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-text/clara
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/clara/ChangeLog,v 1.18 2008/10/29 17:36:10 spock Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/clara/ChangeLog,v 1.19 2009/03/22 07:56:01 spock Exp $
+
+ 22 Mar 2009; Michał Januszewski <spock@gentoo.org>
+ +files/clara_open_mode.patch, clara-20031214.ebuild:
+ Fix missing open() arguments (bug #260081, patch by Magnus Granberg).
29 Oct 2008; Michał Januszewski <spock@gentoo.org> clara-20031214.ebuild:
Fix bug #243724 (respect the CC variable).
diff --git a/app-text/clara/clara-20031214.ebuild b/app-text/clara/clara-20031214.ebuild
index 52a2e052803b..ffa786e385e9 100644
--- a/app-text/clara/clara-20031214.ebuild
+++ b/app-text/clara/clara-20031214.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/clara/clara-20031214.ebuild,v 1.20 2008/10/29 17:33:20 spock Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/clara/clara-20031214.ebuild,v 1.21 2009/03/22 07:56:01 spock Exp $
-inherit toolchain-funcs
+inherit eutils toolchain-funcs
DESCRIPTION="An OCR (Optical Character Recognition) program"
SRC_URI="http://www.geocities.com/claraocr/clara-20031214.tar.gz"
@@ -13,12 +13,14 @@ LICENSE="GPL-2"
KEYWORDS="amd64 ppc x86"
IUSE=""
-DEPEND="x11-libs/libX11"
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -re "s/(C|LD)FLAGS =/\1FLAGS +=/" Makefile
+ epatch "${FILESDIR}/clara_open_mode.patch"
}
src_compile() {
diff --git a/app-text/clara/files/clara_open_mode.patch b/app-text/clara/files/clara_open_mode.patch
new file mode 100644
index 000000000000..3f73f466ab8c
--- /dev/null
+++ b/app-text/clara/files/clara_open_mode.patch
@@ -0,0 +1,20 @@
+--- pgmblock.c 2002-04-29 14:26:13.000000000 +0000
++++ pgmblock.c 2009-03-05 02:51:43.000000000 +0000
+@@ -161,7 +161,7 @@
+
+ printf("%d rare pixels (%1.4f)\n",t,((float)t)/(w*h));
+
+- F = open("map",O_WRONLY|O_CREAT);
++ F = open("map",O_WRONLY|O_CREAT, 0644);
+ write(F,m,h*bpl);
+ write(F,map,256);
+ close(F);
+@@ -197,7 +197,7 @@
+ {
+ int i,j,F;
+
+- F = open("map",O_RDONLY|O_CREAT);
++ F = open("map",O_RDONLY|O_CREAT, 0644);
+ read(F,m,h*bpl);
+ read(F,map,256);
+ close(F);