pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/claraocr graphics/claraocr: fix up invalid ca...
details: https://anonhg.NetBSD.org/pkgsrc/rev/361afde9ad06
branches: trunk
changeset: 771869:361afde9ad06
user: dholland <dholland%pkgsrc.org@localhost>
date: Wed Dec 29 09:18:42 2021 +0000
description:
graphics/claraocr: fix up invalid calls to open, found by RHEL compiler
diffstat:
graphics/claraocr/Makefile | 4 ++--
graphics/claraocr/distinfo | 3 ++-
graphics/claraocr/patches/patch-pgmblock.c | 24 ++++++++++++++++++++++++
3 files changed, 28 insertions(+), 3 deletions(-)
diffs (54 lines):
diff -r f0d6a323953c -r 361afde9ad06 graphics/claraocr/Makefile
--- a/graphics/claraocr/Makefile Wed Dec 29 08:59:26 2021 +0000
+++ b/graphics/claraocr/Makefile Wed Dec 29 09:18:42 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.27 2021/05/24 19:52:20 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2021/12/29 09:18:42 dholland Exp $
DISTNAME= clara-0.9.9
PKGNAME= ${DISTNAME:S/clara/claraocr/}
-PKGREVISION= 10
+PKGREVISION= 11
CATEGORIES= graphics textproc
MASTER_SITES= ftp://carroll.cac.psu.edu/pub/linux/distributions/mandrake-devel/projects/claraocr/
MASTER_SITES+= ftp://ftp.wtfo.com/pub/linux/Mandrake-devel/projects/claraocr/
diff -r f0d6a323953c -r 361afde9ad06 graphics/claraocr/distinfo
--- a/graphics/claraocr/distinfo Wed Dec 29 08:59:26 2021 +0000
+++ b/graphics/claraocr/distinfo Wed Dec 29 09:18:42 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 10:46:02 nia Exp $
+$NetBSD: distinfo,v 1.9 2021/12/29 09:18:42 dholland Exp $
BLAKE2s (clara-0.9.9.tar.gz) = 3357bd4ee883aa2b06c44b9889cec6ef16e4d528bac99ee922aa68823f85a27f
SHA512 (clara-0.9.9.tar.gz) = 55baed83b08be4fd8bd145b2934c2e1d5e485444751f773f338d608e7a0dc81a74d3c3b0c2c887774cb57439c4f15706671e80358a0e6b9a93a2fc1d54f7ce3a
Size (clara-0.9.9.tar.gz) = 419529 bytes
SHA1 (patch-aa) = bfabc610299887e9b8331357d457657aa8c0eb26
+SHA1 (patch-pgmblock.c) = 39bab4e3a0ae68d76ecfb62090bd02f30e268d07
diff -r f0d6a323953c -r 361afde9ad06 graphics/claraocr/patches/patch-pgmblock.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/claraocr/patches/patch-pgmblock.c Wed Dec 29 09:18:42 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-pgmblock.c,v 1.1 2021/12/29 09:18:42 dholland Exp $
+
+Fix invalid calls to open(2).
+
+--- pgmblock.c~ 2002-04-29 14:26:13.000000000 +0000
++++ pgmblock.c
+@@ -161,7 +161,7 @@ void pgmmap(unsigned char *pb,int w,int
+
+ 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, 0664);
+ write(F,m,h*bpl);
+ write(F,map,256);
+ close(F);
+@@ -197,7 +197,7 @@ void pgmunmap(unsigned char *pb,int w,in
+ {
+ int i,j,F;
+
+- F = open("map",O_RDONLY|O_CREAT);
++ F = open("map",O_RDONLY);
+ read(F,m,h*bpl);
+ read(F,map,256);
+ close(F);
Home |
Main Index |
Thread Index |
Old Index