Closed Bug 297811 Opened 20 years ago Closed 20 years ago

Disable updater if iconv not found

Categories

(Firefox Build System :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8beta3

People

(Reporter: darin.moz, Assigned: darin.moz)

References

Details

Attachments

(1 file, 1 obsolete file)

Disable updater if iconv not found This only applies to Windows.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8beta3
Attached patch v1 patch (obsolete) — Splinter Review
Attachment #186361 - Flags: review?(cls)
Blocks: 290390
I don't think this is a good idea. I think we should AC_MSG_ERROR and halt configure, rather than making the build options depend on the particular machine.
OK, I was just following the example of --enable-extensions. We AC_MSG_WARN (and keep going) when we cannot build xmlterm, gnomevfs, venkman, tridentprofile, and xforms due to missing prereqs. Should those be changed too? Or, are those different somehow?
Some are different, and some are wrong: tridentprofile, for example, could never work on non-windows, so it makes sense to warn+disable, as it makes sense to warn+disable gnomevfs on windows. But we should error out if gnomevfs doesn't have the proper prerequistes on unix, we should error. In any case, I don't want to end up in the situation where a misconfigured tinderbox machine or build machine could succeed "accidentally" without building the update system.
OK, that makes sense.
note that some of those build options warn+continue if enabled implicitly, but halt if enabled explicitly (gnomevfs, for example). Why should we show an error if gnomevfs dependencies are not found? That's not how most other configure scripts are working.
We are different from most configure-based products, in that we do not expect people to configure themself and build from source, with whatever configuration they happen to have: our build system is geared to producing end-user binaries, and the host system that is doing the build should not in general affect build options.
Comment on attachment 186361 [details] [diff] [review] v1 patch I don't think win32 is the only platform that will not have iconv installed by default. Regarding hard & soft dependencies, I believe that the only reason we starting using the warn+disable method for certain items is because we didn't want to have to keep track of a separate EXTENSIONS_ALL list for each platform. Otherwise, we have hard dependencies for practically everything else. Unless it's practically impossible to build a feature for a particular platform (e.g., xmlterm for win32), we shouldn't let the installed packages on the machine determine the feature set of the application. FWIW, if there was a AC_MSG_INFO, I would use that instead of warning about the missing gnomevfs dependency when building on win32 since it's just an informational message to inform people that not everything in the default or all extension list is being built. We could silently disable those but I think that would lead to an equal or greater number of complaints.
Attachment #186361 - Flags: review?(cls) → review-
> I don't think win32 is the only platform that will not have iconv installed by > default. The updater only needs iconv under win32, so I only require iconv under win32. Is this somehow not the right thing to do?
Attached patch v1.1 patchSplinter Review
Changed AC_MSG_WARN to AC_MSG_ERROR.
Attachment #186361 - Attachment is obsolete: true
Attachment #186419 - Flags: review?(cls)
Comment on attachment 186419 [details] [diff] [review] v1.1 patch Sorry, I thought iconv was being called universally.
Attachment #186419 - Flags: review?(cls) → review+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: