a few issues with the pxc_builder.sh script
mostly due to the compressed file it downloads having the wrong version number tagged with it
it downloads percona-xtradb-cluster_8.0.13-3-1.debian.tar.xz how ever this contains Percona-XtraDB-Cluster-8.0.29-21
so the build breaks because it can not access the extracted files
I created a symlink to get around this issue
ln -s Percona-XtraDB-Cluster-8.0.29-21 Percona-XtraDB-Cluster-8.0.13-3
but then other snags appear as folder paths are case sensitive and through out the build process they have been swapped around
ie
percona-xtradb-cluster + Percona-XtraDB-Cluster
percona-xtradb-cluster-8.0.13-3 + Percona-XtraDB-Cluster-8.0.13-3
etc , I also corrected as many of these as I could with symlinks ,
./pxc_builder.sh --builddir=/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb --install_deps=1 --get_sources=1 --build_source_deb=1 --build_deb=1
when script fetches “pxc-80.properties” it leaves
./pxc_builder.sh: 710: source: not found
./pxc_builder.sh: 780: source: not found
build.log (3.0 MB)
dpkg-source: warning: extracting unsigned source package (percona-xtradb-cluster_8.0.13-3-1.dsc)
dpkg-deb: error: failed to read archive '/var/cache/apt/archives/percona-xtrabackup-24*': No such file or directory
dpkg-deb: error: failed to read archive '/var/cache/apt/archives/percona-xtrabackup-80*': No such file or directory
mv: cannot stat 'usr/bin': No such file or directory
mv: cannot stat 'usr/lib*': No such file or directory
mv: cannot stat 'usr/bin': No such file or directory
mv: cannot stat 'usr/lib*': No such file or directory
./pxc_builder.sh: 825: [[: not found
./pxc_builder.sh: 825: xjammy: not found
./pxc_builder.sh: 825: xjammy: not found
./pxc_builder.sh: 825: xjammy: not found
./pxc_builder.sh: 835: [[: not found
./pxc_builder.sh: 835: xjammy: not found
./pxc_builder.sh: 835: xjammy: not found
./pxc_builder.sh: 835: xjammy: not found
and the main wall I am hitting at them moment is this when its not finding the deb files
bprotobuf.dir/__/src/google/protobuf/wrappers.pb.cc.o ../../../../archive_output_directory/libz.a
cd /rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3/debug/extra/protobuf/protobuf-3.19.4/cmake && /usr/bin/cmake -E cmake_symlink_library ../../../../library_output_directory/libprotobuf.so.3.19.4 ../../../../library_output_directory/libprotobuf.so.3.19.4 ../../../../library_output_directory/libprotobuf.so
make[4]: Leaving directory '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3/debug'
[ 25%] Built target libprotobuf
make[3]: Leaving directory '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3/debug'
make[2]: *** [Makefile:156: all] Error 2
make[2]: Leaving directory '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3/debug'
make[1]: *** [debian/rules:162: override_dh_auto_build] Error 2
make[1]: Leaving directory '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/percona-xtradb-cluster-8.0.13-3'
make: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
cp: cannot stat '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/*.deb': No such file or directory
cp: cannot stat '/rpool/percona-xtradb-cluster/build-ps/pxc-build-deb/*.deb': No such file or directory
root@ampereubuntusydney:/rpool/percona-xtradb-cluster/build-ps#
build-binary.sh did work but I am trying to get deb files