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

Re: Sourceless but useless: how about ignoring some irrelevant files instead of repackaging?

Hi Charles and the rest of the World,

On Mon, Sep 07, 2009 at 09:01:04PM +0900, Charles Plessy wrote:
in one of the packages I mainatain, upstream left some zlib and ncurses static libraries for Win32 in the source tarball. Without the copy of the zlib and ncurses sources.

Now I will have to add a lot of stuff to debian/copyright, make a “dfsg” tarball, provide a get-orig-source target in debian/rules, and write a README.source file to comply with the Policy, and do the repackaging dance at each new upstream release. This is not the way I have fun.

How about just minimizing and simplifying the stuff you need to do?

Would you find it interesting if you only needed to add these 3 lines:

---- debian/rules ----
include /usr/share/cdbs/1/rules/upstream-tarball.mk
DEB_UPSTREAM_URL = http://example.org/download
---- debian/rules ----

Which would then provide the following command to pull new upstream sources and repackage tarball, all in same go:

debian/rules get-orig-source

Above is not yet officially part of CDBS, but is actively used for some years unofficially. See ghostscript, csound, srtp and uw-imap.

Oh, and you need not "contaminate" the rest of your packaging with CDBS to use above snippet. You do not even need to build-depend on cdbs, just have it installed when you need to get new upstream source - as the get-orig-source rule is not one of the core required build rules.

If there is some interest in this, I will speed up inclusion of that snippet with the official CDBS package.

Kind regards,

 - Jonas

* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: Digital signature

Reply to: