From 8273aba6c02ec57615c8f075086c2e994f720a95 Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 16 Aug 2020 16:18:55 -0400 Subject: WIP: newmoon compile attempt 1 The dpkg built on d2-03a but had some palemoon naming artifacts, so this commit is for building it with the attempted fixes for that. --- newmoon/debian/rules | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 newmoon/debian/rules (limited to 'newmoon/debian/rules') diff --git a/newmoon/debian/rules b/newmoon/debian/rules new file mode 100755 index 0000000..db92cdd --- /dev/null +++ b/newmoon/debian/rules @@ -0,0 +1,47 @@ +#!/usr/bin/make -f + +export SHELL=/bin/bash + +## borrowed from stevepusser's logic +## Build with gcc-8 on Buster (beowulf/ceres) +## If you enable this, then d/control needs lsb-release as a build dependency. +#distrelease := $(shell lsb_release -cs) +#ifeq ($(distrelease),$(filter $(distrelease),buster beowulf/ceres)) +#export CC=gcc-8 +#export CXX=g++-8 +#export CPP=cpp-8 +#export LD=gcc-8 +#endif + +export MCFILE=debian/mozconfig + +%: + dh $@ + +override_dh_auto_clean: + rm -f mozconfig + dh_auto_clean + find . -name '*.pyc' -delete + +override_dh_auto_configure: + cp ${MCFILE} mozconfig + +override_dh_auto_build: + make -f client.mk build + +override_dh_auto_install: + make -f client.mk DESTDIR=$$(pwd)/debian/newmoon prefix=/usr \ + installdir=/usr/lib/newmoon \ + sdkdir=/usr/lib/newmoon-devel install + rm -rf $$(pwd)/debian/newmoon/usr/share/idl + rm -rf $$(pwd)/debian/newmoon/usr/lib/newmoon-devel + rm -rf $$(pwd)/debian/newmoon/usr/include +# remove vestigial duplicate file + rm -rf $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon-bin + mv $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon $$(pwd)/debian/newmoon/usr/lib/newmoon/newmoon + +override_dh_shlibdeps: + dh_shlibdeps -l /usr/lib/newmoon + +override_dh_strip_nondeterminism: + dh_strip_nondeterminism -Xdebian/newmoon/usr/lib/newmoon/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi -- cgit From a1c35a6c309bb83d8ca34082861b24b230887bd3 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 19 Aug 2020 20:57:53 -0400 Subject: try to remove usr/bin/palemoon --- newmoon/debian/rules | 1 + 1 file changed, 1 insertion(+) (limited to 'newmoon/debian/rules') diff --git a/newmoon/debian/rules b/newmoon/debian/rules index db92cdd..15b65ff 100755 --- a/newmoon/debian/rules +++ b/newmoon/debian/rules @@ -39,6 +39,7 @@ override_dh_auto_install: # remove vestigial duplicate file rm -rf $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon-bin mv $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon $$(pwd)/debian/newmoon/usr/lib/newmoon/newmoon + rm -rf $$(pwd)/debian/usr/bin/palemoon override_dh_shlibdeps: dh_shlibdeps -l /usr/lib/newmoon -- cgit From 2990bfc8dee999877048d97f0edd9e74d5045763 Mon Sep 17 00:00:00 2001 From: B Stack Date: Fri, 21 Aug 2020 06:39:21 -0400 Subject: UXP elim gtk2 attempt 2, and remove u/b/palemoon --- newmoon/debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newmoon/debian/rules') diff --git a/newmoon/debian/rules b/newmoon/debian/rules index 15b65ff..10797b7 100755 --- a/newmoon/debian/rules +++ b/newmoon/debian/rules @@ -39,7 +39,7 @@ override_dh_auto_install: # remove vestigial duplicate file rm -rf $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon-bin mv $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon $$(pwd)/debian/newmoon/usr/lib/newmoon/newmoon - rm -rf $$(pwd)/debian/usr/bin/palemoon + rm -rf $$(pwd)/debian/newmoon/usr/bin/palemoon override_dh_shlibdeps: dh_shlibdeps -l /usr/lib/newmoon -- cgit From 309ba3f820504670643f1338d8a752b236a31672 Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 23 Aug 2020 07:12:41 -0400 Subject: use ENABLE_STRIP in d/rules This is to actually use the change to strip objects before linking libxul that Gord provided. --- newmoon/debian/rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newmoon/debian/rules') diff --git a/newmoon/debian/rules b/newmoon/debian/rules index 10797b7..461d685 100755 --- a/newmoon/debian/rules +++ b/newmoon/debian/rules @@ -27,7 +27,7 @@ override_dh_auto_configure: cp ${MCFILE} mozconfig override_dh_auto_build: - make -f client.mk build + make -f client.mk build ENABLE_STRIP=1 override_dh_auto_install: make -f client.mk DESTDIR=$$(pwd)/debian/newmoon prefix=/usr \ -- cgit