Closed
Bug 351476
Opened 18 years ago
Closed 17 years ago
Remove post-mozilla-rel.pl conversion of line endings in browser/EULA and other files
Categories
(Webtools Graveyard :: Tinderbox, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: robert.strong.bugs, Assigned: coop)
References
Details
Attachments
(9 files, 6 obsolete files)
1.37 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
1.07 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
592 bytes,
patch
|
Details | Diff | Splinter Review | |
1.38 KB,
patch
|
mscott
:
review+
|
Details | Diff | Splinter Review |
1.44 KB,
patch
|
kairo
:
review+
|
Details | Diff | Splinter Review |
568 bytes,
patch
|
rhelmer
:
review+
|
Details | Diff | Splinter Review |
1.71 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
1.62 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
1.52 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
We aren't using this file atm and will probably be removing it in the future due to:
Win32 / NSIS uses EULA.rtf
Mac OS X uses license.r
Linux doesn't display a EULA due to being a tar
Reporter | ||
Comment 1•18 years ago
|
||
Attachment #236872 -
Flags: review?(rhelmer)
Updated•18 years ago
|
Attachment #236872 -
Flags: review?(rhelmer) → review+
Reporter | ||
Comment 2•18 years ago
|
||
Comment on attachment 236872 [details] [diff] [review]
patch
bah... as is this could break 1.5.0.x due to it using the same script
Attachment #236872 -
Attachment is obsolete: true
Attachment #236872 -
Flags: review+
Reporter | ||
Comment 3•18 years ago
|
||
morphing this bug to cover all of the following... we should just do this during the build on win32 instead of modifying the source with post-mozilla-rel.pl.
if (TinderUtils::is_windows()) {
# hack for cygwin installs with "unix" filetypes
TinderUtils::run_shell_command("unix2dos $mozilla_build_dir/mozilla/LICENSE");
TinderUtils::run_shell_command("unix2dos $mozilla_build_dir/mozilla/mail/LICENSE.txt");
TinderUtils::run_shell_command("unix2dos $mozilla_build_dir/mozilla/README.txt");
TinderUtils::run_shell_command("unix2dos $mozilla_build_dir/mozilla/browser/EULA");
}
Summary: Remove post-mozilla-rel.pl conversion of line endings in the browser/EULA → Remove post-mozilla-rel.pl conversion of line endings in browser/EULA and other files
Reporter | ||
Comment 5•17 years ago
|
||
over to default owner in case someone has time to fix this
Assignee: robert.bugzilla → build
Updated•17 years ago
|
Priority: -- → P3
Updated•17 years ago
|
Assignee: build → rhelmer
Comment 6•17 years ago
|
||
still testing this so not asking for review; if we get this working on trunk and branch we can remove the unix2dos crud in tinderbox.
Updated•17 years ago
|
Status: NEW → ASSIGNED
Comment 7•17 years ago
|
||
(In reply to comment #0)
> We aren't using this file atm and will probably be removing it in the future
> due to:
> Win32 / NSIS uses EULA.rtf
> Mac OS X uses license.r
> Linux doesn't display a EULA due to being a tar
Hmm.. so no point in converting EULA or LICENSE.txt if it's not used then right? Is README.txt, on win32, the only file that needs EOL conversion then?
Reporter | ||
Comment 8•17 years ago
|
||
EULA isn't distributed but LICENSE.txt is as LICENSE in the installation directory. So I'd say LICENSE.txt and README.txt both need to be converted.
Comment 9•17 years ago
|
||
Note that creating a backup file ("-ibak") prevents this on the tryserver, which is running the latest win32 ref vm (msys):
Can't do inplace edit on ../../dist/bin/LICENSE: Permission denied.
As far as I can tell, inplace editing just doesn't work on Windows from Perl without making a backup file on the ref platform (perl 5.6.1); in fact it ends up just deleting the file (!).
Attachment #282792 -
Attachment is obsolete: true
Attachment #282842 -
Flags: review?(benjamin)
Updated•17 years ago
|
Attachment #282842 -
Attachment description: convert EOL on README/LICENSE after coping from srcdir for Firefox → convert EOL on README/LICENSE after copying from srcdir for Firefox
Updated•17 years ago
|
Whiteboard: waiting on review
Comment 10•17 years ago
|
||
Comment on attachment 282842 [details] [diff] [review]
convert EOL on README/LICENSE after copying from srcdir for Firefox
>Index: browser/locales/Makefile.in
> libs:: $(addprefix $(LOCALE_SRCDIR)/,$(README_FILES))
> $(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
>+ifeq ($(OS_ARCH), WINNT)
>+ perl -ibak -pe 's/(?<!\r)\n/\r\n/g;' \
>+ $(addprefix $(FINAL_TARGET),/$(README_FILES))
>+endif
Note: the space before WINNT will probably mess things up...
Rather than installing and then in-place editing, the easier/better way to do this is:
ifeq ($(OS_ARCH),WINNT)
for file in $^; do
$(PERL) -pe 's/(?<!\r)\n/\r\n/g;' < $file > $(FINAL_TARGET)/`basename $file`;
done
else
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)
endif
That also won't clutter dist/bin with .bak files.
Attachment #282842 -
Flags: review?(benjamin) → review-
Updated•17 years ago
|
Whiteboard: waiting on review → testing new patch
Comment 11•17 years ago
|
||
Attachment #282842 -
Attachment is obsolete: true
Attachment #283066 -
Flags: review?(benjamin)
Comment 12•17 years ago
|
||
might be nice if I specified the correct srcdir for LICENSE :)
Attachment #283066 -
Attachment is obsolete: true
Attachment #283095 -
Flags: review?(benjamin)
Attachment #283066 -
Flags: review?(benjamin)
Comment 13•17 years ago
|
||
Attachment #283095 -
Attachment is obsolete: true
Attachment #283208 -
Flags: review?(benjamin)
Attachment #283095 -
Flags: review?(benjamin)
Updated•17 years ago
|
Attachment #283208 -
Attachment is patch: true
Attachment #283208 -
Attachment mime type: application/octet-stream → text/plain
Comment 14•17 years ago
|
||
Comment on attachment 283208 [details] [diff] [review]
[checked in]convert EOL on README/LICENSE, do not edit inplace
>Index: browser/locales/Makefile.in
>+ifeq ($(OS_ARCH),WINNT)
>+ for file in $^; do \
>+ $(PERL) -pe 's/(?<!\r)\n/\r\n/g;' < $$file > $(FINAL_TARGET)/`basename $$file`; \
>+ done
Please add two spaces to the middle line so that it's <tab><space><space> indented relative to the "for" statement.
r=me
Attachment #283208 -
Flags: review?(benjamin) → review+
Comment 15•17 years ago
|
||
Oh also, please add an EXIT_ON_ERROR bit to this; for statements hide failure codes by default.
Comment 16•17 years ago
|
||
(In reply to comment #14)
> (From update of attachment 283208 [details] [diff] [review])
> >Index: browser/locales/Makefile.in
>
> >+ifeq ($(OS_ARCH),WINNT)
> >+ for file in $^; do \
> >+ $(PERL) -pe 's/(?<!\r)\n/\r\n/g;' < $$file > $(FINAL_TARGET)/`basename $$file`; \
> >+ done
>
> Please add two spaces to the middle line so that it's <tab><space><space>
> indented relative to the "for" statement.
>
> r=me
>
Done and landed (before I got comment #15):
Checking in browser/locales/Makefile.in;
/cvsroot/mozilla/browser/locales/Makefile.in,v <-- Makefile.in
new revision: 1.54; previous revision: 1.53
done
Checking in browser/app/Makefile.in;
/cvsroot/mozilla/browser/app/Makefile.in,v <-- Makefile.in
new revision: 1.138; previous revision: 1.137
done
Comment 17•17 years ago
|
||
Attachment #283235 -
Flags: review?(benjamin)
Updated•17 years ago
|
Attachment #283208 -
Attachment description: convert EOL on README/LICENSE, do not edit inplace → [checked in]convert EOL on README/LICENSE, do not edit inplace
Updated•17 years ago
|
Whiteboard: testing new patch → mostly landed, waiting on review
Comment 18•17 years ago
|
||
Comment on attachment 283235 [details] [diff] [review]
[checked in]add EXIT_ON_ERROR for EOL conversion
>Index: browser/app/Makefile.in
> libs::
> ifeq ($(OS_ARCH),WINNT)
>+ $(EXIT_ON_ERROR) \
> $(PERL) -pe 's/(?<!\r)\n/\r\n/g;' < $(topsrcdir)/LICENSE > $(DIST)/LICENSE
No need for EXIT_ON_ERROR here since you've only got a single command running
Attachment #283235 -
Flags: review?(benjamin) → review+
Comment 19•17 years ago
|
||
(In reply to comment #18)
> (From update of attachment 283235 [details] [diff] [review])
> >Index: browser/app/Makefile.in
>
> > libs::
> > ifeq ($(OS_ARCH),WINNT)
> >+ $(EXIT_ON_ERROR) \
> > $(PERL) -pe 's/(?<!\r)\n/\r\n/g;' < $(topsrcdir)/LICENSE > $(DIST)/LICENSE
>
> No need for EXIT_ON_ERROR here since you've only got a single command running
>
Thanks, just landed the change to browser/locales/Makefile.in:
Checking in browser/locales/Makefile.in;
/cvsroot/mozilla/browser/locales/Makefile.in,v <-- Makefile.in
new revision: 1.55; previous revision: 1.54
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 20•17 years ago
|
||
Actually, we didn't remove anything from post-mozilla-rel.pl yet so leaving this open.
In order to do that I think we'll need to get this patch on the branch, and also the other projects that use Tinderbox for win32 builds (Thunderbird, Seamonkey, Calendar at least).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 21•17 years ago
|
||
Comment on attachment 283208 [details] [diff] [review]
[checked in]convert EOL on README/LICENSE, do not edit inplace
>Index: browser/app/Makefile.in
>+ifeq ($(OS_ARCH),WINNT)
>+ $(PERL) -pe 's/(?<!\r)\n/\r\n/g;' < $(topsrcdir)/LICENSE > $(DIST)/LICENSE
>+else
> $(INSTALL) $(topsrcdir)/LICENSE $(DIST)/bin
$(DIST)/LICENSE for Windows, $(DIST)/bin/LICENSE otherwise? packages-static is still looking (in vain) for it in bin/LICENSE, according to the top of the tinderbox brief log.
Comment 22•17 years ago
|
||
Ouch! good catch, thanks philor:
Checking in browser/app/Makefile.in;
/cvsroot/mozilla/browser/app/Makefile.in,v <-- Makefile.in
new revision: 1.139; previous revision: 1.138
done
Updated•17 years ago
|
Attachment #283266 -
Attachment is patch: true
Attachment #283266 -
Attachment mime type: application/octet-stream → text/plain
Updated•17 years ago
|
Whiteboard: mostly landed, waiting on review → baking on trunk; need to coordinate tinderbox change
Updated•17 years ago
|
Attachment #283235 -
Attachment description: add EXIT_ON_ERROR for EOL conversion → [checked in]add EXIT_ON_ERROR for EOL conversion
Updated•17 years ago
|
Attachment #283266 -
Attachment description: copy to dist/bin/LICENSE not dist/LICENSE → [checked in] copy to dist/bin/LICENSE not dist/LICENSE
Comment 23•17 years ago
|
||
Returning to the default assignee for now.
Still needed if we want to remove this from Tinderbox:
* port the build system change here to other products
* merge the change to Firefox branches
* remove conversion from post-mozilla-rel.pl in Tinderbox
Alternatively, could special-case Firefox in post-mozilla-rel.pl, but that's messy and I don't think there's any reason not to do it right (the above 3 bullet points).
Assignee: rhelmer → build
Status: REOPENED → NEW
Assignee | ||
Updated•17 years ago
|
Assignee: build → ccooper
Assignee | ||
Comment 24•17 years ago
|
||
Attachment #300409 -
Flags: review?(mscott)
Assignee | ||
Comment 25•17 years ago
|
||
Attachment #300410 -
Flags: review?(kairo)
Comment 26•17 years ago
|
||
Comment on attachment 300409 [details] [diff] [review]
[checked in] Convert EOL on README/LICENSE, do not edit inplace (Mail)
thanks coop.
Attachment #300409 -
Flags: review?(mscott) → review+
Assignee | ||
Comment 27•17 years ago
|
||
Attachment #300412 -
Flags: review?(ause)
Updated•17 years ago
|
Attachment #300410 -
Flags: review?(kairo) → review+
Comment 28•17 years ago
|
||
(In reply to comment #27)
> Created an attachment (id=300412) [details]
> Convert EOL on README/LICENSE, do not edit inplace (Calendar)
>
the patch is fine but the changed part in calendar/locales/Makefile.in is just on the move to calendar/sunbird/locales/Makefile.in (Bug 413868). i'll to get that coordinated.
Assignee | ||
Updated•17 years ago
|
Attachment #300412 -
Flags: review?(ause) → review+
Assignee | ||
Comment 29•17 years ago
|
||
Attachment #307227 -
Flags: review?(rhelmer)
Assignee | ||
Comment 30•17 years ago
|
||
Any of the affected projects (Thunderbird, SeaMonkey, Calendar) object to my landing the Makefile.in changes this week?
Comment 31•17 years ago
|
||
Calendar changed the location where the README file is processed, this patch takes care.
Carrying forth r+ since only file location changed. Also checking in on HEAD, MOZILLA_1_8_BRANCH, and SUNBIRD_0_8_BRANCH (we are shortly before release phase).
Attachment #300412 -
Attachment is obsolete: true
Attachment #307240 -
Flags: review+
Comment 32•17 years ago
|
||
Comment on attachment 307227 [details] [diff] [review]
[checked in] Remove unix2dos calls in post-mozilla-rel.pl
yay
Attachment #307227 -
Flags: review?(rhelmer) → review+
Assignee | ||
Comment 33•17 years ago
|
||
Comment on attachment 307227 [details] [diff] [review]
[checked in] Remove unix2dos calls in post-mozilla-rel.pl
Checking in post-mozilla-rel.pl;
/cvsroot/mozilla/tools/tinderbox/post-mozilla-rel.pl,v <-- post-mozilla-rel.pl
new revision: 1.142; previous revision: 1.141
done
Attachment #307227 -
Attachment description: Remove unix2dos calls in post-mozilla-rel.pl → [checked in] Remove unix2dos calls in post-mozilla-rel.pl
Assignee | ||
Updated•17 years ago
|
Attachment #300409 -
Attachment description: Convert EOL on README/LICENSE, do not edit inplace (Mail) → [checked in] Convert EOL on README/LICENSE, do not edit inplace (Mail)
Assignee | ||
Updated•17 years ago
|
Attachment #300410 -
Attachment description: Convert EOL on README/LICENSE, do not edit inplace (SeaMonkey) → [checked in] Convert EOL on README/LICENSE, do not edit inplace (SeaMonkey)
Assignee | ||
Comment 34•17 years ago
|
||
All the trunk patches have landed. I'll work up branch patches for Firefox and Thunderbird tonight/tomorrow.
Whiteboard: baking on trunk; need to coordinate tinderbox change
Assignee | ||
Comment 35•17 years ago
|
||
Assignee | ||
Comment 36•17 years ago
|
||
Assignee | ||
Updated•17 years ago
|
Attachment #307577 -
Flags: review?(benjamin)
Assignee | ||
Updated•17 years ago
|
Attachment #307578 -
Flags: review?(benjamin)
Updated•17 years ago
|
Attachment #307577 -
Flags: review?(benjamin) → review+
Updated•17 years ago
|
Attachment #307578 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 37•17 years ago
|
||
benjamin: need sr? and a? to land these 1.8 patches?
Comment 38•17 years ago
|
||
need a
Assignee | ||
Updated•17 years ago
|
Flags: wanted1.8.1.x?
Flags: blocking1.8.1.14?
Comment 39•17 years ago
|
||
Why do we need this on the 1.8 branch? Is it really a blocker, or a "nice to have"?
To check in you need "approval1.8.1.15+" on a patch, regardless of whether the bug is a blocker or not. We do approve non-blockers, at least early in the release.(see rules on the tinderbox page)
Assignee | ||
Comment 40•17 years ago
|
||
(In reply to comment #39)
> Why do we need this on the 1.8 branch? Is it really a blocker, or a "nice to
> have"?
It's not technically a blocker, it just allows us to clean up our build scripts a bit.
> To check in you need "approval1.8.1.15+" on a patch, regardless of whether the
> bug is a blocker or not. We do approve non-blockers, at least early in the
> release.(see rules on the tinderbox page)
If someone want to offer up an approval, that's great. I can't even set the flag to ask for one it seems.
Comment 41•17 years ago
|
||
(In reply to comment #40)
> > To check in you need "approval1.8.1.15+" on a patch
>
> If someone want to offer up an approval, that's great. I can't even set the
> flag to ask for one it seems.
Not in the "mozilla.org" Product, no. Those flags only exist in the Client-oriented products where they make sense. If this bug is changing code in the mozilla client source tree maybe it should be moved to the "Core:Build config" product:component.
Comment 42•17 years ago
|
||
Not blocking but will consider approving patches.
Flags: blocking1.8.1.15? → blocking1.8.1.15-
Comment 43•17 years ago
|
||
(In reply to comment #42)
> Not blocking but will consider approving patches.
Can you approve the last two patches above? They are already r+'d by bsmedberg, and are all we need to land on the 1.8 branch.
Comment 44•17 years ago
|
||
Worked with dveditz to spin off bug#432311 for the 1.8 branch landings.
Is there anything left to do in this bug?
Comment 45•17 years ago
|
||
Dependent bugs for branch landings now closed, so marking as FIXED.
Status: NEW → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: wanted1.8.1.x? → wanted1.8.1.x+
Updated•17 years ago
|
Flags: wanted1.8.1.x+
Component: Tinderbox Configuration → Tinderbox
Flags: blocking1.8.1.15-
Product: mozilla.org → Webtools
Updated•10 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•