-
Notifications
You must be signed in to change notification settings - Fork 312
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
fix: pack without libaio #676
Conversation
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.
Since this pr contains different fixes, it’s better to mention it in the title or commit message.
scripts/pack_server.sh
Outdated
exit 1 | ||
fi | ||
SYS_LIB_NAME=$(get_system_libname server "$1") | ||
copy_file "${SYS_LIB_PATH}" "${pack}/bin/${SYS_LIB_NAME}" |
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.
why not copy_file "${SYS_LIB_PATH}" "${pack}/bin"
?
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'm not 100% sure but ${SYS_LIB_NAME}
and ${SYS_LIB_PATH}
could point to different file names.
scripts/pack_tools.sh
Outdated
copy_file `get_system_lib shell zstd` ${pack}/DSN_ROOT/lib/`get_system_libname shell zstd` | ||
copy_file `get_system_lib shell lz4` ${pack}/DSN_ROOT/lib/`get_system_libname shell lz4` | ||
|
||
pack_system_lib() { |
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.
It's better to move pack_system_lib()
to pack_common.sh .
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.
LGTM.
What problem does this PR solve?
Because we removed the dependency of libaio in the latest version, the binary is not linked with libaio anymore.
It causes pegasus unable to package while running
./run.sh pack_server
.What is changed and how it works?
I refactored the packaging script and let it pack without libaio.
Check List
Tests
Good pass
Good pass