[openstack-dev] Cross distribution talks on Friday

Thomas Goirand zigo at debian.org
Sat Nov 1 19:26:25 UTC 2014

On 11/01/2014 11:29 PM, Kashyap Chamarthy wrote:
> On Sat, Nov 01, 2014 at 09:13:21PM +0800, Thomas Goirand wrote:
>> Hi,
>> I was wondering if some distribution OpenStack package maintainers
>> would be interested to have some cross-distribution discussion on
>> Friday, during the contributors sessions.
>> I'll be happy to discuss with Ubuntu people, but not only. I'd like to
>> meet also guys working with RedHat and Gentoo. I'm sure we may have
>> some interesting things to share.
>> OpenStack release management team would also be welcome.
>> If you are interested, please reply to this mail.
> You might also want to start an etherpad instance with some initial
> agenda notes and throw the URL here to guage interest.

Here's the etherpad:

> On a related note, a bunch of Fedora/RHEL/CentOS/Scientific Linux
> packagers are planning[1] to meetup at the summit to discuss RDO project
> packaging aspects, etc.
>   [1] https://etherpad.openstack.org/p/RDO_Meetup_Summit

Well, if you guys are only talking about RPM packaging, as I'm doing
only Debian stuff [1], I'm only mildly interested. If we're going to
talk more about packaging in general, then maybe.

On 11/02/2014 01:45 AM, Adam Young wrote:
> Getting the whole "PBR version" issues cleared up would be huge.

I'm not sure what issue you are talking about, as I believe there's
none. This has been discussed for about a year and a half before we
finally had the OSLO_PACKAGE_VERSION to play with, when this was
designed a few years ago. I'm now very happy about the way PBR does
things, and wouldn't like it to change anything. Currently, what I do in
Debian is (from the debian/rules file included from openstak-pkg-tools):

DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e

You may not be familiar with dpkg-parsechangelog, so let me explain.
Basically, if my debian/changelog has on top 2014.2~rc2, the
debian/rules file will exports 2014.2~rc2 into the OSLO_PACKAGE_VERSION
shell variable before doing "python setup.py install", and then PBR is
smart enough to use that.

I am not at all a RedHat packaging specialist, but from the old time
when I did some RPM porting from my Debian packages, I believe that in
your .spec file, this should translate into something like this:

export OSLO_PACKAGE_VERSION=%{version}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

Then everything should be ok and PBR will become your friend. I hope
this helps and that I'm not writing any RPM packaging mistake! :)


Thomas Goirand (zigo)

[1] Here's the list of packages I maintain in Debian (only for OpenStack):

More information about the OpenStack-dev mailing list