Closed
Bug 681624
Opened 14 years ago
Closed 8 years ago
Allow skipping shlibsign (for cross compilation)
Categories
(NSS :: Build, defect)
NSS
Build
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: ted, Unassigned)
Details
Attachments
(1 file)
542 bytes,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
If you do a top-level NSS build, shlibsign is always invoked to sign the binaries. If you're cross-compiling, this step always fails, since shlibsign is built for the target architecture. The Mozilla build system works around this by only calling certain NSS Makefiles, and skipping shlibsign when cross-compiling. It would be nice to provide a variable that would allow skipping the shlibsign invocation so you could still do a top-level make for a cross-compile.
Attachment #555375 -
Flags: review?(wtc)
Updated•13 years ago
|
Attachment #555375 -
Flags: review?(wtc) → review?(kaie)
Comment 1•13 years ago
|
||
Comment on attachment 555375 [details] [diff] [review]
Set SKIP_SHLIBSIGN=1 to skip the signing step
You keep the current default unchanged, which is good.
Being able to "optionally" skip library signing seems to be an acceptable offering.
r=kaie
Please allow 1-2 days for Bob or Wan-Teh to comment, in case they want to veto.
Attachment #555375 -
Flags: review?(kaie) → review+
Comment 2•13 years ago
|
||
I have already fixed this bug in the second patch for bug 772144. Instead of skipping the signing, it requires that you build NSS for the host (or have it pre-installed) and then uses the host's shlibsign to do the signing.
If you skip the signing then you also end up having to skip some of the tests that depend on the signing. So, I think it is better to avoid skipping the signing.
Reporter | ||
Comment 3•13 years ago
|
||
That seems like a lot of extra effort just to make this work, but I'm not married to this patch. It was just the easiest thing to do to work around the issue when I was trying to test NSS on iOS.
Comment 4•13 years ago
|
||
I thought of another reason that we need to skip signing:
For Gecko, at least on Windows, we cannot shlibsign the libraries until after we've Authenticode signed them, but we don't Authenticode sign the libraries as part of the build. So, instead, we do the shlibsign as part of the separate signing step.
> NSS on iOS.
Awesome! You might check with rsleevi and wtc about whether they've already done a port of NSS to iOS.
Comment 5•13 years ago
|
||
Comment on attachment 555375 [details] [diff] [review]
Set SKIP_SHLIBSIGN=1 to skip the signing step
Review of attachment 555375 [details] [diff] [review]:
-----------------------------------------------------------------
::: security/nss/cmd/shlibsign/Makefile
@@ +124,2 @@
> libs install :: $(CHECKLOC)
> +endif
Nit: A more make-y way of doing this would be to provide new targets.
Comment 6•13 years ago
|
||
[slightly offtopic of the original bug] In response to Comment #4 - As with most things Chromium, we did it in a way that ignores the NSS build system :)
We do build NSS for Chromium on iOS, but build it as a static library (see bug #534471 / http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/nss/patches/nss-static.patch?revision=169374&view=markup ), as required by Apple.
[slightly on-topic to the original bug] In response to Comment #1 - Note that on Gentoo (ergo on ChromiumOS), cross-compiling NSS is also treated as a build-depends on the host machine having a runnable shlibsign to sign the target-machine binaries. Gentoo (and CrOS) basically have a patch similar to what Brian's done, to move it out of the compile path and put it into the ebuild/configuration path.
Comment 7•13 years ago
|
||
(In reply to Brian Smith (:bsmith) from comment #2)
>
> If you skip the signing then you also end up having to skip some of the
> tests that depend on the signing. So, I think it is better to avoid skipping
> the signing.
We can change the test script to run shlibsign first if SKIP_SHLIBSIGN
is set. It would be nice to name the variable SKIP_SHLIBSIGN_DURING_BUILD
to make the intention clearer.
Reporter | ||
Updated•8 years ago
|
Assignee: ted → nobody
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•