r2126 - in zope2.12/branches/with-revived-tarball/debian (16 files)

Michael Mulich mrm41 at psu.edu
Fri Nov 12 20:07:27 UTC 2010


Jonas-

On 11/12/10 2:08 PM, Jonas Meurer wrote:
> On 12/11/2010 Michael Mulich wrote:
>> On 11/12/10 1:03 PM, Jonas Meurer wrote:
>>> First, the changes you commit to svn look very promising!
>>
>> Thank you. I've been able to install zope2.12 and create instances.
>> My latest changes to dzhandle have made it possible to install
>> zope2.12-sandbox as well.
>
> great! your work is much appreciated. looking forward to have zope2.12
> packages in debian/unstable ...
>

I'm looking forward to zope2.13 in unstable, because of the added WSGI 
support. But first things first, a somewhat stable zope2.12 would be 
nice. I've made the tarball source so that it won't be hard to pull in 
the latest release. 
(https://weblion.psu.edu/trac/weblion/browser/weblion/hosting/zope2-tarball/trunk)

>>> Today I took a look at the with-revived-tarball branch, and noted that
>>> something must be wrong with the build process. dpkg-source adds a patch
>>> to debian/patches at build time. I guess this is due to differences
>>> between the original tarball at ../tarballs/zope2.12_2.12.0.orig.tar.gz
>>> and the build environment you build from.
>>> maybe the reason is that you don't update the tarball while you modify
>>> the source files in your build directory, from where you start
>>> dpkg-buildpackage.
>>
>> I'm still a little uncertain about what happens between when
>> dpkg-source and dpkg-buildpackage are run. So I'm not exactly sure
>> what you mean. I'll definitely make it my next priority to fix this
>> issue.
>>
>>> I'm not sure what causes this patch. But this event indicates, that
>>> something wents wrong.
>>
>> This explains why I haven't been able to use svn-buildpackage. I
>> thought it was just me. I was planning to deal with it later, but
>> apparently it's an issue. I've been unpacking the source and running
>> debuild over it up to this point.
>
> I'm happy to help you with packaging issues. please write down step by
> step instructions about how you build the debian package. i'll take a
> look at your build process and see whether the problem can be located.
>
  1) Obtain the current tarball: wget 
http://weblion.psu.edu/static/zope2-tarballs/Zope2-2.12.10-pkgd_3.tar.gz
  2) Unpack the tarball: tar xzf Zope2-2.12.10-pkgd_3.tar.gz
  3) Move stuff around: mv Zope2-2.12.10-pkgd_3.tar.gz 
zope2.12_2.12.10.orig.tar.gz && mv Zope2-2.12.10-pkgd_3 zope2.12-2.12.10 
&& cd zope2.12-2.12.10
  4) Insert the Debian directory: svn co 
svn+ssh://user@svn.debian.org/svn/pkg-zope/zope2.12/trunk/debian
  5) Build it: debuild

> the best solution would be to automate all preliminary steps in the
> debian/rules makefile:
>
> a target called 'get-orig-source', should automate the process of
> building a custom orig.tar.gz from the upstream zope2.12 tarball and all
> required zope dependencies.
> this target must not be invoked at build process, but instead needs to
> be invoked manually.
>
> many debian packages already provide this 'get-orig-source' target. see
> http://www.debian.org/doc/debian-policy/ch-source.html chapter 4.9 for
> more information.
>
> a get-orig-source target also has the advantage, that you don't need to
> maintain a custom zope source tarball, but instead have code that
> automates the preparation task, which easily can be updated for
> subsequent zope releases.
>
> the custom build scripts (e.g. buildout receipe, configure script)
> should be provided as debian patches in debian/patches, and applied to
> the source at package build process instead of being part of the
> (crafted) source tarball.
>
The tarball was created out of a request from a few people in the 
zope/plone community that wanted something more distribution agnostic. 
So this tarball solution is something that can also be used in other 
distribution environments. If it's an issue, we can always pull this 
into the deb, but I'd rather not maintain two versions of the same process.

By the way, I'm no longer using zc.buildout in the build process. :)

I've also got documentation about the tarball up at 
http://weblion.psu.edu/static/zope2-tarballs/docs/current/

-Michael Mulich (pumazi)



More information about the pkg-zope-developers mailing list