[Buildroot] [PATCH 1/3] libtommath: new package

Yegor Yefremov yegorslists at googlemail.com
Fri Apr 1 10:17:53 UTC 2016


On Fri, Apr 1, 2016 at 11:11 AM, François Perrad
<francois.perrad at gadz.org> wrote:
> 2016-04-01 10:19 GMT+02:00 Yegor Yefremov <yegorslists at googlemail.com>:
>> Hi Francois,
>>
>> On Fri, Apr 1, 2016 at 10:07 AM, Francois Perrad <fperrad at gmail.com> wrote:
>>> Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
>>> ---
>>>  package/Config.in                |  1 +
>>>  package/libtommath/Config.in     |  7 +++++++
>>>  package/libtommath/libtommath.mk | 21 +++++++++++++++++++++
>>
>> hash file is missing
>>
>>>  3 files changed, 29 insertions(+)
>>>  create mode 100644 package/libtommath/Config.in
>>>  create mode 100644 package/libtommath/libtommath.mk
>>>
>>> diff --git a/package/Config.in b/package/Config.in
>>> index 7b23519..84df812 100644
>>> --- a/package/Config.in
>>> +++ b/package/Config.in
>>> @@ -1233,6 +1233,7 @@ menu "Other"
>>>         source "package/libsigc/Config.in"
>>>         source "package/libsigsegv/Config.in"
>>>         source "package/libtasn1/Config.in"
>>> +       source "package/libtommath/Config.in"
>>>         source "package/libtpl/Config.in"
>>>         source "package/libubox/Config.in"
>>>         source "package/libuci/Config.in"
>>> diff --git a/package/libtommath/Config.in b/package/libtommath/Config.in
>>> new file mode 100644
>>> index 0000000..b2ffc72
>>> --- /dev/null
>>> +++ b/package/libtommath/Config.in
>>> @@ -0,0 +1,7 @@
>>> +config BR2_PACKAGE_LIBTOMMATH
>>> +       bool "libtommath"
>>> +       help
>>> +         LibTomMath is a free open source portable number theoretic
>>> +         multiple-precision integer library written entirely in C.
>>> +
>>> +         http://www.libtom.net
>>> diff --git a/package/libtommath/libtommath.mk b/package/libtommath/libtommath.mk
>>> new file mode 100644
>>> index 0000000..44f21ff
>>> --- /dev/null
>>> +++ b/package/libtommath/libtommath.mk
>>> @@ -0,0 +1,21 @@
>>> +################################################################################
>>> +#
>>> +# libtommath
>>> +#
>>> +################################################################################
>>> +
>>> +LIBTOMMATH_VERSION = v1.0
>>> +LIBTOMMATH_SITE = $(call github,libtom,libtommath,$(LIBTOMMATH_VERSION))
>>
>> why don't you take official release tarballs? The same for libtomcrypt
>>
>
> on http://www.libtom.net/, all links are on Github:
>  - https://github.com/libtom/libtomcrypt/tree/1.17
>  - https://github.com/libtom/libtomcrypt/releases/download/1.17/crypt-1.17.tar.bz2
>  - https://github.com/libtom/libtommath/tree/v1.0
>  - https://github.com/libtom/libtommath/releases/download/v1.0/ltm-1.0.tar.xz
>
> and as far I know, the Github helper is not reliable for hash.

You don't need the GitHub helper as 1.17 and 1.0 are official "green"
releases. Just take a look how this is handled for tmux package.

Yegor



More information about the buildroot mailing list