git.iko.soy/typeable/nixpkgs
on master help sign in
pinentry: fix cross-compilation
commita6635fbc19f3d4d13256d11aa8fb14952b92826d authorNick Spinale <nick@nickspinale.com> dateSat 14 Sep 2019, 11:46 (7 years ago) parent37e333a
2 files changed+40−3
pkgs/tools/security/pinentry/autoconf-ar.patch+35 pkgs/tools/security/pinentry/default.nix+5−3
pkgs/tools/security/pinentry/autoconf-ar.patchnew file+35
@@ -0,0 +1,35 @@
1+diff -ur a/configure.ac b/configure.ac
2+--- a/configure.ac 2019-09-14 11:30:11.584847746 +0000
3++++ b/configure.ac 2019-09-14 11:31:26.692355265 +0000
4+@@ -81,6 +81,7 @@
5+ AC_PROG_CPP
6+ AC_PROG_INSTALL
7+ AC_PROG_RANLIB
8++AC_CHECK_TOOL(AR, ar)
9+ # We need to check for cplusplus here because we may not do the test
10+ # for Qt and autoconf does does not allow that.
11+ AC_PROG_CXX
12+diff -ur a/pinentry/Makefile.in b/pinentry/Makefile.in
13+--- a/pinentry/Makefile.in 2017-12-03 17:43:23.000000000 +0000
14++++ b/pinentry/Makefile.in 2019-09-14 11:32:02.532000236 +0000
15+@@ -113,7 +113,7 @@
16+ CONFIG_CLEAN_FILES =
17+ CONFIG_CLEAN_VPATH_FILES =
18+ LIBRARIES = $(noinst_LIBRARIES)
19+-AR = ar
20++AR = @AR@
21+ ARFLAGS = cru
22+ AM_V_AR = $(am__v_AR_@AM_V@)
23+ am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
24+diff -ur a/secmem/Makefile.in b/secmem/Makefile.in
25+--- a/secmem/Makefile.in 2017-12-03 17:43:23.000000000 +0000
26++++ b/secmem/Makefile.in 2019-09-14 11:31:58.764934552 +0000
27+@@ -113,7 +113,7 @@
28+ CONFIG_CLEAN_FILES =
29+ CONFIG_CLEAN_VPATH_FILES =
30+ LIBRARIES = $(noinst_LIBRARIES)
31+-AR = ar
32++AR = @AR@
33+ ARFLAGS = cru
34+ AM_V_AR = $(am__v_AR_@AM_V@)
35+ am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
pkgs/tools/security/pinentry/default.nix+5−3
@@ -1,4 +1,4 @@
1−{ fetchurl, fetchpatch, stdenv, lib, pkgconfig
1+{ fetchurl, fetchpatch, stdenv, lib, pkgconfig, autoreconfHook
22, libgpgerror, libassuan
33, libcap ? null, libsecret ? null, ncurses ? null, gtk2 ? null, gcr ? null
44, qt4 ? null, qt5 ? null
@@ -23,7 +23,7 @@ mkDerivation rec {
2323 sha256 = "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8";
2424 };
2525
26− nativeBuildInputs = [ pkgconfig ];
26+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
2727 buildInputs =
2828 [ libgpgerror libassuan libcap libsecret gtk2 gcr ncurses qt4 ]
2929 ++ stdenv.lib.optional (qt5 != null) qt5.qtbase;
@@ -32,7 +32,9 @@ mkDerivation rec {
3232 substituteInPlace pinentry/pinentry-curses.c --replace ncursesw ncurses
3333 '';
3434
35− patches = lib.optionals (gtk2 != null) [
35+ patches = [
36+ ./autoconf-ar.patch
37+ ] ++ lib.optionals (gtk2 != null) [
3638 (fetchpatch {
3739 url = "https://salsa.debian.org/debian/pinentry/raw/debian/1.1.0-1/debian/patches/"
3840 + "0007-gtk2-When-X11-input-grabbing-fails-try-again-over-0..patch";