pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/Markdown



Module Name:    pkgsrc
Committed By:   sborrill
Date:           Tue Jan  9 13:34:50 UTC 2024

Modified Files:
        pkgsrc/textproc/Markdown: Makefile distinfo
Added Files:
        pkgsrc/textproc/Markdown/patches: patch-Markdown.pl

Log Message:
Markdown: apply Debian patch to exit gracefully if input cannot be opened

https://metadata.ftp-master.debian.org/changelogs//main/m/markdown/markdown_1.0.1-10_changelog

  markdown (1.0.1-10) unstable; urgency=medium

    * Exit with a non-zero exit code if the input file cannot be opened,
      thanks to Chris Lamb, closes: #886032.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/textproc/Markdown/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/textproc/Markdown/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/Markdown/patches/patch-Markdown.pl

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

Modified files:

Index: pkgsrc/textproc/Markdown/Makefile
diff -u pkgsrc/textproc/Markdown/Makefile:1.19 pkgsrc/textproc/Markdown/Makefile:1.20
--- pkgsrc/textproc/Markdown/Makefile:1.19      Tue Jun 28 11:36:07 2022
+++ pkgsrc/textproc/Markdown/Makefile   Tue Jan  9 13:34:50 2024
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.19 2022/06/28 11:36:07 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2024/01/09 13:34:50 sborrill Exp $
 #
 
 DISTNAME=      Markdown_1.0.1
 PKGNAME=       Markdown-1.0.1
-PKGREVISION=   10
+PKGREVISION=   11
 CATEGORIES=    textproc converters
 MASTER_SITES=  http://daringfireball.net/projects/downloads/
 EXTRACT_SUFX=  .zip

Index: pkgsrc/textproc/Markdown/distinfo
diff -u pkgsrc/textproc/Markdown/distinfo:1.6 pkgsrc/textproc/Markdown/distinfo:1.7
--- pkgsrc/textproc/Markdown/distinfo:1.6       Tue Oct 26 11:21:29 2021
+++ pkgsrc/textproc/Markdown/distinfo   Tue Jan  9 13:34:50 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 11:21:29 nia Exp $
+$NetBSD: distinfo,v 1.7 2024/01/09 13:34:50 sborrill Exp $
 
 BLAKE2s (Markdown-1.0.1/Markdown_1.0.1.zip) = ea420f4fa2ab744cc4f3bae26bf1bc698648c8f2a5c32aa64752b68181f94a46
 SHA512 (Markdown-1.0.1/Markdown_1.0.1.zip) = 962df356e641326fbf29cdedc36dafb5f04683f0b3f5eb1efb8e15994e1e000b5a6882c84f09db4a6f8f948811ebbe76759e27871c644e690884db31705eab1f
 Size (Markdown-1.0.1/Markdown_1.0.1.zip) = 17823 bytes
+SHA1 (patch-Markdown.pl) = afded5fadd7b81e2ed97bb56be034a4b64ebcaaf

Added files:

Index: pkgsrc/textproc/Markdown/patches/patch-Markdown.pl
diff -u /dev/null pkgsrc/textproc/Markdown/patches/patch-Markdown.pl:1.1
--- /dev/null   Tue Jan  9 13:34:50 2024
+++ pkgsrc/textproc/Markdown/patches/patch-Markdown.pl  Tue Jan  9 13:34:50 2024
@@ -0,0 +1,18 @@
+$NetBSD: patch-Markdown.pl,v 1.1 2024/01/09 13:34:50 sborrill Exp $
+
+Patch from Debian to exit with non-zero exit code if the input file cannot
+be opened:
+
+https://metadata.ftp-master.debian.org/changelogs//main/m/markdown/markdown_1.0.
+
+--- Markdown.pl.orig   2004-12-14 22:57:42.000000000 +0000
++++ Markdown.pl        2024-01-09 13:31:50.483232360 +0000
+@@ -215,7 +215,7 @@
+               my $text;
+               {
+                       local $/;               # Slurp the whole file
+-                      $text = <>;
++                      defined($text = <>) or exit 2;
+               }
+         print Markdown($text);
+     }



Home | Main Index | Thread Index | Old Index