Merge lp:~peter-pearse/ubuntu/natty/libgcrypt11/prop001 into lp:ubuntu/natty/libgcrypt11

Proposed by Peter Pearse
Status: Needs review
Proposed branch: lp:~peter-pearse/ubuntu/natty/libgcrypt11/prop001
Merge into: lp:ubuntu/natty/libgcrypt11
Diff against target: 60 lines (+27/-1)
2 files modified
debian/changelog (+6/-0)
debian/rules (+21/-1)
To merge this branch: bzr merge lp:~peter-pearse/ubuntu/natty/libgcrypt11/prop001
Reviewer Review Type Date Requested Status
Steve Langasek Pending
Review via email: mp+56604@code.launchpad.net

Description of the change

Needs to find libgpg-error using gpg-error-config mechanism

To post a comment you must log in.

Unmerged revisions

30. By Peter Pearse

Adjust gpg-error paths for crossing.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-03-22 19:45:07 +0000
3+++ debian/changelog 2011-04-06 16:11:33 +0000
4@@ -1,3 +1,9 @@
5+libgcrypt11 (1.4.6-4ubuntu3) natty; urgency=low
6+
7+ * Adjust gpg-error paths for crossing
8+
9+ -- Peter Pearse <peter.pearse@linaro.org> Wed, 06 Apr 2011 16:04:37 +0000
10+
11 libgcrypt11 (1.4.6-4ubuntu2) natty; urgency=low
12
13 * Move libgcrypt.so into /usr/lib/$(DEB_HOST_MULTIARCH) where it belongs.
14
15=== modified file 'debian/rules'
16--- debian/rules 2011-03-22 19:42:11 +0000
17+++ debian/rules 2011-04-06 16:11:33 +0000
18@@ -1,6 +1,21 @@
19 #! /usr/bin/make -f
20 # Build the libgcrypt package for Debian.
21
22+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
23+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
24+
25+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
26+
27+ here = $(shell pwd)
28+
29+common-configure-impl::
30+ @echo "Set up cross gpg-error-config before configure is called"
31+ mkdir -p $(here)/bin
32+ sed 's/\/lib\/.*linux-gnu/\/lib\/$(DEB_HOST_GNU_TYPE)/' /usr/bin/gpg-error-config > $(here)/bin/gpg-error-config
33+ chmod a+x $(here)/bin/gpg-error-config
34+ -ln -s /usr/$(DEB_HOST_GNU_TYPE)/lib/libgpg-error.so $(here)/libgpg-error.so
35+
36+endif
37
38 include /usr/share/cdbs/1/rules/debhelper.mk
39 include /usr/share/cdbs/1/class/autotools.mk
40@@ -8,7 +23,9 @@
41 DEB_CONFIGURE_EXTRA_FLAGS := --enable-noexecstack \
42 --enable-ld-version-script --libdir=/lib/$(DEB_HOST_MULTIARCH)
43 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
44-DEB_MAKE_CHECK_TARGET = check
45+ DEB_MAKE_CHECK_TARGET = check
46+else
47+ DEB_CONFIGURE_EXTRA_FLAGS += --with-gpg-error-prefix=$(here)
48 endif
49
50 DEB_DH_STRIP_ARGS = --dbg-package=libgcrypt11-dbg
51@@ -16,6 +33,9 @@
52 --add-udeb=libgcrypt11-udeb
53
54 clean::
55+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
56+ if [ -d ./bin ] ; then rm-fr ./bin ; fi
57+endif
58 if test -f ltmain.sh ; then touch ltmain.sh; else libtoolize -c -f --automake; fi
59 if test -f aclocal.m4 ; then touch aclocal.m4; else aclocal-1.9 -I m4 ; fi
60 if test -f config.h.in ; then touch config.h.in; else autoheader2.50; fi

Subscribers

People subscribed via source and target branches

to all changes: