#18 packaging request


I'm in the process of packaging 0.6.2 for Gentoo, and
I've come across a couple of things that make packaging
a bit of a pain for us. The first is that "python
setup.py build" doesn't work out-of-the-box, because
the tarball contains archivemail.py. and not
archivemail. The second is that "python setup.py
install" fails because "archivemail.1" isn't present in
the archive. It's possible to generate it using "make
archivemail.1", but then our users need to have
docbook2X installed as a build dependency, and it's
pretty heavy. Would it be possible to have the
setup.py script updated to use "archivemail.py" instead
of "archivemail" by default, and an already-generated
"archivemail.1" file included in the tarball for the
next release, please?


  • Nikolaus Schulz

    Nikolaus Schulz - 2006-10-12

    Logged In: YES

    Thanks for your report.

    You are right, the last released tarball looks odd. A new
    release is pending anyway, I'll take care that this is fixed.

  • Nikolaus Schulz

    Nikolaus Schulz - 2006-10-12
    • priority: 5 --> 7
    • assigned_to: nobody --> nikosch
  • Peter Poeml

    Peter Poeml - 2006-10-13

    Logged In: YES

    In my package (SUSE ;) I don't see any breakage with the latest tarball. I use:

    sed -i 's,man/man1,share/man/man1,' setup.py
    %{__python} setup.py build

    to build, and

    %{__python} setup.py install --prefix=%{_prefix} --root %{buildroot}
    ln -s archivemail.py %{buildroot}/%{_bindir}/archivemail

    to install.

    If there was previously a file "archivemail" in the tarball, sorry, I have no idea
    why and how it was created.

    What's odd about a *.py python script? :-)

    I actually used this Makefile (uncommitted change) to create the tarball:

    Index: Makefile

    --- Makefile (revision 115)
    +++ Makefile (working copy)
    @@ -31,8 +31,13 @@
    cvs tag -F current
    cvs tag -F $(VERSION_TAG)

    + svn export https://svn.sourceforge.net/svnroot/archivemail/trunk
    + tar czf $(TARFILE) archivemail-$(VERSION)
    + rm -r archivemail-$(VERSION)
    - (cd dist && lftp -c 'open upload.sf.net && cd incoming && put $
    + (lftp -c 'open upload.sf.net && cd incoming && put $(TARFILE)')

    With a 'cp' or 'mv', applied to the archivemail directory before tar'ing it up, the
    archivemail script could be created.

    About the man page: I didn't know how to generate it. All those docbook util
    is a mystery to me. (On some machines I may have the right tools
    installed by accident, but that's about it.)

  • Nikolaus Schulz

    Nikolaus Schulz - 2006-11-03
    • status: open --> closed-fixed
  • Nikolaus Schulz

    Nikolaus Schulz - 2006-11-03

    Logged In: YES

    This is fixed in archivemail 0.7.0, which was released today.
    Thanks for reporting!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks