Merge lp:~pfalcon/linaro-android-build-tools/control-setup-fix into lp:linaro-android-build-tools

Proposed by Paul Sokolovsky
Status: Merged
Approved by: James Westby
Approved revision: 141
Merged at revision: 142
Proposed branch: lp:~pfalcon/linaro-android-build-tools/control-setup-fix
Merge into: lp:linaro-android-build-tools
Diff against target: 29 lines (+6/-4)
1 file modified
control/setup-control-node (+6/-4)
To merge this branch: bzr merge lp:~pfalcon/linaro-android-build-tools/control-setup-fix
Reviewer Review Type Date Requested Status
James Westby (community) Approve
Review via email: mp+57647@code.launchpad.net

Description of the change

Fixes based on setting up stuff locally.

To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

24 +sudo chmod 0600 /etc/ssl/private/android-build.linaro.org.crt

Didn't you want to use the new $VARIABLE here too?

Otherwise this looks good.

Thanks,

James

review: Approve
Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

> 24 +sudo chmod 0600 /etc/ssl/private/android-build.linaro.org.crt
>
> Didn't you want to use the new $VARIABLE here too?
>

Oh, yes, sure. So, I'll try to research bzr commit squash support before merging this ;-).

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

On Thu, 14 Apr 2011 15:39:40 -0000, Paul Sokolovsky <email address hidden> wrote:
> > 24 +sudo chmod 0600 /etc/ssl/private/android-build.linaro.org.crt
> >
> > Didn't you want to use the new $VARIABLE here too?
> >
>
> Oh, yes, sure. So, I'll try to research bzr commit squash support before merging this ;-).

FWIW, "the bazaar way" is to not bother about things like this. Just
commit your fix.

Cheers,
mwh

142. By Paul Sokolovsky

Use CERT_PATH var for certificate location.

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

> FWIW, "the bazaar way" is to not bother about things like this. Just
> commit your fix.

Well, just to understand bzr featureset and workflow better. And I see that (feature) branch merge *is* essentially a kind of hierarchical squash, that's why there's explicit commit message for merge - all commits of the branch will be by default shown squashed with this merge commit message, and it will be possible to drill down to the history of original commits if needed. Neat. At the same time, it seems that intra-branch interactively selective squash a-la "git rebase -i" is not supported. Ok, if bzr people don't care for each single commit to be oh-so-perfect, less trouble (git spoils, yeah ;-) ).

Revision history for this message
Mattias Backman (mabac) wrote :

On 15 April 2011 19:19, Paul Sokolovsky <email address hidden> wrote:
>> FWIW, "the bazaar way" is to not bother about things like this.  Just
>> commit your fix.
>
> Well, just to understand bzr featureset and workflow better. And I see that (feature) branch merge *is* essentially a kind of hierarchical squash, that's why there's explicit commit message for merge - all commits of the branch will be by default shown squashed with this merge commit message, and it will be possible to drill down to the history of original commits if needed. Neat. At the same time, it seems that intra-branch interactively selective squash a-la "git rebase -i" is not supported. Ok, if bzr people don't care for each single commit to be oh-so-perfect, less trouble (git spoils, yeah ;-) ).

I had real issues with this for a couple of weeks when starting to use
bzr too. With no rebase, I felt like getting stuck and being hindered
from doing work. After a while though, it's really easy getting used
to not having to clean up the commit history etc. And now, I can't
remember why it felt important in the first place. It seems no-one has
a problem with a few extra commits and perhaps some messy merging in
my changes (at lest no-one told me about it). :) Everyone can see
exactly how I did it and the end result is the same, actually with
less meta work.

Thanks,

Mattias

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

[]
> I had real issues with this for a couple of weeks when starting to use
> bzr too. With no rebase, I felt like getting stuck and being hindered
> from doing work. After a while though, it's really easy getting used
> to not having to clean up the commit history etc. And now, I can't
> remember why it felt important in the first place. It seems no-one has
> a problem with a few extra commits and perhaps some messy merging in
> my changes (at lest no-one told me about it). :) Everyone can see
> exactly how I did it and the end result is the same, actually with
> less meta work.

Yes, it at first take quite some time to get used to rebase-based
model, and I guess, it's indeed useful for big projects with large
codebase and lot of commit traffic. But with bzr it seems one
needs to "unlearn" using this workflow for all the things. Thanks for
this perspective, Mattias.

>
> Thanks,
>
> Mattias
>

--
Best Regards,
Paul

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'control/setup-control-node'
2--- control/setup-control-node 2011-03-21 00:01:55 +0000
3+++ control/setup-control-node 2011-04-15 16:50:29 +0000
4@@ -60,9 +60,10 @@
5 sudo a2enmod headers
6 sudo a2enmod rewrite
7 sudo a2enmod expires
8+sudo a2enmod ssl
9
10 # make self-signed certificate
11-cat <<EOF > /tmp/ssleay.conf
12+cat <<EOF > /tmp/ssleay.cnf
13 RANDFILE = /dev/urandom
14 [ req ]
15 default_bits = 1024
16@@ -73,9 +74,10 @@
17 [ req_distinguished_name ]
18 commonName = android-build.linaro.org
19 EOF
20-sudo openssl req -config /tmp/ssleay.cnf -new -x509 -days 3650 -nodes -out /etc/ssl/private/android-build.linaro.org.crt
21-sudo chmod go-a /etc/ssl/private/android-build.linaro.org.crt
22-rm /tmp/ssleay.conf
23+CERT_PATH=/etc/ssl/private/android-build.linaro.org.crt
24+sudo openssl req -config /tmp/ssleay.cnf -new -x509 -days 3650 -nodes -out $CERT_PATH -keyout $CERT_PATH
25+sudo chmod 0600 $CERT_PATH
26+rm /tmp/ssleay.cnf
27
28 cat <<EOF | sudo tee /etc/apache2/conf.d/extra-port > /dev/null
29 Listen 127.0.0.1:600

Subscribers

People subscribed via source and target branches