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@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
On Tue, 2011-04-12 at 15:10 -0400, Allen S. Rout wrote:
When I try to build from a local source, it fails to find the source file.
[...]
[root@troll-2 cran]# R2rpm -s /var/tmp/cran/plyr_1.2.1.tar.gz
(Do you always build as root ? I was always told that it should be avoided) [...]
- 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.
Check the log file ;-)
That is simply because calling R2rpm -s without specifying --bioc or --cran leads to 'URL' tag in the spec.
Best regards, Pierre
On Tuesday 12 April 2011 20:10:54 Allen S. Rout wrote:
'An error occured at build time, see the log in /usr/src/redhat/SPECS/build-R-plyr.spec.log'
Beware that running rpmbuild as root is problematic (been there done that). :-)
The easy part is to run it as normal user, either with your account or a new account. In order to set the directories layout you can create a ~/.rpmmacros files with the new directories.
The easier setup is just: $ cat ~/.rpmmacros %_topdir /home/<user>/rpmbuild/
with the <user> replaced by the users name.
r-devel@lists.fedoraproject.org