* [Buildroot] [PATCH 1/1] libcorrect: add package
@ 2018-10-09 23:46 Joel Carlson
2018-10-10 8:46 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Joel Carlson @ 2018-10-09 23:46 UTC (permalink / raw)
To: buildroot
Adds the libcorrect package. Libcorrect by default builds a shared
library, so require shared libraries. It also sets the -Wpedantic flag
in its Debug build, which first exists starting in gcc 4.8.
Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com>
---
Compile-tested using utils/test-pkg -a
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/libcorrect/Config.in | 13 +++++++++++++
package/libcorrect/libcorrect.hash | 3 +++
package/libcorrect/libcorrect.mk | 13 +++++++++++++
5 files changed, 31 insertions(+)
create mode 100644 package/libcorrect/Config.in
create mode 100644 package/libcorrect/libcorrect.hash
create mode 100644 package/libcorrect/libcorrect.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 0fb3738e9a..0757ebfcf2 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1073,6 +1073,7 @@ N: Joel Carlson <JoelsonCarl@gmail.com>
F: package/capnproto/
F: package/cmocka/
F: package/flatcc/
+F: package/libcorrect/
N: Joel Stanley <joel@jms.id.au>
F: package/pdbg/
diff --git a/package/Config.in b/package/Config.in
index 29e11441f9..aae7855ec3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1609,6 +1609,7 @@ menu "Other"
source "package/libcap-ng/Config.in"
source "package/libcgroup/Config.in"
source "package/libcofi/Config.in"
+ source "package/libcorrect/Config.in"
source "package/libcroco/Config.in"
source "package/libcrossguid/Config.in"
source "package/libcsv/Config.in"
diff --git a/package/libcorrect/Config.in b/package/libcorrect/Config.in
new file mode 100644
index 0000000000..e29b39caa0
--- /dev/null
+++ b/package/libcorrect/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_LIBCORRECT
+ bool "libcorrect"
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # -Wpedantic first appears
+ depends on !BR2_STATIC_LIBS
+ help
+ A C library for Forward Error Correction, providing
+ convolutional codes and Reed-Solomon codes. It is part
+ of the Quiet Modem Project.
+
+ https://github.com/quiet/libcorrect
+
+comment "libcorrect needs a toolchain w/ gcc >= 4.8, dynamic library"
+ depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || BR2_STATIC_LIBS
diff --git a/package/libcorrect/libcorrect.hash b/package/libcorrect/libcorrect.hash
new file mode 100644
index 0000000000..20df38c158
--- /dev/null
+++ b/package/libcorrect/libcorrect.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 79861750540fb3a1cc501ee217cb4d1febc4855f3fb82e5eb60906eec5379890 libcorrect-ce6c17f1f988765ae3695315d7cce1f2a2e6cf0d.tar.gz
+sha256 135138cd4304aa637836758dc5edfb5f21b7d09ecc637d25288d206b151a5768 LICENSE
diff --git a/package/libcorrect/libcorrect.mk b/package/libcorrect/libcorrect.mk
new file mode 100644
index 0000000000..0a84aa5c26
--- /dev/null
+++ b/package/libcorrect/libcorrect.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# libcorrect
+#
+################################################################################
+
+LIBCORRECT_VERSION = ce6c17f1f988765ae3695315d7cce1f2a2e6cf0d
+LIBCORRECT_SITE = $(call github,quiet,libcorrect,$(LIBCORRECT_VERSION))
+LIBCORRECT_LICENSE = BSD-3-Clause
+LIBCORRECT_LICENSE_FILES = LICENSE
+LIBCORRECT_INSTALL_STAGING = YES
+
+$(eval $(cmake-package))
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] libcorrect: add package
2018-10-09 23:46 [Buildroot] [PATCH 1/1] libcorrect: add package Joel Carlson
@ 2018-10-10 8:46 ` Thomas Petazzoni
2018-10-10 17:08 ` Joel Carlson
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2018-10-10 8:46 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 9 Oct 2018 17:46:49 -0600, Joel Carlson wrote:
> Adds the libcorrect package. Libcorrect by default builds a shared
> library, so require shared libraries. It also sets the -Wpedantic flag
> in its Debug build, which first exists starting in gcc 4.8.
>
> Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com>
> ---
After looking quickly at it, I decided to add a patch that uses
-Wpedantic only if available, which allows to drop the dependency on
the gcc version. The patch was submitted upstream.
Applied with this change. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] libcorrect: add package
2018-10-10 8:46 ` Thomas Petazzoni
@ 2018-10-10 17:08 ` Joel Carlson
0 siblings, 0 replies; 3+ messages in thread
From: Joel Carlson @ 2018-10-10 17:08 UTC (permalink / raw)
To: buildroot
On Wed, Oct 10, 2018 at 2:46 AM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello,
>
> On Tue, 9 Oct 2018 17:46:49 -0600, Joel Carlson wrote:
> > Adds the libcorrect package. Libcorrect by default builds a shared
> > library, so require shared libraries. It also sets the -Wpedantic flag
> > in its Debug build, which first exists starting in gcc 4.8.
> >
> > Signed-off-by: Joel Carlson <JoelsonCarl@gmail.com>
> > ---
>
> After looking quickly at it, I decided to add a patch that uses
> -Wpedantic only if available, which allows to drop the dependency on
> the gcc version. The patch was submitted upstream.
>
> Applied with this change. Thanks!
>
> Thomas
Thank you for adding that patch/submitting it upstream. I had already
made some other changes and took the lazy route of just excluding the
older toolchains instead of trying to fix that as well.
-Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-10 17:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-09 23:46 [Buildroot] [PATCH 1/1] libcorrect: add package Joel Carlson
2018-10-10 8:46 ` Thomas Petazzoni
2018-10-10 17:08 ` Joel Carlson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.