[X2Go-Commits] [pale-moon] 38/216: debian/rules: add/backport dh_auto_install override.

git-admin at x2go.org git-admin at x2go.org
Sat Feb 16 02:42:48 CET 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pale-moon.

commit ce3b55e105fe4b71e9383ff72d2f950ff12346a9
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Jun 30 04:09:12 2018 +0200

    debian/rules: add/backport dh_auto_install override.
---
 debian/changelog |  1 +
 debian/rules     | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 476593c..b4258d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,6 +42,7 @@ palemoon (27.9.2~repack-1-0x2go1) UNRELEASED; urgency=medium
     - "Rework" dh_auto_configure override.
     - Drop older dh_auto_build override.
     - Add new ("empty") dh_auto_install override.
+    - Add/backport dh_auto_install override.
   * debian/mozconfig:
     - Remove autoconf flags that should better be handled by debian/rules.
   * debian/make.mk:
diff --git a/debian/rules b/debian/rules
index 825a0c9..c1acaec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -152,6 +152,52 @@ override_dh_auto_clean::
 
 override_dh_auto_install: stamps/install-palemoon
 
+ifndef USE_SYSTEM_NSPR
+NSPR_VERSION = $(shell awk -F' *= *' '/MOD_[A-Z]*_VERSION/ {v[$$1] = $$2} END {print v["MOD_MAJOR_VERSION"] "." v["MOD_MINOR_VERSION"] "." v["MOD_PATCH_VERSION"]}' build-palemmon/nsprpub/config/autoconf.mk)
+debian/mozilla-nspr.pc: VARS += NSPR_VERSION
+debian/mozilla-nspr.pc: stamps/build-palemoon
+endif
+
+stamps/install-palemoon:: build-palemoon/debian/installer/package-manifest
+ifneq (,$(filter mips,$(DEB_BUILD_ARCH)))
+	# Failures are not fatal, since this old base doesn't seem to even have a greprefs.js file.
+	sed -i '/"javascript.options.\(baselinejit\|ion\)"/s/true/false/' build-$(PRODUCT)/dist/bin/greprefs.js || :
+endif
+	dh_auto_install --builddirectory=build-palemoon -- installdir=$(LIB_DIR) \
+		MOZ_PKG_MANIFEST=$(CURDIR)/$< \
+		MOZ_NONLOCALIZED_PKG_LIST="xpcom debian" \
+		MOZ_LOCALIZED_PKG_LIST=en-US \
+		TAR_CREATE_FLAGS="--exclude=.mkdir.done --hard-dereference -chf" \
+		SIGN_NSS=
+	
+	# Fixup permissions
+	find debian/tmp/usr/share debian/tmp/usr/include -type f -print0 | xargs -0 chmod 644
+	chmod +x debian/tmp/usr/lib/palemoon-devel/sdk/bin/xpcshell || : # Failure not fatal since we might not have this file.
+	
+	# Replace some installed files by symlinks
+	for d in lib bin; do \
+		cd "$(CURDIR)/debian/tmp/usr/lib/palemoon-devel/sdk/$$d"; \
+		for f in *; do \
+			if [ -f "$(CURDIR)/debian/tmp$(LIB_DIR)/$$f" ]; then \
+				rm -f $$f ; ln -s $(LIB_DIR)/$$f $$f; \
+			fi; \
+		done; \
+	done
+	
+ifneq (,$(USE_SYSTEM_NSPR)$(USE_SYSTEM_NSS))
+	# FIXME: this needs to be updated to work on debian/tmp$(LIB_DIR)-devel.
+	for f in $(if $(USE_SYSTEM_NSPR),/usr/include/nspr/*) $(if $(USE_SYSTEM_NSS),/usr/include/nss/*); do \
+		ln -s $$f debian/tmp/usr/include/palemoon/$$(basename $$f); \
+	done
+endif
+	# FIXME: this needs to be updated to work on debian/tmp$(LIB_DIR)-devel.
+	for h in $$(grep -l -r EXPORTS build-palemoon/media | grep Makefile$ | \
+		while read f; do $(MAKE) --no-print-directory -C $$(dirname $$f) echo-variable-EXPORTS echo-variable-EXPORTS_NAMESPACES; done); do \
+		rm -rf debian/tmp/usr/include/palemoon/$$h; \
+	done
+	
+	-TZ=UTC unzip -d debian/tmp$(LIB_DIR)/browser debian/tmp$(LIB_DIR)/browser/omni.ja 'defaults/preferences/*'
+
 override_dh_auto_install:
 	make -f client.mk DESTDIR=$$(pwd)/debian/palemoon prefix=/usr \
 	installdir=/usr/lib/palemoon \

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list