[linux-lvm] Debian packaging

Russell Coker russell at coker.com.au
Wed Dec 13 20:15:22 UTC 2000

I plan to take over the Debian package of lvm because the current maintainer 
hasn't fixed serious bugs for quite a while.

I have created packages for lvm 0.8.1 and lvm 0.9.  One change I think should 
be done is an option for ./configure to specify whether a shared library 
should be used or whether the programs should be statically linked.  If this 
is desired then someone please tell me which version I should create a patch 
against and I'll send it in.

Also as part of the Debian packaging I have put the following patch in to 
make it clean up all files after compiling:
diff -ruN ../LVM.orig/lvm-0.8.1.orig/Makefile.in lvm-0.8.1-0/Makefile.in
--- ../LVM.orig/lvm-0.8.1.orig/Makefile.in      Sun Nov 12 19:52:12 2000
+++ lvm-0.8.1-0/Makefile.in     Wed Dec 13 15:40:06 2000
@@ -39,4 +39,5 @@
 distclean: clean
        $(MAKE) -C tools distclean
        rm -f config.cache config.log config.status
-       rm -f Makefile make.tmpl
+       rm -f Makefile make.tmpl tools/Makefile tools/tools_and_lib.make.tmpl 
+              tools/lib/Makefile tools/man8/Makefile 

Also I have put in the following patch to work with the way Debian packages 
have different compile and install directories:
--- ../LVM.orig/lvm-0.8.1.orig/make.tmpl.in     Sun Nov 12 19:52:12 2000
+++ lvm-0.8.1-0/make.tmpl.in    Wed Dec 13 15:40:06 2000
@@ -35,11 +35,16 @@
 # Setup directory variables
 prefix = @prefix@
 exec_prefix = @exec_prefix@
-bindir = @bindir@
-sbindir = @sbindir@
-libdir = @libdir@
-infodir = @infodir@
-mandir = @mandir@
+bindir = ${PREFIX}@bindir@
+sbindir = ${PREFIX}@sbindir@
+libdir = ${PREFIX}@libdir@
+infodir = ${PREFIX}@infodir@
+mandir = ${PREFIX}@mandir@
+ifeq ($(TOP),)
+TOP := $(shell cd `for i in . .. ../..; do if [ -f $$i/LVM-HOWTO ]; then 
echo $$i; break; fi; done`; pwd)
+export TOP
 # helper scripts
 UNINSTALL = ${TOP}/autoconf/uninstall.pl

Also I would prefer to have the Debian packaging files in the upstream 
source.  They are about 5K of data in 11 files in a separate sub-directory.  
Please let me know if this would be desired/accepted as part of the LVM 
upstream source and I will send the relevant patch to you.

http://www.coker.com.au/bonnie++/     Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/       Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/     My home page

More information about the linux-lvm mailing list