Bug 956835

Summary: R-make-search-index.sh needs to be updated for version 3
Product: [Fedora] Fedora Reporter: Peter Trenholme <PTrenholme>
Component: R-abindAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-01 04:28:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Trenholme 2013-04-25 18:04:36 UTC
Description of problem: The installation script (which is obsolete) needs to be updated. (It is used by R-abind and R-multicomp)


Version-Release number of selected component (if applicable):
3.0

How reproducible:
Every install

Steps to Reproduce:
1.yum reinstall R-* (for example)
2.
3.
  
Actual results:
  Installing : R-multcomp-1.2-11.fc19.noarch                                                       19/35 
/usr/lib/rpm/R-make-search-index.sh: line 22: /usr/share/doc/R-3.0.0/html/search/index.txt: No such file or directory
...

Expected results:
No error output

Additional info:
Note that this script is not needed for any R version 2.10.* are larger. (See below).

From the first few lines of R-make-search-index.sh:

# Determine R versions
R_SUPER_VERSION=`R --version | grep "R version" | cut -d " " -f 3 | cut -d "."
-f 1`
R_MAJOR_VERSION=`R --version | grep "R version" | cut -d " " -f 3 | cut -d "."
-f 2`

# If R 3.0.* ever comes out, we'll need to revisit this logic.
# Or, just nuke this script and the macros entirely.
if [ "$R_SUPER_VERSION" -ge "2" -a "$R_MAJOR_VERSION" -ge "10" ]; then
  # echo "R is new enough to not need this anymore."
  exit 0
else
---------------------

should probably be something like:

# Determine R versions
R_SUPER_VERSION=`R --version | grep "R version" | cut -d " " -f 3 | cut -d "."
-f 1`
R_MAJOR_VERSION=`R --version | grep "R version" | cut -d " " -f 3 | cut -d "."
-f 2`

# If R 3.0.* or R 2.10.* just nuke this script and the macros entirely.
if [  "$R_SUPER_VERSION" -ge "3" ] || [ "$R_SUPER_VERSION" -eq "2" -a
"$R_MAJOR_VERSION" -ge "10" ]; then
  # echo "R is new enough to not need this anymore."
  exit 0
else

Note: This script is a RPM-specific script, and not supported by CRAN.

Comment 1 Fedora Update System 2013-04-26 14:03:47 UTC
R-abind-1.4.0-6.fc19,R-multcomp-1.2.17-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/R-abind-1.4.0-6.fc19,R-multcomp-1.2.17-1.fc19

Comment 2 Fedora Update System 2013-04-26 14:03:59 UTC
R-abind-1.4.0-6.fc18,R-multcomp-1.2.17-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/R-abind-1.4.0-6.fc18,R-multcomp-1.2.17-1.fc18

Comment 3 Fedora Update System 2013-04-26 16:46:04 UTC
Package R-abind-1.4.0-6.fc19, R-multcomp-1.2.17-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing R-abind-1.4.0-6.fc19 R-multcomp-1.2.17-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-6708/R-abind-1.4.0-6.fc19,R-multcomp-1.2.17-1.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-05-01 04:29:00 UTC
R-abind-1.4.0-6.fc19, R-multcomp-1.2.17-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Peter Trenholme 2013-05-03 17:51:32 UTC
The fix seems to have worked, but you should "back port" it to F-18: The R update there just complained to me about this same (non-issue) problem.

Comment 6 Tom "spot" Callaway 2013-05-06 13:35:12 UTC
I built updated packages for F-18 also, see comment #2.

Comment 7 Fedora Update System 2013-05-07 18:26:36 UTC
R-abind-1.4.0-6.fc18, R-multcomp-1.2.17-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.