Closed Bug 1526519 Opened 6 years ago Closed 6 years ago

Change the Firefox build systems to allow other users of Gecko to override security/nss.symbols

Categories

(Thunderbird :: Build Config, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: KaiE, Assigned: rjl)

References

Details

Attachments

(1 file)

Thunderbird might need additional symbols from NSS that Firefox doesn't need or want to export.

Or, Thunderbird might require exporting of additional symbols on a stable branch, and Firefox might not want to make such a change on a stable branch.

Therefore I suggest that we consider one of the following options:

(a) introduce a new configuration option, that tells the build system
to use a replacement for the security/nss.symbols file.

(b) disable MOZ_FOLD_LIBS for Thunderbird
(found in old-configure.in)
and use the classic style individual shared libraries on Windows and OSX
(does this still work on those platforms?)

Component: General → Build Config
Product: Firefox Build System → Thunderbird

Kim, if a change to the Firefox build system is necessary to make this overridable, is Thunderbird the right bugzilla product?

Flags: needinfo?(kmoir)
Summary: Allow Thunderbird to override security/nss.symbols → Change the Firefox build systems to allow other users of Gecko to override security/nss.symbols
Component: Build Config → General
Flags: needinfo?(kmoir)
Product: Thunderbird → Firefox Build System

I found it's already possible.

File nss.symbols supports a config variable NSS_EXTRA_SYMBOLS_FILE.
Thunderbird could define that file in comm/mail/confvars.sh if extra symbols needs to be exported.

I played with the firefox configuration script, and this patch implements a new configure option to define the extra file.
Not sure if we need it.

Assignee: nobody → kaie

This can be done by changing comm/mail/confvars.sh as you said. I don't see any reason to change the build code.

NSS_EXTRA_SYMBOLS_FILE=$commtopsrcdir/nss.symbols

...or wherever it goes.

Similarly if MOZ_FOLD_LIBS needs to be unset:

MOZ_FOLD_LIBS=

would be enough. I don't know what the latter will affect, or as you asked, will it even build.

I assume that Seamonkey would need the same changes, so comm/suite/confvars.sh will need to be updated as well.

You can assign this to me and I can take care of the changes. Moving back to Thunderbird-Build Config.

Component: General → Build Config
Product: Firefox Build System → Thunderbird

Rob, I agree it's unnecessary. Thanks for your additional explanations.

Note that the variable NSS_EXTRA_SYMBOLS_FILE needs to be set to a relative path, relative to the mozilla subdirectory "security".

Assigning to you, for the final decision if any changes should be made. I'm ok with wontfix.

Assignee: kaie → rob
See Also: → 1529228

This will be handled in comm code only in bug 1529228.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: