Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-25 Thread Steven McCoy
On 25 March 2011 17:53, Martin Lucina  wrote:

> steven.mc...@miru.hk said:
> > On 24 March 2011 19:05, Martin Lucina  wrote:
> >
> > If it's the former, I'll have to sort this out with the Debian guys,
> not
> > sure if bundling a separate OpenPGM library can get through policy.
> >
> >
> >
> > Distributions are likely to prefer separate packaging for the libraries.
>  I saw
> > a couple of days ago packages appearing in Gentoo:
> >
> > http://packages.gentoo.org/package/net-libs/openpgm
> >
> > They haven't a ØMQ 2.1 yet:
> >
> > http://packages.gentoo.org/package/net-libs/zeromq
>
> Indeed, and that is the preferred way for Debian going forward, I just
> wanted to get a 2.1 package out ASAP since packaging libpgm is extra work.
>
>
You can work from this if it helps:

http://groups.google.com/group/openpgm-dev/browse_thread/thread/3d7a955796cfb628/17d5afa55e110a97?lnk=gst&q=Debian+OpenPGM+packages#17d5afa55e110a97


-- 
Steve-o
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-25 Thread Martin Lucina
steven.mc...@miru.hk said:
> On 24 March 2011 19:05, Martin Lucina  wrote:
> 
> If it's the former, I'll have to sort this out with the Debian guys, not
> sure if bundling a separate OpenPGM library can get through policy.
> 
> 
> 
> Distributions are likely to prefer separate packaging for the libraries.  I 
> saw
> a couple of days ago packages appearing in Gentoo:
> 
> http://packages.gentoo.org/package/net-libs/openpgm
> 
> They haven't a ØMQ 2.1 yet:
> 
> http://packages.gentoo.org/package/net-libs/zeromq

Indeed, and that is the preferred way for Debian going forward, I just
wanted to get a 2.1 package out ASAP since packaging libpgm is extra work.

Martin
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-24 Thread Steven McCoy
On 24 March 2011 19:05, Martin Lucina  wrote:

> If it's the former, I'll have to sort this out with the Debian guys, not
> sure if bundling a separate OpenPGM library can get through policy.
>
>
Distributions are likely to prefer separate packaging for the libraries.  I
saw a couple of days ago packages appearing in Gentoo:

http://packages.gentoo.org/package/net-libs/openpgm

They haven't a ØMQ 2.1 yet:

http://packages.gentoo.org/package/net-libs/zeromq

-- 
Steve-o
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-24 Thread Martin Lucina
Hi Mikko,

mikko.koppa...@gmail.com said:
> sorry about this hassle, completely my fault not thinking about
> recursive make install installing openpgm artifacts as well. OpenPGM
> is still linked statically using libtool convenience archive, so that
> .so is not actually used by libzmq.so. There is a fix now for
> preventing automake from recursing into openpgm build dirs and this
> has been added to zeromq2-1 today.
> 
> Let me know if something doesn't work as expected.

Two problems, as tested using the output of "make dist" on zeromq2-1.git
HEAD, just now:

1) The libpgm API symbols are visible as exports of libzmq.so. Their symbol
visibility should be set to "hidden", otherwise libzmq can't coexist with
an application using libpgm externally. AFAIR, the old OpenPGM build system
did this by building all of OpenPGM with -fvisibility=hidden.

2) When doing a ./configure --with-pgm, the --with-pgm gets passed from the
toplevel configure to the OpenPGM configure. This doesn't actually break
anything but results in scary messages from configure saying "WARNING:
unrecognised option --with-pgm". This will confuse a lot of people
(including me...).

Cheers,

Martin
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-24 Thread Mikko Koppanen
On Thu, Mar 24, 2011 at 11:05 AM, Martin Lucina  wrote:
> Hi Mikko,
>
> I'm updating the Debian package of 2.1.3, and have hit a small snag.
>
> It seems that as part of the upgrade to OpenPGM 5.1.114 in 2.1.3 the build
> system has been completely reworked and OpenPGM is no longer statically
> linked into libzmq, but instead is built as a separate shared library.

Hi,

sorry about this hassle, completely my fault not thinking about
recursive make install installing openpgm artifacts as well. OpenPGM
is still linked statically using libtool convenience archive, so that
.so is not actually used by libzmq.so. There is a fix now for
preventing automake from recursing into openpgm build dirs and this
has been added to zeromq2-1 today.

Let me know if something doesn't work as expected.




-- 
Mikko Koppanen
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-24 Thread Steven McCoy
On 24 March 2011 19:23, Martin Lucina  wrote:

> steven.mc...@miru.hk said:
> > On 24 March 2011 19:05, Martin Lucina  wrote:
> >
> > It seems that as part of the upgrade to OpenPGM 5.1.114 in 2.1.3 the
> build
> > system has been completely reworked and OpenPGM is no longer
> statically
> > linked into libzmq, but instead is built as a separate shared
> library.
> >
> >
> >
> > It's actually a third option, ØMQ links against a libtool convenience
> archive,
> > libpgm.la.
> >
> > The problem with the 2.1.3 release is that it installs all the OpenPGM
> targets,
> > this is cleaned up in git for 2.1.4.
>
> Is there a patch/commit I can try out to see if the fix works ok in the
> Debian build now?
>
>
Try Mikko's repo:

$ *git clone -b fix-make-dist https://github.com/mkoppanen/zeromq2-1.git*

https://github.com/mkoppanen/zeromq2-1/tree/fix-make-dist

-- 
Steve-o
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-24 Thread Mikko Koppanen
On Thu, Mar 24, 2011 at 11:23 AM, Martin Lucina  wrote:
> Is there a patch/commit I can try out to see if the fix works ok in the
> Debian build now?
>

Hi Martin,

yes, this has been recently fixed. The very latest changes in
https://github.com/zeromq/zeromq2-1 should contain small amount of
fixes. The openpgm build artifacts are no longer installed.

-- 
Mikko Koppanen
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-24 Thread Martin Lucina
steven.mc...@miru.hk said:
> On 24 March 2011 19:05, Martin Lucina  wrote:
> 
> It seems that as part of the upgrade to OpenPGM 5.1.114 in 2.1.3 the build
> system has been completely reworked and OpenPGM is no longer statically
> linked into libzmq, but instead is built as a separate shared library.
> 
> 
> 
> It's actually a third option, ØMQ links against a libtool convenience archive,
> libpgm.la.
> 
> The problem with the 2.1.3 release is that it installs all the OpenPGM 
> targets,
> this is cleaned up in git for 2.1.4.

Is there a patch/commit I can try out to see if the fix works ok in the
Debian build now?

-mato

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-24 Thread Steven McCoy
On 24 March 2011 19:05, Martin Lucina  wrote:

> It seems that as part of the upgrade to OpenPGM 5.1.114 in 2.1.3 the build
> system has been completely reworked and OpenPGM is no longer statically
> linked into libzmq, but instead is built as a separate shared library.
>
>
It's actually a third option, ØMQ links against a libtool convenience
archive, libpgm.la.

The problem with the 2.1.3 release is that it installs all the OpenPGM
targets, this is cleaned up in git for 2.1.4.

-- 
Steve-o
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] OpenPGM build integration in the 2.1.3 release

2011-03-24 Thread Martin Lucina
Hi Mikko,

I'm updating the Debian package of 2.1.3, and have hit a small snag.

It seems that as part of the upgrade to OpenPGM 5.1.114 in 2.1.3 the build
system has been completely reworked and OpenPGM is no longer statically
linked into libzmq, but instead is built as a separate shared library. 

This is a fairly major change, and was not obvious from the NEWS file :-(

What I'm wondering is, was this a deliberate change to the preferred way we
distribute OpenPGM-enabled versions of ZeroMQ, or is it just a side-effect
of the build system changes?

If it's the former, I'll have to sort this out with the Debian guys, not
sure if bundling a separate OpenPGM library can get through policy.

If it's the latter, can we get the old behaviour back? (A single
deliverable of libzmq.so, with no dependency on an external libpgm.so?)

Cheers,

-mato
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev