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)

x86
Windows XP
defect

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
Attached patch patch (obsolete) — Splinter Review
Attachment #236872 - Flags: review?(rhelmer)
Attachment #236872 - Flags: review?(rhelmer) → review+
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+
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
over to default owner in case someone has time to fix this
Assignee: robert.bugzilla → build
Assignee: build → rhelmer
Attached patch rough first shot (obsolete) — Splinter Review
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.
Status: NEW → ASSIGNED
Blocks: 397842
(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?
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.
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)
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
Whiteboard: waiting on review
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-
Whiteboard: waiting on review → testing new patch
Attachment #282842 - Attachment is obsolete: true
Attachment #283066 - Flags: review?(benjamin)
No longer blocks: 397842
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)
Attachment #283095 - Attachment is obsolete: true
Attachment #283208 - Flags: review?(benjamin)
Attachment #283095 - Flags: review?(benjamin)
Attachment #283208 - Attachment is patch: true
Attachment #283208 - Attachment mime type: application/octet-stream → text/plain
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+
Oh also, please add an EXIT_ON_ERROR bit to this; for statements hide failure codes by default.
(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
Attachment #283208 - Attachment description: convert EOL on README/LICENSE, do not edit inplace → [checked in]convert EOL on README/LICENSE, do not edit inplace
Whiteboard: testing new patch → mostly landed, waiting on review
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+
(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
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 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.
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
Attachment #283266 - Attachment is patch: true
Attachment #283266 - Attachment mime type: application/octet-stream → text/plain
Whiteboard: mostly landed, waiting on review → baking on trunk; need to coordinate tinderbox change
Attachment #283235 - Attachment description: add EXIT_ON_ERROR for EOL conversion → [checked in]add EXIT_ON_ERROR for EOL conversion
Attachment #283266 - Attachment description: copy to dist/bin/LICENSE not dist/LICENSE → [checked in] copy to dist/bin/LICENSE not dist/LICENSE
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: build → ccooper
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+
Attachment #300410 - Flags: review?(kairo) → review+
(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.
Attachment #300412 - Flags: review?(ause) → review+
Any of the affected projects (Thunderbird, SeaMonkey, Calendar) object to my landing the Makefile.in changes this week?
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 on attachment 307227 [details] [diff] [review] [checked in] Remove unix2dos calls in post-mozilla-rel.pl yay
Attachment #307227 - Flags: review?(rhelmer) → review+
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
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)
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)
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
Attachment #307577 - Flags: review?(benjamin)
Attachment #307578 - Flags: review?(benjamin)
Attachment #307577 - Flags: review?(benjamin) → review+
Attachment #307578 - Flags: review?(benjamin) → review+
benjamin: need sr? and a? to land these 1.8 patches?
need a
Flags: wanted1.8.1.x?
Flags: blocking1.8.1.14?
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)
(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.
(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.
Not blocking but will consider approving patches.
Flags: blocking1.8.1.15? → blocking1.8.1.15-
(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.
Worked with dveditz to spin off bug#432311 for the 1.8 branch landings. Is there anything left to do in this bug?
Dependent bugs for branch landings now closed, so marking as FIXED.
Status: NEW → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Flags: wanted1.8.1.x? → wanted1.8.1.x+
Flags: wanted1.8.1.x+
Component: Tinderbox Configuration → Tinderbox
Flags: blocking1.8.1.15-
Product: mozilla.org → Webtools
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: