Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread ph h
Hi,

Thanks for the link but it is way above her head right now.

Thanks for your support, anyway.

Regards,

phiho


On Fri, May 27, 2022 at 5:39 PM John H Palmieri 
wrote:

> The development process and the trac server are documented at
> https://doc.sagemath.org/html/en/developer/trac.html#the-sage-trac-server.
>
>
> On Friday, May 27, 2022 at 12:30:38 PM UTC-7 Matthias Koeppe wrote:
>
>> On Friday, May 27, 2022 at 12:08:54 PM UTC-7 hohoa...@gmail.com wrote:
>>
>>>
>>> >  Please open a ticket for it.
>>> Thank you for the encouragement but this hitchhiker has admitted her
>>> weakness with the ticket system.
>>> It is just a copy and paste snippet, maybe those who are in charge of '
>>> configure.ac' could help with the ticket issue?
>>>
>>
>> That's not how it works
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/dd48d185-8a59-410e-bd13-f8830f4889c2n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALZQg1at4_UJWqAOKPNNqAJuWj6_zGrdpaoTjZ551W9MEZHPWw%40mail.gmail.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread John H Palmieri
The development process and the trac server are documented at 
https://doc.sagemath.org/html/en/developer/trac.html#the-sage-trac-server.


On Friday, May 27, 2022 at 12:30:38 PM UTC-7 Matthias Koeppe wrote:

> On Friday, May 27, 2022 at 12:08:54 PM UTC-7 hohoa...@gmail.com wrote:
>
>>
>> >  Please open a ticket for it.
>> Thank you for the encouragement but this hitchhiker has admitted her 
>> weakness with the ticket system.
>> It is just a copy and paste snippet, maybe those who are in charge of '
>> configure.ac' could help with the ticket issue?
>>
>
> That's not how it works 
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/dd48d185-8a59-410e-bd13-f8830f4889c2n%40googlegroups.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread Matthias Koeppe
On Friday, May 27, 2022 at 12:08:54 PM UTC-7 hohoa...@gmail.com wrote:

>
> >  Please open a ticket for it.
> Thank you for the encouragement but this hitchhiker has admitted her 
> weakness with the ticket system.
> It is just a copy and paste snippet, maybe those who are in charge of '
> configure.ac' could help with the ticket issue?
>

That's not how it works 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/26dfe2c0-1594-40f3-aeca-4359e2d0a975n%40googlegroups.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread ph h
Hi,

> bootstrap should work just fine from a path with spaces. (Test this on
top of the work that is already done -
https://trac.sagemath.org/ticket/33852)
Thst''s good to know. Apparently it has not been merged into Sage 9.7 Beta1
yet.
Looking forward to the merge.

Cheers,

phiho




On Fri, May 27, 2022 at 3:05 PM Matthias Koeppe 
wrote:

> bootstrap should work just fine from a path with spaces. (Test this on top
> of the work that is already done - https://trac.sagemath.org/ticket/33852)
>
>
> On Friday, May 27, 2022 at 11:57:30 AM UTC-7 hohoa...@gmail.com wrote:
>
>> Hi,
>>
>> Thanks for the clarification.
>> Does that do anything bad for the source distribution or anything
>> positive for the github checkout?
>>
>> Regards,
>>
>> phiho
>>
>>
>> On Fri, May 27, 2022 at 2:42 PM Matthias Koeppe 
>> wrote:
>>
>>> The check during "bootstrap" would not help because the files that
>>> bootstrap generates go into a source distribution.
>>>
>>> On Friday, May 27, 2022 at 5:28:53 AM UTC-7 hohoa...@gmail.com wrote:
>>>
 P.S: Would this snippet in 'bootstrap' (below SAGE_ROOT=...) help, too:

 # Set SAGE_ROOT to the path to this file and then cd into it
 SAGE_ROOT="$(cd "$(dirname "$0")" && pwd -P)"


 # Check that we are not building in a directory containing spaces
 if echo "$SAGE_ROOT" | grep " " > /dev/null ; then
 echo "The path to the Sage root directory ($SAGE_ROOT) contains a
 space. Sage will not build correctly in this case."
 exit 1
 fi




 On Fri, May 27, 2022 at 7:33 AM ph h  wrote:

> Hi,
>
> Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be
> replaced with the followings in 'configure.ac' (after line 75,
> SAGE_LOCAL="$prefix"):
>
> *http://configure.ac>>*
> # Check that we are not building in a directory containing spaces
> AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
>   AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd)
> contains a space. Sage will not build correctly in this case])
> )
>
> # Check that we are not installing to a directory containing spaces
> AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
>   AC_MSG_ERROR([The path to the Sage installation directory
> ($SAGE_LOCAL) contains a space. Sage will not work correctly in this 
> case])
> )
> *http://configure.ac>>*
>
> The first AS_IF() was moved up from below (around line 420)
>
> Thank you for your help.
>
> Regards,
>
> phiho
>
>
>
> On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe 
> wrote:
>
>> On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com
>> wrote:
>>
>>> Does this apply only to "$SAGE_ROOT"?
>>> Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain
>>> spaces?
>>> Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the
>>> differences?
>>>
>>
>> We do not systematically test this, but also SAGE_LOCAL should not
>> contain spaces.
>>
>> Many of our build scripts do not quote correctly and will break when
>> SAGE_LOCAL contains spaces.
>> For example, look at
>> https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
>> :
>> If SAGE_LOCAL is "/lo space cal", then when
>> CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed
>> to sdh_configure, it will expand to too many arguments.
>>
>> Fixing this would be a welcome contribution -- but likely also many
>> upstream projects have the same issues in their build scripts.
>>
>>
>>
>>
>> --
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
>> 
>> .
>>
> --
>>> 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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-devel/a2140bb3-6fdc-4eca-9c5a-05a48cf22c37n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 

Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread ph h
Hi,

>  Please open a ticket for it.
Thank you for the encouragement but this hitchhiker has admitted her
weakness with the ticket system.
It is just a copy and paste snippet, maybe those who are in charge of '
configure.ac' could help with the ticket issue?

All the best,

phiho



On Fri, May 27, 2022 at 2:43 PM Matthias Koeppe 
wrote:

> Yes, such checks in "configure.ac" would be a good idea. Please open a
> ticket for it.
>
> On Friday, May 27, 2022 at 4:33:14 AM UTC-7 hohoa...@gmail.com wrote:
>
>> Hi,
>>
>> Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be
>> replaced with the followings in 'configure.ac' (after line 75,
>> SAGE_LOCAL="$prefix"):
>>
>> *http://configure.ac>>*
>> # Check that we are not building in a directory containing spaces
>> AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
>>   AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd)
>> contains a space. Sage will not build correctly in this case])
>> )
>>
>> # Check that we are not installing to a directory containing spaces
>> AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
>>   AC_MSG_ERROR([The path to the Sage installation directory
>> ($SAGE_LOCAL) contains a space. Sage will not work correctly in this case])
>> )
>> *http://configure.ac>>*
>>
>> The first AS_IF() was moved up from below (around line 420)
>>
>> Thank you for your help.
>>
>> Regards,
>>
>> phiho
>>
>>
>> On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe 
>> wrote:
>>
>>> On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com wrote:
>>>
 Does this apply only to "$SAGE_ROOT"?
 Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain
 spaces?
 Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the
 differences?

