You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.1 KiB
65 lines
2.1 KiB
12 years ago
|
From 9e62ac20a1dc39e001875e57067ab7fa2389ae73 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
|
||
|
Date: Sun, 13 May 2012 14:55:35 -0700
|
||
|
Subject: [PATCH] build: fix parallel install by creating directory in the
|
||
|
rule
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
Relying on the rule that creates the directory is a bad idea to be
|
||
|
parallel safe.
|
||
|
|
||
|
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
|
||
|
---
|
||
|
etc/Makefile.am | 4 ++--
|
||
|
src/pkcs11/Makefile.am | 7 ++++---
|
||
|
2 files changed, 6 insertions(+), 5 deletions(-)
|
||
|
|
||
|
diff --git a/etc/Makefile.am b/etc/Makefile.am
|
||
|
index 0ef546f..478a7bb 100644
|
||
|
--- a/etc/Makefile.am
|
||
|
+++ b/etc/Makefile.am
|
||
|
@@ -18,8 +18,8 @@ opensc.conf: opensc.conf.in force
|
||
|
-e 's|@DEFAULT_PCSC_PROVIDER[@]|$(DEFAULT_PCSC_PROVIDER)|g' \
|
||
|
< $< > $@
|
||
|
|
||
|
-sysconf_DATA=#required in order to create dir
|
||
|
-install-exec-hook: install-sysconfDATA opensc.conf
|
||
|
+install-exec-hook: opensc.conf
|
||
|
+ $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
|
||
|
if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \
|
||
|
$(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \
|
||
|
else \
|
||
|
diff --git a/src/pkcs11/Makefile.am b/src/pkcs11/Makefile.am
|
||
|
index ba5e70d..742c5fb 100644
|
||
|
--- a/src/pkcs11/Makefile.am
|
||
|
+++ b/src/pkcs11/Makefile.am
|
||
|
@@ -52,19 +52,20 @@ pkcs11-jar: jar-dir
|
||
|
-k"testcert" jar-dir
|
||
|
|
||
|
if WIN32
|
||
|
-install-exec-hook: install-pkcs11DATA
|
||
|
+install-exec-hook:
|
||
|
+ $(mkdir_p) "$(DESTDIR)$(libdir)"
|
||
|
for l in opensc-pkcs11.dll onepin-opensc-pkcs11.dll pkcs11-spy.dll; do \
|
||
|
mv "$(DESTDIR)$(libdir)/$$l" "$(DESTDIR)$(bindir)/$$l"; \
|
||
|
done
|
||
|
else
|
||
|
# see http://wiki.cacert.org/wiki/Pkcs11TaskForce
|
||
|
-pkcs11_DATA = #This will create the directory
|
||
|
if CYGWIN
|
||
|
PKCS11_SUFFIX=.dll
|
||
|
else
|
||
|
PKCS11_SUFFIX=.so
|
||
|
endif
|
||
|
-install-exec-hook: install-pkcs11DATA
|
||
|
+install-exec-hook:
|
||
|
+ $(mkdir_p) "$(DESTDIR)$(pkcs11dir)"
|
||
|
for l in opensc-pkcs11$(PKCS11_SUFFIX) onepin-opensc-pkcs11$(PKCS11_SUFFIX) pkcs11-spy$(PKCS11_SUFFIX); do \
|
||
|
rm -f "$(DESTDIR)$(pkcs11dir)/$$l"; \
|
||
|
$(LN_S) ../$$l "$(DESTDIR)$(pkcs11dir)/$$l"; \
|
||
|
--
|
||
|
1.7.8.6
|
||
|
|