Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-06 Thread Dirk Eddelbuettel
Martin, On 6 September 2019 at 07:19, Dirk Eddelbuettel wrote: | So can't you replace / update that package? That's what I do over in the | .deb world, and for Ubuntu it is particularly easy with PPAs. And then there is of course this too: edd@rob:~$ pkg-config --modversion nlopt 2.4.2

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-06 Thread Dirk Eddelbuettel
Martin, And not to beat a dead horse, but isn't the root cause the outdated rpm? So can't you replace / update that package? That's what I do over in the .deb world, and for Ubuntu it is particularly easy with PPAs. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ___

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-06 Thread Martin Maechler
> Ralf Stubner > on Fri, 6 Sep 2019 11:22:15 +0200 writes: > On Thu, Sep 5, 2019 at 6:36 PM Martin Maechler > wrote: >> For me (on Fedora 30) >> >> $ R CMD config LDFLAGS >> -L/usr/lib64 > This looks wrong. I would expect that /usr/lib64 is one of the

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-06 Thread Ralf Stubner
On Thu, Sep 5, 2019 at 6:36 PM Martin Maechler wrote: > For me (on Fedora 30) > > $ R CMD config LDFLAGS > -L/usr/lib64 This looks wrong. I would expect that /usr/lib64 is one of the standard directories that are searched anyway. So why put it into the very beginning of the search? BTW, this

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-06 Thread Martin Maechler
> Martin Maechler > on Thu, 5 Sep 2019 18:36:03 +0200 writes: > Dirk Eddelbuettel > on Thu, 5 Sep 2019 10:14:21 -0500 writes: >> On 5 September 2019 at 16:53, Ralf Stubner wrote: >> | I don't know what is best, but here are three alternatives: >> | >> |

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-05 Thread Martin Maechler
> Dirk Eddelbuettel > on Thu, 5 Sep 2019 10:14:21 -0500 writes: > On 5 September 2019 at 16:53, Ralf Stubner wrote: > | I don't know what is best, but here are three alternatives: > | > | * Use PKG_CHECK_MODULES which sets up default variables with _CFLAGS > | and

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-05 Thread Dirk Eddelbuettel
On 5 September 2019 at 16:53, Ralf Stubner wrote: | I don't know what is best, but here are three alternatives: | | * Use PKG_CHECK_MODULES which sets up default variables with _CFLAGS | and _LIBS suffix after searching for a library with pkg-config, c.f. | https://autotools.io/pkgconfig/pkg_che

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-05 Thread Ralf Stubner
On Thu, Sep 5, 2019 at 12:27 PM Martin Maechler wrote: > Now what is the officially / best way to have either 'configure' > or Makevars.{in,win} use the 'pkg-config' information > *dynamically*, i.e., > if I update my MPFR from 4.0.1 to 4.0.2 the newer 4.0.2 is found ? I don't know what is be

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-05 Thread Serguei Sokol
On 05/09/2019 12:26, Martin Maechler wrote: Sameh M Abdulah on Fri, 30 Aug 2019 18:50:55 + writes: > Hi, > I recently asked some questions about my R package which were well responded by Dirk. > I have another question related to pkg_config path, > I am using thi

Re: [R-pkg-devel] set pkg_config for 3rd party software

2019-09-05 Thread Martin Maechler
> Sameh M Abdulah > on Fri, 30 Aug 2019 18:50:55 + writes: > Hi, > I recently asked some questions about my R package which were well responded by Dirk. > I have another question related to pkg_config path, > I am using this command to add the installation path

[R-pkg-devel] set pkg_config for 3rd party software

2019-08-30 Thread Sameh M. Abdulah
Hi, I recently asked some questions about my R package which were well responded by Dirk. I have another question related to pkg_config path, I am using this command to add the installation path to the PKG_CONFIG_PATH so that all cmake commands can get the required libraries from this path,