Re: creating RPMs from CRAN tarballs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am 04.06.2015 um 18:03 schrieb Tony Schreiner <anthony.schreiner@xxxxxx>:
> Thanks for the suggestion, but after putting that at the top of the spec
> and running rpmbuild, I still get
> 
> Resolving Dependencies
> --> Running transaction check
> ---> Package R-RPostgreSQL.x86_64 0:0.4-1.el6 will be installed
> --> Processing Dependency: /usr/bin/r for package:
> R-RPostgreSQL-0.4-1.el6.x86_64
> --> Processing Dependency: /usr/bin/r for package:
> R-RPostgreSQL-0.4-1.el6.x86_64
> --> Finished Dependency ResolutionError: Package:
> R-RPostgreSQL-0.4-1.el6.x86_64 (/R-RPostgreSQL-0.4-1.el6.x86_64)
> Requires: /usr/bin/r
> when trying to install the resulting RPM


Oh, I was a bit lazy/busy to look closer. The r-scripts 
are parsed by /usr/lib/rpm/find-requires that is defined via
__find_requires. You can "disable" this build-step with

%define __find_requires %{nil}

AFAIK this will disable the generation of dependencies 
for all files (e.g. deps like libc.so.6(GLIBC_2.3)(64bit)). 

I suggest a custom script for a specific handling (filtering r-scripts out). 

BTW - why is /usr/bin/r not packaged (symlink to /usr/bin/R)? 
Then the above approach would be obsolete and you would stay 
closer to the standard build process.

--
LF

  







_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux