@@ -61,6 +61,35 @@ function build_packages(){
6161 fi
6262 echo " === Binary size and type ==="
6363 ls -lh " $GIT_DIR /build/bin/asadm" || echo " Could not get binary size info"
64+
65+ echo " === Verifying excluded system libraries are NOT bundled ==="
66+ # Check for one-file mode
67+ if [ -f " $GIT_DIR /build/bin/asadm" ] && [ ! -d " $GIT_DIR /build/bin/asadm" ]; then
68+ echo " One-file mode detected - checking bundled libraries via extraction test"
69+ # For one-file mode, we can't easily check without extracting, so we'll test at runtime
70+ echo " Will verify at runtime that system libraries are used"
71+ # Check for one-dir mode
72+ elif [ -d " $GIT_DIR /build/bin/asadm" ]; then
73+ echo " One-dir mode detected - checking _internal directory for excluded libraries"
74+ INTERNAL_DIR=" $GIT_DIR /build/bin/asadm/_internal"
75+ if [ -d " $INTERNAL_DIR " ]; then
76+ echo " Checking for libgcc_s.so.1..."
77+ if find " $INTERNAL_DIR " -name " libgcc_s.so.1" 2> /dev/null | grep -q " libgcc_s" ; then
78+ echo " WARNING: libgcc_s.so.1 found in bundle (may cause glibc issues)"
79+ find " $INTERNAL_DIR " -name " libgcc_s.so.1" -exec ls -la {} \;
80+ else
81+ echo " ✓ libgcc_s.so.1 NOT found in bundle (good)"
82+ fi
83+ echo " Checking for other excluded system libraries..."
84+ for lib in libc.so.6 libm.so.6 libpthread.so.0 libdl.so.2 librt.so.1; do
85+ if find " $INTERNAL_DIR " -name " $lib " 2> /dev/null | grep -q " $lib " ; then
86+ echo " WARNING: $lib found in bundle"
87+ else
88+ echo " ✓ $lib NOT found in bundle (good)"
89+ fi
90+ done
91+ fi
92+ fi
6493 else
6594 echo " Binary not found at expected location"
6695 find " $GIT_DIR /build" -name " asadm" -exec ls -la {} \;
0 commit comments