floret: add recipe for floret 0.10.5 - #1068
Open
varunsinghal29 wants to merge 1 commit into
Open
Conversation
Add a new recipe for floret, a fastText fork with Bloom embeddings for compact, full-coverage vectors compatible with spaCy. The recipe builds floret as a shared library, static library, and CLI binary using CMake, with zlib as a dependency. Signed-off-by: Varun Singhal <varusing@qti.qualcomm.com>
kraj
requested changes
Sep 3, 2026
| # Skip buildpaths/dev-elf QA on this recipe | ||
| # libs reference TMPDIR / are non-symlink .so | ||
| INSANE_SKIP:${PN} += "buildpaths" | ||
| INSANE_SKIP:${PN}-dev += "buildpaths dev-elf" |
Contributor
There was a problem hiding this comment.
dev-elf is not needed with above fix.
| install -m 0755 ${B}/libfloret.so ${D}${libdir}/libfloret.so.${PV} | ||
| ln -sf libfloret.so.${PV} ${D}${libdir}/libfloret.so.1 | ||
| ln -sf libfloret.so.1 ${D}${libdir}/libfloret.so | ||
| fi |
Contributor
There was a problem hiding this comment.
This does not work.
CMake builds libfloret.so. and puts a libfloret.so symlink
next to it. Install the real library under its SONAME and recreate the
symlink: installing through the symlink instead would ship the same
library twice and leave ${libdir}/libfloret.so as an ELF file rather than
a link, which makes debian.bbclass rename ${PN}-dev to libfloret0 as
well as ${PN} - two packages with one name, which do_create_package_spdx
then dies on. you need something like below.
if [ -e ${B}/libfloret.so ]; then
soname=$(${OBJDUMP} -p ${B}/libfloret.so | awk '/SONAME/ { print $2 }')
install -m 0755 ${B}/libfloret.so ${D}${libdir}/$soname
ln -sf $soname ${D}${libdir}/libfloret.so
fi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new recipe for floret, a fastText fork with Bloom embeddings for compact, full-coverage vectors compatible with spaCy. The recipe builds floret as a shared library, static library, and CLI binary using CMake, with zlib as a dependency.