pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/diffutils diffutils: update to 3.8



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e56bfebc59ec
branches:  trunk
changeset: 376715:e56bfebc59ec
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Apr 12 14:24:16 2022 +0000

description:
diffutils: update to 3.8

* Noteworthy changes in release 3.8 (2021-08-01) [stable]

** Incompatible changes

  diff no longer treats a closed stdin as representing an absent file
  in usage like 'diff --new-file - foo <&-'.  This feature was rarely
  if ever used and was not portable to POSIX platforms that reopen
  stdin on exec, such as SELinux if the process underwent an AT_SECURE
  transition, or HP-UX even if not setuid.

** Bug fixes

  diff and related programs no longer get confused if stdin, stdout,
  or stderr are closed.  Previously, they sometimes opened files into
  file descriptors 0, 1, or 2 and then mistakenly did I/O with them
  that was intended for stdin, stdout, or stderr.

  cmp, diff and sdiff no longer treat negative command-line
  option-arguments as if they were large positive numbers.

diffstat:

 devel/diffutils/Makefile                    |   4 ++--
 devel/diffutils/distinfo                    |   9 ++++-----
 devel/diffutils/patches/patch-src_context.c |  20 --------------------
 3 files changed, 6 insertions(+), 27 deletions(-)

diffs (52 lines):

diff -r 2ed7faa7b7f7 -r e56bfebc59ec devel/diffutils/Makefile
--- a/devel/diffutils/Makefile  Tue Apr 12 14:22:49 2022 +0000
+++ b/devel/diffutils/Makefile  Tue Apr 12 14:24:16 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.40 2020/01/18 23:30:26 rillig Exp $
+# $NetBSD: Makefile,v 1.41 2022/04/12 14:24:16 nia Exp $
 
-DISTNAME=      diffutils-3.7
+DISTNAME=      diffutils-3.8
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=diffutils/}
 EXTRACT_SUFX=  .tar.xz
diff -r 2ed7faa7b7f7 -r e56bfebc59ec devel/diffutils/distinfo
--- a/devel/diffutils/distinfo  Tue Apr 12 14:22:49 2022 +0000
+++ b/devel/diffutils/distinfo  Tue Apr 12 14:24:16 2022 +0000
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.18 2021/10/26 10:14:33 nia Exp $
+$NetBSD: distinfo,v 1.19 2022/04/12 14:24:16 nia Exp $
 
-BLAKE2s (diffutils-3.7.tar.xz) = 55b70f9a50a544c941a6f5a27c63e9dc71f4dcf43fc06037d0a83ddc6bde2d0b
-SHA512 (diffutils-3.7.tar.xz) = 7b12cf8aea1b9844773748f72272d9c6a38adae9c3c3a8c62048f91fb56c60b76035fa5f51665dceaf2cfbf1d1f4a3efdcc24bf47a5a16ff4350543314b12c9c
-Size (diffutils-3.7.tar.xz) = 1448828 bytes
+BLAKE2s (diffutils-3.8.tar.xz) = 3c960c9b1f4164e2f590fbd7227abb58dd18af4e861063bcd6a2a0efa5a86718
+SHA512 (diffutils-3.8.tar.xz) = 279441270987e70d5ecfaf84b6285a4866929c43ec877e50f154a788858d548a8a316f2fc26ad62f7348c8d289cb29a09d06dfadce1806e3d8b4ea88c8b1aa7c
+Size (diffutils-3.8.tar.xz) = 1585120 bytes
 SHA1 (patch-po_Makefile.in.in) = 0e7ed6eb85613f272e43a911a35a8b9cfbfb0536
 SHA1 (patch-src_Makefile.in) = ad797a73086d177d53207312a7219f78178895e1
-SHA1 (patch-src_context.c) = 8ca9eff9d0233d1952de7b5f8e055a0a90c66c59
diff -r 2ed7faa7b7f7 -r e56bfebc59ec devel/diffutils/patches/patch-src_context.c
--- a/devel/diffutils/patches/patch-src_context.c       Tue Apr 12 14:22:49 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-src_context.c,v 1.2 2019/07/07 18:02:44 schwarz Exp $
-
-date: 2009-03-10 23:06:06 +0900;  author: apb;  state: Exp;
-Fix a build failure on platforms where time_t is larger than long, by
-using long long instead.  (Not using time_t, because there's no easy and
-portable printf format for time_t.)
-
---- src/context.c.orig 2018-12-31 07:22:10.000000000 +0100
-+++ src/context.c      2019-07-07 00:38:26.000000000 +0200
-@@ -58,8 +58,8 @@
-         if (LONG_MIN <= TYPE_MINIMUM (time_t)
-             && TYPE_MAXIMUM (time_t) <= LONG_MAX)
-           {
--            long int sec = inf->stat.st_mtime;
--            sprintf (buf, "%ld.%.9d", sec, nsec);
-+            long long int sec = inf->stat.st_mtime; /* should really be time_t */
-+            sprintf (buf, "%lld.%.9d", sec, nsec);
-           }
-         else if (TYPE_MAXIMUM (time_t) <= INTMAX_MAX)
-           {



Home | Main Index | Thread Index | Old Index