[R] Re: failed rpm installation of R 1.2-1 (fwd)

About this list Date view Thread view Subject view Author view

From: Albrecht Gebhardt (albrecht.gebhardt@uni-klu.ac.at)
Date: Wed 07 Feb 2001 - 16:52:23 EST


Message-ID: <Pine.OSF.4.21.0102070723210.8213-100000@zidsrv.sci.uni-klu.ac.at>

On Wed, 7 Feb 2001, Faheem Mitha wrote:

> Dear Albrecht,
>
> Just sent the following message out to r-help. Have you any idea what this
> problem could be?
>
> Sincerely, Faheem Mitha.
>
> ---------- Forwarded message ----------
> Date: Wed, 7 Feb 2001 00:04:35 -0500 (EST)
> From: Faheem Mitha <faheem@email.unc.edu>
> To: r-help@stat.math.ethz.ch
> Subject: failed rpm installation of R 1.2-1
>
> Dear People,
>
> Just tried to compile an rpm for R 1.2-1 (using Albrecht Gebhardt's spec
> file). The compile went successfully and produced a binary rpm, but when I
> tried to install it, I got an error
>
> error: failed dependencies:
> BEGIN is needed by R-base-1.2.1-1
>
> I see this was also listed in the Requires list at the end of the rpm
> compilation:
>
> Requires: /bin/sh /usr/bin/perl BEGIN ...
>
> Of course I could force installation of the package, but I would like to
> know what I am doing first. Albrecht does not say anything about BEGIN in
> his spec file, so this must be somethin internal to R. Does anyone have
> any idea what? I have no idea.
>

I guess, there is some executable file (a snippet of some script with mode
755 or similar) which starts with a line "BEGIN". ....

Well, I just found it, it is an awk script:
find -type f -exec grep -l BEGIN {} \;
...
./bin/maketitle.awk

Clearly it doesn't need the executable bits so simply add

chmod 644 $RPM_BUILD_ROOT/%{prefix}/R/bin/maketitle.awk

to the end of the %install section of my spec file.

Albrecht

// Albrecht Gebhardt Tel.: (++43 463) 2700/3118
// Institut fuer Mathematik Fax : (++43 463) 2700/3198
// Universitaet Klagenfurt mailto:albrecht.gebhardt@uni-klu.ac.at
// Universitaetsstr. 65 http://www-stat.uni-klu.ac.at/~agebhard
// A-9020 Klagenfurt, Austria

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:32 EST