Thanks for your work on this.

You are going to have to tighten up your python dependency in the hgview package.

You currently have python (>=2.5). However
--install-layout is only in more recent versions of 2.5 (>=2.5.3-1~exp1 according to transcript from #debian-mentors on oftc below). I'd recommend a clean room build test on lenny before uploading (people relatively frequently try to backport to the latest stable version), or possibly (or additionally) talk to the Debian Python people.

Perhaps you would consider supporting a lenny backport?

I can open a separate bug for this, or you can clone the bug. I replied to this because this bug was basically about building hgview on lenny.

                                                          Regards, Faheem.

13:06 < faheem> hi. can someone tell me where the --install-layout=option comes from? i suspect python-support, but i can't find any documentation
                for this.
13:06 < faheem> thanks much.
13:07 < faheem> sorry --install-layout=deb option
13:07 < morph> faheem: distutil/setuptools?
13:07 < morph> faheem: and #debian-python would have been a better channel for this question
13:07 < faheem> morph: oftc?
13:07 < morph> of course
13:07 < faheem> morph: ok. will take it there. thanks.
13:08 < morph> faheem: I replied..
13:10 < faheem> morph: ok, but distutil has no debian specific stuff there, surely? specific question what build dependency constraints should be put corresponding to this option?
13:10 < morph> python2.5 (2.5.3-1~exp1) experimental; urgency=low
13:11 < morph>   * New upstream version.
13:11 < morph> * Add an option --install-layout=deb, which is ignored for 2.5. 13:11 < morph> faheem: ^^ that's the version that introduced it; zless /usr/share/doc/python2.5/changelog.Debian.gz
13:11 < faheem> morph: ok, debian specific version of python? thanks.
13:11 < morph> faheem: 'deb' smells like something debian specific
13:11 < faheem> will inform packager. this is wrt debian bug #548522
13:12 < faheem> morph: right, presumably a patch against upstream python source.

[on Debian lenny machine]

fah...@orwell:/usr/local/src/hgview/hgview$ apt-cache policy python-support
python-support:
  Installed: 0.8.4lenny1
  Candidate: 0.8.4lenny1
  Version table:
     1.0.3 0
         50 http://debian.csail.mit.edu squeeze/main Packages
         50 http://debian.csail.mit.edu unstable/main Packages
     1.0.3~bpo50+1 0
          1 http://www.backports.org lenny-backports/main Packages
 *** 0.8.4lenny1 0
        500 http://debian.csail.mit.edu lenny/main Packages
        100 /var/lib/dpkg/status

fah...@orwell:/usr/local/src/hgview/hgview$ hg tip
changeset:   525:93526df777f9
tag:         tip
user:        Alexandre Fayolle <alexandre.fayo...@logilab.fr>
date:        Wed Sep 30 15:54:26 2009 +0200
summary:     prepare 1.1.2 release

fah...@orwell:/usr/local/src/hgview/hgview$ debuild binary
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
python setup.py -q install --no-compile --root=debian/hgview/ --install-layout=deb
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --install-layout not recognized
make: *** [install] Error 1
debuild: fatal error at line 1301:
couldn't exec fakeroot debian/rules:


On Wed, 30 Sep 2009, Debian Bug Tracking System wrote:

This is an automatic notification regarding your Bug report
which was filed against the hgview package:

#548522: hgview: python-support dependency not tight enough

It has been closed by Alexandre Fayolle <afayo...@debian.org>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Alexandre Fayolle 
<afayo...@debian.org> by
replying to this email.


--
548522: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548522
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: hgview
Source-Version: 1.1.2-1

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

hgview_1.1.2-1.diff.gz
  to pool/main/h/hgview/hgview_1.1.2-1.diff.gz
hgview_1.1.2-1.dsc
  to pool/main/h/hgview/hgview_1.1.2-1.dsc
hgview_1.1.2-1_all.deb
  to pool/main/h/hgview/hgview_1.1.2-1_all.deb
hgview_1.1.2.orig.tar.gz
  to pool/main/h/hgview/hgview_1.1.2.orig.tar.gz



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 548...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Fayolle <afayo...@debian.org> (supplier of updated hgview 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 ftpmas...@debian.org)


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

Format: 1.8
Date: Wed, 30 Sep 2009 15:44:09 +0200
Source: hgview
Binary: hgview
Architecture: source all
Version: 1.1.2-1
Distribution: unstable
Urgency: low
Maintainer: David Douard <david.dou...@logilab.fr>
Changed-By: Alexandre Fayolle <afayo...@debian.org>
Description: 
 hgview     - mercurial interactive history viewer
Closes: 548522
Changes: 
 hgview (1.1.2-1) unstable; urgency=low
 .
   * new upstream release
   * debian/control:
     - fixed build dependencies to include pyqt4-dev-tools
     - added missing substvars in package dependencies (closes: #548522)
Checksums-Sha1: 
 94aeed08d496301a7181e260114dcde2f63a8e57 1578 hgview_1.1.2-1.dsc
 68830035f18337617b46db2c945cbe88c357bea6 97686 hgview_1.1.2.orig.tar.gz
 4b3ea588d70fe9a64b056ae5d3d66251ebb40710 2663 hgview_1.1.2-1.diff.gz
 af5185f6ee52a778185f701df6f1f0e0ef59650a 89068 hgview_1.1.2-1_all.deb
Checksums-Sha256: 
 e591f47bd9a642b16c3a629112037cecbe2baabd66c76ee2b6e6c98c1f170980 1578 
hgview_1.1.2-1.dsc
 6ffb2317dda8a232b66fac3f6564f9e1a1816c014c5a393bf828b41a8b0f4103 97686 
hgview_1.1.2.orig.tar.gz
 264274be7af64a02cb165f33f7c3b97cd0a97d4447ed52e1a799e6ae88a92d9c 2663 
hgview_1.1.2-1.diff.gz
 93d7791f2eff11ef258517d0bc8cc49cf645d09fd37e85b9019b4e7d5bf868ca 89068 
hgview_1.1.2-1_all.deb
Files: 
 6dfa568586290ecd45d4a94b3867a919 1578 devel optional hgview_1.1.2-1.dsc
 db6ba3bb9b1084516aea345058d43c7d 97686 devel optional hgview_1.1.2.orig.tar.gz
 bf4944df529fed8965bb26a9eaded895 2663 devel optional hgview_1.1.2-1.diff.gz
 0c04847b117490d01196e35edd7d0140 89068 devel optional hgview_1.1.2-1_all.deb

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

iQEVAwUBSsNjyF6T+PKoJ87eAQLwfgf+NNkDZk9JwohiVOjQ677d2Z6Or/4YwSY/
fzoE1manb2f0CEugMG4TOgPdgXvzyNjSfpkQVBzFKbIRTkZnSzU7s775Jw+/pEAf
UglKUejbewhLcXNqxW8CppFho1JfqJAeb+bQIHaQwtSrYElPZGtpSvXKMTCmQ7bj
e2P2Bp0GHe1tD8u0S1AF+03JHJclOf7M/xgsNd9YrT2AZyrQVNwV1nVc7X5zWm91
i60XN1sOpSiTp83pfBnAeJe7WBl6NBUMV3KqD7Oa4EgLKlFXvMGuXeC1U23FWpeB
t0eHw3gdnpz6COmatI4qq2JAj15OFhtVZmcjTnmQYpN7NNS2yuHwIg==
=My3l
-----END PGP SIGNATURE-----



--- End Message ---
--- Begin Message ---
Package: hgview
Version: 1.1.1-1
Severity: normal


hgview tries to install on lenny with -t unstable.

However, as you can see below, the installation fails, I think since
the python-support dependency is not tight enough. This is a fairly
nasty problem, because the removal fails because the preremoval
scripts bomb, so one has to go in and edit the preremoval scripts
manually.

The python-support version is stated as 0.5.3. However, this is a
really old version, and even the version in lenny is older. I've seen
this particular version used, and similar errors, in a couple of other
packages, so people must be getting this from some template.

                                                      Regards, Faheem.

***************************************************************
begin python-support versions
***************************************************************
fah...@orwell:~$ apt-cache policy python-support
python-support:
  Installed: 0.8.4lenny1
  Candidate: 0.8.4lenny1
  Version table:
     1.0.3 0
        50 http://debian.csail.mit.edu squeeze/main Packages
        50 http://debian.csail.mit.edu unstable/main Packages
     1.0.3~bpo50+1 0
          1 http://www.backports.org lenny-backports/main Packages
 *** 0.8.4lenny1 0
        500 http://debian.csail.mit.edu lenny/main Packages
        100 /var/lib/dpkg/status                        

***************************************************************
end python-support versions
***************************************************************
************************************************************
begin installation run of hgview
************************************************************
fah...@orwell:/tmp$ sudo apt-get install -t unstable hgview
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  hgview
  1 upgraded, 0 newly installed, 0 to remove and 1291 not upgraded.
  Need to get 89.8kB of archives.
  After this operation, 274kB of additional disk space will be used.
  Get:1 http://debian.csail.mit.edu unstable/main hgview 1.1.1-1
[89.8kB]
Fetched 89.8kB in 0s (304kB/s)
Reading changelogs...
(Reading database ... 228949 files and directories currently installed.)
Preparing to replace hgview 1.1.1-1 (using .../hgview_1.1.1-1_all.deb)
...
Unpacking replacement hgview ...
Processing triggers for python-support ...
Processing triggers for man-db ...
Setting up hgview (1.1.1-1) ...
Usage: update-python-modules [-v] [-c] package_directory [...]
       update-python-modules [-v] [-c] package.dirs [...]
              update-python-modules [-v] [-a|-f|-p]
              
              update-python-modules: error:
/usr/share/python-support/hgview.public is not a directory
dpkg: error processing hgview (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
  hgview
  *** failed to import extension hgext.hgview: No module named hgview
  *** failed to import extension hgext.hgview: No module named hgview
  nothing changed
  E: Sub-process /usr/bin/dpkg returned an error code (1)
************************************************************
end installation run of hgview
************************************************************
************************************************************
begin removal run of hgview
************************************************************
fah...@orwell:~$ sudo apt-get remove --purge hgview
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  python-qscintilla2 libqscintilla2-3
  Use 'apt-get autoremove' to remove them.
  The following packages will be REMOVED:
    hgview*
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 643kB disk space will be freed.
    Do you want to continue [Y/n]?
    *** failed to import extension hgext.hgview: No module named hgview
    *** failed to import extension hgext.hgview: No module named hgview
    nothing changed
    (Reading database ... 228949 files and directories currently
installed.)
Removing hgview ...
Usage: update-python-modules [-v] [-c] package_directory [...]
       update-python-modules [-v] [-c] package.dirs [...]
              update-python-modules [-v] [-a|-f|-p]
              
              update-python-modules: error:
/usr/share/python-support/hgview.public is not a directory
dpkg: error processing hgview (--purge):
 subprocess pre-removal script returned error exit status 2
 Usage: update-python-modules [-v] [-c] package_directory [...]
        update-python-modules [-v] [-c] package.dirs [...]
               update-python-modules [-v] [-a|-f|-p]
               
               update-python-modules: error:
/usr/share/python-support/hgview.public is not a directory
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 2
 Errors were encountered while processing:
  hgview
  *** failed to import extension hgext.hgview: No module named hgview
  *** failed to import extension hgext.hgview: No module named hgview
  nothing changed
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  
************************************************************
end removal run of hgview
************************************************************

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable'), (50, 'unstable'), (50, 'testing'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-vserver-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages hgview depends on:
ii  mercurial                     1.3.1-1    scalable distributed version contr
ii  python                        2.5.2-3    An interactive high-level object-o
ii  python-docutils               0.5-2      Utilities for the documentation of
ii  python-egenix-mxdatetime      3.1.0-1    date and time handling routines fo
ii  python-qscintilla2            2.2-4      Python bindings for QScintilla 2
ii  python-qt4                    4.4.2-4    Python bindings for Qt4

hgview recommends no packages.

hgview suggests no packages.

-- no debconf information



--- End Message ---

Reply via email to