>>>
>>> We do not systematically test this, but also SAGE_LOCAL should not
>>> contain spaces.
>>>
>>> Many of our build scripts do not quote correctly and will break when
>>> SAGE_LOCAL contains spaces.
>>> For example, look at
>>> https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
>>> :
>>> If SAGE_LOCAL is "/lo space cal", then when
>>> CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed
>>> to sdh_configure, it will expand to too many arguments.
>>>
>>> Fixing this would be a welcome contribution -- but likely also many
>>> upstream projects have the same issues in their build scripts.
>>>
>>>
>>>
>>>
>>> --
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/4f01c6f9-9c33-4b4f-b431-58ae052efbe4n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALZQg1a8-OxAGWeWDoDpip%3DpdqTkjE4DfS%3DTooq%2B8%3DV00kLrWQ%40mail.gmail.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread Matthias Koeppe
bootstrap should work just fine from a path with spaces. (Test this on top 
of the work that is already done - https://trac.sagemath.org/ticket/33852)


On Friday, May 27, 2022 at 11:57:30 AM UTC-7 hohoa...@gmail.com wrote:

> Hi,
>
> Thanks for the clarification. 
> Does that do anything bad for the source distribution or anything positive 
> for the github checkout?
>
> Regards,
>
> phiho
>
>
> On Fri, May 27, 2022 at 2:42 PM Matthias Koeppe  
> wrote:
>
>> The check during "bootstrap" would not help because the files that 
>> bootstrap generates go into a source distribution.
>>
>> On Friday, May 27, 2022 at 5:28:53 AM UTC-7 hohoa...@gmail.com wrote:
>>
>>> P.S: Would this snippet in 'bootstrap' (below SAGE_ROOT=...) help, too:
>>>
>>> # Set SAGE_ROOT to the path to this file and then cd into it
>>> SAGE_ROOT="$(cd "$(dirname "$0")" && pwd -P)"
>>>
>>>
>>> # Check that we are not building in a directory containing spaces
>>> if echo "$SAGE_ROOT" | grep " " > /dev/null ; then
>>> echo "The path to the Sage root directory ($SAGE_ROOT) contains a 
>>> space. Sage will not build correctly in this case."
>>> exit 1
>>> fi
>>>
>>>
>>>
>>>
>>> On Fri, May 27, 2022 at 7:33 AM ph h  wrote:
>>>
 Hi,

 Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be 
 replaced with the followings in 'configure.ac' (after line 75, 
 SAGE_LOCAL="$prefix"):

 *http://configure.ac>>*
 # Check that we are not building in a directory containing spaces
 AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
   AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd) 
 contains a space. Sage will not build correctly in this case])
 )

 # Check that we are not installing to a directory containing spaces
 AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
   AC_MSG_ERROR([The path to the Sage installation directory 
 ($SAGE_LOCAL) contains a space. Sage will not work correctly in this case])
 )
 *http://configure.ac>>*

 The first AS_IF() was moved up from below (around line 420)

 Thank you for your help.

 Regards,

 phiho



 On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe  
 wrote:

> On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com wrote:
>
>> Does this apply only to "$SAGE_ROOT"? 
>> Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain 
>> spaces?
>> Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the 
>> differences?
>>
>
> We do not systematically test this, but also SAGE_LOCAL should not 
> contain spaces.
>  
> Many of our build scripts do not quote correctly and will break when 
> SAGE_LOCAL contains spaces.
> For example, look at 
> https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
> :
> If SAGE_LOCAL is "/lo space cal", then when 
> CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed 
> to sdh_configure, it will expand to too many arguments.
>
> Fixing this would be a welcome contribution -- but likely also many 
> upstream projects have the same issues in their build scripts.
>
>
>  
>
> -- 
> 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+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
>  
> 
> .
>
 -- 
>> 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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/a2140bb3-6fdc-4eca-9c5a-05a48cf22c37n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/0ece91d1-60a0-47d0-97e2-bb9b8ae30877n%40googlegroups.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread ph h
Hi,

Thanks for the clarification.
Does that do anything bad for the source distribution or anything positive
for the github checkout?

Regards,

phiho


On Fri, May 27, 2022 at 2:42 PM Matthias Koeppe 
wrote:

