version 1.9, 2016/06/19 09:21:40
|
version 1.10, 2017/01/22 13:00:58
|
Line 1
|
Line 1
|
[[!meta title="How to update pkgsrc/www/firefox"]] |
[[!meta title="How to update pkgsrc/www/firefox"]] |
|
|
This article shows how to update pkgsrc/www/firefox package to latest release. |
This article shows you how to update pkgsrc/www/firefox package to latest |
|
release. |
You can use Mozilla's Mercurial (hg) repositories to track upstream changes. |
You can use Mozilla's Mercurial (hg) repositories to track upstream changes. |
|
|
You should have pkgsrc/meta-pkgs/pkg_developer package. |
You should have pkgsrc/meta-pkgs/pkg_developer package |
|
and pkgsrc/devel/py-mercurial package. |
|
|
# Clone hg tree |
# Clone hg tree |
See <https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Source_Code/Mercurial>. |
See <http://mozilla-version-control-tools.readthedocs.io/en/latest/hgmozilla/unifiedrepo.html> |
|
|
You should follow "Using Bookmarks to Manage Multiple Repositories from a Single Clone" section. |
|
|
|
|
You should follow "Working with the Unified Repo" section. |
|
In short, run: |
|
$ hg clone https://hg.mozilla.org/mozilla-unified |
|
|
# Update trees to latest |
# Update trees to latest |
|
|
$ hg pull central |
|
$ hg pull inbound |
|
$ hg pull aurora |
|
$ hg pull beta |
|
$ hg pull release |
|
|
|
$ hg update |
$ hg update |
|
|
|
|
Line 26 You should follow "Using Bookmarks to Ma
|
Line 23 You should follow "Using Bookmarks to Ma
|
|
|
Find latest release. |
Find latest release. |
|
|
$ hg tags|grep 46_ |
$ hg tags|grep 50_ |
(snip) |
(snip) |
FIREFOX_46_0_1_RELEASE 341775:0b8492c110be |
FIREFOX_50_1_0_RELEASE 359965:8612c3320053 |
(snip) |
(snip) |
|
|
Checkout the branch. |
Checkout the branch. |
|
|
$ hg checkout FIREFOX_46_0_1_RELEASE |
$ hg checkout FIREFOX_50_1_0_RELEASE |
|
|
Create named branch for applying pkgsrc patches |
Create named branch for applying pkgsrc patches |
|
|
$ hg branch pkgsrc_firefox-46.0.1 |
$ hg branch pkgsrc_firefox-50.1.0 |
$ hg commit -m "Create pkgsrc_firefox-46.0.1 branch for applying pkgsrc patches" |
$ hg commit -m "Create pkgsrc_firefox-50.1.0 branch for applying pkgsrc patches" |
|
|
Add .*\.orig$ to .hgignore, and commit this change |
Add .*\.orig$ to .hgignore, and commit this change |
|
|
Line 52 Add .*\.orig$ to .hgignore, and commit t
|
Line 49 Add .*\.orig$ to .hgignore, and commit t
|
$ popd |
$ popd |
$ cat /usr/pkgsrc/www/firefox/patches/patch-*|patch -p0 |
$ cat /usr/pkgsrc/www/firefox/patches/patch-*|patch -p0 |
$ hg add ...(necessary files) |
$ hg add ...(necessary files) |
$ hg commit -m "Apply pkgsrc patches for firefox-46.0.1nb1" |
$ hg commit -m "Apply pkgsrc patches for firefox-50.1.0nb3" |
|
|
|
|
# Checkout latest beta source, and create your branch |
# Checkout latest beta source, and create your branch |
|
|
Find latest branch. |
Find latest branch. |
|
|
$ hg tags | grep 47_ |
$ hg tags | grep 51_ |
(snip) |
(snip) |
FIREFOX_47_0b9_RELEASE 341367:2ee4473c729a |
FIREFOX_51_0b14_RELEASE 364880:09142d07fd73 |
(snip) |
(snip) |
|
|
Checkout the branch. |
Checkout the branch. |
|
|
$ hg checkout FIREFOX_47_0b9_RELEASE |
$ hg checkout FIREFOX_51_0b14_RELEASE |
|
|
Create named branch for working. |
Create named branch for working. |
|
|
$ hg branch ryoon_firefox-47.0b9 |
$ hg branch ryoon_firefox-51.0 |
$ hg commit -m "Create ryoon_firefox-47.0 branch for merging pkgsrc patches" |
$ hg commit -m "Create ryoon_firefox-51.0 branch for merging pkgsrc patches" |
|
|
Add .*\.orig$ to .hgignore, and commit this change |
Add .*\.orig$ to .hgignore, and commit this change |
|
|
Line 79 Add .*\.orig$ to .hgignore, and commit t
|
Line 76 Add .*\.orig$ to .hgignore, and commit t
|
|
|
# Merge your patches |
# Merge your patches |
|
|
$ hg merge pkgsrc_firefox-46.0.1 |
$ hg merge pkgsrc_firefox-50.1.0 |
$ hg resolve -l |
$ hg resolve -l |
$ vi file/marked/as/U |
$ vi file/marked/as/U |
$ hg resolve --mark file/marked/as/U |
$ hg resolve --mark file/marked/as/U |
(loop) |
(loop) |
$ hg commit -m "Merge pkgsrc_firefox-46.0.1 branch to 47.0" |
$ hg commit -m "Merge pkgsrc_firefox-50.1.0 branch to 51.0" |
|
|
|
|
# Create patch file for patch -p0 |
# Create patch file for patch -p0 |
|
|
$ hg diff -r (revision of first commit in ryoon_firefox-47.0b9) | \ |
$ hg diff -r (revision of first commit in ryoon_firefox-51.0) | \ |
sed -e 's!^--- a/!--- !' -e 's!^+++ b/!+++ !' > ~/firefox-47.0.diff |
sed -e 's!^--- a/!--- !' -e 's!^+++ b/!+++ !' > ~/firefox-51.0.diff |
$ vi ~/firefox-47.0.diff |
$ vi ~/firefox-51.0.diff |
(Remove patch to .hgignore) |
(Remove patch to .hgignore) |
(Remove patch to .hgtags) |
(Remove patch to .hgtags) |
|
|
Line 103 Add .*\.orig$ to .hgignore, and commit t
|
Line 100 Add .*\.orig$ to .hgignore, and commit t
|
(Remove PKGREVISION) |
(Remove PKGREVISION) |
$ make mdi |
$ make mdi |
$ make extract |
$ make extract |
$ pushd ${WRKOBJDIR}/www/firefox/work/mozilla-beta |
$ pushd ${WRKOBJDIR}/www/firefox/work/${DISTNAME} |
$ patch -p0 < ~/firefox-47.0.diff |
$ patch -p0 < ~/firefox-51.0.diff |
$ popd |
$ popd |
$ mkpatches |
$ mkpatches |
$ patchdiff |
$ patchdiff |