Closed Bug 1294725 Opened 8 years ago Closed 8 years ago

Fairphone 2 needs special caf repo

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: i.hoerler, Assigned: i.hoerler)

Details

Attachments

(1 file, 3 obsolete files)

64 bytes, text/x-github-pull-request
gerard-majax
: review+
Details | Review
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160726073904

Steps to reproduce:

I failed to build on new mozilla-b2g repo so i set framework/native to caf repo and applied 2 patches.

in fairphone.xml:
<remove-project name="platform_frameworks_native"/>
<project name="platform/frameworks/native" path="frameworks/native" remote="caf"/>
./repo sync --force-sync frameworks/native

And the addition:
cd frameworks/native && git checkout -b caf_atomic_cpp caf/LA.BF.1.1.1_rb1.18 && curl -L https://github.com/mozilla-b2g/platform_frameworks_native/pull/1.patch | git am && cd ~/B2G
./repo sync
Please create a pull request.
ah. you were to fast i was just writing that...
https://github.com/novski/b2g-manifest/pull/1/commits/bc72c594a0f73063ef63ab314ef66061dbddd568
Flags: needinfo?(titannanomail)
Flags: needinfo?(lissyx+mozillians)
what about those two patches? Can we get them somehow automatically applied?
Flags: needinfo?(titannanomail)
(In reply to Novski from comment #0)
> User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:48.0)
> Gecko/20100101 Firefox/48.0
> Build ID: 20160726073904
> 
> Steps to reproduce:
> 
> I failed to build on new mozilla-b2g repo so i set framework/native to caf
> repo and applied 2 patches.
> 
> in fairphone.xml:
> <remove-project name="platform_frameworks_native"/>
> <project name="platform/frameworks/native" path="frameworks/native"
> remote="caf"/>
> ./repo sync --force-sync frameworks/native
> 
> And the addition:
> cd frameworks/native && git checkout -b caf_atomic_cpp
> caf/LA.BF.1.1.1_rb1.18 && curl -L
> https://github.com/mozilla-b2g/platform_frameworks_native/pull/1.patch | git
> am && cd ~/B2G
> ./repo sync

Pushed the branch from caf/LA.BF.1.1.1_rb1.18 as https://github.com/mozilla-b2g/platform_frameworks_native/tree/b2g-fp2, you can do the PR for frameworks/native against it :)

And then don't forget to update the b2g-manifest PR with the proper |revision="b2g-fp2"| field :)
Flags: needinfo?(lissyx+mozillians) → needinfo?(i.hoerler)
Is this how it will work? Im realy unsure how to manage those lines...
https://github.com/novski/b2g-manifest/pull/1/files#diff-2b14f18cb2ef5626e4cb27dbaf59f6c2
Flags: needinfo?(i.hoerler) → needinfo?(lissyx+mozillians)
I don't understand why you are adding the same repo twice. But the "name" field is wrong, since you are pulling from mozilla-b2g, it should be "platform_frameworks_native" and not "platform/frameworks/native"
Flags: needinfo?(lissyx+mozillians) → needinfo?(i.hoerler)
Hi Gerard
I don't understand why im adding the same repo twice...

Am i not adding the caf and then this (see below) additions whitch you located in a b2g-fp2 repo?
cd frameworks/native && git checkout -b caf_atomic_cpp
caf/LA.BF.1.1.1_rb1.18 && curl -L
https://github.com/mozilla-b2g/platform_frameworks_native/pull/1.patch | git
am && cd ~/B2G
./repo sync


I corrected the name="platform_frameworks_native"
Flags: needinfo?(i.hoerler) → needinfo?(lissyx+mozillians)
(In reply to Novski from comment #8)
> Hi Gerard
> I don't understand why im adding the same repo twice...
> 
> Am i not adding the caf and then this (see below) additions whitch you
> located in a b2g-fp2 repo?
> cd frameworks/native && git checkout -b caf_atomic_cpp
> caf/LA.BF.1.1.1_rb1.18 && curl -L
> https://github.com/mozilla-b2g/platform_frameworks_native/pull/1.patch | git
> am && cd ~/B2G
> ./repo sync
> 
> 
> I corrected the name="platform_frameworks_native"

But you still have two lines referencing the same "path". So it will not work. You don't need line 25 at all.
Flags: needinfo?(lissyx+mozillians)
Flags: needinfo?(i.hoerler)
Ok i corrected that. 

But allow me a question. If the caf repo gets an update how do we know now? 
And how do we get that to our buils if we know there is an update available?
Flags: needinfo?(i.hoerler) → needinfo?(lissyx+mozillians)
That would be your job to track updates on this repo and rebase accordingly.
Flags: needinfo?(lissyx+mozillians)
ok. And can you tell me where to track and how to rebase?
Flags: needinfo?(lissyx+mozillians)
(In reply to Novski from comment #12)
> ok. And can you tell me where to track and how to rebase?

Track upstream by git fetch ? And git rebase ... https://git-scm.com/book/en/v2/Git-Branching-Rebasing
Flags: needinfo?(lissyx+mozillians)
Do not forget to:
 - squash your PR branch into one commit
 - make sure it is "Bug XXX - Description r=gerard-majax"
 - tested

And then please attach the link to the PR (https://github.com/novski/b2g-manifest/pull/1) as a text attachment here on github, and flag me for review. Also tell me if it's good to merge if I give r+ :)
Flags: needinfo?(i.hoerler)
https://github.com/novski/b2g-manifest/pull/2
Flags: needinfo?(i.hoerler) → needinfo?(lissyx+mozillians)
That PR looks good, except you need to do it against mozilla-b2g/b2g-manifest:
 - push your branch b2g-fp2-patch-1 to your github account
 - browse https://github.com/novski/b2g-manifest and you should have a link to create the PR
 - select the mozilla-b2g repo as the target of the PR

Then copy the link and paste it as a text attachment on this bug, and set review to me :)
Flags: needinfo?(lissyx+mozillians) → needinfo?(i.hoerler)
Click the "new pull request" button when you browse to your clone, that should send you to a link like this: https://github.com/mozilla-b2g/b2g-installer/compare/master...novski:master

On that page, select the proper branch you want to merge (b2g-fp2-patch-1 should be it) and click Create :)
b2g-manifest, not b2g-installer :/
(In reply to Alexandre LISSY :gerard-majax from comment #17)
> Click the "new pull request" button when you browse to your clone, that
> should send you to a link like this:
> https://github.com/mozilla-b2g/b2g-installer/compare/master...novski:master
> 
> On that page, select the proper branch you want to merge (b2g-fp2-patch-1
> should be it) and click Create :)

Also, please note that if you just pushed a branch to your fork of b2g-manifest, if you browse to https://github.com/mozilla-b2g/b2g-manifest/ you should have a yellow band with a button on the right that says "Compare & pull request". If you don't see it, just click "New pull request" *from the page of your fork*, and select mozilla/b2g-manifest master in the "base fork" on the left, and your fork and the branch you want to merge in the "head fork" on the right
well i wasn't sure whats the Base and Head because it was named so instead of Source and Target.
Then i somehow closed it but was able to reopen it. And there it is now.
https://github.com/mozilla-b2g/b2g-manifest/pull/452
Buh... :-)
Flags: needinfo?(i.hoerler) → needinfo?(lissyx+mozillians)
Sure, don't worry, you are learning how to make PR and attach them on bugzilla. For the next one, though, please do not forget to create a text attachment with the PR link, and set me as a reviewer. A needinfo can slip through more easily and then I forget to look at it :)
Flags: needinfo?(lissyx+mozillians)
Thanks for the patch!
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
added remote="b2g"
https://github.com/mozilla-b2g/b2g-manifest/pull/453
Thanks for merging!
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
I now tested the fairphone2.xml upon my fork. It works now so a merge can be done...
Thanks for your patient!
Novski
Flags: needinfo?(lissyx+mozillians)
That looks good, but you have two commits in your PR, please ensure you only have one. Just rebase on top of master.

And please attach your PR link to this bug and flag it review, otherwise I will miss it.
Flags: needinfo?(lissyx+mozillians) → needinfo?(i.hoerler)
I have no idea about git but it seams to me a bit like a dark hole. 
please here you have a PR with only one commit i hope: 

https://github.com/mozilla-b2g/b2g-manifest/pull/455

also i have no idea what a review flag is.
Flags: needinfo?(i.hoerler)
(In reply to Novski from comment #27)
> I have no idea about git but it seams to me a bit like a dark hole. 
> please here you have a PR with only one commit i hope: 
> 
> https://github.com/mozilla-b2g/b2g-manifest/pull/455
> 
> also i have no idea what a review flag is.

Current PR is good now. For the link, please click "attach a file", then past the link as text attachment, scroll down and you will see a "review" label just in front of an input that works like needinfo :)

It's really important otherwise I cannot keep track of your requests efficiently :/
Flags: needinfo?(i.hoerler)
I hope this is the right way to request for review? 
Thanks a lot.
Flags: needinfo?(i.hoerler)
Attachment #8788177 - Flags: review?(lissyx+mozillians)
Yes, exactly!
Attachment #8788177 - Flags: review?(lissyx+mozillians) → review+
https://github.com/mozilla-b2g/b2g-manifest/commit/a2a75c601b0511207b81c03ee48bbf01e6f9d520
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
b2g-fp2 on frameworks/native never received a PR :/
Status: RESOLVED → REOPENED
Ever confirmed: true
Flags: needinfo?(i.hoerler)
Resolution: FIXED → ---
Attached file Atomic C++ (obsolete) —
Atomic C++ was missing see commit
e92af361af5155574c3f05b9544aef194b760aa0
for mor information
Attachment #8788619 - Flags: review?(lissyx+mozillians)
hmm im not sure if i made that right i will close it again and try to PR in to 
mozilla-b2g/platform_frameworks_native:b2g-fp2 not master as it is now.
Attached file Atomic C++ on b2g-fp2 branch (obsolete) —
Please excuse the retriggering. I think to make a PR against b2g-fp2 makes more sence as im fetching the branch not the master.
Attachment #8788766 - Flags: review?(lissyx+mozillians)
Attachment #8788619 - Attachment is obsolete: true
Attachment #8788619 - Flags: review?(lissyx+mozillians)
Ok. It now worked. This smal change took me about 7h work. Increadibul.
In the end its because deleting a repo on my mac only puts it to trash. But in real its still someware in the directory and Git showed weard behavour until i deleted the trashbin... wonderfull. So thank you for pushing me trough and bonne nuit! :-)
Attachment #8788766 - Attachment is obsolete: true
Attachment #8788766 - Flags: review?(lissyx+mozillians)
Attachment #8789005 - Flags: review?(lissyx+mozillians)
Attachment #8788177 - Attachment is obsolete: true
Attachment #8789005 - Flags: review?(lissyx+mozillians) → review+
https://github.com/mozilla-b2g/platform_frameworks_native/commit/3632acf6595adc16ab4cefc96a63fb5baedd1ae6
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Think we can close this one. Thank you!
Flags: needinfo?(i.hoerler)
it is closed already :)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: