Hi, I was getting this to work, and I ran into this glitch. I'd run my little rpmbuilder.js program and after maybe a minute i'd get this:
Error: stderr maxBuffer exceeded
this came from child-process. At first I tried passing in an option:
execOpts: {maxBuffer: 1e6},
but that wasn't even big enough. Finally I commended out this line in index.js:
var cmd = [
'rpmbuild',
'-bb',
//'-vv', <<<====****
'--buildroot',
buildRoot,
specFile
].join(' ');
The -vv was generating gobs and gobs of output into stderr. Since it seems to be dropped anyway, you probably don't need it.
BUT, after that the program wouldn't quit. Generated the rpm file, i just have to ^C. could be my problem, but just fyi.