Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[19.09] brave: 1.3.118 -> 1.4.95 #81078

Merged
merged 3 commits into from Mar 4, 2020

Conversation

JeffLabonte
Copy link
Contributor

@JeffLabonte JeffLabonte commented Feb 26, 2020

Motivation for this change

This is browser, so I believed that it required to be updated in the case that there would have been any updates related to the security.

Things done

This PR backports PR #73400 but requires changes from PR #79688 and PR #79974

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@JeffLabonte JeffLabonte changed the title Release/19.09 Release/19.09 - Update Brave 0.69.128 -> 1.4.95 Feb 26, 2020
@ofborg ofborg bot requested review from uskudnik and rht February 26, 2020 01:33
@JeffLabonte JeffLabonte force-pushed the release/19.09 branch 2 times, most recently from 60ef2de to fe4d13d Compare February 26, 2020 02:05
@rht
Copy link
Member

rht commented Feb 26, 2020

I'm not sure about the process here, but shouldn't the new commits on release-19.09 be cherry-picked from master instead of having a custom-made commit?

@JeffLabonte
Copy link
Contributor Author

It seems that it should be backported from other PR which I did. I can be wrong tho! @rht

@worldofpeace
Copy link
Contributor

@JeffLabonte See https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#backporting-changes.

Comment from IRC was:

the commit header in the backport PR is different from the commit on master
(the backport PR) nixos: Update brave from 1.3.118 to 1.4.95 (on master) brave: 1.3.118 -> 1.4.95
the latter commit message is correct per the contribution guidelines (pkgname: old_verison -> new_version)

The above can be done by just doing git cherry-pick -x (e also if you want to edit the message with a reason).

@worldofpeace worldofpeace mentioned this pull request Mar 3, 2020
10 tasks
New maintainer for brave

(cherry picked from commit d5e52ad)
Reason: my name is part of the maintainer list of brave
Add new maintainer to brave

(cherry picked from commit 9a4a2eb)
Reason: Previous commit add jefflabonte to list of the maintainer, he
should be added to the package he tries to maintain
Update brave from 0.69.128 to 1.4.95

(cherry picked from commit fa166b7)
Reason: Browser should be kept up-to-date for security reasons.
@worldofpeace worldofpeace changed the title Release/19.09 - Update Brave 0.69.128 -> 1.4.95 [20.03] brave: 1.3.118 -> 1.4.95 Mar 4, 2020
@worldofpeace worldofpeace changed the title [20.03] brave: 1.3.118 -> 1.4.95 [19.09] brave: 1.3.118 -> 1.4.95 Mar 4, 2020
@worldofpeace worldofpeace merged commit 00115f2 into NixOS:release-19.09 Mar 4, 2020
@rht
Copy link
Member

rht commented Mar 4, 2020

Is this really a pure cherry-pick?
There is a sub-commit message
Update brave from 0.69.128 to 1.4.95

which means the commit that updates 0.69.128 to 1.3.118 was squashed into the commit that updates 1.3.118 to 1.4.95

@worldofpeace
Copy link
Contributor

Is this really a pure cherry-pick?
There is a sub-commit message
Update brave from 0.69.128 to 1.4.95

which means the commit that updates 0.69.128 to 1.3.118 was squashed into the commit that updates 1.3.118 to 1.4.95

Oh you're right. I guess it's too late now :rofl Extra cherry-picked commits in that case (it would have been two) would have been fine.

@rht
Copy link
Member

rht commented Mar 6, 2020

@worldofpeace will the mistake be resolved manually during the merge conflict resolution with unstable? How is this usually resolved?

@vcunat
Copy link
Member

vcunat commented Mar 6, 2020

Commit messages can't be changed now; we don't do any history rewriting on these branches (and this isn't really a strong reason). Conflicts in git are only concerned with file contents and not commit messages, and we don't merge between master/unstable and stable branches... perhaps I misunderstood the question.

@rht
Copy link
Member

rht commented Mar 6, 2020

@vcunat

Conflicts in git are only concerned with file contents and not commit messages

I am concerned with the jump in the diff since 0.69.128 to 1.4.95 instead of 1.3.118. There will be a conflict during the cherry pick.

we don't merge between master/unstable and stable branches...

OK, I think I don't know the mechanism behind how the stable branches are being updated so as to not fall behind master/unstable. I assume it is a merge operation between a sufficiently mature version of old master/unstable, not a continuous cherry-pick from master/unstable.

@vcunat
Copy link
Member

vcunat commented Mar 6, 2020

If the following cherry-picks use commit starting with 1.4.95, it should be conflict-less. In any case, these bumps seem to need no other changes, so conflict resolution is trivial.

Stable branches do "fall behind" intentionally. Only qualifying changes get cherry-picked manually.

@rht
Copy link
Member

rht commented Mar 6, 2020

Make sense. Thank you for the explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants