Gentoo Archives: gentoo-catalyst

From: Brian Dolbec <dolsen@g.o>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] rewrite-on-master branch
Date: Sat, 20 Jul 2013 14:32:25
Message-Id: 1374330721.10868.39.camel@big_daddy.dol-sen.ca
In Reply to: Re: [gentoo-catalyst] rewrite-on-master branch by Brian Dolbec
1 On Sat, 2013-07-20 at 02:39 -0700, Brian Dolbec wrote:
2 > On Fri, 2013-07-19 at 21:52 -0700, Matt Turner wrote:
3 > > I'm not okay with redoing the rename the branches trick. Let's use git
4 > > how it's supposed to be used.
5 > >
6 > > I've rebased the origin/3.0 branch onto master. There are 81 patches in it.
7 > >
8 > > All of the differences between origin/3.0 and rewrite-on-master seem
9 > > to be mistakes in the 3.0 branch.
10 > >
11 > > I'm not advocating pushing this to master yet. The series needs review
12 > > and some clean up.
13 > >
14 >
15 > No, there is no 3.0 mistakes in the diff, a few minor differences and
16 > the bindist and unpack_command commits that weren't in my 3.0 rewrite.
17 >
18
19 >
20 > diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh
21 > index a5d6a01..4ddb636 100755
22 > --- a/targets/stage1/stage1-chroot.sh
23 > +++ b/targets/stage1/stage1-chroot.sh
24 > @@ -41,6 +41,9 @@ if [ -n "${clst_update_seed}" ]; then
25 > echo "Invalid setting for update_seed: ${clst_update_seed}"
26 > exit 1
27 > fi
28 > +
29 > + # reset emerge options for the target
30 > + clst_update_seed=no setup_myemergeopts
31 > else
32 > echo "Skipping seed stage update..."
33 > fi
34 >
35 >
36 > This one I want to check out more why it is different, but I suspect
37 > it is a difference in what Jorge committed to master which was a little different
38 > than I had in 3.0. I later rebased those changes a few times once we got the bugs
39 > worked out.
40
41 OK, this one is a rebase error from your cherrypicking.
42
43 Below is the code chunk from your rebase. I had correctly moved the
44 code in question into the "if" where it should be. That code was still
45 in the original location, so is now a duplicate of the code in the
46 correct location. The mistake was/is present in current master. The
47 3.0 version is the correct one.
48
49 # Update stage3
50 27 if [ -n "${clst_update_seed}" ]; then
51 28 if [ "${clst_update_seed}" == "yes" ]; then
52 29 if [ -n "${clst_update_seed_command}" ]; then
53 30 echo "--- Updating seed stage with USER defined update_seed_command"
54 31 clst_root_path=/ run_merge "${clst_update_seed_command}"
55 32 else
56 33 echo "--- Updating seed stage with DEFAULT update_seed_command"
57 34 update_cmd="--update --deep --complete-graph --rebuild-if-new-ver gcc"
58 35 clst_root_path=/ run_merge ${update_cmd}
59 36 fi
60 37
61 38 # reset the emerge options for the target
62 39 clst_update_seed=no setup_myemergeopts
63 40 elif [ "${clst_update_seed}" != "no" ]; then
64 41 echo "Invalid setting for update_seed: ${clst_update_seed}"
65 42 exit 1
66 43 fi
67 44
68 45 # reset emerge options for the target
69 46 clst_update_seed=no setup_myemergeopts
70 47 else
71 48 echo "Skipping seed stage update..."
72 49 fi
73
74
75 >
76 > diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
77 > index 39bb1cd..6271dc4 100755
78 > --- a/targets/support/chroot-functions.sh
79 > +++ b/targets/support/chroot-functions.sh
80 > @@ -133,6 +133,7 @@ setup_myemergeopts(){
81 > then
82 > export bootstrap_opts="${bootstrap_opts} -f"
83 > export clst_myemergeopts="${clst_myemergeopts} -f"
84 > + # if we have PKGCACHE, and either update_seed is empty or 'no', make and use binpkgs
85 > elif [ -n "${clst_PKGCACHE}" ] && [ -z "${clst_update_seed}" -o "${clst_update_seed}" = "no" ]
86 > then
87 > # if you add --usepkg, then also add --binpkg-respect-use=y
88 >
89 > The difference in jmbvicetto's commit to master, as opposed to mine in 3.0, it's just a comment.
90
91 I was wrong, it was the difference in dwfreed's commit for master that
92 was different than his fix that I applied to 3.0 before it was applied
93 to master.

Attachments

File name MIME type
signature.asc application/pgp-signature