mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
* scripts/create-relocatable-package.py: add a command to print out executables under libexec * dist/debian/debian_files_gen.py: call create-relocatable-package.py for a list of files under libexec and create source/include-binaries with the list. we repackage the precompiled binaries in the relocatable package into a debian source package using `./scylla/install.sh`, which edits the executable to use the specified dynamic library loader. but dpkg-source does not like this, as it wants to ensure that the files in original tarball (*.orig.tar.gz) is identical to the files in the source package created by dpkg-source. so we have following failure when running reloc/build_deb.sh ``` dpkg-source: error: cannot represent change to scylla/libexec/scylla: binary file contents changed dpkg-source: error: add scylla/libexec/scylla in debian/source/include-binaries if you want to store the modified binary in the debian tarball dpkg-source: error: unrepresentable changes to source dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 1 debuild: fatal error at line 1182: dpkg-buildpackage -rfakeroot -us -uc -ui failed ``` in this change, to address the build failure, as proposed by dpkg, the path to the patched/edited executable is added to `debian/source/include-binaries`. see the "Building" section in https://manpages.debian.org/bullseye/dpkg-dev/dpkg-source.1.en.html for more details. please search `adjust_bin()` in `scylladb/install.sh` for more details. Signed-off-by: Takuya ASADA <syuu@scylladb.com> Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes #12722