[Debian-science-sagemath] Fwd: sagemath_7.4-1_amd64.changes is NEW [sympow/1.023-8]

Jerome BENOIT calculus at rezozer.net
Mon Dec 26 16:37:09 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello Forum

On 18/12/16 15:18, Jerome BENOIT wrote:
> Hello, thanks for the precision.
> 
> On 18/12/16 10:09, Ximin Luo wrote:
>> Control: retitle -1 Document SYMPOW_CACHEDIR better and automatically try to create it
> 
>> Jerome BENOIT:
>>> Hello SymPow enthusiasts,
>>>
>>> On 17/12/16 15:46, Jerome BENOIT wrote:
>>>>> It would be good if sympow could automatically create SYMPOW_CACHEDIR
>>>>>> if it doesn't exist. Otherwise, I would have to add this logic to
>>>>>> Sage, which seems a bit unclean.
>>>> I not so sure that it is a good idea to create SYMPOW_CACHEDIR on the fly.
>>>> Not that if SYMPOW_CACHEDIR does not exist, an appropraite message is printed.
>>>
>>>>>
>>> I am on my way to add a mechanism to create SYMPOW_CACHEDIR on the fly
>>> (that may avoid to add a dirty trick on Sage).
>>>
> 
>> Hey, thanks for this. To explain in some more detail: at the moment I have to patch Sage like this:
> 
>> sage/src/sage/lfunctions/sympow.py:
>> -        cmd = 'sympow %s'%args
>> +        cmd = 'env HOME="%s" sympow %s' % (DOT_SAGE, args)
> 
>> Setting HOME is ugly, it would be nicer to do this instead:
> 
>> -        cmd = 'sympow %s'%args
>> +        cmd = 'env SYMPOW_CACHEDIR="%s" sympow %s' % (os.path.join(DOT_SAGE, "sympow"), args)
> 
>> However I can't, because sympow does not automatically create SYMPOW_CACHEDIR. I would have to do this instead:
> 
>> -        cmd = 'sympow %s'%args
>> +        cmd = 'mkdir "{0}" && env SYMPOW_CACHEDIR="{0}" sympow {1}'.format(os.path.join(DOT_SAGE, "sympow"), args)
> 
>> Note, it's not necessary to create all the parent directories like what `mkdir -p` does. That is, if `dirname $SYMPOW_CACHEDIR` does not exist, I think it's fine that sympow fails - because there is no way to know what permissions (etc) to create parent directories with, it is a sysadmin and local policy issue, and it means there is a bug somewhere else.
> 
>> However if `dirname $SYMPOW_CACHEDIR` does exist, then sympow should try to create SYMPOW_CACHEDIR inside it - it "controls" this directory, so it knows what permissions to use.
> 
>> So actually, I think there is no bug in sympow regarding non-existent HOME. It is OK to fail, if HOME does not exist and SYMPOW_CACHEDIR is not set. It is better that during tests, SYMPOW_CACHEDIR is set explicitly in a Makefile, or by the parent process (Sage) which already has a "directory for testing" (DOT_SAGE).
> 
> 
> I am working on it. It would be something like:
> 
> cmd = 'env SYMPOW_CACHEDIR="%s///" sympow %s' % (os.path.join(DOT_SAGE, "sympow"), args)
> 
> (Note the magic triplet `///').
> Please give one more night: I want to implement something consistent and solid.

I needed more time, but I did.
The new version is currently on its way to Sid.
Note that a README.Debian has been introduced.

> 
> Nevertheless, if it is a just building issue/feature, have you consider to just MKDIR_P in in d/rules ?
> 
> For the recoard, the issue is not bug but sbuild feature:
> 
> https://lists.debian.org/debian-devel/2016/02/msg00454.html
> 
> 
> Thanks,
> Jerome

Thanks,
Jerome

> 
> 
>> X
> 
> 
> 
> _______________________________________________
> Debian-science-sagemath mailing list
> Debian-science-sagemath at lists.alioth.debian.org
> https://lists.alioth.debian.org/mailman/listinfo/debian-science-sagemath
> 

- -- 
Jerome BENOIT, Ph.D. | jgmbenoit-at+rezozer*dot_net
http://www.rezozer.net/

- -- 
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calculus@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B
-----BEGIN PGP SIGNATURE-----

iQQcBAEBCgAGBQJYYUc0AAoJED+SGaZ/NsaL4PogAINPYTR+uGTKqf6cnQlKFyr4
5GNBT3iw+VFn0kWpkVBySn8b0ey3bj93RBh9293AzXL2LMuXhZ6DqyqUgCGFI/+v
SAlOR5eWNe8YV92tiB8+znYMoi3TNH+KQaECHeqxbd4xkX3uGKmU37PXneW4Lw9p
PYxQs5tJIiDpEwek+gPGSfe4nyIv0t4yTwV7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ugixa0GHwJigsW3n01Q1iCT3zc9jiEj0NVUqfC96m/Lpgu+QanL8t4
JXx6bp9AeQv2e9lIYN73TRCvvhSBqr5DDSdNZkotmc4uiwRbtDMwCNrxsKGL3x0=
=eAmT
-----END PGP SIGNATURE-----



More information about the Debian-science-sagemath mailing list