Issue 14472 - introduce ENABLE_CRASHDUMP var
Summary: introduce ENABLE_CRASHDUMP var
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P2 Trivial (vote)
Target Milestone: OOo 1.1 RC
Assignee: quetschke
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks: 12442
  Show dependency tree
 
Reported: 2003-05-15 14:15 UTC by Martin Hollmichel
Modified: 2004-09-27 11:18 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Patch for configure.in and set_soenv.in (2.84 KB, patch)
2003-06-27 17:31 UTC, quetschke
no flags Details | Diff
Patch to set ENABLE_CRASHDUMP, no other functionality changed (2.17 KB, patch)
2003-06-30 17:27 UTC, quetschke
no flags Details | Diff
Typo in previous patch, use this. (2.17 KB, patch)
2003-06-30 17:41 UTC, quetschke
no flags Details | Diff
ENABLE_CRASHDUMP for unxlngi4.mk (580 bytes, patch)
2003-06-30 18:12 UTC, quetschke
no flags Details | Diff
Patch for configure.in (1.09 KB, patch)
2003-07-08 16:16 UTC, quetschke
no flags Details | Diff
Patch for files in solenv/inc/ (3.21 KB, patch)
2003-07-11 17:14 UTC, quetschke
no flags Details | Diff
Patch for configure.in and set_soenv.in (3.95 KB, patch)
2003-07-11 17:14 UTC, quetschke
no flags Details | Diff
Patch for config_office/ (4.52 KB, patch)
2003-07-25 10:19 UTC, quetschke
no flags Details | Diff
Patch for solenv/inc/ (3.36 KB, patch)
2003-07-25 10:20 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Hollmichel 2003-05-15 14:15:31 UTC
introduce ENABLE_CRASHDUMP var for making the crashdump feature configurable and
avoid -g switch in CFLAGS as default.
Comment 1 foskey 2003-05-15 14:25:43 UTC
The -g is added by configure by option.  The issue here is that it
keeps coming back because SO developers must change their internal
software.
Comment 2 Martin Hollmichel 2003-05-15 14:56:06 UTC
mh->waratah: that what is this issue for.
Comment 3 hjs 2003-06-03 14:42:16 UTC
enclose additional crashdump compilerflags in ENABLE_CRASHDUMP
Comment 4 hjs 2003-06-04 13:25:51 UTC
CFLAGSCRASHDUMP now set in "wnt.mk", "unxlngi5.mk" and "unxsols4.mk".
the defined switches get inserted in "settings.mk" if the environment
variable ENABLE_CRASHDUMP is set. please do the according cvhanges in
"config_office".

Comment 5 quetschke 2003-06-27 17:31:11 UTC
Created attachment 7189 [details]
Patch for configure.in and set_soenv.in
Comment 6 quetschke 2003-06-27 17:31:55 UTC
Untested patch, but it should do.
Comment 7 quetschke 2003-06-30 13:29:31 UTC
Added approval_pending flag
Comment 8 Martin Hollmichel 2003-06-30 14:09:00 UTC
it doesn't work, I assume previous version (GTK test) killed me:

line 4891: syntax error near unexpected token `GTK,`
line 4891: `      PKG_CHECK_MODULES( GTK, $pkg_modules )` 

Comment 9 foskey 2003-06-30 14:19:06 UTC
Please use autoreconf not autoconf.  I will check whether I should
commit my aclocal to remove this problem for others.
Comment 10 foskey 2003-06-30 15:44:32 UTC
I am not sure whether I like removing the existing flagg to add -g. 
There may well be other platforms that do not have crashdump that want
the -g option to stay in place.

This patch must be held up until all patches are inplace in the
solenv/inc directory.
Comment 11 quetschke 2003-06-30 17:27:30 UTC
Created attachment 7276 [details]
Patch to set ENABLE_CRASHDUMP, no other functionality changed
Comment 12 quetschke 2003-06-30 17:41:18 UTC
Created attachment 7277 [details]
Typo in previous patch, use this.
Comment 13 quetschke 2003-06-30 18:12:31 UTC
Created attachment 7278 [details]
ENABLE_CRASHDUMP for unxlngi4.mk
Comment 14 sander_traveling 2003-06-30 18:18:58 UTC
unxlgni4.mk change approved
Comment 15 quetschke 2003-06-30 18:22:38 UTC
unxlgni4.mk change committed

Comment 16 quetschke 2003-06-30 19:28:03 UTC
If I'm not wrong, the crashreporter needs a build with symbols. That
means that all systems, except WNT, have to call configure with
 --enable-symbols to get a working crashreporter.

This also means that without my c_o2.diff there is no way (without
tweaking) to get the WNT version been build with symbols, because the
--enable-symbols switch doesn't enable symbols for WNT.

Setting the ENABLE_CRASHDUMP variable enables the build with symbols on
wnt, unxlngi4, unxlngi5 and unxsols4.mk.

I make this prio 2: Basic functionality is not working correctly.

(Maybe I'm wrong, but I consider the crashrep very important, and a
must have for the RC)
Comment 17 quetschke 2003-06-30 19:31:12 UTC
I said prio 2!
Comment 18 Martin Hollmichel 2003-07-04 10:54:37 UTC
mh->vq: configure patch approved.
Comment 19 quetschke 2003-07-04 11:05:24 UTC
Committed to RC
Comment 20 quetschke 2003-07-07 11:19:41 UTC
This patch is not merged to rc2!
Comment 21 quetschke 2003-07-07 11:36:41 UTC
merged to RC2
Comment 22 pavel 2003-07-07 12:49:16 UTC
If you disable crashrep build, do you still need to have GTK
installed? If so, it is a bug.
Comment 23 quetschke 2003-07-08 16:16:26 UTC
Created attachment 7480 [details]
Patch for configure.in
Comment 24 quetschke 2003-07-08 16:18:40 UTC
The c_o3.diff patch changes the ENABLE_CRASHDUMP from "yes" to "TRUE"
as described in 16528.

Will commit soon to RC2
Comment 25 quetschke 2003-07-08 16:50:20 UTC
Committed c_o3.diff to RC2
Comment 26 quetschke 2003-07-09 15:43:19 UTC
I'd like to close this issue, but before we can do so, some
documentation of the ENABLE_CRASHDUMP variable would be usefull!

Is there a place for such documentation?

The documentation should also mention that --enable-crashdump
enables the build with symbols for WNT, Solaris and unxlngi4 and
unxlngi5 and not for other Systems.

The "settings" could be a bit more consistent. Better would be to have
also a --enable-symbols switch with an ENABLE_SYMBOLS variable. And in
the <OS_specific>.mk set CFLAGSENABLESYMBOLS instead of
CFLAGSCRASHDUMP to the correct compiler switch.

The configure would then implicitly set --enable-symbols when called
with --enable-crashdump.

And settings.mk would check for ENABLE_SYMBOLS instead of
ENABLE_CRASHDUMP != "".

This would also make sense for systems where no crashrep is available.

vq->mh: Just assign this issue back to me if the last --enable-symbols
part sounds reasonable, I will create a patch.
(This obsoletes issue 12442)
Comment 27 Martin Hollmichel 2003-07-11 10:36:01 UTC
mh->vq: sounds good
Comment 28 quetschke 2003-07-11 17:13:08 UTC
I'm starting a build with the following two patches applied.

vq->waratah: I removed your ENVCFLAGS="-g" hack, if you want to
eanable a build with symbols, make sure you have a section like:

# flags to enable build with symbols; required for crashdump feature
CFLAGSENABLESYMBOLS=-g

in your unx*.mk.
Comment 29 quetschke 2003-07-11 17:14:06 UTC
Created attachment 7596 [details]
Patch for files in solenv/inc/
Comment 30 quetschke 2003-07-11 17:14:45 UTC
Created attachment 7597 [details]
Patch for configure.in and set_soenv.in
Comment 31 quetschke 2003-07-11 18:48:30 UTC
Patches work for me in tinderbox build.
OK for cws...rc2?
Comment 32 quetschke 2003-07-25 10:19:01 UTC
The following patches are the reworked version after the last changes
that went to configure.

It removes the ENVCFLAGS hack and moves the symbols switch to
the corresponding system makefiles.

We have at least three different compilers for the "core" builds
(gcc, MSVC and Solaris Forte), for two of them -g or -g1 is the
wrong switch, so this is the better approach.

Ken, please approve.

Mac and Freebsd have to change there unx*.mk files, but the changes
should be similar to unxlngi5.mk
Comment 33 quetschke 2003-07-25 10:19:59 UTC
Created attachment 8018 [details]
Patch for config_office/
Comment 34 quetschke 2003-07-25 10:20:38 UTC
Created attachment 8019 [details]
Patch for solenv/inc/
Comment 35 foskey 2003-07-25 11:59:27 UTC
Looks reasonable to me.  Appoved in concept.

Comment 36 quetschke 2003-07-30 19:08:13 UTC
Hi Ken,

> Looks reasonable to me.  Appoved in concept.

does that mean: "Ok, commit it" or "Wait, I'll change it and commit it
later"?

Volker
Comment 37 foskey 2003-07-31 02:44:10 UTC
OK for you to commit.
Comment 38 quetschke 2003-07-31 09:41:47 UTC
Take back ownership.
Comment 39 quetschke 2003-07-31 09:49:29 UTC
Committed to cws...rc3

Small summary:
Rework of the --enable-crashdump / --enable-symbols mechanism.

--enable-crashdump now implicitly activates --enable-symbols.

At the moment --enable-symbols enables the build with symbols for WNT,
Solaris, unxlngi4 and unxlngi5.

To enable a build with symbols (and get a usable crashreporter) when
your OS is not in the list above, make sure you use/supply a patch
with a section like:

# flags to enable build with symbols; required for crashdump feature
CFLAGSENABLESYMBOLS=-g

in your solenv/inc/<OS_specific>.mk.

The --enable-symbols=SMALL switch is also supported, when you use gcc
in your port consider using:

# flags to enable build with symbols; required for crashdump feature
.IF "$(ENABLE_SYMBOLS)"=="SMALL"
CFLAGSENABLESYMBOLS=-g1
.ELSE
CFLAGSENABLESYMBOLS=-g
.ENDIF

The CFLAGSCRASHDUMP variable is obsolete now.
Comment 40 quetschke 2004-06-02 15:54:58 UTC
verified
Comment 41 Martin Hollmichel 2004-09-27 11:18:04 UTC
close issue.