If you use ietf-cli to mirror RFCs for convienence, you may see this error:

    Making the RFC status index 
    Could not dump status info to
    '/var/db/ietf-mirrors/in-notes/ietf-rfc-status.json'. Exiting. 

There is a Pull Request to fix it, but it seems upstream hasn't yet
reacted to it.  the pull request works for me, and makes sense.

OK?

Index: misc/ietf-cli/Makefile
===================================================================
RCS file: /home/cvs/openbsd/ports/misc/ietf-cli/Makefile,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 Makefile
--- misc/ietf-cli/Makefile      3 Jul 2020 21:12:58 -0000       1.5
+++ misc/ietf-cli/Makefile      21 Jan 2021 22:34:18 -0000
@@ -6,7 +6,7 @@ GH_ACCOUNT=     paulehoffman
 GH_PROJECT=    ietf-cli
 GH_TAGNAME=    4b2b52dc333b6b59403b102349572f8af1b20a52
 DISTNAME=      ${GH_PROJECT}-1.16
-REVISION=      0
+REVISION=      1
 
 CATEGORIES=    misc net books
 
Index: misc/ietf-cli/patches/patch-ietf
===================================================================
RCS file: /home/cvs/openbsd/ports/misc/ietf-cli/patches/patch-ietf,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-ietf
--- misc/ietf-cli/patches/patch-ietf    14 Mar 2020 15:59:46 -0000      1.2
+++ misc/ietf-cli/patches/patch-ietf    5 Feb 2021 10:36:45 -0000
@@ -2,6 +2,8 @@ $OpenBSD: patch-ietf,v 1.2 2020/03/14 15
 
 Adjust ConfigPlaces.
 
+Remove binary flag when opening a text file to write to it (GitHub PR 4)
+
 Index: ietf
 --- ietf.orig
 +++ ietf
@@ -14,3 +16,21 @@ Index: ietf
  
  # Make a block of text that can be executed in the CLI
  CLICmdCode = ""
+@@ -751,7 +751,7 @@ def Cmd_mirror(Args):
+                               for ThisFoundInnerAuthor in 
ThisFoundOuterAuthor.findall(TagBase + "name"):
+                                       
RFCStatus[ThisRFCNum]["authors"].append(ThisFoundInnerAuthor.text)
+       try:
+-              with open(RFCStatusFileLoc, mode="wb") as statusf:
++              with open(RFCStatusFileLoc, mode="w") as statusf:
+                       json.dump(RFCStatus, statusf)
+       except:
+               exit("Could not dump status info to '" + RFCStatusFileLoc + "'. 
Exiting.")
+@@ -783,7 +783,7 @@ def Cmd_mirror(Args):
+                       "title": TheFields[13], \
+                       "authors": TheFields[14].rstrip() }
+       try:
+-              with open(IDStatusFileLoc, mode="wb") as statusf:
++              with open(IDStatusFileLoc, mode="w") as statusf:
+                       json.dump(IDStatus, statusf)
+       except:
+               exit("Could not dump status info to '" + IDStatusFileLoc + "'. 
Exiting.")       


-- 
Q:  How many Zen masters does it take to screw in a light bulb?
A:  None.  The Universe spins the bulb, and the Zen master stays out
    of the way.

Reply via email to