[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help in packaging rubber



On 03.05.12 Andreas Noteng (andreas@noteng.no) wrote:
> On 02. mai 2012 23:39, Hilmar Preusse wrote:

Hi,

> > Dear python maintainers,
> > 
> > I intend/plan to adopt the rubber package[1]. I prepared a package
> > for testing, it is available from here[2].
> > 
> > When building the package two warnings occur:
> > 
> > - dh_pysupport: This program is deprecated, you should use dh_python2 instead. Migration guide: http://deb.li/dhs2p
> 
> Make sure you removed python-support from the dependencies, also make
> sure your rules file calls dh --with python2 (often this is enough:
> 	%:
>         	dh $@ --with python2
> ). Depending on the complexity of your package, you might need to remove
> any references to python-support in your debian/rules
> 
Attached is the patch documenting the changes I've applied. Is this
OK?

When building the package I get two warnings:

- W: dh_python2:90: Python 2.7 should install files in /usr/lib/python2.7/dist-packages/. Did you forget "--install-layout=deb"?
- dpkg-gencontrol: warning: package rubber: unused substitution variable ${python:Versions}

Can I ignore the first one for now? I don't understand the second
one, there is no substitution variable like this in debian/control.

Finally I'm not sure if the "Before you begin" section on
http://wiki.debian.org/Python/TransitionToDHPython2 is relevant for
me. Please advise!

> > - dpkg-deb: warning: 'debian/rubber/DEBIAN/control' contains user-defined field 'Python-Version'
> 
> It should be X-Python-Version
> 
Until now there exista a file called debian/pyversions . It just
contained a "-" . I guess this specification is not necessary at all.

> Python sponsors tend to be picky; I'd recommend running lintian -Iv
> --pedantic on the resulting .changes file after building. It'd likely
> save you a couple of mails back and fourth with the sponsor.
> 
This gave me a few more things to fix, I killed a few of them, but
not all.

Thanks,
  Hilmar
-- 
http://www.hilmar-preusse.de.vu/    #206401 http://counter.li.org
diff -urN rubber-1.1+20100306_20120503/debian/control rubber-1.1+20100306/debian/control
--- rubber-1.1+20100306_20120503/debian/control	2012-05-03 11:13:43.000000000 +0200
+++ rubber-1.1+20100306/debian/control	2012-05-03 22:41:13.000000000 +0200
@@ -4,8 +4,7 @@
 Maintainer: Hilmar Preuße <hille42@web.de>
 Uploaders: Baruch Even <baruch@debian.org>
 Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: python, texinfo, python-support (>=0.5.3)
-XB-Python-Version: all
+Build-Depends-Indep: python (>= 2.6.6-3~), texinfo
 Standards-Version: 3.9.3
 Homepage: https://launchpad.net/rubber
 
@@ -13,7 +12,6 @@
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}, texlive-latex-base
 Suggests: imagemagick, transfig, sam2p
-XB-Python-Version: ${python:Versions}
 Description: automated system for building LaTeX documents
  This is a building system for LaTeX documents. It is based on a routine that
  runs just as many compilations as necessary. The module system provides a
diff -urN rubber-1.1+20100306_20120503/debian/pyversions rubber-1.1+20100306/debian/pyversions
--- rubber-1.1+20100306_20120503/debian/pyversions	2012-04-23 22:31:59.000000000 +0200
+++ rubber-1.1+20100306/debian/pyversions	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
--
diff -urN rubber-1.1+20100306_20120503/debian/rules rubber-1.1+20100306/debian/rules
--- rubber-1.1+20100306_20120503/debian/rules	2012-05-03 11:18:52.000000000 +0200
+++ rubber-1.1+20100306/debian/rules	2012-05-03 11:36:35.000000000 +0200
@@ -37,7 +37,8 @@
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_pysupport
+	#dh_pysupport
+	dh_python2
 	dh_installdocs
 	dh_installman
 	dh_installinfo doc/rubber.info

Attachment: signature.asc
Description: Digital signature


Reply to: