[Debian-science-sagemath] plans to package primecount (the C++ library)
Jerome BENOIT
calculus at rezozer.net
Fri Nov 19 18:22:55 GMT 2021
Hi, I am getting confused.
What the following command gives:
# ldd primecount
Otherwise, can you build primecount against the library distributed in the primesieve package ?
Cheers,
Jerome
On 19/11/2021 17:34, Dima Pasechnik wrote:
> On Fri, Nov 19, 2021 at 4:28 PM Dima Pasechnik <dimpase at gmail.com> wrote:
>>
>> Hi Jerome,
>>
>> On Fri, Nov 19, 2021 at 4:16 PM Jerome BENOIT <calculus at rezozer.net> wrote:
>>>
>>> It looks like primecount and primesieve are two different projects
>>> maintained by the same author.
>>
>> yes - and primecount is using primesieve
>>
>> By default primecount just vendors primesieve, if built from source.
>> But it's possible to tell it not to do so, by using
>> -DBUILD_LIBPRIMESIEVE=OFF
>> option in the cmake call.
>
> so the following works:
> suppose you have checked out
> primesieve/
> and
> primcount/
>
> cd primesieve
> cmake . -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
> make && sudo make install
>
> cd ../primcount
> cmake . -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DBUILD_LIBPRIMESIEVE=OFF
> make # this only builds primecount
> sudo make install
> sudo ldconfig # cause cmake is a bit silly here
> cd
> primecount 1000000000 # test - almost instant
> 50847534
>
> HTH
> Dima
>
>
>
>>
>> HTH
>> Dima
>>
>>> Jerome
>>>
>>> On 19/11/2021 17:11, Jerome BENOIT wrote:
>>>> Hi,
>>>> I am maintaining the Debian package primesieve.
>>>> Let me know if primecount is part of primesieve in some way.
>>>> I might miss some stuff at one stage. who knows.
>>>> Cheers,
>>>> Jerome
>>>>
>>>> On 19/11/2021 16:04, Dima Pasechnik wrote:
>>>>> Sage is only using libprimecount
>>>>>
>>>>>
>>>>> On Fri, 19 Nov 2021, 15:02 Dima Pasechnik, <dimpase at gmail.com <mailto:dimpase at gmail.com>> wrote:
>>>>>
>>>>> On Fri, Nov 19, 2021 at 2:51 PM Julien Puydt <julien.puydt at gmail.com <mailto:julien.puydt at gmail.com>> wrote:
>>>>> >
>>>>> > Le vendredi 19 novembre 2021 à 15:39 +0100, Julien Puydt a écrit :
>>>>> > > Le vendredi 19 novembre 2021 à 13:10 +0000, Dima Pasechnik a écrit :
>>>>> > > > Several distros package primecount:
>>>>> > > > https://repology.org/project/primecount/versions <https://repology.org/project/primecount/versions>
>>>>> > > > - and SageMath is about to update it and make standard.
>>>>> > > > https://trac.sagemath.org/ticket/25009 <https://trac.sagemath.org/ticket/25009>
>>>>> > > >
>>>>> > > > Any plans for packaging it in Debian? It only needs a standard C++
>>>>> > > > toolchain and cmake.
>>>>> > > > (I can have a go at it, if someone provides some onboarding etc).
>>>>> > >
>>>>> > >
>>>>> > > I had only checked the wanted packages -- but we have primesieve
>>>>> > > already:
>>>>> > >
>>>>> > > https://tracker.debian.org/pkg/primesieve <https://tracker.debian.org/pkg/primesieve>
>>>>> > >
>>>>> > > isn't it the one?
>>>>>
>>>>> primesieve (i.e. libprimesieve) is used by primecount (which in turn uses
>>>>> libprimecount).
>>>>>
>>>>> Installing primecount (git repo) from source gives one libraries
>>>>> libprime[sieve,count], and
>>>>> executable primecount
>>>>>
>>>>> I have not looked into ways to unvendor libprimesieve from primecount.
>>>>> I guess if it's done, then it's done "cmake way" - cmake has its own
>>>>> concept of (source?) packages IMHO.
>>>>>
>>>>> HTH
>>>>> Dima
>>>>>
>>>>>
>>>>> >
>>>>> > Ah, but the same upstream has:
>>>>> >
>>>>> > - primesieve, which is packaged ;
>>>>> >
>>>>> > - primecount, which might not be, but looks like it provides a
>>>>> > libprimesieve too.
>>>>> >
>>>>> > What does sagemath need exactly? If it's the lib, we might already have
>>>>> > it... or not!
>>>>> >
>>>>> > I have to admit I'm a bit confused.
>>>>> >
>>>>> > Cheers,
>>>>> >
>>>>> > J.Puydt
>>>>> >
>>>>> > _______________________________________________
>>>>> > Debian-science-sagemath mailing list
>>>>> > Debian-science-sagemath at alioth-lists.debian.net <mailto:Debian-science-sagemath at alioth-lists.debian.net>
>>>>> > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath <https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Debian-science-sagemath mailing list
>>>>> Debian-science-sagemath at alioth-lists.debian.net
>>>>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Debian-science-sagemath mailing list
>>>> Debian-science-sagemath at alioth-lists.debian.net
>>>> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath
>>>>
>>>
>>> --
>>> 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
>>>
>
> _______________________________________________
> Debian-science-sagemath mailing list
> Debian-science-sagemath at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-sagemath
>
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 1533 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-sagemath/attachments/20211119/859683ab/attachment.sig>
More information about the Debian-science-sagemath
mailing list