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

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



On Mon, Mar 09, 2015 at 11:09:58PM +0800, Paul Wise wrote:
> On Mon, Mar 9, 2015 at 5:45 PM, Václav Ovsík wrote:
> > On Mon, Mar 09, 2015 at 11:03:33AM +0800, Paul Wise wrote:
> >> Could you mention how the debug variant differs from the normal variant?
> >
> > The debug variant is compiled with -O1 (the normal/optimized variant
> > with -O2) and the debug variant has many checks (assertions).
> 
> How many users of the debug variant do you expect? Are they the kind
> of users who could just recompile with noopt/nostrip?
> 
> DEB_BUILD_OPTIONS="nostrip debug noopt" debuild

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

Only packages of optimized library are generated with std control file.
If developer wants to have debug packages he need to copy
debian/control.wdbg over debian/control and rebuild the package himself.

Other possibilities?
    1) Based on DEB_BUILD_OPTIONS change debian/control during package
       building? Is it possible/allowed?
    2) Based on DEB_BUILD_OPTIONS rename libustr-debug*{so,a} to
       libustr*{so,a} and insert ustr-debug.h and ustr-conf-debug.h
       into the normal deb packages (without debug).

Regards
-- 
Zito


Reply to: