Closed Bug 301158 Opened 21 years ago Closed 21 years ago

cannot make xpinstall/packager when building deerpark --with-system-nspr

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: caillon, Assigned: caillon)

Details

Attachments

(2 files)

In the makeinstall phase of my RPM, I traditionally perform the following: cd xpinstall/packager/ make MOZILLA_BIN="\$(DIST)/bin/firefox-bin" STRIP=/bin/true cd - Using deerpark alpha2 source, I get a bunch of 'cannot stat: no such file' errors posted on screen. Relevant portion of the log attached. This is not an issue when --without-system-nspr is used, only --with-system-nspr
toolkit/mozapps/installer/packager.mk 213 ifdef MOZ_NATIVE_NSPR 214 ifndef EXCLUDE_NSPR_LIBS 215 @echo "Copying NSPR libs..." 216 @cp -p $(NSPR_LDIR)/*$(DLL_SUFFIX) $(DIST)/$(MOZ_PKG_APPNAME) 217 @chmod 755 $(DIST)/$(MOZ_PKG_APPNAME)/*$(DLL_SUFFIX) 218 endif 219 endif We appear to attempt to copy over everything in the NSPR_LDIR when using MOZ_NATIVE_NSPR, which in this case is /usr/lib. That seems rather wrong. :-(
Attached patch Proposed patch — — Splinter Review
I think that the logic is reversed -- we want to copy NSPR over only when we are not building using the native libraries.
Attachment #189654 - Flags: review?(wtchang)
https://bugzilla.mozilla.org/show_bug.cgi?id=288647#c12 had a short discussion about that issue. As there was an easy workaround I didn't drive this forward but IMHO your patch is correct.
Attachment #189654 - Flags: review?(wtchang)
Attachment #189654 - Flags: review+
Attachment #189654 - Flags: approval1.8b4+
Packaging Firefox should use browser/installer not xpinstall/packager. Likewise tbird should be using mail/installer.
Taking bug.
Assignee: nobody → caillon
Checked into trunk 2005-07-18 12:21.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment on attachment 189654 [details] [diff] [review] Proposed patch >-ifdef MOZ_NATIVE_NSPR >+ifndef MOZ_NATIVE_NSPR > ifndef EXCLUDE_NSPR_LIBS > @echo "Copying NSPR libs..." > @cp -p $(NSPR_LDIR)/*$(DLL_SUFFIX) $(DIST)/$(MOZ_PKG_APPNAME) > @chmod 755 $(DIST)/$(MOZ_PKG_APPNAME)/*$(DLL_SUFFIX) > endif > endif While this change should be correct, the "cp" command copies more than just the NSPR libs because by default $(NSPR_LDIR) is $(DIST)/lib. Similarly, the "chmod" command operates on more than just the NSPR libs in $(DIST)/$(MOZ_PKG_APPNAME). Mozilla's build system owner should review these two issues.
Comment on attachment 189654 [details] [diff] [review] Proposed patch To elaborate on my previous comment: 1. The "cp" and "chmod" commands are only intended to operate on the three NSPR libs (libnspr4.so, libplc4.so, libplds4.so). The use of "*" in these two commands makes them operate on more files than intended. 2. Previously, because of the reversed logic with MOZ_NATIVE_NSPR, we may have depended on the overly general side effects of these two commands. Now that the logic is fixed, we may need to add "cp" or "chmod" command to copy other files or change the file permissions to 755 on other files.
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: