[linux-lvm] Building outside source tree

AJ Lewis lewis at sistina.com
Tue Aug 21 17:12:29 UTC 2001


On Mon, Aug 20, 2001 at 09:58:02PM +0100, Bill Hay wrote:
> The following patch allows building the lvm utilities in a 
> seperate directory from the source.  It is a patch agains 1.0.1rc1
> and has been tested with linux 2.2.18.

Committed, with the following changes to make everything work:

diff -Nura --exclude CVS LVM-diff/PATCHES/Makefile.in LVM/PATCHES/Makefile.in
--- LVM-diff/PATCHES/Makefile.in	Tue Aug 21 11:47:00 2001
+++ LVM/PATCHES/Makefile.in	Tue Aug 21 11:48:50 2001
@@ -30,7 +30,7 @@
 CLEANED_DIR=cleaned
 CLEANER=@top_srcdir@/scripts/select_version
 PATCHER=@top_srcdir@/scripts/patch_fragment
-FRAGGER=@top_srcdir@/scripts/select_fragments
+FRAGGER=../scripts/select_fragments
 LVM_PATCH=./lvm-$(LVM_VERSION)-$(KERNEL_VERSION).patch
 
 ifneq (,$(findstring 2.2,$(KERNEL_VERSION)))
diff -Nura --exclude CVS LVM-diff/configure LVM/configure
--- LVM-diff/configure	Tue Aug 21 11:47:00 2001
+++ LVM/configure	Tue Aug 21 11:42:24 2001
@@ -2172,5 +2172,5 @@
 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
 
-ln -sf $srcdir/kernel/lvm.h tools/lib/lvm.h
+ln -sf $topobjdir/$srcdir/kernel/lvm.h tools/lib/lvm.h
 
diff -Nura --exclude CVS LVM-diff/configure.in LVM/configure.in
--- LVM-diff/configure.in	Tue Aug 21 11:47:00 2001
+++ LVM/configure.in	Tue Aug 21 11:42:20 2001
@@ -118,4 +118,4 @@
 tools/lib/Makefile							\
 tools/man8/Makefile							\
 )
-AC_OUTPUT_COMMANDS([ln -sf $srcdir/kernel/lvm.h tools/lib/lvm.h])
+AC_OUTPUT_COMMANDS([ln -sf $topobjdir/$srcdir/kernel/lvm.h tools/lib/lvm.h])
diff -Nura --exclude CVS LVM-diff/tools/man8/Makefile.in LVM/tools/man8/Makefile.in
--- LVM-diff/tools/man8/Makefile.in	Tue Aug 21 11:47:00 2001
+++ LVM/tools/man8/Makefile.in	Tue Aug 21 11:29:44 2001
@@ -39,6 +39,7 @@
 
 install-man8: remove-man8
 	@echo "*** Installing $(MAN_PAGES) in $(DESTDIR)$(MAN8DIR) ***"
+	@INSTALL@ -d $(DESTDIR)$(MAN8DIR)/
 	@INSTALL@  -o $(OWNER) -g $(GROUP) -m 444 $(ALL_MANUALS) $(DESTDIR)$(MAN8DIR)/  
 
 remove-man8:

-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: lewis at sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Quitters never win, and winners never quit,
but those who never quit AND never win are idiots.
-----End Obligatory Humorous Quote------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20010821/62ce8e42/attachment.sig>


More information about the linux-lvm mailing list