Skip to contentSkip to conversation

mpir: new package

PATCH Superseded Semyon Kolganov 2 participants 3 messages Apr 13, 2017 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpir: new package

---
 package/Config.in      |  1 +
 package/mpir/Config.in |  8 ++++++++
 package/mpir/mpir.hash |  2 ++
 package/mpir/mpir.mk   | 18 ++++++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 package/mpir/Config.in
 create mode 100644 package/mpir/mpir.hash
 create mode 100644 package/mpir/mpir.mk
package/Config.in +1 -0
index 3683578..0866c13 100644
@@ -1405,6 +1405,7 @@ endif
 	source "package/mpc/Config.in"
 	source "package/mpdecimal/Config.in"
 	source "package/mpfr/Config.in"
+	source "package/mpir/Config.in"
 	source "package/msgpack/Config.in"
 	source "package/mtdev2tuio/Config.in"
 	source "package/musl-compat-headers/Config.in"
package/mpir/Config.in new file +8 -0
new file mode 100644
index 0000000..acd448c
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_MPIR
+	bool "mpir"
+	select BR2_PACKAGE_GMP
+	help
+	  MPIR is a highly optimised library for bignum arithmetic forked 
+	  from the GMP bignum library.
+
+	  http://www.mpir.org/
package/mpir/mpir.hash new file +2 -0
new file mode 100644
index 0000000..8320337
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	52f63459cf3f9478859de29e00357f004050ead70b45913f2c2269d9708675bb	mpir-3.0.0.tar.bz2
package/mpir/mpir.mk new file +18 -0
new file mode 100644
index 0000000..fbce887
@@ -0,0 +1,18 @@
+################################################################################
+#
+# mpir
+#
+################################################################################
+
+MPIR_VERSION = 3.0.0
+MPIR_SITE = http://www.mpir.org
+MPIR_SOURCE = mpir-$(MPIR_VERSION).tar.bz2
+MPIR_LICENSE = LGPL-3.0+
+MPIR_LICENSE_FILES = COPYING.LIB
+MPIR_INSTALL_STAGING = YES
+MPIR_DEPENDENCIES = gmp
+HOST_MPIR_DEPENDENCIES = host-gmp
+MPIR_MAKE_OPTS = RANLIB=$(TARGET_RANLIB)
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 mpir: new package

Hello,

Quoted 1 line · Semyon Kolganov

Thanks for this new contribution. It generally looks good, just a few comments, see below.

Quoted 4 lines
 package/Config.in      |  1 +
 package/mpir/Config.in |  8 ++++++++
 package/mpir/mpir.hash |  2 ++
 package/mpir/mpir.mk   | 18 ++++++++++++++++++

You forgot to change the DEVELOPERS file to add yourself as the developer for this package.

Quoted 14 lines
package/mpir/mpir.mk new file +8 -0
new file mode 100644
index 0000000..fbce887
@@ -0,0 +1,18 @@
+################################################################################
+#
+# mpir
+#
+################################################################################
+
+MPIR_VERSION = 3.0.0
+MPIR_SITE = http://www.mpir.org

package/mpir/mpir.mk line 18

Quoted 10 lines
package/mpir/mpir.mk new file +10 -0
+MPIR_SOURCE = mpir-$(MPIR_VERSION).tar.bz2
+MPIR_LICENSE = LGPL-3.0+
+MPIR_LICENSE_FILES = COPYING.LIB
+MPIR_INSTALL_STAGING = YES
+MPIR_DEPENDENCIES = gmp
+HOST_MPIR_DEPENDENCIES = host-gmp
+MPIR_MAKE_OPTS = RANLIB=$(TARGET_RANLIB)
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))

Why is a host variant of this package needed? It should at the very least be explained in the commit log.

The rest looks good.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

PATCH 1/1 mpir: new package

Hello,

Please keep the Buildroot mailing list in Cc, thanks!

Quoted 6 lines · Semen Kolganov

I just forgot about DEVELOPER file.:-)?Should I resend you a new patch?

Well, about host, I thought, that it can be usefull to have this library on host, when you don't need in your target, but only for building.

We don't want to needlessly add host packages. So either the host package is needed as a build dependency of another package or directly useful for some specific use case, otherwise we simply don't want to have a host variant.

So we never add a host variant "just because".

Could you resend after dropping the host variant and adding the change to the DEVELOPERS file?

Make sure to run support/scripts/check-package on your package.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com