Package: moin
Version: 1.9.2-1

Hello Jonas,

Regarding Lintian error "build-depends-on-python-dev-with-no-arch-any"

The python policy (appendix A)[1], mention that:
> Build dependencies for Python dependent packages must be declared for
> every Python version that the package is built for. The python-all-dev
> should be used when building modules for any or all Python versions.
> To build for a specific version or versions, Build-Depend on
> pythonX.Y-dev.
> 
It also says:
> Some applications and pure Python modules may be able to build-depend
> only on python or python-all and not require the -dev packages.

Lintian warning[1] is consistent with the later recommendation.


I have made a test, and moinmoin compiles properly when replacing
"python-dev (>= 2.3.5-7)" with python-all. The resulting packages are
identical (except the files buildinfo.gz and control file, obviously)

pbuilder 

The way I change the control file is a bit hacky, doesn't CDBS deserves
a bug report here?
  CDBS_BUILD_DEPENDS_class_python-distutils = python-all


Shall I commit this modification? any better idea?

Regards,

Franklin


diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+CDBS_BUILD_DEPENDS_class_python-distutils = python-all
+
 DEB_PYTHON_SYSTEM = pysupport
 include /usr/share/cdbs/1/rules/upstream-tarball.mk
 include /usr/share/cdbs/1/rules/utils.mk


======================================== 
diff -u m3/moin_1.9.2-3.dsc m2/moin_1.9.2-3.dsc
> --- m3/moin_1.9.2-3.dsc       2010-04-04 14:54:40.000000000 +0200
> +++ m2/moin_1.9.2-3.dsc       2010-04-04 14:22:35.000000000 +0200
> @@ -8,13 +8,13 @@
>  Standards-Version: 3.8.4
>  Vcs-Browser: http://git.debian.org/?p=collab-maint/moin.git;a=summary
>  Vcs-Git: git://git.debian.org/git/collab-maint/moin.git
> -Build-Depends: cdbs (>= 0.4.70~), devscripts (>= 2.10.7~), dh-buildinfo, 
> python-support, python-dev (>= 2.3.5-7), debhelper (>= 6), unzip, zip
> +Build-Depends: cdbs (>= 0.4.70~), devscripts (>= 2.10.7~), dh-buildinfo, 
> python-support, python-all, debhelper (>= 6), unzip, zip
[..]
## The checksums of the tar files are modified, obviously.
========================================
$ debdiff m3/python-moinmoin_1.9.2-3_all.deb m2/python-moinmoin_1.9.2-3_all.deb 
> File lists identical (after any substitutions)
>
> No differences were encountered between the control files
=========================================
(cd m2 ; dpkg -x python-moinmoin_1.9.2-3_all.deb ./x/)
(cd m3 ; dpkg -x python-moinmoin_1.9.2-3_all.deb ./x/)
diff -u -r /tmp/m2/x /tmp/m3/x | grep -v '.zip differ$'
> Binary files /tmp/m2/x/usr/share/doc/python-moinmoin/buildinfo.gz and 
> /tmp/m3/x/usr/share/doc/python-moinmoin/buildinfo.gz differ
=========================================



[1] 
http://www.debian.org/doc/packaging-manuals/python-policy/ap-build_dependencies.html
[2] 
http://lintian.debian.org/tags/build-depends-on-python-dev-with-no-arch-any.html




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to