Closed
Bug 506020
Opened 15 years ago
Closed 15 years ago
MozillaBuild's "install" command broken (WIN32_REDIST_DIR support broken)
Categories
(Firefox Build System :: MozillaBuild, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Mitch, Assigned: mook)
References
Details
Attachments
(1 file)
(deleted),
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
MozillaBuild 1.4RC2, Vista x64
From the MozillaBuild environment:
$ install
bash": /c/mozilla-build/vim/vim72/install: Bad file number
This rogue install.exe (without manifest) is clearly taking precedence over msys/bin/install.exe in PATH.
Comment 1•15 years ago
|
||
Hm, bummer, I didn't notice that there was one in the vim directory. Do we actually use install.exe for anything in the build process on Windows?
Reporter | ||
Comment 2•15 years ago
|
||
Comment 3•15 years ago
|
||
Actually they are nsinstall (at least on Win32)
http://mxr.mozilla.org/mozilla-central/search?string=^install+*%3D®exp=on&find=&findi=&filter=^[^\0]*%24&hitlimit=&tree=mozilla-central
Comment 4•15 years ago
|
||
Yeah, "install" is generally only used for installing things system-wide. I don't think we do that on Windows, so I don't think this is critical.
Comment 6•15 years ago
|
||
Apparently we use it in the bits of the build system that handle WIN32_REDIST_DIR, so this does break something. :-(
Summary: MozillaBuild's "install" command broken → MozillaBuild's "install" command broken (WIN32_REDIST_DIR support broken)
Comment 7•15 years ago
|
||
"install" was called directly here :(
http://mxr.mozilla.org/mozilla-central/source/build/win32/Makefile.in#73
Comment 8•15 years ago
|
||
As a workaround, just delete that install.exe from the VIM folder for now. That's probably what I will do to fix this in MozillaBuild.
Comment 9•15 years ago
|
||
I just renamed it to vim-install.exe
Comment 10•15 years ago
|
||
Actually I suspect renaming the file and adding a README_mozilla-build.txt file explaining that the file was renamed and why might be better.
Distributing the package without the file probably violates the license for distribution.
Comment 11•15 years ago
|
||
(In reply to comment #10)
> Actually I suspect renaming the file and adding a README_mozilla-build.txt file
> explaining that the file was renamed and why might be better.
> Distributing the package without the file probably violates the license for
> distribution.
The Vim license is quite generous, see ":help license" in a running Vim.
Alternately, putting the Vim install executable sufficiently "late" in the $PATH might be enough... provided you make sure that you always call _that_ install.exe either with a full path or (on Window) after cd to its directory. I believe this is a reasonable assumption.
Comment 12•15 years ago
|
||
(In reply to comment #7)
> "install" was called directly here :(
> http://mxr.mozilla.org/mozilla-central/source/build/win32/Makefile.in#73
Shouldn't that actually call $(NSINSTALL) or $(SYSINSTALL) instead?
Assignee | ||
Comment 13•15 years ago
|
||
Since Songbird actually uses install.exe to copy files around, this turns out to be important for us :)
This just puts vim later in the path; assuming you don't have vim.exe / gvim.exe earlier (e.g. in /bin), that should be fine. My install of MozillaBuild (stock) doesn't, at least :D
Note that, in reading the vim license, it says something about having to note in :version that vim has been modified. That seems kinda hard for deleting a file, so I decided against doing that :)
I don't know why, but . appears in my path. That means running `install` when cwd is /c/mozilla-build/vim/vim72 will still use the vim version. I don't think I care about that case ;)
Assignee: nobody → mook
Attachment #435674 -
Flags: review?(ted.mielczarek)
Updated•15 years ago
|
Attachment #435674 -
Flags: review?(ted.mielczarek) → review+
Comment 14•15 years ago
|
||
Fixed in http://hg.mozilla.org/mozilla-build/rev/224a69b28acf (moved PATH order around) then forgotten for about a week :( sorry.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•2 years ago
|
Product: mozilla.org → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•