> The check during "bootstrap" would not help because the files that
> bootstrap generates go into a source distribution.
>
> On Friday, May 27, 2022 at 5:28:53 AM UTC-7 hohoa...@gmail.com wrote:
>
>> P.S: Would this snippet in 'bootstrap' (below SAGE_ROOT=...) help, too:
>>
>> # Set SAGE_ROOT to the path to this file and then cd into it
>> SAGE_ROOT="$(cd "$(dirname "$0")" && pwd -P)"
>>
>>
>> # Check that we are not building in a directory containing spaces
>> if echo "$SAGE_ROOT" | grep " " > /dev/null ; then
>> echo "The path to the Sage root directory ($SAGE_ROOT) contains a
>> space. Sage will not build correctly in this case."
>> exit 1
>> fi
>>
>>
>>
>>
>> On Fri, May 27, 2022 at 7:33 AM ph h  wrote:
>>
>>> Hi,
>>>
>>> Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be
>>> replaced with the followings in 'configure.ac' (after line 75,
>>> SAGE_LOCAL="$prefix"):
>>>
>>> *http://configure.ac>>*
>>> # Check that we are not building in a directory containing spaces
>>> AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
>>>   AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd)
>>> contains a space. Sage will not build correctly in this case])
>>> )
>>>
>>> # Check that we are not installing to a directory containing spaces
>>> AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
>>>   AC_MSG_ERROR([The path to the Sage installation directory
>>> ($SAGE_LOCAL) contains a space. Sage will not work correctly in this case])
>>> )
>>> *http://configure.ac>>*
>>>
>>> The first AS_IF() was moved up from below (around line 420)
>>>
>>> Thank you for your help.
>>>
>>> Regards,
>>>
>>> phiho
>>>
>>>
>>>
>>> On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe 
>>> wrote:
>>>
 On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com wrote:

> Does this apply only to "$SAGE_ROOT"?
> Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain
> spaces?
> Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the
> differences?
>

 We do not systematically test this, but also SAGE_LOCAL should not
 contain spaces.

 Many of our build scripts do not quote correctly and will break when
 SAGE_LOCAL contains spaces.
 For example, look at
 https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
 :
 If SAGE_LOCAL is "/lo space cal", then when
 CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed
 to sdh_configure, it will expand to too many arguments.

 Fixing this would be a welcome contribution -- but likely also many
 upstream projects have the same issues in their build scripts.




 --
 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+...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
 
 .

>>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/a2140bb3-6fdc-4eca-9c5a-05a48cf22c37n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALZQg1bWCdGx8fPzbfTtZCAmNDHPcdfuhjoJn2gA_%3DhCKL%2BtcQ%40mail.gmail.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread Matthias Koeppe
Yes, such checks in "configure.ac" would be a good idea. Please open a 
ticket for it.

On Friday, May 27, 2022 at 4:33:14 AM UTC-7 hohoa...@gmail.com wrote:

> Hi,
>
> Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be 
> replaced with the followings in 'configure.ac' (after line 75, 
> SAGE_LOCAL="$prefix"):
>
> *http://configure.ac>>*
> # Check that we are not building in a directory containing spaces
> AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
>   AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd) contains 
> a space. Sage will not build correctly in this case])
> )
>
> # Check that we are not installing to a directory containing spaces
> AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
>   AC_MSG_ERROR([The path to the Sage installation directory 
> ($SAGE_LOCAL) contains a space. Sage will not work correctly in this case])
> )
> *http://configure.ac>>*
>
> The first AS_IF() was moved up from below (around line 420)
>
> Thank you for your help.
>
> Regards,
>
> phiho
>
>
> On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe  
> wrote:
>
>> On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com wrote:
>>
>>> Does this apply only to "$SAGE_ROOT"? 
>>> Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain spaces?
>>> Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the 
>>> differences?
>>>
>>
>> We do not systematically test this, but also SAGE_LOCAL should not 
>> contain spaces.
>>  
>> Many of our build scripts do not quote correctly and will break when 
>> SAGE_LOCAL contains spaces.
>> For example, look at 
>> https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
>> :
>> If SAGE_LOCAL is "/lo space cal", then when 
>> CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed 
>> to sdh_configure, it will expand to too many arguments.
>>
>> Fixing this would be a welcome contribution -- but likely also many 
>> upstream projects have the same issues in their build scripts.
>>
>>
>>  
>>
>> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/4f01c6f9-9c33-4b4f-b431-58ae052efbe4n%40googlegroups.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread Matthias Koeppe
The check during "bootstrap" would not help because the files that 
bootstrap generates go into a source distribution.

On Friday, May 27, 2022 at 5:28:53 AM UTC-7 hohoa...@gmail.com wrote:

> P.S: Would this snippet in 'bootstrap' (below SAGE_ROOT=...) help, too:
>
> # Set SAGE_ROOT to the path to this file and then cd into it
> SAGE_ROOT="$(cd "$(dirname "$0")" && pwd -P)"
>
>
> # Check that we are not building in a directory containing spaces
> if echo "$SAGE_ROOT" | grep " " > /dev/null ; then
> echo "The path to the Sage root directory ($SAGE_ROOT) contains a 
> space. Sage will not build correctly in this case."
> exit 1
> fi
>
>
>
>
> On Fri, May 27, 2022 at 7:33 AM ph h  wrote:
>
>> Hi,
>>
>> Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be 
>> replaced with the followings in 'configure.ac' (after line 75, 
>> SAGE_LOCAL="$prefix"):
>>
>> *http://configure.ac>>*
>> # Check that we are not building in a directory containing spaces
>> AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
>>   AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd) 
>> contains a space. Sage will not build correctly in this case])
>> )
>>
>> # Check that we are not installing to a directory containing spaces
>> AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
>>   AC_MSG_ERROR([The path to the Sage installation directory 
>> ($SAGE_LOCAL) contains a space. Sage will not work correctly in this case])
>> )
>> *http://configure.ac>>*
>>
>> The first AS_IF() was moved up from below (around line 420)
>>
>> Thank you for your help.
>>
>> Regards,
>>
>> phiho
>>
>>
>>
>> On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe  
>> wrote:
>>
>>> On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com wrote:
>>>
 Does this apply only to "$SAGE_ROOT"? 
 Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain 
 spaces?
 Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the 
 differences?

>>>
>>> We do not systematically test this, but also SAGE_LOCAL should not 
>>> contain spaces.
>>>  
>>> Many of our build scripts do not quote correctly and will break when 
>>> SAGE_LOCAL contains spaces.
>>> For example, look at 
>>> https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
>>> :
>>> If SAGE_LOCAL is "/lo space cal", then when 
>>> CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed 
>>> to sdh_configure, it will expand to too many arguments.
>>>
>>> Fixing this would be a welcome contribution -- but likely also many 
>>> upstream projects have the same issues in their build scripts.
>>>
>>>
>>>  
>>>
>>> -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/a2140bb3-6fdc-4eca-9c5a-05a48cf22c37n%40googlegroups.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread ph h
PPS: Just FYI, before the above snippet was roughed in, "make configure"
from "$SAGE_ROOT" with embedded spaces indicates
that "$SYSTEM_PACKAGES_FILE" need be properly quoted in
"build/bin/sage-get-system-packages" and "src/doc/bootstrap", at least(?)

It couldn't be figured out why tons of sed 's complaints (related to the
pathname with spaces) come from:

(echo ".. _spkg_$PKG_BASE:" && echo && OUTPUT_RST=1 sage-spkg-info
"$PKG_BASE") | sed -e
"s|https://trac.sagemath.org/ticket/\([0-9]*\)|:trac:\`\1\`|g"
-e "s|https://arxiv.org/abs/cs/\([0-9]*\)|:arxiv:\`cs/\1\`|g" >
"$OUTPUT_DIR"/$PKG_BASE.rst

Any help is much appreciated.

