Re: [Linux-HA] Anybody succeded in creating a debian package of pacemaker?

2009-02-16 Thread Andrew Beekhof
On Sun, Feb 15, 2009 at 13:51, Michael Schwartzkopff mi...@multinet.de wrote:
 Hi,

 I am trying to create a debian lenny package from pacemaker. When I use the
 way advertised on clusterlabs.org

 dpkg-buildpackage -rfakeroot -uc -us

 I get an error about a missing file service_crm.a.

 When I install the libopenais2 package (and development package) from lenny
 repository

This is your problem.
The patches Pacemaker needs are not yet upstream (that should
hopefully be resolved this week) and therefor also not in Lenny.

This is mentioned on the install page:
   http://clusterlabs.org/wiki/Install#OpenAIS

 I get an error about missing symbols on libSaMsg. Version 2 is
 installed from the packages, pacemaker expects version 3.

 When I add --without-ais in the configure line of the debian/rules file to
 create the package without AIS support to get rid of the library version
 problem I get the first error (see above) again.

Just remove all references to service_crm.a entry from files in the
debian directory.
Alternatively I'd take a patch that allowed the build to pass both
with or without ais supported.

 So it seems it is not possible to build a pacemaker package for debian at
 the moment from the sources. Neither with ais support nor without. Or at
 least it is not as straight forward as I thought it should be.

 So I would be interested, if anybody succeed in building a debian (etch or
 lenny) package lately. Please mail me, Thanks.

 Michael.
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


[Linux-HA] Anybody succeded in creating a debian package of pacemaker?

2009-02-15 Thread Michael Schwartzkopff

Hi,

I am trying to create a debian lenny package from pacemaker. When I use 
the way advertised on clusterlabs.org


dpkg-buildpackage -rfakeroot -uc -us

I get an error about a missing file service_crm.a.

When I install the libopenais2 package (and development package) from 
lenny repository I get an error about missing symbols on libSaMsg. 
Version 2 is installed from the packages, pacemaker expects version 3.


When I add --without-ais in the configure line of the debian/rules 
file to create the package without AIS support to get rid of the library 
version problem I get the first error (see above) again.


So it seems it is not possible to build a pacemaker package for debian 
at the moment from the sources. Neither with ais support nor without. Or 
at least it is not as straight forward as I thought it should be.


So I would be interested, if anybody succeed in building a debian (etch 
or lenny) package lately. Please mail me, Thanks.


Michael.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Anybody succeded in creating a debian package of pacemaker?

2009-02-15 Thread Brice Figureau

Hi,


On 15/02/09 13:51, Michael Schwartzkopff wrote:
 Hi,

 I am trying to create a debian lenny package from pacemaker. When I use
 the way advertised on clusterlabs.org

 dpkg-buildpackage -rfakeroot -uc -us

 I get an error about a missing file service_crm.a.

Yes, I did, see the last post of the following thread:
http://www.gossamer-threads.com/lists/linuxha/users/52923

Basically, I removed every openais reference from the debian/rules file 
(since I'm running with heartbeat).

--
Brice Figureau
My Blog: http://www.masterzen.fr/
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Anybody succeded in creating a debian package of pacemaker?

2009-02-15 Thread Stelio Plautz
Am Sun, 15 Feb 2009 13:51:59 +0100
schrieb Michael Schwartzkopff mi...@multinet.de:

Hi,
yes, Pacemaker-1-0-f228d820ba27 on server with debian etch AMD64.

regards, stelio



 Hi,
 
 I am trying to create a debian lenny package from pacemaker. When I
 use the way advertised on clusterlabs.org
 
 dpkg-buildpackage -rfakeroot -uc -us
 
 I get an error about a missing file service_crm.a.
 
 When I install the libopenais2 package (and development package) from 
 lenny repository I get an error about missing symbols on libSaMsg. 
 Version 2 is installed from the packages, pacemaker expects version 3.
 
 When I add --without-ais in the configure line of the debian/rules 
 file to create the package without AIS support to get rid of the
 library version problem I get the first error (see above) again.
 
 So it seems it is not possible to build a pacemaker package for
 debian at the moment from the sources. Neither with ais support nor
 without. Or at least it is not as straight forward as I thought it
 should be.
 
 So I would be interested, if anybody succeed in building a debian
 (etch or lenny) package lately. Please mail me, Thanks.
 
 Michael.
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
 
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Anybody succeded in creating a debian package of pacemaker?

2009-02-15 Thread Michael Schwartzkopff

Stelio Plautz schrieb:

Am Sun, 15 Feb 2009 13:51:59 +0100
schrieb Michael Schwartzkopff mi...@multinet.de:

Hi,
yes, Pacemaker-1-0-f228d820ba27 on server with debian etch AMD64.

regards, stelio
  

Hi,

any details how you achieved it? Thanks.

Michael.
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Anybody succeded in creating a debian package of pacemaker?

2009-02-15 Thread Michael Schwartzkopff

Brice Figureau schrieb:

Hi,


On 15/02/09 13:51, Michael Schwartzkopff wrote:
 Hi,

 I am trying to create a debian lenny package from pacemaker. When I use
 the way advertised on clusterlabs.org

 dpkg-buildpackage -rfakeroot -uc -us

 I get an error about a missing file service_crm.a.

Yes, I did, see the last post of the following thread:
http://www.gossamer-threads.com/lists/linuxha/users/52923

Basically, I removed every openais reference from the debian/rules 
file (since I'm running with heartbeat).

--
Brice Figureau

hi,

Thanks. I read the thread. Can you remember what references in what 
files you removed? Thanks.


Michael.

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] Anybody succeded in creating a debian package of pacemaker?

2009-02-15 Thread Michael Schwartzkopff
 Basically, I removed every openais reference from the debian/rules 
 file (since I'm running with heartbeat).
 -- 
 Brice Figureau

 hi,

 Thanks. I read the thread. Can you remember what references in what 
 files you removed? Thanks.

Hi,

I found it out myself. For everybody else, who wants to make debs from 
pacemaker WITHOUT ais support:

1) Remove the line

usr/lib/service_crm.a

from debian/pacemaker-dev.install 

2) Open the file debian/rules and goto the line beginning with cfg:=
Replace the option --with-lcrso-dir=$(LCRSO) with
--without-ais

3) in the file debian/rules search the lines
install -d $(PWD)/debian/pacemaker/$(LCRSO)
install -m0644 $(DTMP)/$(LCRSO)/pacemaker.lcrso \
$(PWD)/debian/pacemaker/$(LCRSO)/pacemaker.lcrso

comment them out.

4) Create the deb with
dpkg-buildpackage -rfakeroot -us -uc


Greetings, Michael.

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems