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

Re: Fully debhelper-based build infrastructure



* Sébastien Villemot <sebastien@debian.org> [2018-01-12 10:22]:

[nip]

The minimal debian/rules would be like this:

   #!/usr/bin/make -f
   %:
           dh $@ --buildsystem=octave --with=octave

My intention is to create a new package called dh-octave that could coexist with octave-pkg-dev, so that no transition will be needed.

Let me know what you think about this project.

I think it is great!

As a minor improvement, is it possible to get rid of one of the two arguments of dh? My impression is that most dh helpers have either the --buildsystem or the --with arguments, but not the two simultaneously. But I guess there is some good technical reason for the current implementation.

There is a technical necessity for that. The option --buildsystem=octave is needed for specifying the build rules defined in /usr/share/perl5/Debian/Debhelper/Buildsystem/octave.pm

The option --with=octave is necessary for having the appropriate places in the sequence of commands defined in /usr/share/perl5/Debian/Debhelper/Sequence/octave.pm

I do not know how to activate both functionalities with a single option.

Rafael

P.S.: Notice that packages that build-depend on dh-lua have the following line in debian/rules:

   dh $@ --buildsystem=lua --with=lua

for the same reasons as explained above.


Reply to: