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

Fix pinentry which broke due to upstream patch change #34780

Closed
wants to merge 2 commits into from

Conversation

sjwalter
Copy link

@sjwalter sjwalter commented Feb 9, 2018

Motivation for this change

Fix pinentry package, broke due to upstream patch change.

Things done

Updated hash for patch for pinentry.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • [x ] 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@copumpkin
Copy link
Member

Any idea what's different in the patch to require a new hash?

@copumpkin
Copy link
Member

Doesn't look like anything meaningful. Annoying that so many things are affected by it:

--- old.patch	2018-02-09 17:18:08.000000000 -0500
+++ /nix/store/a45agg4g16j6y7yca4dk39k81bfiqafi-0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch	1969-12-31 19:00:01.000000000 -0500
@@ -1,6 +1,6 @@
 --- a/gtk+-2/pinentry-gtk-2.c
 +++ b/gtk+-2/pinentry-gtk-2.c
-@@ -166,7 +166,7 @@
+@@ -164,7 +164,7 @@
  grab_keyboard (GtkWidget *win, GdkEvent *event, gpointer data)
  {
    GdkGrabStatus err;
@@ -9,7 +9,7 @@
    (void)data;
  
    if (! pinentry->grab)
-@@ -175,7 +175,8 @@
+@@ -173,7 +173,8 @@
    do
      err = gdk_keyboard_grab (gtk_widget_get_window (win),
                               FALSE, gdk_event_get_time (event));
@@ -19,7 +19,7 @@
  
    if (err)
      {
-@@ -199,7 +200,7 @@
+@@ -197,7 +198,7 @@
  {
    GdkGrabStatus err;
    GdkCursor *cursor;
@@ -28,7 +28,7 @@
    (void)data;
  
    /* Change the cursor for the duration of the grab to indicate that
-@@ -221,7 +222,8 @@
+@@ -219,7 +220,8 @@
                              cursor,
                              gdk_event_get_time (event));
    while (tries++ < max_tries && (err == GDK_GRAB_NOT_VIEWABLE

@copumpkin
Copy link
Member

Pushed your second commit directly in 20e23ce since you accidentally included an old commit in this PR

@copumpkin copumpkin closed this Feb 12, 2018
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

3 participants