Errors in constructing SPEC from local source.
by Allen S. Rout
In R2spec-3.0.3-1, if you set a local source (-s <source>) then the URL
and source0 fields in the spec will remain empty. Such specs fail to
build.
There are a variety of ways to address this, I'm not sure that what I've
done is really a superior solution.
in RPackage.py, down the branch of "I've only got a source, not a
source0", I added
self.source0 = source
self.URL = source
(see below).
This means that URL is populated with a local file path, but that's
really all that's available.
....
All I'm really trying to do right now is get ggplot to one of my
customers. I wasn't gearing up for contributing much code, but I can,
if that's what Pierre-Yves wants.
I have to say, this is being a distinctly frustrating process.
....
"below"...
def setSource(self, source0, source):
''' From the url retrieve the name of the source '''
if source != None and source0 != None:
if source != source0.rsplit('/',1)[1] :
sys.exit("Do not give 2 contradictory sources of information")
elif source != None:
try:
self.source = source.rsplit('/',1)[1]
self.path = source.rsplit('/',1)[0]
self.source0 = source
self.URL = source
except IndexError, err:
self.source = source
self.path = '../'
elif source0 != None:
self.source = source0.rsplit('/',1)[1]
self.path = '../'
self.source0 = source0
else:
sys.exit("The source are not correct ")
- Allen S. Rout
12 years, 10 months
R2rpm...
by Allen S. Rout
When I try to build from a local source, it fails to find the source
file.
[root@troll-2 cran]# pwd
/var/tmp/cran
[root@troll-2 cran]# ls -l
total 828
-rw-r--r-- 1 root root 308395 Dec 22 2009 DBI_0.2-5.tar.gz
-rw-r--r-- 1 root root 518499 Apr 12 14:58 plyr_1.2.1.tar.gz
-rwxr--r-- 1 root root 181 Apr 12 15:06 yadda
-rw-r--r-- 1 root root 138 Apr 12 15:04 yadda~
[root@troll-2 cran]# R2rpm -s plyr_1.2.1.tar.gz
Your source does not exist, please use the full path (plyr_1.2.1.tar.gz)
[root@troll-2 cran]# R2rpm -s ./plyr_1.2.1.tar.gz
Your source does not exist, please use the full path (./plyr_1.2.1.tar.gz)
[root@troll-2 cran]# R2rpm -s /var/tmp/cran/plyr_1.2.1.tar.gz
* Retrieve the source
**************************************************
* Name of the packager = Allen Rout
* Mail of the packager = asr(a)ufl.edu
**************************************************
* Name of the library = plyr
* Version of the library = 1.2.1
* Summary of the library = Tools for splitting, applying and combining data
plyr is a set of tools that solves a common set of
* Description of the library =
plyr is a set of tools that solves a common set of
* License of the library = MIT
No Depends set
* The package is = Arch ~ x86 or x86_64
* Date of the spec file = Tue Apr 12 2011
**************************************************
** Generate the spec file
* Spec generated:
/usr/src/redhat/SPECS/R-plyr.spec
* spec file written
**************************************************
** Spec generated, starting RPM construction
* Read the file R-plyr.spec
* Clean the %file section
* spec file written
* Building the rpm (this may take some time)
LANG=C rpmbuild -ba R-plyr.spec > build-R-plyr.spec.log 2>&1
An error occured during the build
'An error occured at build time, see the log in /usr/src/redhat/SPECS/build-R-plyr.spec.log'
If I copy the file somewhere else and reference it as a URL, it works.
- Allen S. Rout
12 years, 11 months
R2rpm...
by Allen S. Rout
The dependency resolution in R2spec introduces loops.
Try to build foreach or iterators. In R2spec's calculation of deps,
they depend on each other. This appears to be because R2spec promotes a
'suggests' to a 'depends'.
This might be because the 'suggests' is used in the vigniettes?
.... Argh.
Package: iterators
Type: Package
Title: Iterator construct for R
Version: 1.0.3
Author: REvolution Computing
Maintainer: REvolution Computing <packages(a)REvolution-computing.com>
Description: Support for iterators, which allow a programmer to
traverse through all the elements of a vector, list, or other
collection of data.
Depends: R (>= 2.5.0), utils
Suggests: foreach
License: Apache License (== 2.0)
Packaged: 2009-10-05 20:31:21 UTC; weston
Repository: CRAN
Date/Publication: 2009-10-06 06:56:52
Package: foreach
Type: Package
Title: Foreach looping construct for R
Version: 1.3.0
Author: REvolution Computing
Maintainer: REvolution Computing <packages(a)REvolution-computing.com>
Description: Support for the foreach looping construct. Foreach is an
idiom that allows for iterating over elements in a collection,
without the use of an explicit loop counter. This package in
particular is intended to be used for its return value, rather
than for its side effects. In that sense, it is similar to the
standard lapply function, but doesn't require the evaluation of
a function. Using foreach without side effects also
facilitates executing the loop in parallel.
Depends: R (>= 2.5.0), iterators(>= 1.0.0), codetools, utils
License: Apache License (== 2.0)
Packaged: 2009-10-05 20:33:54 UTC; weston
Repository: CRAN
Date/Publication: 2009-10-06 06:56:45
- Allen S. Rout
12 years, 11 months