Quantcast

per library debug builds now possible via ./configure

classic Classic list List threaded Threaded
6 messages Options
Bjoern Michaelsen Bjoern Michaelsen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

per library debug builds now possible via ./configure

Hi,

it should now be possible to build one (or more) libraries for debugging, while
building the rest nondebug. Thanks for Tor giving the inspiration to this at
the Hackfest!

details:

 http://cgit.freedesktop.org/libreoffice/core/commit/?id=ebed42c38ae91147633c47873307e07984bc62c1

Best,

Bjoern
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Lubos Lunak Lubos Lunak
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: per library debug builds now possible via ./configure

On Monday 16 of April 2012, Bjoern Michaelsen wrote:
> Hi,
>
> it should now be possible to build one (or more) libraries for debugging,
> while building the rest nondebug. Thanks for Tor giving the inspiration to
> this at the Hackfest!

 Is it possible to do the build also the other way around, i.e. e.g. "all but
sc"? If I work on something, I generally want to have also all its
dependencies built with debug (does it even make sense to build it
otherwise?), and if I understand the change correctly, I'd have to manually
find out what all the dependencies actually are. Given that sc/sd/sw are the
biggest three, it probably even makes the biggest difference to disable the
two that one does not work on.

--
 Lubos Lunak
 [hidden email]
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Bjoern Michaelsen Bjoern Michaelsen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: per library debug builds now possible via ./configure

On Mon, Apr 16, 2012 at 01:50:00PM +0200, Lubos Lunak wrote:
>  Is it possible to do the build also the other way around, i.e. e.g. "all but
> sc"?
Not yet, feel free to add it if you think it is essential.

> If I work on something, I generally want to have also all its
> dependencies built with debug (does it even make sense to build it
> otherwise?),

yes, it does. If you are in sw there are a lot of thinks that can be solved
just in sw. If not, you recompile those libs.

> and if I understand the change correctly, I'd have to manually
> find out what all the dependencies actually are. Given that sc/sd/sw are the
> biggest three, it probably even makes the biggest difference to disable the
> two that one does not work on.

 ALLBUTSCSW=`find . -name "Library*.mk"| sed -e 's/^.*Library_//' -e 's/.mk$//'|grep -v sc |grep -v sw` && ./autogen.sh --enable-debug="$ALLBUTSCSW"

should be enough.

Best,

Bjoern
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Lubos Lunak Lubos Lunak
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: per library debug builds now possible via ./configure

On Monday 16 of April 2012, Bjoern Michaelsen wrote:
> On Mon, Apr 16, 2012 at 01:50:00PM +0200, Lubos Lunak wrote:
> >  Is it possible to do the build also the other way around, i.e. e.g. "all
> > but sc"?
>
> Not yet, feel free to add it if you think it is essential.
...

> > and if I understand the change correctly, I'd have to manually
> > find out what all the dependencies actually are. Given that sc/sd/sw are
> > the biggest three, it probably even makes the biggest difference to
> > disable the two that one does not work on.
>
>  ALLBUTSCSW=`find . -name "Library*.mk"| sed -e 's/^.*Library_//' -e
> 's/.mk$//'|grep -v sc |grep -v sw` && ./autogen.sh
> --enable-debug="$ALLBUTSCSW"
>
> should be enough.
 How about this?

--
 Lubos Lunak
 [hidden email]

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

0002-fixes-for-debug-flags-handling.patch (10K) Download Attachment
0003-more-flexible-enable-symbols-for.patch (13K) Download Attachment
Lubos Lunak Lubos Lunak
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: per library debug builds now possible via ./configure

On Friday 20 of April 2012, Lubos Lunak wrote:

> On Monday 16 of April 2012, Bjoern Michaelsen wrote:
> > On Mon, Apr 16, 2012 at 01:50:00PM +0200, Lubos Lunak wrote:
> > >  Is it possible to do the build also the other way around, i.e. e.g.
> > > "all but sc"?
> >
> > Not yet, feel free to add it if you think it is essential.
>
> ...
>
> > > and if I understand the change correctly, I'd have to manually
> > > find out what all the dependencies actually are. Given that sc/sd/sw
> > > are the biggest three, it probably even makes the biggest difference to
> > > disable the two that one does not work on.
> >
> >  ALLBUTSCSW=`find . -name "Library*.mk"| sed -e 's/^.*Library_//' -e
> > 's/.mk$//'|grep -v sc |grep -v sw` && ./autogen.sh
> > --enable-debug="$ALLBUTSCSW"
> >
> > should be enough.
>
>  How about this?
 And one more.

--
 Lubos Lunak
 [hidden email]

_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

0004-if-debug-symbols-are-enabled-indirectly-make-sure-th.patch (861 bytes) Download Attachment
Lubos Lunak Lubos Lunak
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: per library debug builds now possible via ./configure

In reply to this post by Lubos Lunak
On Friday 20 of April 2012, Lubos Lunak wrote:

> On Monday 16 of April 2012, Bjoern Michaelsen wrote:
> > On Mon, Apr 16, 2012 at 01:50:00PM +0200, Lubos Lunak wrote:
> > >  Is it possible to do the build also the other way around, i.e. e.g.
> > > "all but sc"?
> >
> > Not yet, feel free to add it if you think it is essential.
>
> ...
>
> > > and if I understand the change correctly, I'd have to manually
> > > find out what all the dependencies actually are. Given that sc/sd/sw
> > > are the biggest three, it probably even makes the biggest difference to
> > > disable the two that one does not work on.
> >
> >  ALLBUTSCSW=`find . -name "Library*.mk"| sed -e 's/^.*Library_//' -e
> > 's/.mk$//'|grep -v sc |grep -v sw` && ./autogen.sh
> > --enable-debug="$ALLBUTSCSW"
> >
> > should be enough.
>
>  How about this?

 Pushed.

 Short version for whoever has already started to use this: Prepend "Library_"
to every item you pass to --enable-debug, or simply use directory names
with "/" appended, and pass it to --enable-symbols instead.

--
 Lubos Lunak
 [hidden email]
_______________________________________________
LibreOffice mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/libreoffice
Loading...