Skip to content

Commit

Permalink
[fix][misc] Rename all shaded Netty native libraries (apache#22415)
Browse files Browse the repository at this point in the history
(cherry picked from commit f423558)
(cherry picked from commit 5b14144)
  • Loading branch information
lhotari authored and mukesh-ctds committed Apr 19, 2024
1 parent e4eb9f1 commit a136be6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/rename-netty-native-libs.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,27 @@ call %UNZIP_CMD%
cd /d %TMP_DIR%/%FILE_PREFIX%

:: Loop through the number of groups
SET Obj_Length=2
SET Obj_Length=10
SET Obj[0].FROM=libnetty_transport_native_epoll_x86_64.so
SET Obj[0].TO=liborg_apache_pulsar_shade_netty_transport_native_epoll_x86_64.so
SET Obj[1].FROM=libnetty_tcnative_linux_x86_64.so
SET Obj[1].TO=liborg_apache_pulsar_shade_netty_tcnative_linux_x86_64.so
SET Obj[1].FROM=libnetty_transport_native_epoll_aarch_64.so
SET Obj[1].TO=liborg_apache_pulsar_shade_netty_transport_native_epoll_aarch_64.so
SET Obj[2].FROM=libnetty_tcnative_linux_x86_64.so
SET Obj[2].TO=liborg_apache_pulsar_shade_netty_tcnative_linux_x86_64.so
SET Obj[3].FROM=libnetty_tcnative_linux_aarch_64.so
SET Obj[3].TO=liborg_apache_pulsar_shade_netty_tcnative_linux_aarch_64.so
SET Obj[4].FROM=libnetty_tcnative_osx_x86_64.jnilib
SET Obj[4].TO=liborg_apache_pulsar_shade_netty_tcnative_osx_x86_64.jnilib
SET Obj[5].FROM=libnetty_tcnative_osx_aarch_64.jnilib
SET Obj[5].TO=liborg_apache_pulsar_shade_netty_tcnative_osx_aarch_64.jnilib
SET Obj[6].FROM=libnetty_transport_native_io_uring_x86_64.so
SET Obj[6].TO=liborg_apache_pulsar_shade_netty_transport_native_io_uring_x86_64.so
SET Obj[7].FROM=libnetty_transport_native_io_uring_aarch_64.so
SET Obj[7].TO=liborg_apache_pulsar_shade_netty_transport_native_io_uring_aarch_64.so
SET Obj[8].FROM=libnetty_resolver_dns_native_macos_aarch_64.jnilib
SET Obj[8].TO=liborg_apache_pulsar_shade_netty_resolver_dns_native_macos_aarch_64.jnilib
SET Obj[9].FROM=libnetty_resolver_dns_native_macos_x86_64.jnilib
SET Obj[9].TO=liborg_apache_pulsar_shade_netty_resolver_dns_native_macos_x86_64.jnilib
SET Obj_Index=0

:LoopStart
Expand Down
6 changes: 6 additions & 0 deletions src/rename-netty-native-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ FILE_PREFIX='META-INF/native'

FILES_TO_RENAME=(
'libnetty_transport_native_epoll_x86_64.so liborg_apache_pulsar_shade_netty_transport_native_epoll_x86_64.so'
'libnetty_transport_native_epoll_aarch_64.so liborg_apache_pulsar_shade_netty_transport_native_epoll_aarch_64.so'
'libnetty_tcnative_linux_x86_64.so liborg_apache_pulsar_shade_netty_tcnative_linux_x86_64.so'
'libnetty_tcnative_linux_aarch_64.so liborg_apache_pulsar_shade_netty_tcnative_linux_aarch_64.so'
'libnetty_tcnative_osx_x86_64.jnilib liborg_apache_pulsar_shade_netty_tcnative_osx_x86_64.jnilib'
'libnetty_tcnative_osx_aarch_64.jnilib liborg_apache_pulsar_shade_netty_tcnative_osx_aarch_64.jnilib'
'libnetty_transport_native_io_uring_x86_64.so liborg_apache_pulsar_shade_netty_transport_native_io_uring_x86_64.so'
'libnetty_transport_native_io_uring_aarch_64.so liborg_apache_pulsar_shade_netty_transport_native_io_uring_aarch_64.so'
'libnetty_resolver_dns_native_macos_aarch_64.jnilib liborg_apache_pulsar_shade_netty_resolver_dns_native_macos_aarch_64.jnilib'
'libnetty_resolver_dns_native_macos_x86_64.jnilib liborg_apache_pulsar_shade_netty_resolver_dns_native_macos_x86_64.jnilib'
)
Expand Down

0 comments on commit a136be6

Please sign in to comment.