Skip to contentSkip to conversation

0.7.5 release tomorrow...

Drbd-dev Philipp Reisner 4 participants 11 messages Sep 29, 2004 – Oct 6, 2004

Subsystems (2)
lore
Share & tools
lore

Philipp Reisner

author maintainer
#0 lore raw

Hi,

I will create the 0.7.5 tarball tomorrow (as long as nobody objects)

-philipp

Signature · 3 lines
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :
maintainer
#1 lore raw

/ 2004-09-29 10:54:13 +0200
\ Philipp Reisner:

Quoted 3 lines

Hi,

I will create the 0.7.5 tarball tomorrow (as long as nobody objects)

hm. how about first
svn remove benchmark doc/{HOWTO,ja,pt_BR}
?

none of them applies anymore. adding a note to NFS-Server-README.txt as done in trunk already won't hurt either.

lge

#2 lore raw
In reply to Philipp Reisner

Philipp,

Can you please apply this patch to the debian directory or can you give me write access to the ./debian/ directory? There are a bunch of renames, add/removes in the diff, so it might be easier if I do it myself.. I did change the binary package names to drbd0.7 and drbd0.7-source... David, do you have some more changes?

Philipp

control +6 -2
Index: control
===================================================================
@@ -6,10 +6,12 @@
 Build-Depends: debhelper (>= 4), debconf-utils, sp, docbook-utils, bison, flex
 Standards-Version: 3.6.1
 
-Package: drbd
+Package: drbd0.7
 Architecture: any
 Section: misc
 Depends: debconf, ${misc:Depends}
+Conflicts: drbd (<< 0.7)
+Provides: drbd
 Suggests: heartbeat
 Description: RAID 1 over tcp/ip for Linux utilities
  Drbd is a block device which is designed to build high availability
@@ -24,10 +26,12 @@
  .
  Homepage: http://www.drbd.org
 
-Package: drbd-source
+Package: drbd0.7-source
 Architecture: all
 Section: misc
 Depends: module-assistant
+Conflicts: drbd-source (<< 0.7)
+Provides: drbd-source
 Recommends:  dpkg-dev, kernel-package, debhelper (>= 4), debconf-utils
 Description: RAID 1 over tcp/ip for Linux module source
  Drbd is a block device which is designed to build high availability
drbd.install +0 -5
Index: drbd.install
===================================================================
@@ -1,5 +0,0 @@
-user/drbdsetup sbin
-user/drbdadm sbin
-scripts/drbd etc/init.d
-scripts/drbddisk etc/ha.d/resource.d
-scripts/drbd.conf etc
control.modules +0 -37
Index: control.modules
===================================================================
@@ -1,37 +0,0 @@
-Source: drbd
-Section: ha
-Priority: extra
-Maintainer: David Krovich <[email protected]>
-Build-Depends: debhelper (>= 4), kernel-source, cpio, debconf-utils
-Description: RAID 1 over tcp/ip for Linux
- Drbd is a block device which is designed to build high availability
- clusters by providing a virtual shared device which keeps disks in nodes
- synchronised using TCP/IP. This simulates RAID 1 but avoiding the 
- use of uncommon hardware (shared SCSI buses or Fibre Channel). 
- It is currently limited to fail-over HA clusters.
- .
- This package contains the programs that will control the 
- drbd kernel module provided in drbd-source. You will need a clustering
- service (such as heartbeat) to fully implement it.
- .
- Homepage: http://www.drbd.org
-
-Package: drbd-module-#KVERS#
-Architecture: any
-Recommends:  dpkg-dev, kernel-package, debhelper (>= 4), debconf-utils, drbd
-Description: RAID 1 over tcp/ip for Linux kernel module.
- This package provides the kernel module for linux kernel #KVERS#
- You have to install the drbd package to be able to use it
- .
- Drbd is a block device which is designed to build high availability
- clusters by providing a virtual shared device which keeps disks in nodes
- synchronised using TCP/IP. This simulates RAID 1 but avoiding the 
- use of uncommon hardware (shared SCSI buses or Fibre Channel). 
- It is currently limited to fail-over HA clusters.
- .
- This package contains the programs that will control the 
- drbd kernel module provided in drbd-source. You will need a clustering
- service (such as heartbeat) to fully implement it.
- .
- Homepage: http://www.drbd.org
-
drbd.postrm +0 -6
Index: drbd.postrm
===================================================================
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-if [ "$1" = "purge" ] ; then
-	update-rc.d drbd remove >/dev/null
-fi
-#DEBHELPER#
drbd.docs +0 -1
Index: drbd.docs
===================================================================
@@ -1 +0,0 @@
-documentation/NFS-Server-README.txt
conffiles +0 -3
Index: conffiles
===================================================================
@@ -1,3 +0,0 @@
-/etc/init.d/drbd
-/etc/drbd.conf
-/etc/ha.d/resource.d/drbddisk
drbd-source.dirs +0 -5
Index: drbd-source.dirs
===================================================================
@@ -1,5 +0,0 @@
-usr/src/modules/drbd/debian
-usr/src/modules/drbd/drbd
-
-
-
control.in.MODULE +0 -23
Index: control.in.MODULE
===================================================================
@@ -1,23 +0,0 @@
-Source: drbd
-Section: misc
-Priority: extra
-Maintainer: David Krovich <[email protected]>
-Build-Depends: debhelper (>= 4), debconf-utils, sp, docbook-utils, kernel-source
-Standards-Version: 3.5.10
-
-Package: drbd-modules-(KERNEL_VERSION)
-Architecture: all
-Section: misc
-Recommends:  dpkg-dev, kernel-package, debhelper (>= 4), debconf-utils
-Description: RAID 1 over tcp/ip for Linux module source
- Drbd is a block device which is designed to build high availability
- clusters by providing a virtual shared device which keeps disks in nodes
- synchronised using TCP/IP. This simulates RAID 1 but avoiding the 
- use of uncommon hardware (shared SCSI buses or Fibre Channel). 
- It is currently limited to fail-over HA clusters.
- .
- This package contains the programs that will control the 
- drbd kernel module provided in drbd-source. You will need a clustering
- service (such as heartbeat) to fully implement it.
- .
- Homepage: http://www.drbd.org
rules.MODULE +0 -133

133 lines not on this page · raw message

compat +1 -0
Index: compat
===================================================================
@@ -0,0 +1 @@
+4
Makefile.modules +0 -6
Index: Makefile.modules
===================================================================
@@ -1,6 +0,0 @@
-all:
-	make -C drbd all
-
-clean:
-	make -C drbd clean
-
changelog +2 -2
Index: changelog
===================================================================
@@ -1,12 +1,12 @@
-drbd (0.7.4-2) unstable; urgency=low
+drbd (0.7.5-1) unstable; urgency=low
 
   * Added bison, flex to Build-Depends
   * Call 'make clean' in drbd directory
   * Upgraded to debian-policy 3.6.1
   * Rewritten debian/rules using module-assistant
+  * Change binary package name to drbd0.7
   * Added myself as Uploader
 
-
  -- Philipp Hug <[email protected]>  Tue, 14 Sep 2004 23:25:12 +0200
 
 drbd (0.7.4-1) unstable; urgency=low
rules +12 -17
Index: rules
===================================================================
@@ -17,7 +17,6 @@
 -include $(MA_DIR)/include/generic.make
 -include $(MA_DIR)/include/common-rules.make
 
-
 CFLAGS = -Wall -g
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -98,24 +97,24 @@
 	dh_installdirs -i
 
 
-	cp -a drbd/* debian/drbd-source/usr/src/modules/drbd/drbd
-	cp Makefile debian/drbd-source/usr/src/modules/drbd
-	cp drbd/linux/drbd_config.h debian/drbd-source/usr/src/modules/drbd
-	mkdir debian/drbd-source/usr/src/modules/drbd/scripts/
-	cp -a scripts/adjust_drbd_config_h.sh debian/drbd-source/usr/src/modules/drbd/scripts/
+	cp -a drbd/* debian/drbd0.7-source/usr/src/modules/drbd/drbd
+	cp Makefile debian/drbd0.7-source/usr/src/modules/drbd
+	cp drbd/linux/drbd_config.h debian/drbd0.7-source/usr/src/modules/drbd
+	mkdir debian/drbd0.7-source/usr/src/modules/drbd/scripts/
+	cp -a scripts/adjust_drbd_config_h.sh debian/drbd0.7-source/usr/src/modules/drbd/scripts/
 
 	# install driver source
-	#cp -a drbd debian/drbd-source/usr/src/modules/drbd/
-	#mkdir debian/drbd-source/usr/src/modules/drbd/scripts/
-	#cp -a scripts/adjust_drbd_config_h.sh debian/drbd-source/usr/src/modules/drbd/scripts/
-	#ln -s drbd debian/drbd-source/usr/src/modules/drbd/Linux-2.4
-	#ln -s drbd debian/drbd-source/usr/src/modules/drbd/Linux-2.6
+	#cp -a drbd debian/drbd0.7-source/usr/src/modules/drbd/
+	#mkdir debian/drbd0.7-source/usr/src/modules/drbd/scripts/
+	#cp -a scripts/adjust_drbd_config_h.sh debian/drbd0.7-source/usr/src/modules/drbd/scripts/
+	#ln -s drbd debian/drbd0.7-source/usr/src/modules/drbd/Linux-2.4
+	#ln -s drbd debian/drbd0.7-source/usr/src/modules/drbd/Linux-2.6
 
 	# install debian/ files
-	cd debian ; cp changelog control compat *.modules.in rules copyright drbd-source/usr/src/modules/drbd/debian
+	cd debian ; cp changelog control compat *.modules.in rules copyright drbd0.7-source/usr/src/modules/drbd/debian
 
 	# tar the stuff
-	cd debian/drbd-source/usr/src/ ; tar pzfvc drbd.tar.gz modules ; rm -rf modules
+	cd debian/drbd0.7-source/usr/src/ ; tar pzfvc drbd0.7.tar.gz modules ; rm -rf modules
 
 	dh_install -i
 
@@ -125,10 +124,6 @@
 	dh_clean -k -s 
 	dh_installdirs -s
 
-	# Add here commands to install the arch part of the package into 
-	# debian/tmp.
-	#$(MAKE) install DESTDIR=$(CURDIR)/debian/drbd
-
 	dh_install -s
 # Must not depend on anything. This is to be called by
 # binary-arch/binary-indep
drbd.postinst +0 -14
Index: drbd.postinst
===================================================================
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-if [ -x "/etc/init.d/drbd" ]; then
-	update-rc.d drbd defaults 70 8 >/dev/null
-fi
-
-# Make sure /dev/nb[0-7] devices exist
-# cd /dev; for a in `seq 0 7`; do MAKEDEV nb$a; done
-
-for i in `seq 0 15` ; do 
-    test -b /dev/drbd$i || mknod -m 0660 /dev/drbd$i b 147 $i; 
-done
-
-#DEBHELPER#
drbd.prerm +0 -6
Index: drbd.prerm
===================================================================
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-if [ -x "/etc/init.d/drbd" ]; then
-	/etc/init.d/drbd stop
-fi
-#DEBHELPER#
drbd.manpages +0 -5
Index: drbd.manpages
===================================================================
@@ -1,5 +0,0 @@
-documentation/drbd.8
-documentation/drbd.conf.5
-documentation/drbdsetup.8
-documentation/drbdadm.8
-
drbd.dirs +0 -4
Index: drbd.dirs
===================================================================
@@ -1,4 +0,0 @@
-usr/bin
-etc
-etc/init.d
-etc/ha.d/resource.d
author maintainer
#3 lore raw
In reply to Philipp Reisner
Quoted 4 lines · Philipp Reisner

Hi,

I will create the 0.7.5 tarball tomorrow (as long as nobody objects)

Hi,

Ok, too much work today, will do 0.7.5 tagging on Friday.

-philipp

Signature · 3 lines
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :
#4 lore raw

I created some pre-release debian packages based on the current svn drbd version. So if anyone wants to try 'em? I didn't have the time to really test them yet...

add this to your sources.list:
deb http://debian.hug.cx/debian/ unstable/

David: do you have some more fixes?
Philipp
----- Original Message ----- From: "Philipp Reisner" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 30, 2004 2:10 PM
Subject: Re: [Drbd-dev] 0.7.5 release tomorrow...

Quoted 21 lines · Philipp Reisner
Quoted 4 lines

Hi,

I will create the 0.7.5 tarball tomorrow (as long as nobody objects)

Hi,

Ok, too much work today, will do 0.7.5 tagging on Friday.

-philipp

Signature · 7 lines
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :
_______________________________________________
drbd-dev mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-dev
#5 lore raw
Quoted 2 lines · Philipp Hug

I created some pre-release debian packages based on the current svn drbd version. So if anyone wants to try 'em? I didn't have the time to really test them yet...

Trying from a fresh checkout:

helmut@xp2400:~$ uname -a
Linux xp2400 2.4.26-1-386 #1 Tue Aug 24 13:31:19 JST 2004 i686 GNU/Linux
helmut@xp2400:~$ svn co http://svn.drbd.org/drbd/tags/drbd-0.7.5
helmut@xp2400:~$ cd drbd-0.7.5
helmut@xp2400:~/drbd-0.7.5$ su
Password:
xp2400:/home/helmut/drbd-0.7.5# dpkg-buildpackage -us -uc -b
dpkg-buildpackage: source package is drbd
dpkg-buildpackage: source version is 0.7.5-1
[...]
cd user && /usr/bin/make
make[1]: Entering directory `/home/helmut/drbd-0.7.5/user'
gcc -c -Wall -I../drbd   -c -o drbdsetup.o drbdsetup.c
make[1]: *** No rule to make target `../drbd/drbd_buildtag.o', needed by `drbdsetup'.  Stop.
make[1]: Leaving directory `/home/helmut/drbd-0.7.5/user'
make: *** [build-arch-stamp] Error 2

After
make install-tools
as workaround it builds .debs and works the usual debian way.

Next item:
Whatever the reason is, the following is necessary with current packaging

xp2400:/home/helmut# mv /lib/modules/2.4.26/kernel/drivers/block/drbd.o /lib/modules/2.4.26-1-386/kernel/drivers/block/drbd.o

to make this

xp2400:/usr/src# update-modules
xp2400:/usr/src# modprobe drbd

working in Sarge.
Now I will try in Sarge + 2.6.8-1, coming soon ...

Quoted 2 lines

add this to your sources.list:
deb http://debian.hug.cx/debian/ unstable/

| Forbidden
|
| You don't have permission to access /debian/ on this server.

BTW:
http://packages.debian.org/unstable/misc/drbd
| Not Found
| The requested URL /unstable/misc/drbd was not found on this server.

Helmut Wollmersdorfer

#6 lore raw
Quoted 4 lines · Helmut Wollmersdorfer

Next item:
Whatever the reason is, the following is necessary with current packaging

xp2400:/home/helmut# mv /lib/modules/2.4.26/kernel/drivers/block/drbd.o /lib/modules/2.4.26-1-386/kernel/drivers/block/drbd.o

[...]

Quoted 1 line

Now I will try in Sarge + 2.6.8-1, coming soon ...

It needs the same:

via1:/usr/src# mv /lib/modules/2.6.8/kernel/drivers/block/drbd.ko /lib/modules/2.6.8-1-386/kernel/drivers/block/drbd.ko

Helmut Wollmersdorfer

#7 lore raw
In reply to Helmut Wollmersdorfer
Quoted 11 lines

[...]
cd user && /usr/bin/make
make[1]: Entering directory `/home/helmut/drbd-0.7.5/user'
gcc -c -Wall -I../drbd -c -o drbdsetup.o drbdsetup.c
make[1]: *** No rule to make target ../drbd/drbd_buildtag.o', needed by drbdsetup'. Stop. make[1]: Leaving directory `/home/helmut/drbd-0.7.5/user'
make: *** [build-arch-stamp] Error 2

After
make install-tools
as workaround it builds .debs and works the usual debian way.

Shouldn't drbd_buildtag.c be included in the release tarball? If not, I'll add the workaround to the debian packaging...

Quoted 4 lines

Next item:
Whatever the reason is, the following is necessary with current packaging

xp2400:/home/helmut# mv /lib/modules/2.4.26/kernel/drivers/block/drbd.o /lib/modules/2.4.26-1-386/kernel/drivers/block/drbd.o

How did you build the kernel module? module-assistant? make-kpkg?
anyway: looks like a bug... I'll fix it..

philipp

#8 lore raw
Quoted 1 line · Philipp Hug

Shouldn't drbd_buildtag.c be included in the release tarball?

I used svn checkout.

Quoted 1 line

If not, I'll add the workaround to the debian packaging...

Thx in advance. Maybe the easier way to support debian packaging from svn would be, to provide something like "make buildtag".

Quoted 3 lines
Quoted 1 line
xp2400:/home/helmut# mv /lib/modules/2.4.26/kernel/drivers/block/drbd.o /lib/modules/2.4.26-1-386/kernel/drivers/block/drbd.o

How did you build the kernel module? module-assistant? make-kpkg?

make-kpkg
I never used module-assistant.

Quoted 1 line

anyway: looks like a bug... I'll fix it..

Seems so. Take a look into pcmcia-modules, how this problem is solved there.

Helmut Wollmersdorfer

maintainer
#9 lore raw
In reply to Philipp Hug

/ 2004-10-06 09:24:07 +0200
\ Philipp Hug:

Quoted 9 lines
Quoted 9 lines

[...]
cd user && /usr/bin/make
make[1]: Entering directory `/home/helmut/drbd-0.7.5/user'
gcc -c -Wall -I../drbd -c -o drbdsetup.o drbdsetup.c
make[1]: *** No rule to make target ../drbd/drbd_buildtag.o', needed by drbdsetup'. Stop.
make[1]: Leaving directory `/home/helmut/drbd-0.7.5/user'
make: *** [build-arch-stamp] Error 2

Quoted 5 lines
Quoted 3 lines

After
make install-tools
as workaround it builds .debs and works the usual debian way.

Shouldn't drbd_buildtag.c be included in the release tarball? If not, I'll add the workaround to the debian packaging...

now, if I do

svn co http://svn.drbd.org/drbd/branches/drbd-0.7
cd drbd-0.7
make tarball
tar tvzf drbd-0.7.5.tar.gz | grep buildtag
drbd/drbd_buildtag.c

# aha. is it missing from the debian thing only?

mkdir tmp
cd tmp
tar xvzf ../drbd-0.7.5.tar.gz
cd drbd-0.7.5
cd user && make

# does work, too.

BTW, you are not supposed to do "cd user && make", you are supposed to do "make tools" instead, which does a little bit more than that.

Quoted 8 lines
Quoted 5 lines

Next item:
Whatever the reason is, the following is necessary with current packaging

xp2400:/home/helmut# mv /lib/modules/2.4.26/kernel/drivers/block/drbd.o 
/lib/modules/2.4.26-1-386/kernel/drivers/block/drbd.o

How did you build the kernel module? module-assistant? make-kpkg?
anyway: looks like a bug... I'll fix it..

drbd gets its kernel release (where to install) from the kernel makefile itself (which should know...). debian knows better?

lge

#10 lore raw
Quoted 8 lines · Lars Ellenberg

/ 2004-10-06 09:24:07 +0200
\ Philipp Hug:

now, if I do

svn co http://svn.drbd.org/drbd/branches/drbd-0.7
cd drbd-0.7
make tarball

Aha. Needs to be included in debian packaging HOWTO.

Quoted 4 lines

tar tvzf drbd-0.7.5.tar.gz | grep buildtag
drbd/drbd_buildtag.c

# aha. is it missing from the debian thing only?

Only if you try to follow the current debian packaging wiki.

Quoted 7 lines

mkdir tmp
cd tmp
tar xvzf ../drbd-0.7.5.tar.gz
cd drbd-0.7.5
cd user && make

# does work, too.

Obviously;-)
That's a developer test of the makefile, but not an acceptance test (or sanity check) of drbd-0.7.5/debian.

An ideal installation test should be:
- a fresh instance of $Distri $Version $Kernel $Kernel-Variant
- setup $Package preconditions according to $Package documentation
- a fresh instance $Package download
use_cases[SVN current | SVN $Version | $Version.tar.gz | ...]
- follow installation instructions
- check post conditions (=expected result)
- report differences between expected and actual behaviour (expected and/or actual can be wrong)

Anybody can imagine the exploding number of test cases.
I only did Debian Sarge pre_RC2 [2.4.26-1-386|2.6.8-1-386] [SVN 0.7.5].

Quoted 7 lines
Quoted 4 lines
Quoted 1 line
xp2400:/home/helmut# mv /lib/modules/2.4.26/kernel/drivers/block/drbd.o /lib/modules/2.4.26-1-386/kernel/drivers/block/drbd.o

How did you build the kernel module? module-assistant? make-kpkg?
anyway: looks like a bug... I'll fix it..

drbd gets its kernel release (where to install) from the kernel makefile itself (which should know...). debian knows better?

Debian can know, but drbd/debian/control does wrong, i.e. Phil has to find out the appropriate debhelper (or whatsoever) function.

Helmut Wollmersdorfer