-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added snort3 & libdaq recipes #789
Conversation
LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5" | ||
|
||
DEPENDS = "luajit libdaq libdnet flex hwloc libpcap libpcre zlib libtirpc" | ||
RDEPENDS:${PN} += "bash" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this direct dependency ? perhaps convert the shell to not need bash extentions or move the concerning scripts to package of its own.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to remove this dependency by creating a patch for the bash script but there are a lot of changes to be made in this script and I don't need it for my use case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, can be move the script to a package of its own. ? something like below
PACKAGES += "${PN}-scripts"
FILES:${PN}-scripts = "/path/to/script/name"
RDEPENDS:${PN}-scripts = "bash"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, I'll try making this change, Also can I push all my changes in one single commit rather than making a commit for each recipe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually one commit per recipe is good
there is a build failure as well - https://errors.yoctoproject.org/Errors/Details/752967/ |
also make sure its only enabled for architectures supporting luajit otherwise we see errors like this
|
@kraj Can you tell me how to reproduce the above errors on my end. I ended up isolating the bash dependent script into a seperate package but I want to get the errors on my end so I can fix luajit + yocto build error |
I am building with clang/libc++, one way to reproduce it would be to use yoe distro https://github.com/yoedistro/yoe-distro
|
I added the following code block to my snort3 recipe, is this what you want? I read the luajit recipe and apparently, it is not supported for the following architectures yet. I reproduced the error using the approach you gave above as well.
|
Yes that would fix the compatiblity errror I am still worried about the build failures seen with clang and libc++ |
Yup, that build error is still occurring for qemuarm, I am resolving it for now |
Update: I fixed the build error for qemuarm machine, by passing "-lm" flag to the libdaq recipe
Now, libdaq is building but when building snort3, I get a new error something as below
I added |
@kraj I have created a patch (which, I'll push once the following issue gets resolved) for the llibdaq build error as show below
libdaq is working now but snort3 produces a build error as follows
This is the exact line number where the error is produced during snort3 compilation process.cc line 191 error So, to sum it up meta_clang provides lib_cxx and lib_cxx provides libunwind (which does not have the |
This error means a dependency on |
I added it already, but it doesn't work. As meta-clang provides it's own libunwind |
Can you set |
same error |
Add it in meta-clang/conf/nonclangable.conf like below
|
nope, still the same error Yocto Build Error |
I checked the environment
|
OK, can you post your updated patches to the PR, I want to take a look. |
Check for TC_CXX_RUNTIME what is it set to |
I am adding this recipe as snort3 depends on it. snort3 recipe will be provided in next commit. See more: https://github.com/snort3/libdaq Signed-off-by: Khawaja Shaheryar <[email protected]>
I have pushed the new changes, but here the variable is set as following |
Even when you set to gnu ? If so then that’s the issue |
Yup I added in meta-clang/conf/nonclangable.conf |
@kraj is there any way to make |
Please test 8db172c this should fix the problem. |
Addition QA warnings
For once I have addressed them via However, I expect submitters to be able to handle these in general. |
Tested, it is working |
I didn't have these QA warnings at my end as the build was failing or else I would have resolved them, nonetheless thankyou for resolving them from your side. |
I am adding this recipe as snort2 is legacy now. See more: https://github.com/snort3/snort3 Signed-off-by: Khawaja Shaheryar <[email protected]>
applied to master branch as of 7132d7b |
In multilib builds I'm also seeing:
And the ${SRCPV} shouldn't be in PV, see: |
I'll send fixes for both issues to ML shortly. |
@shr-project How can I reproduce this error
moreover can you kindly give some info on how to resolve this issue. |
See the fixes I've sent to ML and were already merged (see https://git.openembedded.org/meta-openembedded/log/?qt=grep&q=snort3) |
Changelog: https://github.com/c-ares/c-ares/releases/tag/v1.32.0 Features: Add support for DNS 0x20 to help prevent cache poisoning attacks, enabled by specifying ARES_FLAG_DNS0x20. Disabled by default. PR openembedded#800 Rework query timeout logic to automatically adjust timeouts based on network conditions. The timeout specified now is only used as a hint until there is enough history to calculate a more valid timeout. PR openembedded#794 Changes: DNS RR TXT strings should not be automatically concatenated as there are use cases outside of RFC 7208. In order to maintain ABI compliance, the ability to retrieve TXT strings concatenated is retained as well as a new API to retrieve the individual strings. This restores behavior from c-ares 1.20.0. PR openembedded#801 Clean up header inclusion logic to make hacking on code easier. PR openembedded#797 GCC/Clang: Enable even more strict warnings to catch more coding flaws. 253bdee MSVC: Enable /W4 warning level. PR openembedded#792 Bugfixes: Tests: Fix thread race condition in test cases for EventThread. PR openembedded#803 Windows: Fix building with UNICODE. PR openembedded#802 Thread Saftey: ares_timeout() was missing lock. 74a64e4 Fix building with DJGPP (32bit protected mode DOS). PR openembedded#789 Signed-off-by: Jason Schonberg <[email protected]> Signed-off-by: Khem Raj <[email protected]>
No description provided.