**
for PKG_BASE in $(sage-package list --has-file SPKG.rst | sort); do
PKG_SCRIPTS=build/pkgs/$PKG_BASE
# Instead of just copying, we may want to call
# a version of sage-spkg-info to format extra information.
# for sphinx 4.4 we need to replace all direct links by some
"extlink" (ticket 33272)

(echo ".. _spkg_$PKG_BASE:" && echo && OUTPUT_RST=1
sage-spkg-info "$PKG_BASE") | sed -e "s|
https://trac.sagemath.org/ticket/\([0-9]*\)|:trac:\`\1\`|g" -e "s|
https://arxiv.org/abs/cs/\([0-9]*\)|:arxiv:\`cs/\1\`|g" >
"$OUTPUT_DIR"/$PKG_BASE.rst
echo >> "$OUTPUT_INDEX" "   $PKG_BASE"
done

**

On Fri, May 27, 2022 at 8:28 AM ph h  wrote:

> P.S: Would this snippet in 'bootstrap' (below SAGE_ROOT=...) help, too:
>
> # Set SAGE_ROOT to the path to this file and then cd into it
> SAGE_ROOT="$(cd "$(dirname "$0")" && pwd -P)"
>
> # Check that we are not building in a directory containing spaces
> if echo "$SAGE_ROOT" | grep " " > /dev/null ; then
> echo "The path to the Sage root directory ($SAGE_ROOT) contains a
> space. Sage will not build correctly in this case."
> exit 1
> fi
>
>
>
>
> On Fri, May 27, 2022 at 7:33 AM ph h  wrote:
>
>> Hi,
>>
>> Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be
>> replaced with the followings in 'configure.ac' (after line 75,
>> SAGE_LOCAL="$prefix"):
>>
>> *http://configure.ac>>*
>> # Check that we are not building in a directory containing spaces
>> AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
>>   AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd)
>> contains a space. Sage will not build correctly in this case])
>> )
>>
>> # Check that we are not installing to a directory containing spaces
>> AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
>>   AC_MSG_ERROR([The path to the Sage installation directory
>> ($SAGE_LOCAL) contains a space. Sage will not work correctly in this case])
>> )
>> *http://configure.ac>>*
>>
>> The first AS_IF() was moved up from below (around line 420)
>>
>> Thank you for your help.
>>
>> Regards,
>>
>> phiho
>>
>>
>>
>> On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe 
>> wrote:
>>
>>> On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com wrote:
>>>
 Does this apply only to "$SAGE_ROOT"?
 Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain
 spaces?
 Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the
 differences?

>>>
>>> We do not systematically test this, but also SAGE_LOCAL should not
>>> contain spaces.
>>>
>>> Many of our build scripts do not quote correctly and will break when
>>> SAGE_LOCAL contains spaces.
>>> For example, look at
>>> https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
>>> :
>>> If SAGE_LOCAL is "/lo space cal", then when
>>> CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed
>>> to sdh_configure, it will expand to too many arguments.
>>>
>>> Fixing this would be a welcome contribution -- but likely also many
>>> upstream projects have the same issues in their build scripts.
>>>
>>>
>>>
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
>>> 
>>> .
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALZQg1ZkN4kHKhEMZAa2cMLCohHMp5uo5rjr0ymO42uN3ZieNw%40mail.gmail.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread ph h
P.S: Would this snippet in 'bootstrap' (below SAGE_ROOT=...) help, too:

# Set SAGE_ROOT to the path to this file and then cd into it
SAGE_ROOT="$(cd "$(dirname "$0")" && pwd -P)"

# Check that we are not building in a directory containing spaces
if echo "$SAGE_ROOT" | grep " " > /dev/null ; then
echo "The path to the Sage root directory ($SAGE_ROOT) contains a
space. Sage will not build correctly in this case."
exit 1
fi




On Fri, May 27, 2022 at 7:33 AM ph h  wrote:

> Hi,
>
> Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be
> replaced with the followings in 'configure.ac' (after line 75,
> SAGE_LOCAL="$prefix"):
>
> *http://configure.ac>>*
> # Check that we are not building in a directory containing spaces
> AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
>   AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd) contains
> a space. Sage will not build correctly in this case])
> )
>
> # Check that we are not installing to a directory containing spaces
> AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
>   AC_MSG_ERROR([The path to the Sage installation directory
> ($SAGE_LOCAL) contains a space. Sage will not work correctly in this case])
> )
> *http://configure.ac>>*
>
> The first AS_IF() was moved up from below (around line 420)
>
> Thank you for your help.
>
> Regards,
>
> phiho
>
>
>
> On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe 
> wrote:
>
>> On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com wrote:
>>
>>> Does this apply only to "$SAGE_ROOT"?
>>> Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain spaces?
>>> Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the
>>> differences?
>>>
>>
>> We do not systematically test this, but also SAGE_LOCAL should not
>> contain spaces.
>>
>> Many of our build scripts do not quote correctly and will break when
>> SAGE_LOCAL contains spaces.
>> For example, look at
>> https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
>> :
>> If SAGE_LOCAL is "/lo space cal", then when
>> CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed
>> to sdh_configure, it will expand to too many arguments.
>>
>> Fixing this would be a welcome contribution -- but likely also many
>> upstream projects have the same issues in their build scripts.
>>
>>
>>
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
>> 
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALZQg1YUay9QuDg5MoFcGmvxVnhD20-ikVZXp%3DDd6gFu-5qO8A%40mail.gmail.com.


Re: [sage-devel] Re: The path MUST NOT contain spaces.

2022-05-27 Thread ph h
Hi,

Maybe the tests with "contains_spaces()" in 'src/bin/sage-env' can be
replaced with the followings in 'configure.ac' (after line 75,
SAGE_LOCAL="$prefix"):

*http://configure.ac>>*
# Check that we are not building in a directory containing spaces
AS_IF([echo "$ac_pwd" |grep " " >/dev/null],
  AC_MSG_ERROR([The path to the Sage root directory ($ac_pwd) contains
a space. Sage will not build correctly in this case])
)

# Check that we are not installing to a directory containing spaces
AS_IF([echo "$SAGE_LOCAL" |grep " " >/dev/null],
  AC_MSG_ERROR([The path to the Sage installation directory
($SAGE_LOCAL) contains a space. Sage will not work correctly in this case])
)
*http://configure.ac>>*

The first AS_IF() was moved up from below (around line 420)

Thank you for your help.

Regards,

phiho



On Tue, May 24, 2022 at 7:32 PM Matthias Koeppe 
wrote:

> On Tuesday, May 24, 2022 at 3:11:00 PM UTC-7 hohoa...@gmail.com wrote:
>
>> Does this apply only to "$SAGE_ROOT"?
>> Can sub-directories of "$SAGE_ROOT" (like "lo space cal") contain spaces?
>> Is it OK for $SAGE_LOCAL to contain spaces? If it is so, why the
>> differences?
>>
>
> We do not systematically test this, but also SAGE_LOCAL should not contain
> spaces.
>
> Many of our build scripts do not quote correctly and will break when
> SAGE_LOCAL contains spaces.
> For example, look at
> https://github.com/sagemath/sage/blob/develop/build/pkgs/fplll/spkg-install.in
> :
> If SAGE_LOCAL is "/lo space cal", then when
> CONFIGURE_FLAGS="--prefix=$SAGE_LOCAL --libdir=$SAGE_LOCAL/lib" is passed
> to sdh_configure, it will expand to too many arguments.
>
> Fixing this would be a welcome contribution -- but likely also many
> upstream projects have the same issues in their build scripts.
>
>
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/bf505cca-95bc-4fe9-8aa7-4cfa736da55bn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALZQg1Zkf_xYMExZrGP3tZwkWVUbYqy_tN3vOa%3DqtyeW9kXEbQ%40mail.gmail.com.