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

Re: Getting dh_install to do what we need



On Wed, Dec 07, 2011 at 11:47:49PM +0100, Josselin Mouette wrote:
> For those who haven’t followed, the latest debhelper upload includes the
> following change:
> 
>    * Debhelper config files may be made executable programs that output the
>      desired configuration. No further changes are planned to the config file
>      format; those needing powerful syntaxes may now use a programming language
>      of their choice. (Be careful aiming that at your feet.)
>      Closes: #235302, #372310, #235302, #614731,
>      Closes: #438601, #477625, #632860, #642129
> 
> So, to sum it up. Before, you would do in debian/rules: 
>         sed s/@DEB_HOST_MULTIARCH@/${DEB_HOST_MULTIARCH}/ debian/libfoo.install.in > debian/libfoo.install
> 
> Now, you will do in debian/foo.install:
>         #! /bin/sh 
>         sed s/@DEB_HOST_MULTIARCH@/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/ << EOF
>         …
>         EOF
> (Bonus points for implementing this in a different language for each
> package.)

Note you also need to add a chmod +x debian/*.sh in debian/rules, since
apart from debian/rules, nothing has the executable bit after
dpkg-source -x.

Mike


Reply to: