]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/18-osd_login-sbindir.patch
Add 18-osd_login-sbindir.patch to avoid FTBFS
[nfs-utils.git] / debian / patches / 18-osd_login-sbindir.patch
1 From d4d392087f8ee049ed8f476e5ae780cbc0d0012a Mon Sep 17 00:00:00 2001
2 From: NeilBrown <neilb@suse.de>
3 Date: Thu, 17 May 2012 08:14:57 -0400
4 Subject: [PATCH] osd_login - ensure /sbin is created before installation.
5
6 If we use a more standard approach to describing the osd_login
7 script, the automake infrastructure will create /sbin before
8 attempting installation.
9 This is important for: make DESTDIR=/empty-dir install
10
11 Signed-off-by: NeilBrown <neilb@suse.de>
12 Signed-off-by: Steve Dickson <steved@redhat.com>
13 ---
14  utils/osd_login/Makefile.am |   11 ++++-------
15  1 files changed, 4 insertions(+), 7 deletions(-)
16
17 diff --git a/utils/osd_login/Makefile.am b/utils/osd_login/Makefile.am
18 index adc493a..20c2d8c 100644
19 --- a/utils/osd_login/Makefile.am
20 +++ b/utils/osd_login/Makefile.am
21 @@ -1,12 +1,9 @@
22  ## Process this file with automake to produce Makefile.in
23  
24 -OSD_LOGIN_FILES= osd_login
25 +# These binaries go in /sbin (not /usr/sbin), and that cannot be
26 +# overridden at config time.
27 +sbindir = /sbin
28  
29 -EXTRA_DIST= $(OSD_LOGIN_FILES)
30 -
31 -all-local: $(OSD_LOGIN_FILES)
32 -
33 -install-data-hook:
34 -       $(INSTALL) --mode 755 osd_login $(DESTDIR)/sbin/osd_login
35 +sbin_SCRIPTS = osd_login
36  
37  MAINTAINERCLEANFILES = Makefile.in
38 -- 
39 1.7.4.1