forked from cms-sw/cmssw
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cms-sw#2171 from degano/python2711_81X
Update python to 2.7.11
- Loading branch information
Showing
9 changed files
with
276 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/include/Makefile.am b/include/Makefile.am | ||
index fd28024..8090684 100644 | ||
--- a/include/Makefile.am | ||
+++ b/include/Makefile.am | ||
@@ -5,5 +5,5 @@ AUTOMAKE_OPTIONS=foreign | ||
DISTCLEANFILES=ffitarget.h | ||
EXTRA_DIST=ffi.h.in ffi_common.h | ||
|
||
-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include | ||
+includesdir = $(includedir)/ | ||
nodist_includes_HEADERS = ffi.h ffitarget.h | ||
diff --git a/include/Makefile.in b/include/Makefile.in | ||
index 9d747e8..b1c939e 100644 | ||
--- a/include/Makefile.in | ||
+++ b/include/Makefile.in | ||
@@ -314,7 +314,7 @@ top_srcdir = @top_srcdir@ | ||
AUTOMAKE_OPTIONS = foreign | ||
DISTCLEANFILES = ffitarget.h | ||
EXTRA_DIST = ffi.h.in ffi_common.h | ||
-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include | ||
+includesdir = $(includedir)/ | ||
nodist_includes_HEADERS = ffi.h ffitarget.h | ||
all: all-am | ||
|
||
diff --git a/libffi.pc.in b/libffi.pc.in | ||
index edf6fde..6fad83b 100644 | ||
--- a/libffi.pc.in | ||
+++ b/libffi.pc.in | ||
@@ -2,7 +2,7 @@ prefix=@prefix@ | ||
exec_prefix=@exec_prefix@ | ||
libdir=@libdir@ | ||
toolexeclibdir=@toolexeclibdir@ | ||
-includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include | ||
+includedir=@includedir@ | ||
|
||
Name: @PACKAGE_NAME@ | ||
Description: Library supporting Foreign Function Interfaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### RPM external libffi-toolfile 1.0 | ||
Requires: libffi | ||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %{i}/etc/scram.d | ||
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/libffi.xml | ||
<tool name="libffi" version="@TOOL_VERSION@"> | ||
<lib name="ffi"/> | ||
<client> | ||
<environment name="LIBFFI_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="LIBDIR" default="$LIBFFI_BASE/lib64"/> | ||
<environment name="INCLUDE" default="$LIBFFI_BASE/include"/> | ||
</client> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
## IMPORT scram-tools-post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
### RPM external libffi 3.2.1 | ||
## INITENV +PATH LD_LIBRARY_PATH %{i}/lib64 | ||
|
||
Source: ftp://sourceware.org/pub/%{n}/%{n}-%{realversion}.tar.gz | ||
|
||
Patch0: libffi-3.2.1-fix-include-path | ||
|
||
%prep | ||
%setup -n %{n}-%{realversion} | ||
%patch0 -p1 | ||
|
||
%build | ||
./configure \ | ||
--prefix=%{i} \ | ||
--enable-portable-binary \ | ||
--disable-dependency-tracking \ | ||
--disable-static | ||
|
||
make %{makeprocesses} | ||
|
||
%install | ||
make %{makeprocesses} install | ||
|
||
rm -rf %{i}/lib | ||
rm -rf %{i}/lib64/*.la | ||
|
||
%define drop_files %{i}/share |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
diff --git a/apps/Makefile b/apps/Makefile | ||
index cafe554..547fc41 100644 | ||
--- a/apps/Makefile | ||
+++ b/apps/Makefile | ||
@@ -109,16 +109,6 @@ install: | ||
chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ | ||
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \ | ||
done; | ||
- @set -e; for i in $(SCRIPTS); \ | ||
- do \ | ||
- (echo installing $$i; \ | ||
- cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ | ||
- chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ | ||
- mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \ | ||
- done | ||
- @cp openssl.cnf $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new; \ | ||
- chmod 644 $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new; \ | ||
- mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf.new $(INSTALL_PREFIX)$(OPENSSLDIR)/openssl.cnf | ||
|
||
tags: | ||
ctags $(SRC) | ||
diff --git a/tools/Makefile b/tools/Makefile | ||
index c1a2f6b..6e7c104 100644 | ||
--- a/tools/Makefile | ||
+++ b/tools/Makefile | ||
@@ -26,12 +26,6 @@ install: | ||
chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \ | ||
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \ | ||
done; | ||
- @for i in $(MISC_APPS) ; \ | ||
- do \ | ||
- (cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ | ||
- chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \ | ||
- mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \ | ||
- done; | ||
|
||
files: | ||
$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
diff --git a/crypto/x509v3/v3_purp.c b/crypto/x509v3/v3_purp.c | ||
index 36b0d87..845be67 100644 | ||
--- a/crypto/x509v3/v3_purp.c | ||
+++ b/crypto/x509v3/v3_purp.c | ||
@@ -380,6 +380,14 @@ static void setup_crldp(X509 *x) | ||
setup_dp(x, sk_DIST_POINT_value(x->crldp, i)); | ||
} | ||
|
||
+#define V1_ROOT (EXFLAG_V1|EXFLAG_SS) | ||
+#define ku_reject(x, usage) \ | ||
+ (((x)->ex_flags & EXFLAG_KUSAGE) && !((x)->ex_kusage & (usage))) | ||
+#define xku_reject(x, usage) \ | ||
+ (((x)->ex_flags & EXFLAG_XKUSAGE) && !((x)->ex_xkusage & (usage))) | ||
+#define ns_reject(x, usage) \ | ||
+ (((x)->ex_flags & EXFLAG_NSCERT) && !((x)->ex_nscert & (usage))) | ||
+ | ||
static void x509v3_cache_extensions(X509 *x) | ||
{ | ||
BASIC_CONSTRAINTS *bs; | ||
@@ -499,7 +507,8 @@ static void x509v3_cache_extensions(X509 *x) | ||
if (!X509_NAME_cmp(X509_get_subject_name(x), X509_get_issuer_name(x))) { | ||
x->ex_flags |= EXFLAG_SI; | ||
/* If SKID matches AKID also indicate self signed */ | ||
- if (X509_check_akid(x, x->akid) == X509_V_OK) | ||
+ if (X509_check_akid(x, x->akid) == X509_V_OK && | ||
+ !ku_reject(x, KU_KEY_CERT_SIGN)) | ||
x->ex_flags |= EXFLAG_SS; | ||
} | ||
x->altname = X509_get_ext_d2i(x, NID_subject_alt_name, NULL, NULL); | ||
@@ -538,14 +547,6 @@ static void x509v3_cache_extensions(X509 *x) | ||
* 4 basicConstraints absent but keyUsage present and keyCertSign asserted. | ||
*/ | ||
|
||
-#define V1_ROOT (EXFLAG_V1|EXFLAG_SS) | ||
-#define ku_reject(x, usage) \ | ||
- (((x)->ex_flags & EXFLAG_KUSAGE) && !((x)->ex_kusage & (usage))) | ||
-#define xku_reject(x, usage) \ | ||
- (((x)->ex_flags & EXFLAG_XKUSAGE) && !((x)->ex_xkusage & (usage))) | ||
-#define ns_reject(x, usage) \ | ||
- (((x)->ex_flags & EXFLAG_NSCERT) && !((x)->ex_nscert & (usage))) | ||
- | ||
static int check_ca(const X509 *x) | ||
{ | ||
/* keyUsage if present should allow cert signing */ |
Oops, something went wrong.