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

Re: dh_link -p$(pkg_dev) usr/include/charls usr/include/CharLS



On Tue, Nov 3, 2020 at 9:27 AM Sebastiaan Couwenberg <sebastic@xs4all.nl> wrote:
>
> On 11/3/20 8:50 AM, Mathieu Malaterre wrote:
> > I am trying to use the following dh_link command:
> >
> > $ cat d/rules
> > [...]
> > dh_link -p$(pkg_dev) usr/include/charls usr/include/CharLS
> >
> > Which gives:
> >
> > $ dpkg -c ../libcharls-dev_2.1.0+dfsg-5_amd64.deb
> > [...]
> > lrwxrwxrwx root/root         0 2020-10-29 17:58 ./usr/include/CharLS -> charls
> >
> > It seems that the above *only* works (give expected results of
> > directory symlink) when there is no existing /usr/include/CharLS
> > directory.
> >
> > What is the right black magic to get a nice upgrade path for
> > libcharls-dev 2.0 (which provides a /usr/include/CharLS directory), to
> > libcharls-dev 2.1 which provides a /usr/include/CharLS symlink to
> > /usr/include/charls.
>
> dpkg-maintscript-helper dir_to_symlink may do what you want, see:
>
>  https://manpages.debian.org/unstable/dpkg/dpkg-maintscript-helper.1.en.html#Switching_a_directory_to_symlink

Full credit at dac981f ;)

Thanks

> Kind Regards,
>
> Bas
>
> --
>  GPG Key ID: 4096R/6750F10AE88D4AF1
> Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


Reply to: