Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339416 - net-libs/zeromq-9999, additional live ebuild
Summary: net-libs/zeromq-9999, additional live ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: MT
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 480478
  Show dependency tree
 
Reported: 2010-10-02 02:29 UTC by Peter Alexander
Modified: 2013-08-13 11:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-libs/zeromq-9999.ebuild (zeromq-9999.ebuild,1.37 KB, text/plain)
2010-10-02 02:31 UTC, Peter Alexander
Details
net-libs/zeromq-9999.ebuild (zeromq-9999.ebuild,1.45 KB, text/plain)
2010-10-02 09:08 UTC, MT
Details
metadata.xml (metadata.xml,1.39 KB, text/plain)
2010-10-02 09:09 UTC, MT
Details
zeromq-9999.ebuild replacement proposal (zeromq-9999.ebuild,1.47 KB, text/plain)
2013-08-10 09:31 UTC, lalebarde
Details
zeromq-9999.ebuild (zeromq-9999.ebuild,1.27 KB, text/plain)
2013-08-13 11:01 UTC, lalebarde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Alexander 2010-10-02 02:29:59 UTC
Hi!

I see that flameeyes has contributed zeromq-2.0.9 to the portage tree recently, so if possible, I'd like to have included the git master version too. Please find attached an zeromq-9999.ebuild for it.
Comment 1 Peter Alexander 2010-10-02 02:31:30 UTC
Created attachment 249248 [details]
net-libs/zeromq-9999.ebuild
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-02 08:14:38 UTC
BTW Diego, you've wrong e-mail address in metadata.xml.
Comment 3 MT 2010-10-02 09:08:29 UTC
Created attachment 249270 [details]
net-libs/zeromq-9999.ebuild

An improved ebuild.
Comment 4 MT 2010-10-02 09:09:48 UTC
Created attachment 249271 [details]
metadata.xml

A fixed metadata.xml, the wrong email address for Diego Pettenò was a my mistake.
Comment 5 JTRiley 2010-12-17 17:24:36 UTC
very useful, works for me on amd64

thanks!
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-10-07 11:14:33 UTC
Going to WONTFIX this for now.
Comment 7 lalebarde 2013-08-10 09:31:44 UTC
Created attachment 355590 [details]
zeromq-9999.ebuild replacement proposal

Changes :
1) Compatible with release ebuild (merge of 3.2.3 with 9999 with updates in 9999) in order to maintain only one ebuild for release and git.
2) From EAPI 3 to 5
3) From inherit git to inherit git-2
4) More docs as available in release and git versions (don't know if it is desirable)
5) Using latest portage features for docs
6) Dependencies to app-text/asciidoc and app-text/xmlto app-arch/gzip dev-lang/perl dev-lang/python:2.6 do not exist in ebuild 3.2.3, so I removed then (don't know if it is correct).
7) Suppressed the remove of the bundled OpenPGM library from the 3.2.3 ebuild since from notes above, it is not desirable.
8) Changed the configure pgm option from "--with-pgm" to what exists in  the 3.2.3 ebuild because it is more recent and may fix this issue which seems to have not been resolved in the last 9999 ebuild.
9) Suppressed src_install and src_test to use defaults and have a simplier ebuild (may be not desirable if one wants the la to be suppressed (939 bytes). Possibly there is a way to simply suppress it, but I don't know).

FEATURE=test emerge zeromq passes the tests :
===================
All 34 tests passed
===================

qlist gives :
>>> /usr/lib64/pkgconfig/libzmq.pc
>>> /usr/lib64/libzmq.la
>>> /usr/lib64/libzmq.so.3.0.0
>>> /usr/lib64/libzmq.so.3 -> libzmq.so.3.0.0
>>> /usr/lib64/libzmq.so -> libzmq.so.3.0.0
+ a lot of docs
>>> /usr/include/zmq_utils.h
>>> /usr/include/zmq.h
Comment 8 lalebarde 2013-08-13 10:43:35 UTC
Problem. Here is the new live ebuild candidate :

---------------------------------------------------------------------------
EAPI=5

AUTOTOOLS_AUTORECONF=true

inherit autotools-utils git-2

DESCRIPTION="ZeroMQ is a brokerless kernel"
HOMEPAGE="http://www.zeromq.org/"
EGIT_REPO_URI="git://github.com/zeromq/libzmq.git"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS=""
IUSE="pgm test static-libs"

DEPEND="sys-devel/gcc
		pgm? (
		  virtual/pkgconfig
		  >=net-libs/openpgm-5.1.118
		)
		sys-apps/util-linux"
RDEPEND=""

src_prepare() {
	eautoreconf
}

src_configure() {
	local myconf
	use pgm && myconf="--with-system-pgm" || myconf="--without-pgm"
	econf \
	  $(use_enable static-libs static test) \
	  $myconf
}

DOCS=( NEWS AUTHORS INSTALL COPYING )

src_test() {
	cp "${S}"/src/selftest.cfg "${BUILD_DIR}"/src/ || die
	autotools-utils_src_test
}
-----------------------------------------------------------------------

The one attached is with autotools and works. This one is with autotools-utils and fails :

*************************************************************************
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-libs/zeromq-9999/work/zeromq-9999 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/net-libs/zeromq-9999/work/zeromq-9999_build"
/var/tmp/portage/net-libs/zeromq-9999/temp/environment: line 630: pushd: /var/tmp/portage/net-libs/zeromq-9999/work/zeromq-9999_build: No such file or directory
 * ERROR: net-libs/zeromq-9999 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3536:  Called autotools-utils_src_compile
 *   environment, line  630:  Called die
 * The specific snippet of code:
 *       pushd "${BUILD_DIR}" > /dev/null || die;
***************************************************************************

Why does it set BUILD_DIR to work/zeromq-9999_build instead of work/zeromq-9999 ?
Comment 9 lalebarde 2013-08-13 10:46:03 UTC
Sorry :
-------------------------------------------------------------------------
EAPI=5

AUTOTOOLS_AUTORECONF=true

inherit autotools-utils git-2

DESCRIPTION="ZeroMQ is a brokerless kernel"
HOMEPAGE="http://www.zeromq.org/"
EGIT_REPO_URI="git://github.com/zeromq/libzmq.git"

LICENSE="LGPL-3"
SLOT="0"
KEYWORDS=""
IUSE="pgm test static-libs"

DEPEND="sys-devel/gcc
		pgm? (
		  virtual/pkgconfig
		  >=net-libs/openpgm-5.1.118
		)
		sys-apps/util-linux"
RDEPEND=""

src_configure() {
	local myconf
	use pgm && myconf="--with-system-pgm" || myconf="--without-pgm"
	econf \
	  $(use_enable static-libs static test) \
	  $myconf
}

DOCS=( NEWS AUTHORS INSTALL COPYING )

src_test() {
	cp "${S}"/src/selftest.cfg "${BUILD_DIR}"/src/ || die
	autotools-utils_src_test
}
-------------------------------------------------------------------------

But it is the same result.
Comment 10 lalebarde 2013-08-13 11:01:32 UTC
Created attachment 355862 [details]
zeromq-9999.ebuild

I have to add :
BUILD_DIR=$S
at the end of src_configure() to solve the problem, but I don't know if it is very clean ?
At least, it emerges right, and the autotest passes :
===================
All 34 tests passed
===================