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

Re: shlib symbolic link to optional lib in lib<foo>-dev ?



On Sun, Mar 15, 2015 at 04:44:47PM +0100, Václav Ovsík wrote:
> I tried a bit different approach. The new src:ustr generate bin packages:
>     libustr-1.0-1
>     libustr-1.0-1-dbg
>     libustr-dev
>     libustr-doc
> Developer can switch debian/control (use debian/control.wdbg) a then
> generate:
>     libustr-1.0-1
>     libustr-1.0-1-dbg
>     libustr-dev
>     libustr-doc
>     +
>     libustr-debug-1.0-1
>     libustr-debug-1.0-1-dbg
>     libustr-debug-dev

You can use build profiles[1]. You can keep all of these packages in the
same control file and mark the -debug ones with

Build-Profiles: <extradebug>

and check for ifneq ($(filter extradebug,$(DEB_BUILD_PROFILES)),) in
debian/rules. That way those packages are only built when -Pextradebug
is passed to dpkg-buildpackage.

Even though the archive does not fully support build profiles yet, you
can use them already, because your use does not involve profiles in
Build-Depends.

Helmut

[1] https://wiki.debian.org/BuildProfileSpec


Reply to: