[oe] [PATCH v2] ndctl: Add the NDCTL package

Alistair Francis alistair23 at gmail.com
Wed Aug 29 22:46:31 UTC 2018


On Fri, Aug 17, 2018 at 7:21 AM, Khem Raj <raj.khem at gmail.com> wrote:
> Hi Alistair
>
> We have accepted this patch however a new run with x86-64/musl shows
> that it failed to build with following error
> probably #include <sys/types.h> will fix it

Hey Khem,

Sorry for the delay, I tried to reproduce this today and I wasn't able
to. I did see a different issue about missing systemd which I have a
fix for though.

Alistair

>
>
> | In file included from util/abspath.c:5:
> | ./util/strbuf.h:68:45: error: unknown type name 'ssize_t'; did you
> mean 'size_t'?
> |  extern void strbuf_init(struct strbuf *buf, ssize_t hint);
> |                                              ^~~~~~~
> |                                              size_t
> | ./util/strbuf.h:73:15: error: unknown type name 'ssize_t'
> |  static inline ssize_t strbuf_avail(const struct strbuf *sb) {
> |                ^~~~~~~
> | ./util/strbuf.h:105:8: error: unknown type name 'ssize_t'
> |  extern ssize_t strbuf_read(struct strbuf *, int fd, ssize_t hint);
> |         ^~~~~~~
> | ./util/strbuf.h:105:53: error: unknown type name 'ssize_t'; did you
> mean 'size_t'?
> |  extern ssize_t strbuf_read(struct strbuf *, int fd, ssize_t hint);
> |                                                      ^~~~~~~
> |                                                      size_t
> | make[2]: *** [Makefile:678: util/abspath.o] Error 1
>
> On Mon, Jul 23, 2018 at 4:11 PM Alistair Francis
> <alistair.francis at wdc.com> wrote:
>>
>> Add the NDCTL package (the libnvdimm utility library). This is based
>> on the work from the meta-luv layer with a version bump.
>>
>> Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
>> ---
>> V2:
>>  - Fix install failure
>>
>>  meta-oe/recipes-core/ndctl/ndctl_git.bb | 29 +++++++++++++++++++++++++
>>  1 file changed, 29 insertions(+)
>>  create mode 100644 meta-oe/recipes-core/ndctl/ndctl_git.bb
>>
>> diff --git a/meta-oe/recipes-core/ndctl/ndctl_git.bb b/meta-oe/recipes-core/ndctl/ndctl_git.bb
>> new file mode 100644
>> index 000000000..36f94ecfd
>> --- /dev/null
>> +++ b/meta-oe/recipes-core/ndctl/ndctl_git.bb
>> @@ -0,0 +1,29 @@
>> +SUMMARY = "libnvdimm utility library"
>> +DESCRIPTION = "Utility library for managing the libnvdimm \
>> +(non-volatile memory device) sub-system in the Linux kernel. \
>> +The LIBNVDIMM subsystem provides support for three types of \
>> +NVDIMMs, namely,PMEM, BLK, and NVDIMM devices that can \
>> +simultaneously support both PMEM and BLK mode access."
>> +HOMEPAGE = "https://git.kernel.org/cgit/linux/kernel/git/nvdimm/nvdimm.git/tree/Documentation/nvdimm/nvdimm.txt?h=libnvdimm-for-next"
>> +LICENSE = "GPLv2+"
>> +LIC_FILES_CHKSUM = "file://COPYING;md5=e66651809cac5da60c8b80e9e4e79e08"
>> +
>> +inherit autotools-brokensep pkgconfig module-base
>> +
>> +SRCREV = "0d6aeeabec9d271e08c12e4cf679b59946e20156"
>> +SRC_URI = "git://github.com/pmem/ndctl.git"
>> +
>> +DEPENDS = "virtual/kernel kmod udev json-c"
>> +
>> +PV = "v61+git${SRCPV}"
>> +S = "${WORKDIR}/git"
>> +
>> +EXTRA_OECONF += "--enable-test --enable-destructive --disable-docs"
>> +
>> +do_configure_prepend() {
>> +    ${S}/autogen.sh
>> +}
>> +
>> +COMPATIBLE_HOST='(x86_64).*'
>> +
>> +FILES_${PN} += "/usr/share/bash-completion/completions/ndctl"
>> --
>> 2.17.1
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list