From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-fs/ecryptfs-utils/files: ecryptfs-utils-90-nss-pkgconfig.patch |
Date: | Wed, 31 Aug 2011 00:01:21 |
Message-Id: | 20110831000109.2192920051@flycatcher.gentoo.org |
1 | flameeyes 11/08/31 00:01:09 |
2 | |
3 | Added: ecryptfs-utils-90-nss-pkgconfig.patch |
4 | Log: |
5 | Use pkg-config to look up NSS. This allows a clean cross-compilation of the package. |
6 | |
7 | (Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-fs/ecryptfs-utils/files/ecryptfs-utils-90-nss-pkgconfig.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ecryptfs-utils/files/ecryptfs-utils-90-nss-pkgconfig.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ecryptfs-utils/files/ecryptfs-utils-90-nss-pkgconfig.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: ecryptfs-utils-90-nss-pkgconfig.patch |
16 | =================================================================== |
17 | Index: ecryptfs-utils-90/configure.ac |
18 | =================================================================== |
19 | --- ecryptfs-utils-90.orig/configure.ac |
20 | +++ ecryptfs-utils-90/configure.ac |
21 | @@ -228,16 +228,12 @@ else |
22 | fi |
23 | |
24 | #Verify nss |
25 | -NSS_LIBS=`nss-config --libs` |
26 | -if test "x${NSS_LIBS}" != "x" ; then |
27 | - NSS_CFLAGS=`nss-config --cflags` |
28 | - NSPR_CFLAGS=`nspr-config --cflags` |
29 | - NSS_CFLAGS="${NSS_CFLAGS} -DENABLE_NSS ${NSPR_CFLAGS}" |
30 | - have_nss="yes" |
31 | -else |
32 | - NSS_CFLAGS="" |
33 | - have_nss="no" |
34 | -fi |
35 | +PKG_CHECK_MODULES( |
36 | + [NSS], |
37 | + [nss], |
38 | + [have_nss="yes" |
39 | + NSS_CFLAGS="${NSS_CFLAGS} -DENABLE_NSS"], |
40 | + [have_nss="no"]) |
41 | |
42 | if test "${enable_nss}" = "detect" ; then |
43 | if test "$have_nss" == "yes" ; then |