[DRBD-user] Building RPMs for RHEL5 with 8.3.7

Florian Haas florian.haas at linbit.com
Tue Jan 26 13:03:14 CET 2010

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On 2010-01-26 09:29, Adrian Revill wrote:
> Thx Floran
> 
> I got the rpm's to build correctly with
> 
> # ./configure --enable-spec --with-km
> # make tgz
> # cp drbd-8.3.7.tar.gz /home/brewbuilder/rpmbuild/SOURCES/
> this is the build env set up in my .rpmmacros
> 
> # rpmbuild  -bb drbd.spec --with rgmanager --without pacemaker --without
> xen --without heartbeat --define 'kdir
> /usr/src/kernels/2.6.18-164.11.1.el5-x86_64/' --define 'kernelversion
> 2.6.18-164.11.1.el5'

You should be able to leave out the kdir and kernelversion defines here;
they only apply to the kernel module build.

> # rpmbuild  -bb drbd-km.spec --with rgmanager --without pacemaker
> --without xen --without heartbeat --define 'kdir
> /usr/src/kernels/2.6.18-164.11.1.el5-x86_64/' --define 'kernelversion
> 2.6.18-164.11.1.el5'

And here, you can leave off the --with/--without flags, as _those_ only
apply to the userland build. :)

> 
> Perhaps you could get a small example like this in the docs for people
> like me who dont really understand the full rpm building process

Will do, yes.

Cheers,
Florian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20100126/016d562d/attachment.pgp>


More information about the drbd-user mailing list