#1 Patch obsolete puts calls
Closed 3 years ago by sdgathman. Opened 4 years ago by sdgathman.
rpms/ sdgathman/nodejs-ronn master  into  master

file modified
+1
@@ -1,2 +1,3 @@ 

  /ronn-0.3.8.tgz

  /ronn-0.4.0.tgz

+ /*.src.rpm

file modified
+6 -1
@@ -2,11 +2,12 @@ 

  

  Name:       nodejs-ronn

  Version:    0.4.0

- Release:    14%{?dist}

+ Release:    15%{?dist}

  Summary:    Markdown to roff/html converter

  License:    MIT

  URL:        https://github.com/kapouer/ronnjs

  Source0:    https://registry.npmjs.org/ronn/-/ronn-%{version}.tgz

+ Patch0:	    puts.patch

  

  BuildArch:  noarch

  %if 0%{?fedora} >= 19
@@ -23,6 +24,7 @@ 

  

  %prep

  %setup -q -n package

+ %patch0 -p3 -b .puts

  

  %build

  #nothing to do
@@ -43,6 +45,9 @@ 

  %license LICENSE

  

  %changelog

+ * Fri Dec  6 2019 Stuart Gathman <stuart@gathman.org> - 0.4.0-15

+ - Patch obsolete puts calls to use console

+ 

  * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-14

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

  

file added
+26
@@ -0,0 +1,26 @@ 

+ diff -up ./node_modules/ronn/bin/ronn.js.puts ./node_modules/ronn/bin/ronn.js

+ --- ./node_modules/ronn/bin/ronn.js.puts	2019-08-03 18:32:03.560415945 -0400

+ +++ ./node_modules/ronn/bin/ronn.js	2019-08-03 18:33:18.600372936 -0400

+ @@ -2,7 +2,8 @@

+  

+  var RONN_VERSION = "0.4.0";

+  

+ -var sys = require('util');

+ +var console = require('console');

+ +var sys = { 'puts': console.log, 'debug': console.error };

+  var fs = require('fs');

+  var path = require('path');

+  var opts = require('opts');

+ diff -up ./node_modules/ronn/lib/ronn.js.puts ./node_modules/ronn/lib/ronn.js

+ --- ./node_modules/ronn/lib/ronn.js.puts	2019-08-03 18:32:11.703523935 -0400

+ +++ ./node_modules/ronn/lib/ronn.js	2019-08-03 18:33:02.578184733 -0400

+ @@ -4,7 +4,8 @@

+   */

+  

+  var md = require('markdown').markdown;

+ -var sys = require('util');

+ +var console = require('console');

+ +var sys = { 'puts': console.log, 'debug': console.error };

+  

+  /* exports Ronn class

+   * usage :

Add simple patch to update calls to puts to use console instead. Patch maps puts to console.log and debug to console.error.

1 new commit added

  • Ignore /*.src.rpm
3 years ago

Pull-Request has been closed by sdgathman

3 years ago