obgm / libcoap

A CoAP (RFC 7252) implementation in C
Other
791 stars 422 forks source link

add subrepo contents while creating release archive #1528

Open rakeshksahu opened 3 days ago

rakeshksahu commented 3 days ago

autoconf step fails if tinydtls contents are not present in libcoap subrepo.

I am using bitbake recipe for libcoap, which I followed from build instructions provided in the repo. However build does not pass because autoconf gets failed.

The same recipe works when I provide libcoap commit id with subrepo details of tinydtls.

please add subrepo contents while archiving the release version.

attaching the error logs.

Below are bitbake recipe with release zip file. [Uploading bitbake.log…]()

LIC_FILES_CHKSUM = "file://LICENSE;md5=9aa68c0f6785376aa8ec7f4f1aa6ae3c" SRC_URI = "https://github.com/obgm/libcoap/archive/refs/tags/v4.3.5.zip" SRC_URI[sha256sum] = "adf8ee10d6d3f21a1e80c8d34afac5edf789d0721c81bda09c2cd12e8996b912"

Below are bitbake recipe with commit id. LIC_FILES_CHKSUM = "file://LICENSE;md5=9aa68c0f6785376aa8ec7f4f1aa6ae3c"

SRC_URI = "git://github.com/obgm/libcoap.git;branch=develop;protocol=https \ git://github.com/eclipse/tinydtls.git;branch=develop;protocol=https;destsuffix=git/ext/tinydtls;name=tinydtls \ "

SRC_URI = "https://github.com/obgm/libcoap/archive/refs/tags/v4.3.5.zip"

SRC_URI[sha256sum] = "adf8ee10d6d3f21a1e80c8d34afac5edf789d0721c81bda09c2cd12e8996b912"

SRCREV_FORMAT_tinydtls = "git" SRCREV_FORMAT = "${SRCREV_FORMAT_tinydtls}"

SRCREV = "7cf7465b784baded4de183290c547d582becfd28" SRCREV_tinydtls = "4a6a78236043da7f8af9ad7be8488aeed6884eda"

rakeshksahu commented 3 days ago

bitbake.log

mrdeep1 commented 2 days ago

As TinyDTLS has a different Licence, I am not sure that we can ship this bundled into the libcoap .zip file.

At least, things work when using git.

Have you looked at doing a second recipe?

rakeshksahu commented 1 day ago

I am not sure if I understood your question.

mrdeep1 commented 1 day ago

I am not that familiar with bitbake, but I was thinking of something like https://a4z.gitlab.io/docs/BitBake/guide.html#_use_myclass_with_the_second_recipe as a possibility.

rakeshksahu commented 22 hours ago

sure, i will try this.