[Pkg-octave-devel] Switch octave-pkg-dev from CDBS into dh

Rafael Laboissière rafael at debian.org
Thu Dec 28 07:51:42 UTC 2017


* Sébastien Villemot <sebastien at debian.org> [2017-12-27 17:26]:

> On Wed, Dec 27, 2017 at 04:35:59PM +0100, Rafael Laboissière wrote:
>>
>> It would be great to switch from CDBS into dh.  That should not be too 
>> difficult to do, because the code in octave-pkg.mk depends already heavily 
>> on debhelper.
>>
>> This is something that has been in my ToDo list for ages.  I will take a 
>> look at this, as time permits.
>
> That would be great. dh has become a de facto standard, and cdbs is gradually 
> becoming obsolete.

As I expected, it was not difficult to adapt the code in octave-pkg-dev 
for switching from CDBS into dh.  It is implemented in the Git branch 
dh-instead-of-cdbs.  Just for the record, I am attaching below the diff 
against master.

Once this change will be uploaded, there will be three things that must 
be changed in the packages using octave-pkg-dev:

1) In debian/rules, use the include line:

    include /usr/share/octave-pkg-dev/octave-pkg.mk

(I could have kept the old path /usr/share/cdbs/1/class/, so that no 
change would be need, but it would be misleading.)

2) Drop the build-dependency on CDBS.

3) Bump the build-dependency on octave-pkg-dev.  I am planning to use 
2.0.0 for the upcoming version number.  Even though the changes are not 
big, this is an important move for the project. So, the packages will 
have to use:

    Build-Depends: octave-pkg-dev (>= 2)

If there are no objections, I will upload the new dh-based version to 
unstable.  I will then immediately update all the other packages in Git, 
accordingly.

Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dh-instead-of-cdbs.patch
Type: text/x-diff
Size: 5246 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20171228/4fce65a6/attachment.patch>


More information about the Pkg-octave-devel mailing list