Bug 1735356 - Uses util.debug which is deprecated and removed from latest nodejs
Summary: Uses util.debug which is deprecated and removed from latest nodejs
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: nodejs-ronn
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: NodeJS Packaging SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1734999
TreeView+ depends on / blocked
 
Reported: 2019-07-31 19:42 UTC by Piotr Popieluch
Modified: 2019-08-14 08:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Piotr Popieluch 2019-07-31 19:42:21 UTC
When using on Rawhide it gives the following error.

BUILDSTDERR: /usr/lib/node_modules/ronn/lib/ronn.js:263
BUILDSTDERR: 				sys.debug("unrecognized inline tag: " + tag);


where sys is 'util'

var sys = require('util');



I think this could be due to deprecation of util.debug, see this on F30:

when running this on 
> var sys = require('util');
undefined
> sys.debug()
DEBUG: undefined
undefined
> (node:28636) [DEP0028] DeprecationWarning: util.debug is deprecated. Use console.error instead.

Comment 1 Ben Cotton 2019-08-13 17:06:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Ben Cotton 2019-08-13 18:51:35 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 3 Stuart D Gathman 2019-08-14 00:44:07 UTC
This is a dup of bz#1735361 - where I also submitted a patch.  I made my cjdns project depending on nodejs-ronn build by making a local copy of nodejs-ronn in the cjdns build directory (which already had a node_modules as it does other node stuff during build) and patching it.  Ugly, but works.

Comment 4 Piotr Popieluch 2019-08-14 08:35:43 UTC
Thanks for the suggestion. There is also a rubygem ronn, I think I will just switch to that one.


Note You need to log in before you can comment on or make changes to this bug.