Skip to content
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

build: remove dup dyn lib files for EMQX build #297

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ download() {
return $res
}

# rebar3 deref softlinks while packaging
# so we dref at here to keep one dynlib file to avoid dup files in EMQX package
# - priv/libquicer_nif.so
# - priv/libquicer_nif.so.1
# - priv/libquicer_nif.so.504
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about libmsquic ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is already excluded from pkg.

remove_dups() {
cp -L $TARGET_SO ${TARGET_SO}tmp
rm ${TARGET_SO}.*
mv ${TARGET_SO}tmp $TARGET_SO
}

release() {
if [ -z "$PKGNAME" ]; then
echo "unable_to_resolve_release_package_name"
Expand Down Expand Up @@ -97,6 +108,7 @@ else
build
else
echo "QUICER: NOTE! nif library is downloaded from prebuilt releases, not compiled from source!"
remove_dups
fi
else
build
Expand Down
Loading