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

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



[cc me please]

Dear mentors,

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.

Code is at:

https://salsa.debian.org/med-team/charls

Thanks for your help


Reply to: