Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (c816b954676747e29396c4335e32820f369bc094)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (c816b954676747e29396c4335e32820f369bc094)
  • Date: Mon, 27 Mar 2023 15:50:32 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

printer/a2ps/DETAILS | 5
printer/a2ps/HISTORY | 12 ++
printer/a2ps/patches/a2ps-4.13-manpage-chmod.patch | 12 --
printer/a2ps/patches/a2ps-4.13c-emacs.patch | 10 -
printer/a2ps/patches/a2ps-4.13c-fnmatch-replacement.patch | 43 -------
printer/a2ps/patches/a2ps-4.14-CVE-2001-1593.patch | 82
--------------
printer/a2ps/patches/a2ps-4.14-CVE-2014-0466.patch | 32 -----
printer/a2ps/patches/a2ps-4.14-check-mempcpy.patch | 12 --
printer/a2ps/patches/a2ps-4.14-fix-stpcpy-proto.patch | 17 --
printer/a2ps/patches/a2ps-4.14-psset.patch | 21 ---
printer/a2ps/patches/a2ps-4.14-ptrdiff_t.patch | 14 --
11 files changed, 14 insertions(+), 246 deletions(-)

New commits:
commit c816b954676747e29396c4335e32820f369bc094
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

a2ps 4.15.2

diff --git a/printer/a2ps/DETAILS b/printer/a2ps/DETAILS
index 8e073bd..2f54d0f 100755
--- a/printer/a2ps/DETAILS
+++ b/printer/a2ps/DETAILS
@@ -1,13 +1,12 @@
# Watch: https://ftp.gnu.org/gnu/a2ps
SPELL=a2ps
- VERSION=4.14
+ VERSION=4.15.2
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE_URL[0]=$GNU_URL/$SPELL/$SOURCE
-
SOURCE_HASH=sha512:fd6ac8ab47d789114c283e8ca508f7f56feabd1a189f4ac772cad9e6be7e3791e210892cfffd04ad1d39efe4b15386b2e61bf4cd56b70ed581c0554f36bfe06f
+
SOURCE_HASH=sha512:637bda87c7e8d59d923428398d0d67066c700e7e37d91cf3408bfe38f3367afdc651a8248984512fbe71e0d1cb07cb4a348816650748e1fbde52625e8e055a70
WEB_SITE=http://www.gnu.org/directory/GNU/a2ps.html
ENTERED=20010922
- UPDATED=20050627
LICENSE[0]=GPL
KEYWORDS="postscript printer"
SHORT="Any to PostScript filter"
diff --git a/printer/a2ps/HISTORY b/printer/a2ps/HISTORY
index 8cd23be..cf58116 100644
--- a/printer/a2ps/HISTORY
+++ b/printer/a2ps/HISTORY
@@ -1,3 +1,15 @@
+2023-03-27 Ismael Luceno <ismael AT sourcemage.org>
+ * patches/a2ps-4.14-ptrdiff_t.patch: removed, no longer needed
+ * patches/a2ps-4.14-psset.patch: removed, no longer needed
+ * patches/a2ps-4.14-fix-stpcpy-proto.patch: removed, no longer needed
+ * patches/a2ps-4.14-CVE-2014-0466.patch: removed, no longer needed
+ * patches/a2ps-4.14-CVE-2001-1593.patch: removed, no longer needed
+ * patches/a2ps-4.14-check-mempcpy.patch: removed, no longer needed
+ * patches/a2ps-4.13c-fnmatch-replacement.patch: removed, no longer
needed
+ * patches/a2ps-4.13c-emacs.patch: removed, no longer needed
+ * patches/a2ps-4.13-manpage-chmod.patch: removed, no longer needed
+ * DETAILS: updated spell to 4.15.2
+
2019-05-05 Florian Franzmann <bwlf AT bandrate.org>
* DETAILS: version 4.14
* PRE_BUILD, patches/a2ps-4.13c-emacs.patch
diff --git a/printer/a2ps/patches/a2ps-4.13-manpage-chmod.patch
b/printer/a2ps/patches/a2ps-4.13-manpage-chmod.patch
deleted file mode 100644
index e0c6112..0000000
--- a/printer/a2ps/patches/a2ps-4.13-manpage-chmod.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur a2ps-4.13.orig/man/Makefile.maint a2ps-4.13/man/Makefile.maint
---- a2ps-4.13.orig/man/Makefile.maint 2002-03-04 20:46:26.000000000 +0200
-+++ a2ps-4.13/man/Makefile.maint 2007-02-19 21:50:29.000000000 +0200
-@@ -20,7 +20,7 @@
- --include=$(basename $@).x \
- --include=common.x \
- $(executable) > $@-t || exit 1; \
-- chmod -w $@-t || exit 1; \
-+ chmod a-w $@-t || exit 1; \
- rm -f $@ || exit 1; \
- mv $@-t $@ || exit 1; \
- else \
diff --git a/printer/a2ps/patches/a2ps-4.13c-emacs.patch
b/printer/a2ps/patches/a2ps-4.13c-emacs.patch
deleted file mode 100644
index f1cd5d9..0000000
--- a/printer/a2ps/patches/a2ps-4.13c-emacs.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a2ps-4.13/contrib/emacs/a2ps-print.el.orig 2005-12-05 08:03:48.000000000
+0100
-+++ a2ps-4.13/contrib/emacs/a2ps-print.el 2005-12-06 16:38:14.000000000
+0100
-@@ -93,6 +93,7 @@
- (concat "--center-title=" name)
- (concat "--footer=" (concat name " Emacs buffer"))
- (concat "--pretty-print=" filetype)
-+ (concat "-d")
- ;Uncommenting the following gives a print preview (only):
- ; (concat "--output=/tmp/foo.ps")
- )
diff --git a/printer/a2ps/patches/a2ps-4.13c-fnmatch-replacement.patch
b/printer/a2ps/patches/a2ps-4.13c-fnmatch-replacement.patch
deleted file mode 100644
index c49ab78..0000000
--- a/printer/a2ps/patches/a2ps-4.13c-fnmatch-replacement.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-diff -Naurp a2ps-4.13.orig/lib/fnmatch.c a2ps-4.13/lib/fnmatch.c
---- a2ps-4.13.orig/lib/fnmatch.c 2002-03-04 12:46:25 -0600
-+++ a2ps-4.13/lib/fnmatch.c 2006-05-27 11:41:15 -0500
-@@ -27,18 +27,6 @@
- #include <fnmatch.h>
- #include <ctype.h>
-
--
--/* Comment out all this code if we are using the GNU C Library, and are not
-- actually compiling the library itself. This code is part of the GNU C
-- Library, but also included in many other GNU distributions. Compiling
-- and linking in this code is a waste when using the GNU C library
-- (especially if it is a shared library). Rather than having every GNU
-- program understand `configure --with-gnu-libc' and omit the object files,
-- it is simpler to just do this in the source for each such file. */
--
--#if defined _LIBC || !defined __GNU_LIBRARY__
--
--
- # if defined STDC_HEADERS || !defined isascii
- # define ISASCII(c) 1
- # else
-@@ -52,10 +40,13 @@
- extern int errno;
- # endif
-
-+/* fnmatch replacement taken from the GNU C Library for systems that
-+ provide a broken implementation. */
-+
- /* Match STRING against the filename pattern PATTERN, returning zero if
- it matches, nonzero if not. */
- int
--fnmatch (const char *pattern, const char *string, int flags)
-+rpl_fnmatch (const char *pattern, const char *string, int flags)
- {
- register const char *p = pattern, *n = string;
- register char c;
-@@ -233,5 +224,3 @@ fnmatch (const char *pattern, const char
-
- # undef FOLD
- }
--
--#endif /* _LIBC or not __GNU_LIBRARY__. */
diff --git a/printer/a2ps/patches/a2ps-4.14-CVE-2001-1593.patch
b/printer/a2ps/patches/a2ps-4.14-CVE-2001-1593.patch
deleted file mode 100644
index 06153f4..0000000
--- a/printer/a2ps/patches/a2ps-4.14-CVE-2001-1593.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-CVE-2001-1593: Fix insecure use of /tmp
-
-
-Author(s):
-
- * Fri Jan 05 2001 Preston Brown <pbrown AT redhat.com>
-
-followed the next month by a fix to that patch:
-
- * Mon Feb 12 2001 Tim Waugh <twaugh AT redhat.com>
-
-(see https://bugzilla.redhat.com/show_bug.cgi?id=1060630#c5)
-
-Origin:
-
-http://pkgs.fedoraproject.org/cgit/a2ps.git/plain/a2ps-4.13-security.patch
-
---- a/lib/routines.c
-+++ b/lib/routines.c
-@@ -242,3 +242,50 @@
- /* Don't complain if you can't unlink. Who cares of a tmp file? */
- unlink (filename);
- }
-+
-+/*
-+ * Securely generate a temp file, and make sure it gets
-+ * deleted upon exit.
-+ */
-+static char ** tempfiles;
-+static unsigned ntempfiles;
-+
-+static void
-+cleanup_tempfiles()
-+{
-+ while (ntempfiles--)
-+ unlink(tempfiles[ntempfiles]);
-+}
-+
-+char *
-+safe_tempnam(const char *pfx)
-+{
-+ char *dirname, *filename;
-+ int fd;
-+
-+ if (!(dirname = getenv("TMPDIR")))
-+ dirname = "/tmp";
-+
-+ tempfiles = (char **) realloc(tempfiles,
-+ (ntempfiles+1) * sizeof(char *));
-+ if (tempfiles == NULL)
-+ return NULL;
-+
-+ filename = malloc(strlen(dirname) + strlen(pfx) + sizeof("/XXXXXX"));
-+ if (!filename)
-+ return NULL;
-+
-+ sprintf(filename, "%s/%sXXXXXX", dirname, pfx);
-+
-+ if ((fd = mkstemp(filename)) < 0) {
-+ free(filename);
-+ return NULL;
-+ }
-+ close(fd);
-+
-+ if (ntempfiles == 0)
-+ atexit(cleanup_tempfiles);
-+ tempfiles[ntempfiles++] = filename;
-+
-+ return filename;
-+}
---- a/lib/routines.h
-+++ b/lib/routines.h
-@@ -255,7 +255,8 @@
- /* If _STR_ is not defined, give it a tempname in _TMPDIR_ */
- #define tempname_ensure(Str) \
- do { \
-- (Str) = (Str) ? (Str) : tempnam (NULL, "a2_"); \
-+ (Str) = (Str) ? (Str) : safe_tempnam("a2_"); \
- } while (0)
-+char * safe_tempnam(const char *);
-
- #endif
diff --git a/printer/a2ps/patches/a2ps-4.14-CVE-2014-0466.patch
b/printer/a2ps/patches/a2ps-4.14-CVE-2014-0466.patch
deleted file mode 100644
index 56f0b2f..0000000
--- a/printer/a2ps/patches/a2ps-4.14-CVE-2014-0466.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-CVE-2014-0466: fixps does not invoke gs with -dSAFER
-
-A malicious PostScript file could delete files with the privileges of
-the invoking user.
-
-Author: Salvatore Bonaccorso <carnil AT debian.org>
-Origin: https://bugs.debian.org/742902
-
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git'
'--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr'
a2ps~/contrib/fixps.in a2ps/contrib/fixps.in
---- a2ps~/contrib/fixps.in 2014-03-30 12:24:50.000000000 +0200
-+++ a2ps/contrib/fixps.in 2014-03-30 12:40:36.763249218 +0200
-@@ -389,7 +389,7 @@
- eval "$command" ;;
- gs)
- $verbose "$program: making a full rewrite of the file ($gs)." >&2
-- $gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c save pop
-f $file ;;
-+ $gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c
save pop -f $file ;;
- esac
- )
- fi
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git'
'--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr'
a2ps~/contrib/fixps.m4 a2ps/contrib/fixps.m4
---- a2ps~/contrib/fixps.m4 2014-03-30 12:24:50.000000000 +0200
-+++ a2ps/contrib/fixps.m4 2014-03-30 12:40:36.767249254 +0200
-@@ -307,7 +307,7 @@
- eval "$command" ;;
- gs)
- $verbose "$program: making a full rewrite of the file ($gs)." >&2
-- $gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c save pop
-f $file ;;
-+ $gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c
save pop -f $file ;;
- esac
- )
- fi
diff --git a/printer/a2ps/patches/a2ps-4.14-check-mempcpy.patch
b/printer/a2ps/patches/a2ps-4.14-check-mempcpy.patch
deleted file mode 100644
index 7b820ce..0000000
--- a/printer/a2ps/patches/a2ps-4.14-check-mempcpy.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a2ps-4.14-orig/configure.in 2008-04-16 08:36:03.000000000 +0200
-+++ a2ps-4.14/configure.in 2008-04-16 08:36:29.000000000 +0200
-@@ -137,7 +137,8 @@
- ad_REPLACE_FUNC_STRCASECMP
- ad_REPLACE_FUNC_STRNCASECMP
- ad_REPLACE_FUNC_RENAME
--AC_CHECK_FUNCS(uname strchr strerror strerror_r getcwd bcopy bzero tempnam
strsignal psignal setlocale)
-+AC_CHECK_FUNCS(uname strchr strerror strerror_r getcwd bcopy bzero \
-+ tempnam strsignal psignal setlocale mempcpy)
- ad_FUNC_SYSTEMPAPERNAME
- ad_FUNC_ATEXIT
- ad_FUNC_STRFTIME
diff --git a/printer/a2ps/patches/a2ps-4.14-fix-stpcpy-proto.patch
b/printer/a2ps/patches/a2ps-4.14-fix-stpcpy-proto.patch
deleted file mode 100644
index c5bdfc5..0000000
--- a/printer/a2ps/patches/a2ps-4.14-fix-stpcpy-proto.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-=== modified file 'lib/xstrrpl.c'
---- a/lib/xstrrpl.c 2008-04-14 18:04:50 +0000
-+++ b/lib/xstrrpl.c 2008-04-14 18:20:20 +0000
-@@ -20,12 +20,10 @@
-
- #include "system.h"
- #include <assert.h>
- #include "xstrrpl.h"
-
--extern char * stpcpy();
--
- /* Perform subsitutions in string. Result is malloc'd
- E.g., result = xstrrrpl ("1234", subst) gives result = "112333"
- where subst = { {"1", "11"}, {"3", "333"}, { "4", ""}}
- */
- char *
-
diff --git a/printer/a2ps/patches/a2ps-4.14-psset.patch
b/printer/a2ps/patches/a2ps-4.14-psset.patch
deleted file mode 100644
index 291c3aa..0000000
--- a/printer/a2ps/patches/a2ps-4.14-psset.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -Naur a2ps-4.14.orig/contrib/psset.in a2ps-4.14/contrib/psset.in
---- a2ps-4.14.orig/contrib/psset.in 2007-12-29 12:29:01.000000000 +0900
-+++ a2ps-4.14/contrib/psset.in 2009-04-12 12:17:43.000000000 +0900
-@@ -219,7 +219,7 @@
- done
-
- pspagedevice="% Pagedevice definitions:
--countdictstack
-+ countdictstack
- % Push our own mark, since there can be several PS marks pushed depending
- % where the failure really occured.
- /psset_mark
-@@ -227,7 +227,7 @@
- } stopped
- % My cleartomark
- { /psset_mark eq { exit } if } loop
--countdictstack exch sub dup 0 gt
-+ countdictstack exch sub dup 0 gt
- {
- { end } repeat
- }{
diff --git a/printer/a2ps/patches/a2ps-4.14-ptrdiff_t.patch
b/printer/a2ps/patches/a2ps-4.14-ptrdiff_t.patch
deleted file mode 100644
index 00d955a..0000000
--- a/printer/a2ps/patches/a2ps-4.14-ptrdiff_t.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -uNr a2ps-4.14/lib/obstack.h a2ps-4.14.test/lib/obstack.h
---- a2ps-4.14/lib/obstack.h 2007-12-29 09:37:59.000000000 +0800
-+++ a2ps-4.14.test/lib/obstack.h 2009-06-10 18:49:45.000000000 +0900
-@@ -138,9 +138,9 @@
- #define __need_ptrdiff_t
- #endif
- #endif
-+#endif
-
- #include <stddef.h>
--#endif
-
- #if defined (__STDC__) && __STDC__
- #define PTR_INT_TYPE ptrdiff_t



  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (c816b954676747e29396c4335e32820f369bc094), Ismael Luceno, 03/27/2023

Archive powered by MHonArc 2.6.24.

Top of Page