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

Re: svn/git repositories, and clean:: target in cdbs.



Mehdi Dogguy a écrit :
Guillaume Yziquel a écrit :
By the way,

http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.html/x565.html

is not up to date.


There is a Git section:

http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.html/x686.html

Indeed. What I meant was that the policy would need a few clarifications:

-1- Mentioning that the SVN server is not publicly available anymore (password needed) and that people should now use the git section.

-2- More serious:

http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.html/a502.html

describes the basics of how CDBS should be used with ocaml packaging. However, the order of the includes seems wrong to me (at least empirically).

The current order on the webpage is

#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/class/ocaml.mk
include /usr/share/cdbs/1/rules/dpatch.mk

whereas my setup only works with something like

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/class/ocaml.mk

The issue I encountered is with the clean:: double-colon rules. The order in which these targets are laid out *is* relevant.

Therefore, it might not be a bad idea to make such a change in the policy, to avoid rebuking new would-be packagers.

--
     Guillaume Yziquel
http://yziquel.homelinux.org/


Reply to: