Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Jean-Pierre Flori
There is a curl-config utility. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread John H Palmieri
On Tuesday, October 25, 2016 at 11:35:15 PM UTC-7, Emmanuel Charpentier wrote: > > > > Le mercredi 26 octobre 2016 00:42:01 UTC+2, John H Palmieri a écrit : >> >> I have no opinion on whether this approach is on the whole a good idea, >> but I will point out that "which curl" is not as

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Jeroen Demeyer
On 2016-10-26 09:24, Emmanuel Charpentier wrote: I'm not so sure : harder to do, harder to understand, not obvious at reading the spkg-install script. But cleaner, indeed. Plus, it allows for explicit installation if you want to install it anyway. It's nice for example that `./sage -i gcc`

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Jean-Pierre Flori
On Wednesday, October 26, 2016 at 11:18:15 AM UTC+2, Emmanuel Charpentier wrote: > > On 26/10/2016 09:59, Jean-Pierre Flori wrote: > > > > > > On Wednesday, October 26, 2016 at 9:24:35 AM UTC+2, Emmanuel Charpentier > > wrote: > > > > Le mercredi 26 octobre 2016 09:18:06 UTC+2, Jeroen

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Emmanuel Charpentier
On 26/10/2016 09:59, Jean-Pierre Flori wrote: On Wednesday, October 26, 2016 at 9:24:35 AM UTC+2, Emmanuel Charpentier wrote: Le mercredi 26 octobre 2016 09:18:06 UTC+2, Jeroen Demeyer a écrit : On 2016-10-25 23:52, Emmanuel Charpentier wrote: > This is now Trac#21767

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Jean-Pierre Flori
On Wednesday, October 26, 2016 at 9:24:35 AM UTC+2, Emmanuel Charpentier wrote: > > Le mercredi 26 octobre 2016 09:18:06 UTC+2, Jeroen Demeyer a écrit : >> >> On 2016-10-25 23:52, Emmanuel Charpentier wrote: >> > This is now Trac#21767 . The >> >

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Emmanuel Charpentier
See this thread . -- Emmanuel Charpentier Le mercredi 26 octobre 2016 09:24:35 UTC+2, Emmanuel Charpentier a écrit : > > Le mercredi 26 octobre 2016 09:18:06 UTC+2, Jeroen Demeyer a écrit : >> >> On 2016-10-25 23:52, Emmanuel

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Emmanuel Charpentier
Le mercredi 26 octobre 2016 09:18:06 UTC+2, Jeroen Demeyer a écrit : > > On 2016-10-25 23:52, Emmanuel Charpentier wrote: > > This is now Trac#21767 . The > > unconditional installation works okay on top of 7.5beta0. > > > > The conditional installation

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Jeroen Demeyer
On 2016-10-25 23:52, Emmanuel Charpentier wrote: This is now Trac#21767 . The unconditional installation works okay on top of 7.5beta0. The conditional installation can probably be obtained with this bash snippet, at the top of spkg-install : Unless

Re: [sage-devel] add curl as a standard package

2016-10-26 Thread Emmanuel Charpentier
Le mercredi 26 octobre 2016 00:42:01 UTC+2, John H Palmieri a écrit : > > I have no opinion on whether this approach is on the whole a good idea, > but I will point out that "which curl" is not as portable as "command -v > curl". We had an issue a while ago with "which" not behaving properly

Re: [sage-devel] add curl as a standard package

2016-10-25 Thread John H Palmieri
I have no opinion on whether this approach is on the whole a good idea, but I will point out that "which curl" is not as portable as "command -v curl". We had an issue a while ago with "which" not behaving properly on some platform -- maybe on Solaris "which blah" had a return status of 0 even

Re: [sage-devel] add curl as a standard package

2016-10-25 Thread Emmanuel Charpentier
This is now Trac#21767 . The unconditional installation works okay on top of 7.5beta0. The conditional installation can probably be obtained with this bash snippet, at the top of spkg-install : ## Installation de curl... ## Look for a systemwide

Re: [sage-devel] add curl as a standard package

2016-10-25 Thread Jean-Pierre Flori
On Tuesday, October 25, 2016 at 11:11:38 AM UTC+2, Jean-Pierre Flori wrote: > > > > On Tuesday, October 25, 2016 at 12:48:39 AM UTC+2, Dima Pasechnik wrote: >> >> >> >> On Monday, October 24, 2016 at 9:45:18 PM UTC, Emmanuel Charpentier wrote: >>> >>> Okay. I I have followed you correctly, we

Re: [sage-devel] add curl as a standard package

2016-10-25 Thread Jean-Pierre Flori
On Tuesday, October 25, 2016 at 12:48:39 AM UTC+2, Dima Pasechnik wrote: > > > > On Monday, October 24, 2016 at 9:45:18 PM UTC, Emmanuel Charpentier wrote: >> >> Okay. I I have followed you correctly, we have two (mutually >> incompatible) options : >> >> >>- (Dima's option) : package curl,

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Dima Pasechnik
On Monday, October 24, 2016 at 9:45:18 PM UTC, Emmanuel Charpentier wrote: > > Okay. I I have followed you correctly, we have two (mutually incompatible) > options : > > >- (Dima's option) : package curl, pcre and xz as standard packages, >and make R depend on them (unconditionnally).

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Emmanuel Charpentier
Okay. I I have followed you correctly, we have two (mutually incompatible) options : - (Dima's option) : package curl, pcre and xz as standard packages, and make R depend on them (unconditionnally). - (Jean-Pierre option) : add tjem to Sage's core, but build them if and only if

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Jeroen Demeyer
On 2016-10-24 18:39, Emmanuel Charpentier wrote: Bonus question for the build system experts : can an spkg-install script recursively call $SAGE_ROOT/sage -i and get the return status back ? A simple solution would then be to test for the existence of the relevant binaries/executables in the R

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Jean-Pierre Flori
On Monday, October 24, 2016 at 8:47:13 PM UTC+2, Jean-Pierre Flori wrote: > > > > On Monday, October 24, 2016 at 6:39:27 PM UTC+2, Emmanuel Charpentier > wrote: >> >> Bonus question for the build system experts : can an spkg-install script >> recursively call $SAGE_ROOT/sage -i and get the

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Jean-Pierre Flori
On Monday, October 24, 2016 at 6:39:27 PM UTC+2, Emmanuel Charpentier wrote: > > Bonus question for the build system experts : can an spkg-install script > recursively call $SAGE_ROOT/sage -i and get the return > status back ? A simple solution would then be to test for the existence of >

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Dima Pasechnik
On Monday, October 24, 2016 at 4:39:27 PM UTC, Emmanuel Charpentier wrote: > > Bonus question for the build system experts : can an spkg-install script > recursively call $SAGE_ROOT/sage -i and get the return > status back ? A simple solution would then be to test for the existence of > the

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Emmanuel Charpentier
Bonus question for the build system experts : can an spkg-install script recursively call $SAGE_ROOT/sage -i and get the return status back ? A simple solution would then be to test for the existence of the relevant binaries/executables in the R spkg-install script, and recursively install

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Michael Orlitzky
On 10/24/2016 09:46 AM, Emmanuel Charpentier wrote: > > Not the same problem. To detect curl, it is enough to find an executable > named "curl" in the path. As far as I know, R uses a library, and this > is known to be not so easy to find. > Which library does R link against? If you can find

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Jean-Pierre Flori
Maybe it is not that bad if the automagic detection system is not that good. If the automatic stuff works magically on usual config, let's say large Linux distros, that's enough. As long as we have "--with-x" options to pass to configure for making Sage more distro friendly and let smart people

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Emmanuel Charpentier
Le lundi 24 octobre 2016 15:31:36 UTC+2, Michael Orlitzky a écrit : > > On 10/24/2016 06:41 AM, Vincent Delecroix wrote: > > In between? > > > > * having a curl pacakge that will be installed if not present on the > > system (~the same way we deal with gcc) > > > > And the same for pcre

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Emmanuel Charpentier
Le lundi 24 octobre 2016 12:41:14 UTC+2, vdelecroix a écrit : > > In between? > > * having a curl pacakge that will be installed if not present on the > system (~the same way we deal with gcc) > Great idea, if I can implement it. Looking in the $PATH is not quite easy to do portably. I'm

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Michael Orlitzky
On 10/24/2016 06:41 AM, Vincent Delecroix wrote: > In between? > > * having a curl pacakge that will be installed if not present on the > system (~the same way we deal with gcc) > And the same for pcre and xz. Check for it in ./configure, and give us a way to override it, like

Re: [sage-devel] add curl as a standard package

2016-10-24 Thread Vincent Delecroix
In between? * having a curl pacakge that will be installed if not present on the system (~the same way we deal with gcc) Vincent -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it,

[sage-devel] add curl as a standard package

2016-10-24 Thread Emmanuel Charpentier
It looks like curl , which was formerly installed by R installation, must now be installed in order to install R. One can note that a problem will rarely exists, since most Sage users