Ubuntu Pastebin

Paste from paelzer at Tue, 24 Jan 2017 16:17:13 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
## Old Delta ##

diff --git a/debian/rules b/debian/rules
index 43b2366..dcec8ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,6 +19,13 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 endif
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+       export CC = $(DEB_HOST_GNU_TYPE)-gcc
+       INSTALL += --strip-program=$(DEB_HOST_GNU_TYPE)-strip
+endif
 
 build-arch:    config.status
        $(checkdir)


## But the new debian/rules is down to just dh: ##

$ cat debian/rules 
#! /usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
        dh $@

override_dh_auto_configure:
        dh_auto_configure -- --enable-shared --with-mailgroup

override_dh_fixperms:
        dh_fixperms
        @if [ -f debian/liblockfile-bin/usr/bin/dotlockfile ]; then \
                chgrp mail debian/liblockfile-bin/usr/bin/dotlockfile; \
                chmod 2755 debian/liblockfile-bin/usr/bin/dotlockfile; \
        fi
Download as text