diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:38:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:38:42 +0000 |
commit | 59d817986e6c6a05ff03b79c8aed54685f3318fd (patch) | |
tree | aca9f6a8b98a978dce023559ccea1cfe05e08f7b /debian/rules | |
parent | Merging upstream version 13.3. (diff) | |
download | base-files-59d817986e6c6a05ff03b79c8aed54685f3318fd.tar.xz base-files-59d817986e6c6a05ff03b79c8aed54685f3318fd.zip |
Merging debian version 13.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 5287a69..5eb14bf 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk + OSNAME = "GNU/`uname | sed -e 's/GNU\///'`" ifeq ($(DEB_HOST_GNU_SYSTEM),linux) OSNAME=GNU/Linux @@ -11,6 +13,14 @@ endif VENDORFILE = progress-linux DESTDIR = debian/base-files +ifneq (,$(filter $(DEB_HOST_ARCH),amd64 loong64 mips64el ppc64 ppc64el sparc64)) + USR_MERGE_RTLDLIB = lib64 +else ifneq (,$(filter $(DEB_HOST_ARCH),x32)) + USR_MERGE_RTLDLIB = libx32 +endif +USR_MERGE = bin lib sbin $(USR_MERGE_RTLDLIB) +USR_MERGE_MULTILIB = $(filter-out $(USR_MERGE),lib32 lib64 libo32 libx32) + %: dh $@ @@ -19,6 +29,15 @@ execute_after_dh_clean: override_dh_auto_build: sh debian/check-md5sum-etc profile + set -e; { \ + echo "# Triggers for creating multilib aliasing symlinks on demand"; \ + for d in $(USR_MERGE_MULTILIB); do \ + echo "interest-noawait /usr/$$d"; \ + done; \ + } > debian/triggers + +execute_after_dh_installdirs: + dh_installdirs $(foreach d,$(USR_MERGE),usr/$(d)) override_dh_auto_install: install -p -m 644 etc/* $(DESTDIR)/etc @@ -46,6 +65,10 @@ override_dh_installchangelogs: override_dh_link: dh_link -X os-release + # We want these links to be relative, so we cannot use dh_link. + set -e; for d in $(USR_MERGE); do \ + ln -s usr/$$d debian/base-files/$$d; \ + done override_dh_compress: dh_compress -X README @@ -59,4 +82,7 @@ override_dh_fixperms: cd debian/base-files && chmod 700 root override_dh_installdeb: - dh_installdeb -DVENDORFILE=$(VENDORFILE) + dh_installdeb \ + '-DVENDORFILE=$(VENDORFILE)' \ + '-DUSR_MERGE_MULTILIB=$(USR_MERGE_MULTILIB)' \ + '-DUSR_MERGE_RTLDLIB=$(USR_MERGE_RTLDLIB)' |