pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/claraocr
Module Name: pkgsrc
Committed By: dholland
Date: Wed Dec 29 09:18:42 UTC 2021
Modified Files:
pkgsrc/graphics/claraocr: Makefile distinfo
Added Files:
pkgsrc/graphics/claraocr/patches: patch-pgmblock.c
Log Message:
graphics/claraocr: fix up invalid calls to open, found by RHEL compiler
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/graphics/claraocr/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/graphics/claraocr/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/claraocr/patches/patch-pgmblock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/claraocr/Makefile
diff -u pkgsrc/graphics/claraocr/Makefile:1.27 pkgsrc/graphics/claraocr/Makefile:1.28
--- pkgsrc/graphics/claraocr/Makefile:1.27 Mon May 24 19:52:20 2021
+++ pkgsrc/graphics/claraocr/Makefile Wed Dec 29 09:18:42 2021
@@ -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/
Index: pkgsrc/graphics/claraocr/distinfo
diff -u pkgsrc/graphics/claraocr/distinfo:1.8 pkgsrc/graphics/claraocr/distinfo:1.9
--- pkgsrc/graphics/claraocr/distinfo:1.8 Tue Oct 26 10:46:02 2021
+++ pkgsrc/graphics/claraocr/distinfo Wed Dec 29 09:18:42 2021
@@ -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
Added files:
Index: pkgsrc/graphics/claraocr/patches/patch-pgmblock.c
diff -u /dev/null pkgsrc/graphics/claraocr/patches/patch-pgmblock.c:1.1
--- /dev/null Wed Dec 29 09:18:42 2021
+++ pkgsrc/graphics/claraocr/patches/patch-pgmblock.c Wed Dec 29 09:18:42 2021
@@ -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