Re: [oe] [meta-oe][PATCH] libkcapi: Add new recipe for v1.1.1

2018-07-12 Thread Krzysztof Kozlowski
On 11 July 2018 at 18:06, Khem Raj  wrote:
> This fails for mips/musl builds
>
> | ../git/lib/kcapi-kernel-if.c: In function '__kcapi_common_getinfo.isra.2':
> | ../git/lib/kcapi-kernel-if.c:632:3: error: 'strncpy' output
> truncated before terminating nul copying as many bytes from a string
> as its length [-Werror=stringop-truncation]
> |strncpy(req.cru.cru_name, ciphername, strlen(ciphername));
> |^
> | ../git/lib/kcapi-kernel-if.c:629:3: error: 'strncpy' output
> truncated before terminating nul copying as many bytes from a string
> as its length [-Werror=stringop-truncation]
> |strncpy(req.cru.cru_driver_name, ciphername,
> |^~~~
> | strlen(ciphername));
> | ~~~
> | cc1: all warnings being treated as errors
> | make: *** [lib/libkcapi_la-kcapi-kernel-if.lo] Error 1

Thanks for letting me know. I'll take a look and fix it.

Best regards,
Krzysztof
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] libkcapi: Add new recipe for v1.1.1

2018-07-11 Thread Khem Raj
This fails for mips/musl builds

| ../git/lib/kcapi-kernel-if.c: In function '__kcapi_common_getinfo.isra.2':
| ../git/lib/kcapi-kernel-if.c:632:3: error: 'strncpy' output
truncated before terminating nul copying as many bytes from a string
as its length [-Werror=stringop-truncation]
|strncpy(req.cru.cru_name, ciphername, strlen(ciphername));
|^
| ../git/lib/kcapi-kernel-if.c:629:3: error: 'strncpy' output
truncated before terminating nul copying as many bytes from a string
as its length [-Werror=stringop-truncation]
|strncpy(req.cru.cru_driver_name, ciphername,
|^~~~
| strlen(ciphername));
| ~~~
| cc1: all warnings being treated as errors
| make: *** [lib/libkcapi_la-kcapi-kernel-if.lo] Error 1
On Tue, Jul 10, 2018 at 9:56 AM Krzysztof Kozlowski  wrote:
>
> Add new recipe with libkcapi v1.1.1, Linux Kernel Crypto API User Space
> Interface Library.
>
> Signed-off-by: Krzysztof Kozlowski 
> ---
>  meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb | 24 
>  1 file changed, 24 insertions(+)
>  create mode 100644 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
>
> diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb 
> b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
> new file mode 100644
> index ..be25d6e390ea
> --- /dev/null
> +++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
> @@ -0,0 +1,24 @@
> +SUMMARY = "Linux Kernel Crypto API User Space Interface Library"
> +HOMEPAGE = "http://www.chronox.de/libkcapi.html;
> +LICENSE = "BSD | GPL-2.0"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d0421cf231423bda10cea691b613e866"
> +
> +DEPENDS = "libtool"
> +
> +S = "${WORKDIR}/git"
> +# Use v1.1.1 with changes on top for building in OE
> +SRCREV = "342b50fc9225a991c224126c13c188ad9f1ef9f9"
> +PV = "1.1.1+git${SRCPV}"
> +SRC_URI = "git://github.com/smuellerDD/libkcapi.git"
> +
> +inherit autotools
> +
> +PACKAGECONFIG ??= ""
> +PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,"
> +PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher 
> --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"
> +
> +do_install_append() {
> +# bindir contains testapp and apps.  However it is always created, even
> +# when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
> +rmdir --ignore-fail-on-non-empty ${D}${bindir}
> +}
> --
> 2.14.1
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH] libkcapi: Add new recipe for v1.1.1

2018-07-10 Thread Krzysztof Kozlowski
Add new recipe with libkcapi v1.1.1, Linux Kernel Crypto API User Space
Interface Library.

Signed-off-by: Krzysztof Kozlowski 
---
 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb | 24 
 1 file changed, 24 insertions(+)
 create mode 100644 meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb

diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb 
b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
new file mode 100644
index ..be25d6e390ea
--- /dev/null
+++ b/meta-oe/recipes-crypto/libkcapi/libkcapi_git.bb
@@ -0,0 +1,24 @@
+SUMMARY = "Linux Kernel Crypto API User Space Interface Library"
+HOMEPAGE = "http://www.chronox.de/libkcapi.html;
+LICENSE = "BSD | GPL-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d0421cf231423bda10cea691b613e866"
+
+DEPENDS = "libtool"
+
+S = "${WORKDIR}/git"
+# Use v1.1.1 with changes on top for building in OE
+SRCREV = "342b50fc9225a991c224126c13c188ad9f1ef9f9"
+PV = "1.1.1+git${SRCPV}"
+SRC_URI = "git://github.com/smuellerDD/libkcapi.git"
+
+inherit autotools
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,"
+PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher 
--enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,,"
+
+do_install_append() {
+# bindir contains testapp and apps.  However it is always created, even
+# when no binaries are installed (empty bin_PROGRAMS in Makefile.am),
+rmdir --ignore-fail-on-non-empty ${D}${bindir}
+}
-- 
2.14.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel