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

Re: 1.2 source archive and packaging issues



Hi,

	There is a problem with the dchanges line for packages where
 multiple debian packages are built from the same source package. For
 example, kernel-source-2.0.0_3.0.tar.gz builds
        (a)  kernel-source-2.0.0_3.0_all.deb, 
	(b)  kernel-image-2.0.0_3.0_i386.deb, and
        (c)  kernel-headers-2.0.0_3.0_all.deb.
 and there is no easy way to determine what are the packages
 produced. 

	 Also, doesn't dchanges insist that the source and diff files
 be also present?  In that case, it might be better to mandate a dist
 target in debian.rules exist, which runs the dchanges command
 automatically. A concrete example: (this requires an as yet
 unreleased version of kernel-package)

 % cd /usr/src/linux; # This _should_ be a valid symlink
 % ./debian.rules PGP_SIGNATURE="Bruce Perens" dist

The corresponding rule reads:
dist: binary source diff
# Prepares the package for distribution.
        -(cd .. && \
         dchanges -n ce=$(DEBDIR)/debian/debian.changes \
            arch="$(architecture)" pgp="$(pgp)" \
            urg="$(priority)" \
            $(package)$(sep1)$(debian)$(sep2)all.deb \
            $(h_package)$(sep1)$(debian)$(sep2)all.deb \
            $(i_package)$(sep1)$(debian)$(sep2)$(architecture).deb \
            $(package)$(sep1)$(debian).diff.gz \
            $(package)$(sep1)$(debian).tar.gz )

	I'll be glad to supply the full debian.rules file for elucidation.

	manoj
-- 
Manoj Srivastava               Systems Research Programmer, Project Pilgrim,
Phone: (413) 545-3918                A143B Lederle Graduate Research Center,
Fax:   (413) 545-1249         University of Massachusetts, Amherst, MA 01003
<srivasta@pilgrim.umass.edu> <URL:http://www.pilgrim.umass.edu/%7Esrivasta/>


Reply to: