Your message dated Tue, 20 Jun 2006 11:17:09 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#372774: fixed in python-support 0.3.0
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: python-support
Version: 0.2.2

Since dh_python will not take care of python-support integration, you
should provide a dh_pysupport ... here's a first implementation based
on my initial dh_python work.

Feel free to enhance it (for example by moving the modules out of
/usr/lib/pythonX.Y/ like you did in your previous dh_python that got later
reverted.)

I would appreciate a quick integration so that we can move forward with
the python transition. :-)

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/
#!/usr/bin/perl -w

=head1 NAME

dh_pysupport - use the python-support framework to handle Python modules and 
extensions

=cut

use strict;
use File::Find;
use Debian::Debhelper::Dh_Lib;

=head1 SYNOPSIS

B<dh_pysupport> [S<I<debhelper options>>] [B<-n>] [S<I<module dirs ...>>]

=head1 DESCRIPTION

dh_pycentral is a debhelper program that will scan your package, detect
public Python modules and move them in /usr/share/pycentral so that
python-central can byte-compile those for all supported Python versions.

You must of have filled the XS-Python-Header to indicate the set of python
versions that are going to be supported.

=head1 OPTIONS

=over 4

=item I<module dirs>

If your package installs private python modules in non-standard directories, you
can make dh_pysupport check those directories by passing their names on the
command line. By default, it will check /usr/lib/$PACKAGE,
/usr/share/$PACKAGE, /usr/lib/games/$PACKAGE and /usr/share/games/$PACKAGE

=item B<-n>, B<--noscripts>

Do not modify postinst/postrm scripts.

=back

=head1 CONFORMS TO

Python policy as of 2006-06-10

=cut

init();


foreach my $package (@{$dh{DOPACKAGES}}) {
        my $tmp = tmpdir($package);

        my @dirs = ("usr/lib/$package", "usr/share/$package",
                    "usr/lib/games/$package", "usr/share/games/$package", @ARGV 
);
        @dirs = grep -d, map "$tmp/$_", @dirs;

        # Look for private python modules
        my $dirlist="";
        if (@dirs) {
                foreach my $curdir (@dirs) {
                        my $has_module = 0;
                        $curdir =~ s%^$tmp/%%;
                        find sub {
                                return unless -f;
                                $has_module = 1 if (/\.py$/);
                        }, "$tmp/$curdir" ;
                        if ($has_module) {
                                $dirlist="$dirlist /$curdir";
                        }
                }
        }

        if ($dirlist) {
                # We have private python modules
                # Use python-support to ensure that they are always
                # byte-compiled for the current version
                mkdir("$tmp/usr/share/python-support");
                $dirlist =~ s/^\s*//;
                $dirlist =~ s/\s*$//;
                open(DIRLIST, "> $tmp/usr/share/python-support/$package.dirs") 
||
                    error("Can't create 
$tmp/usr/share/python-support/$package.dirs: $!");
                print DIRLIST join("\n", split(/\s+/, $dirlist));
                close(DIRLIST);
        }

        # Add scripts to postinst/prerm depending on what we found
        if (-d "$tmp/usr/share/python-support") {
                addsubstvar($package, "python:Depends", "python-support");
                foreach my $ps_dir (glob("$tmp/usr/share/python-support/*")) {
                        if (-d $ps_dir) {
                                $ps_dir =~ s/^$tmp//;
                                if (! $dh{NOSCRIPTS}) {
                                    autoscript($package, "postinst", 
"postinst-python-support", "s,#OPTIONS#,-i,;s,#DIRS#,$ps_dir,");
                                    autoscript($package, "prerm", 
"prerm-python-support", "s,#OPTIONS#,-i,;s,#DIRS#,$ps_dir,");
                                }
                                # TODO: we should generate the
                                # /usr/share/python-support/*/.version from
                                # XS-Python-Version
                        } elsif (-f $ps_dir) {
                                # $ps_dir is a ".dirs" file ...
                                $ps_dir =~ s/^$tmp//;
                                autoscript($package, "postinst", 
"postinst-python-support", "s,#OPTIONS#,-b,;s,#DIRS#,$ps_dir,");
                                autoscript($package, "prerm", 
"prerm-python-support", "s,#OPTIONS#,-b,;s,#DIRS#,$ps_dir,");
                        }
                }
        }
}

=head1 SEE ALSO

L<debhelper(7)>

This program is a part of python-support but is made to work with debhelper.

=head1 AUTHORS

Josselin Mouette <[EMAIL PROTECTED]>
Raphael Hertzog <[EMAIL PROTECTED]>

=cut

--- End Message ---
--- Begin Message ---
Source: python-support
Source-Version: 0.3.0

We believe that the bug you reported is fixed in the latest version of
python-support, which is due to be installed in the Debian FTP archive:

python-support_0.3.0.dsc
  to pool/main/p/python-support/python-support_0.3.0.dsc
python-support_0.3.0.tar.gz
  to pool/main/p/python-support/python-support_0.3.0.tar.gz
python-support_0.3.0_all.deb
  to pool/main/p/python-support/python-support_0.3.0_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Josselin Mouette <[EMAIL PROTECTED]> (supplier of updated python-support 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 19 Jun 2006 14:18:29 +0200
Source: python-support
Binary: python-support
Architecture: source all
Version: 0.3.0
Distribution: unstable
Urgency: low
Maintainer: Josselin Mouette <[EMAIL PROTECTED]>
Changed-By: Josselin Mouette <[EMAIL PROTECTED]>
Description: 
 python-support - automated rebuilding support for python modules
Closes: 372774 373753
Changes: 
 python-support (0.3.0) unstable; urgency=low
 .
   * Acknowledge NMU (closes: #372774).
   * Increase minimal dependency to 0.2 in the helper script.
     + Make it 0.3 in the case where /usr/lib/python-support exists.
   * rules: cdbs already provides DEB_VERSION, no need to re-compute it.
   * install: install dh_pysupport in /usr/bin.
   * Don't build-depend on perl.
 .
   * Standards-version is 3.7.2.
   * Add more warnings and errors for package making wrong uses of
     python-support or using the python-support 0.1 compatibility mode.
   * Use "pyversions -s to get the list of python versions.
     + Depend on python 2.3.5-6.
   * Improve a bit the manual page.
   * Fail if a package tries to overwrite a file provided by another
     package (closes: #373753).
   * Support extensions, by searching
     /usr/lib/python-support/$package/$version for files specific to a
     python version.
   * New command: pysupport-movemodules, to move modules from
     /usr/lib/python2.X trees to the python-support hierarchies.
   * Call this command in dh_pysupport.
   * Add the ability to generate a .version in dh_pysupport, by copying
     debian/pyversions.
   * Add the possibility for automatic generation of ${python:Depends}
     and ${python:Provides}, when calling dh_pysupport -d.
   * Provide python-support.rt* scripts to provide hooks when python
     versions are installed or removed.
     + The dependency on python (<< 2.4) can be removed.
   * New command: pysupport-parseversions. It parses
     debian/package.pyversions files to display the list of supported
     versions that are included in the version list described here.
Files: 
 04697bb778b4862c1d5a4fb1560e5ab3 557 python optional python-support_0.3.0.dsc
 7885cc9e3d06477cfb2cdc8293e2b97c 21270 python optional 
python-support_0.3.0.tar.gz
 a99de90ccac2afb4221051b84f6c77e9 17220 python optional 
python-support_0.3.0_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEmDejrSla4ddfhTMRAgyEAKDHn6bzkbhJgttBSoeXEsYKYyMhYACgnfgy
SLN76CsJK68DhrzS8TKqzdI=
=Nh9t
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to