[R-sig-Fedora] Build rpm package for R-MKL

Tom Callaway tcallawa at redhat.com
Tue Sep 8 19:36:19 CEST 2015


On 09/07/2015 06:16 AM, arnaud gaboury wrote:
> I want to create a clean .rpm package for R built with MKL and ICC. I
> follow Fedora instrcutions[0] to create the package. As a base, I use
> the R-3.2.2.src.rpm.
> 
> I am left with this error:
> 
> ------------------------------------------
> installing R info pages ...
> updating '/usr/share/info/dir' ...
> make[1]: Leaving directory '/home/poisonivy/rpmbuild/BUILD/R-3.2.2/doc/manual'
> + mv doc/manual/R-exts.texi.spot doc/manual/R-exts.texi
> mv: cannot stat 'doc/manual/R-exts.texi.spot': No such file or directory
> ---------------------------------------
> 
> There is indeed no doc/manual/R-exts.texi.spot file. This make
> instruction comes form this in R.spec:
> 
> ---------
> %if 0%{?fedora} >= 19
> # What a hack.
> # Current texinfo doesn't like @eqn. Use @math instead where stuff breaks.
> cp doc/manual/R-exts.texi doc/manual/R-exts.texi.spot
> cp doc/manual/R-intro.texi doc/manual/R-intro.texi.spot
> sed -i 's|@eqn|@math|g' doc/manual/R-exts.texi
> sed -i 's|@eqn|@math|g' doc/manual/R-intro.texi
> %endif
> 
> # And now, undo the hack. :P
> %if 0%{?fedora} >= 19
> mv doc/manual/R-exts.texi.spot doc/manual/R-exts.texi
> mv doc/manual/R-intro.texi.spot doc/manual/R-intro.texi
> %endif
> ------------------------------
> 
> How can I solve this issue? Maybe remove the hack?
> I will post configure and make options if needed.

Not sure how you managed that. The first conditional makes the ".spot"
files, the second one undoes it, both conditionals are the same. You can
try removing them both, but you might run into the exact texinfo issue
they were added to dodge.

~tom

==
Red Hat



More information about the R-SIG-Fedora mailing list