proxmox-backup/debian
Thomas Lamprecht 198ebc6c86 d/rules: patch out wrongly linked libraries from ELFs
this is a HACK!

It seems that due to lots of binaries getting compiled from a single
crate the compiler is confused when linking in dependencies to each
binaries ELF.

It picks up the combined set (union) of all dependencies and sets
those to every ELF. This results in the client, for example, linking
to libapt-pkg or libsystemd even if none of that symbols are used..

This could be possibly fixed by restructuring the source tree into
sub crates/workspaces or what not, not really tested and *lots* of
work.

So as stop gap measure use `ldd -u` to find out unused linkage and
remove them using `patchelf`.

While this works well, and seems to not interfere with any debug
symbol usage or other usage in general it still is a hack and should
be dropped once the restructuring of the source tree has shown to
bring similar effects.

This allows for much easier re-use of the generated client .deb
package on other Debian derivaties (e.g., Ubuntu) which got blocked
until now due to wrong libt-apt verison or the like.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-01-15 08:52:53 +01:00
..
scripts d/rules: patch out wrongly linked libraries from ELFs 2021-01-15 08:52:53 +01:00
source debian: add debian/source/format file 2019-02-01 10:41:54 +01:00
changelog bump version to 1.0.6-1 2020-12-11 14:19:28 +01:00
compat debian packages: split package into client/server 2019-11-11 08:35:33 +01:00
control d/rules: patch out wrongly linked libraries from ELFs 2021-01-15 08:52:53 +01:00
control.in d/control: sort and fix whitespace errors 2021-01-14 15:11:06 +01:00
copyright docs/introduction.rst: Add License Section (AGPL3) 2019-11-11 19:21:27 +01:00
debcargo.toml d/rules: patch out wrongly linked libraries from ELFs 2021-01-15 08:52:53 +01:00
lintian-overrides docs: update package repositories 2020-11-10 13:14:04 +01:00
postinst postinst: fix version check for remote.cfg cleanup 2020-11-10 14:35:37 +01:00
prerm add daily update and maintenance task 2020-10-31 22:51:26 +01:00
proxmox-backup-client.bash-completion correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
proxmox-backup-client.bc correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
proxmox-backup-client.install Add zsh completion scripts 2020-02-27 06:50:14 +01:00
proxmox-backup-docs.install packaging: fix docs install path 2019-12-23 07:52:40 +01:00
proxmox-backup-docs.links add LTO barcode generator App 2020-12-19 17:39:48 +01:00
proxmox-backup-manager.bc correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
proxmox-backup-server.bash-completion correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
proxmox-backup-server.install debian: correctly install sg-tape-cmd setuid binary 2020-12-28 13:22:17 +01:00
proxmox-backup-server.maintscript docs: update package repositories 2020-11-10 13:14:04 +01:00
pxar.bc correctly install bash completion helpers 2019-12-03 09:52:53 +01:00
rules d/rules: patch out wrongly linked libraries from ELFs 2021-01-15 08:52:53 +01:00