pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/fonts/pcf2bdf



Module Name:    pkgsrc
Committed By:   fcambus
Date:           Sat Mar  7 22:51:40 UTC 2020

Modified Files:
        pkgsrc/fonts/pcf2bdf: Makefile distinfo
        pkgsrc/fonts/pcf2bdf/patches: patch-aa
Removed Files:
        pkgsrc/fonts/pcf2bdf/patches: patch-ab

Log Message:
pcf2bdf: update to 1.06.

pkgsrc changes:

- Upstream moved to GitHub
- Add missing LICENSE marker
- Stop patching Makefile.gcc and use a do-build target instead

ChangeLog:

1.06:

- Fixed: too-long-path-to-input.pcf.gz causes stack-based buffer overflow.

1.05:

- The size should come from POINT_SIZE instead of PIXEL_SIZE.
- Internal quotation characters in a string property should be indicated
  (or "quoted") by using two quotation characters in a row.
- Fix avoid crash with large compressed metrics tables. (Colin Watson)
- Fix support gzipped source. (Colin Watson)
- Fix use C++ compiler and simplify using GNU extensions. (Jonas Smedegaard)
- Other fixes.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/fonts/pcf2bdf/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/fonts/pcf2bdf/distinfo
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/fonts/pcf2bdf/patches/patch-aa
cvs rdiff -u -r1.2 -r0 pkgsrc/fonts/pcf2bdf/patches/patch-ab

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/fonts/pcf2bdf/Makefile
diff -u pkgsrc/fonts/pcf2bdf/Makefile:1.15 pkgsrc/fonts/pcf2bdf/Makefile:1.16
--- pkgsrc/fonts/pcf2bdf/Makefile:1.15  Sun Sep  3 08:36:54 2017
+++ pkgsrc/fonts/pcf2bdf/Makefile       Sat Mar  7 22:51:40 2020
@@ -1,23 +1,24 @@
-# $NetBSD: Makefile,v 1.15 2017/09/03 08:36:54 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2020/03/07 22:51:40 fcambus Exp $
 #
 
-DISTNAME=      pcf2bdf-1.04
-PKGREVISION=   1
+DISTNAME=      pcf2bdf-1.06
 CATEGORIES=    fonts graphics x11
-#MASTER_SITES= http://www.tsg.ne.jp/GANA/S/pcf2bdf/
-EXTRACT_SUFX=  .tgz
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=ganaware/}
 
 MAINTAINER=    tech-pkg-ja%jp.NetBSD.org@localhost
-#HOMEPAGE=     http://www.tsg.ne.jp/GANA/S/pcf2bdf/
+HOMEPAGE=      https://github.com/ganaware/pcf2bdf
 COMMENT=       Convert X font from PCF to BDF
+LICENSE=       mit
 
-WRKSRC=                ${WRKDIR}
 USE_TOOLS+=    gmake
 USE_LANGUAGES= c++
 MAKE_FILE=     Makefile.gcc
 
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
+do-build:
+       cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o pcf2bdf pcf2bdf.cc
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/pcf2bdf ${DESTDIR}${PREFIX}/bin
        ${INSTALL_MAN} ${WRKSRC}/pcf2bdf.man \

Index: pkgsrc/fonts/pcf2bdf/distinfo
diff -u pkgsrc/fonts/pcf2bdf/distinfo:1.5 pkgsrc/fonts/pcf2bdf/distinfo:1.6
--- pkgsrc/fonts/pcf2bdf/distinfo:1.5   Tue Nov  3 20:44:38 2015
+++ pkgsrc/fonts/pcf2bdf/distinfo       Sat Mar  7 22:51:40 2020
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.5 2015/11/03 20:44:38 agc Exp $
+$NetBSD: distinfo,v 1.6 2020/03/07 22:51:40 fcambus Exp $
 
-SHA1 (pcf2bdf-1.04.tgz) = 6fdcc10132e27d3c26ff7e4be541332ee5d4e927
-RMD160 (pcf2bdf-1.04.tgz) = 6ded73f6610673b136a751c67ec8b8423ad0d87a
-SHA512 (pcf2bdf-1.04.tgz) = dc8329047ec8529410fdb4e15cbf409293b31ed7d50a2f6771a17c0abef3c393f2566590eca133856abefd03b09247859c4e055368e9c19e20972ab2e30991b5
-Size (pcf2bdf-1.04.tgz) = 9686 bytes
-SHA1 (patch-aa) = d750333e3ac74db0666a40a6902af02d85d02ba0
-SHA1 (patch-ab) = 570763e32397296c67a88a485171b898b70247ff
+SHA1 (pcf2bdf-1.06.tar.gz) = f0c65f9300388a3c115aa7e36016ea68cfe5a313
+RMD160 (pcf2bdf-1.06.tar.gz) = 35706bf155d2db66fda2ca5ef1ae54f1d939f77e
+SHA512 (pcf2bdf-1.06.tar.gz) = a8e9f0a6ff6458d0dac63019ffd712504c226ba216c5454bddd7164907e4a53004e4c5d2686fdba24d5ecf802c4a7aa682770beec205224e057d605cae2cb6f4
+Size (pcf2bdf-1.06.tar.gz) = 10781 bytes
+SHA1 (patch-aa) = 57faca2a593b407045798f5cf3d57f0788e62f1c

Index: pkgsrc/fonts/pcf2bdf/patches/patch-aa
diff -u pkgsrc/fonts/pcf2bdf/patches/patch-aa:1.1.1.1 pkgsrc/fonts/pcf2bdf/patches/patch-aa:1.2
--- pkgsrc/fonts/pcf2bdf/patches/patch-aa:1.1.1.1       Tue Dec 31 05:44:43 2002
+++ pkgsrc/fonts/pcf2bdf/patches/patch-aa       Sat Mar  7 22:51:40 2020
@@ -1,31 +1,22 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/12/31 05:44:43 kei Exp $
+$NetBSD: patch-aa,v 1.2 2020/03/07 22:51:40 fcambus Exp $
 
---- pcf2bdf.cc.orig    Mon Oct 21 01:35:29 2002
-+++ pcf2bdf.cc Tue Dec 31 14:36:08 2002
-@@ -577,7 +577,7 @@
+--- pcf2bdf.cc.orig    2019-08-27 14:36:28.000000000 +0000
++++ pcf2bdf.cc
+@@ -655,7 +655,7 @@ int main(int argc, char *argv[])
    }
    if (ifilename)
    {
 -    ifp = fopen(ifilename, "rb");
 +    ifp = fopen(ifilename, "r");
      if (!ifp)
+     {
        return error_exit("failed to open input pcf file");
-   }
-@@ -595,7 +595,7 @@
-     fclose(ifp);
-     char buf[1024];
-     sprintf(buf, "gzip -dc %s", ifilename); // TODO
--    ifp = popen(buf, "rb");
-+    ifp = popen(buf, "r");
-     _setmode(fileno(ifp), O_BINARY);
-     read_bytes = 0;
-     if (!ifp)
-@@ -604,7 +604,7 @@
-   
+@@ -689,7 +689,7 @@ int main(int argc, char *argv[])
+ 
    if (ofilename)
    {
 -    ofp = fopen(ofilename, "wb");
 +    ofp = fopen(ofilename, "w");
      if (!ofp)
+     {
        return error_exit("failed to open output bdf file");
-   }



Home | Main Index | Thread Index | Old Index