pkgsrc-Changes archive

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

CVS commit: pkgsrc/news/sfeed



Module Name:    pkgsrc
Committed By:   leot
Date:           Fri Apr 28 13:42:01 UTC 2023

Modified Files:
        pkgsrc/news/sfeed: Makefile PLIST distinfo

Log Message:
sfeed: Update to 1.8

Changes:
1.8
---
Fixes:
* sfeed_update: fail early if creating a temporary directory or status file fails.
* sfeed_atom, sfeed_json, sfeed_mbox:
  Fix reading past the buffer with an escaped NUL byte (\ NUL).
  Note that this could not happen with output from sfeed itself. Only if it was
  manipulated.
* sfeed_curses: fix (very hard to trigger) memleak when getline() returns EOF
  for lazyloaded items.
* sfeed parser:
  * Improve parsing RFC2822 obsolete short year.
  * Use errno ENOMEM instead of EOVERFLOW.
    This matches the behaviour of setting errno for malloc/calloc on the following
    systems too: glibc, musl libc, OpenBSD libc.
  * date to unix timestamp: fix incorrect int type to long.
    Found while testing sfeed on 16-bit MS-DOS with Open Watcom (for "fun" :)).
* Makefile: remove duplicate CPPFLAGS for sfeed_curses

Features:
* sfeed_json: add JSON output format tool. This formats the TSV data to JSON.
  It uses a subset of JSON Feed 1.1: https://www.jsonfeed.org/version/1.1/

Optimizations:
* sfeed_atom: save a few bytes in the output by removing the type="text"
  attribute, because for Atom the default for the type is text.
* Slightly reduce stack size for translating XML entities.
  A numeric entity could use 5 bytes, so use a round number of 8 bytes.

Misc:
* sfeed: simplify time calculation and make it slightly easier to read.
  This also fixes a calculation (possibly a compiler bug) with Open Watcom 1.9.
* Remove the sfeed name in some outputs ("branding").

Documentation:
* Fix some typos and improve code comments, in particular about the time parsing.
* README: sfeed_download example: change youtube-dl to yt-dlp:
  this is an active maintained fork.
* README: add error checking for temporary files in the examples.

Aside from the above changes there have been lots of testing on different and
strange systems and the test-cases have been expanded to cover some cases.
These tests are in a separate repo.

Some tested strange systems:

* SerenityOS: gophers://codemadness.org/9/paste/sfeed-serenityos.webm partially
  works.  The core base utilities like sort are limited and non-POSIX though, so
  sfeed_update doesn't work directly there.

* MS-DOS (16-bit and 32-bit extender) using Open Watcom 1.9. Works fine using a
  32-bit extender.  No 2038-support with 64-bit time_t though, just _unsigned_
  32-bit :)

Tested these less-used systems or compilers can be fun and also discover
(pedantic) bugs.

While adding JSON Feed output support (sfeed_json) I also wrote a parser for it
to read the data.  It can convert from JSON Feed to Atom. It can also convert
directly from JSON Feed to sfeed(5). It is available at:

        https://git.codemadness.org/jfconvert/files.html

1.7
---
Changes:
sfeed_curses:
* Add SCO keys for next, prior (CSI I and CSI G).
  Tested on DragonFlyBSD (cons25 console).
* Add SUN keys support.
  Tested on OpenIndiana.

sfeed_gopher:
* Remove unnecesary PATH_MAX restricting the path length.
  This also makes it compile cleanly on GNU/Hurd.

* Man page and documentation improvements.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/news/sfeed/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/news/sfeed/PLIST
cvs rdiff -u -r1.24 -r1.25 pkgsrc/news/sfeed/distinfo

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

Modified files:

Index: pkgsrc/news/sfeed/Makefile
diff -u pkgsrc/news/sfeed/Makefile:1.25 pkgsrc/news/sfeed/Makefile:1.26
--- pkgsrc/news/sfeed/Makefile:1.25     Wed Aug 17 15:21:12 2022
+++ pkgsrc/news/sfeed/Makefile  Fri Apr 28 13:42:00 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.25 2022/08/17 15:21:12 leot Exp $
+# $NetBSD: Makefile,v 1.26 2023/04/28 13:42:00 leot Exp $
 
-DISTNAME=      sfeed-1.6
+DISTNAME=      sfeed-1.8
 CATEGORIES=    news
 MASTER_SITES=  https://codemadness.org/releases/sfeed/
 

Index: pkgsrc/news/sfeed/PLIST
diff -u pkgsrc/news/sfeed/PLIST:1.6 pkgsrc/news/sfeed/PLIST:1.7
--- pkgsrc/news/sfeed/PLIST:1.6 Sat Dec 18 14:14:24 2021
+++ pkgsrc/news/sfeed/PLIST     Fri Apr 28 13:42:00 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2021/12/18 14:14:24 leot Exp $
+@comment $NetBSD: PLIST,v 1.7 2023/04/28 13:42:00 leot Exp $
 bin/sfeed
 bin/sfeed_atom
 bin/sfeed_content
@@ -6,6 +6,7 @@ bin/sfeed_curses
 bin/sfeed_frames
 bin/sfeed_gopher
 bin/sfeed_html
+bin/sfeed_json
 bin/sfeed_markread
 bin/sfeed_mbox
 bin/sfeed_opml_export
@@ -22,6 +23,7 @@ man/man1/sfeed_curses.1
 man/man1/sfeed_frames.1
 man/man1/sfeed_gopher.1
 man/man1/sfeed_html.1
+man/man1/sfeed_json.1
 man/man1/sfeed_markread.1
 man/man1/sfeed_mbox.1
 man/man1/sfeed_opml_export.1

Index: pkgsrc/news/sfeed/distinfo
diff -u pkgsrc/news/sfeed/distinfo:1.24 pkgsrc/news/sfeed/distinfo:1.25
--- pkgsrc/news/sfeed/distinfo:1.24     Wed Aug 17 15:21:12 2022
+++ pkgsrc/news/sfeed/distinfo  Fri Apr 28 13:42:00 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.24 2022/08/17 15:21:12 leot Exp $
+$NetBSD: distinfo,v 1.25 2023/04/28 13:42:00 leot Exp $
 
-BLAKE2s (sfeed-1.6.tar.gz) = 37a9083f95670ef8f9013b84679bfe3d3c40e7e3d9c1856a7561facb5f3bab0a
-SHA512 (sfeed-1.6.tar.gz) = 450cde27b0d437b165fc024f2b95612fd7755c357e3539167f3c9b123d7a63c3193cb808b6c9621d15b1f5e2d8d783131423e52db6e98c228aa5af190eb167eb
-Size (sfeed-1.6.tar.gz) = 65239 bytes
+BLAKE2s (sfeed-1.8.tar.gz) = fcb91a7ae23f898171c6ce2f25401b55b65b08eb64ff86c0cb862873dfd23e44
+SHA512 (sfeed-1.8.tar.gz) = 7a57108ace21813de9d80e7ebcc9ffed37580f52f08313ddcf86f2ee0df54d733631cba6936921623aa34c41a06dba43778cedbf557738db009d91f961fc9af7
+Size (sfeed-1.8.tar.gz) = 67335 bytes



Home | Main Index | Thread Index | Old Index