summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-05-13 22:13:29 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-05-13 22:13:29 +0000
commit1bb42f92ff5d44e091b15b420d4d3c5900130d94 (patch)
treee79c5d2c8c83561e724b263d73f6b0443f70c9ae /dev-libs
parentmarked x86 per bug 412587 (diff)
downloadgentoo-2-1bb42f92ff5d44e091b15b420d4d3c5900130d94.tar.gz
gentoo-2-1bb42f92ff5d44e091b15b420d4d3c5900130d94.tar.bz2
gentoo-2-1bb42f92ff5d44e091b15b420d4d3c5900130d94.zip
Fix bug #412299, thanks to Michelangelo Scopelliti for reporting. Also remove old versions.
(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/opensc/ChangeLog9
-rw-r--r--dev-libs/opensc/files/opensc-0.12.0-crossbuild.patch42
-rw-r--r--dev-libs/opensc/files/opensc-0.12.2-parallelinstall.patch64
-rw-r--r--dev-libs/opensc/opensc-0.11.13.ebuild52
-rw-r--r--dev-libs/opensc/opensc-0.12.0-r2.ebuild68
-rw-r--r--dev-libs/opensc/opensc-0.12.1.ebuild68
-rw-r--r--dev-libs/opensc/opensc-0.12.2.ebuild3
7 files changed, 74 insertions, 232 deletions
diff --git a/dev-libs/opensc/ChangeLog b/dev-libs/opensc/ChangeLog
index 045ae8dcf392..1552e7c34ca6 100644
--- a/dev-libs/opensc/ChangeLog
+++ b/dev-libs/opensc/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/opensc
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/ChangeLog,v 1.119 2012/05/04 18:35:51 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/ChangeLog,v 1.120 2012/05/13 22:13:29 flameeyes Exp $
+
+ 13 May 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+ +files/opensc-0.12.2-parallelinstall.patch,
+ -files/opensc-0.12.0-crossbuild.patch, -opensc-0.11.13.ebuild,
+ -opensc-0.12.0-r2.ebuild, -opensc-0.12.1.ebuild, opensc-0.12.2.ebuild:
+ Fix bug #412299, thanks to Michelangelo Scopelliti for reporting. Also remove
+ old versions.
04 May 2012; Jeff Horelick <jdhore@gentoo.org> opensc-0.11.13.ebuild,
opensc-0.11.13-r2.ebuild, opensc-0.12.0-r2.ebuild, opensc-0.12.1.ebuild,
diff --git a/dev-libs/opensc/files/opensc-0.12.0-crossbuild.patch b/dev-libs/opensc/files/opensc-0.12.0-crossbuild.patch
deleted file mode 100644
index 82a9bb2e7ded..000000000000
--- a/dev-libs/opensc/files/opensc-0.12.0-crossbuild.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-Index: opensc-0.12.0/src/pkcs11/Makefile.am
-===================================================================
---- opensc-0.12.0.orig/src/pkcs11/Makefile.am
-+++ opensc-0.12.0/src/pkcs11/Makefile.am
-@@ -15,9 +15,10 @@ OPENSC_PKCS11_SRC = pkcs11-global.c pkcs
- mechanism.c openssl.c framework-pkcs15.c \
- framework-pkcs15init.c debug.c opensc-pkcs11.exports \
- pkcs11-display.c pkcs11-display.h
--OPENSC_PKCS11_LIBS = $(OPTIONAL_OPENSSL_LIBS) $(PTHREAD_LIBS) \
-+OPENSC_PKCS11_LIBS = \
- $(top_builddir)/src/common/libcompat.la \
-- $(top_builddir)/src/libopensc/libopensc.la
-+ $(top_builddir)/src/libopensc/libopensc.la \
-+ $(OPTIONAL_OPENSSL_LIBS) $(PTHREAD_LIBS)
-
- libpkcs11_la_SOURCES = libpkcs11.c
- libpkcs11_la_LIBADD = $(LTLIB_LIBS)
-@@ -35,7 +36,7 @@ onepin_opensc_pkcs11_la_LDFLAGS = $(AM_L
- -module -shared -avoid-version -no-undefined
-
- pkcs11_spy_la_SOURCES = pkcs11-spy.c pkcs11-display.c pkcs11-display.h pkcs11-spy.exports
--pkcs11_spy_la_LIBADD = $(OPTIONAL_OPENSSL_LIBS) $(LTLIB_LIBS) libpkcs11.la
-+pkcs11_spy_la_LIBADD = libpkcs11.la $(OPTIONAL_OPENSSL_LIBS) $(LTLIB_LIBS)
- pkcs11_spy_la_LDFLAGS = $(AM_LDFLAGS) \
- -export-symbols "$(srcdir)/pkcs11-spy.exports" \
- -module -shared -avoid-version -no-undefined
-Index: opensc-0.12.0/src/tools/Makefile.am
-===================================================================
---- opensc-0.12.0.orig/src/tools/Makefile.am
-+++ opensc-0.12.0/src/tools/Makefile.am
-@@ -24,8 +24,9 @@ opensc_explorer_LDADD = $(OPTIONAL_READL
- pkcs15_tool_SOURCES = pkcs15-tool.c util.c
- pkcs15_tool_LDADD = $(OPTIONAL_OPENSSL_LIBS)
- pkcs11_tool_SOURCES = pkcs11-tool.c util.c
--pkcs11_tool_LDADD = $(OPTIONAL_OPENSSL_LIBS) $(LTLIB_LIBS) \
-- $(top_builddir)/src/pkcs11/libpkcs11.la
-+pkcs11_tool_LDADD = \
-+ $(top_builddir)/src/pkcs11/libpkcs11.la \
-+ $(OPTIONAL_OPENSSL_LIBS) $(LTLIB_LIBS)
- pkcs15_crypt_SOURCES = pkcs15-crypt.c util.c
- pkcs15_crypt_LDADD = $(OPTIONAL_OPENSSL_LIBS)
- cryptoflex_tool_SOURCES = cryptoflex-tool.c util.c
diff --git a/dev-libs/opensc/files/opensc-0.12.2-parallelinstall.patch b/dev-libs/opensc/files/opensc-0.12.2-parallelinstall.patch
new file mode 100644
index 000000000000..823fa08c56db
--- /dev/null
+++ b/dev-libs/opensc/files/opensc-0.12.2-parallelinstall.patch
@@ -0,0 +1,64 @@
+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
+
diff --git a/dev-libs/opensc/opensc-0.11.13.ebuild b/dev-libs/opensc/opensc-0.11.13.ebuild
deleted file mode 100644
index 369ffe66d321..000000000000
--- a/dev-libs/opensc/opensc-0.11.13.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.11.13.ebuild,v 1.9 2012/05/04 18:35:51 jdhore Exp $
-
-EAPI="2"
-
-inherit eutils
-
-DESCRIPTION="SmartCard library and applications"
-HOMEPAGE="http://www.opensc-project.org/opensc/"
-
-SRC_URI="http://www.opensc-project.org/files/${PN}/${P}.tar.gz"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-IUSE="doc openct pcsc-lite"
-
-# libtool is required at runtime for libltdl
-RDEPEND="dev-libs/openssl
- sys-libs/zlib
- sys-devel/libtool
- sys-libs/readline
- openct? ( >=dev-libs/openct-0.5.0 )
- pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-pkg_setup() {
- if use openct; then
- elog "Support for openct is deprecated."
- elog "It is recommended to use pcsc-lite."
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}+pcsc-lite-1.6.2.patch
-}
-
-src_configure() {
- econf \
- --docdir="/usr/share/doc/${PF}" \
- --htmldir="/usr/share/doc/${PF}/html" \
- $(use_enable doc) \
- $(use_enable openct) \
- $(use_enable pcsc-lite pcsc) \
- --with-pinentry="/usr/bin/pinentry"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
-}
diff --git a/dev-libs/opensc/opensc-0.12.0-r2.ebuild b/dev-libs/opensc/opensc-0.12.0-r2.ebuild
deleted file mode 100644
index 78b080b62d24..000000000000
--- a/dev-libs/opensc/opensc-0.12.0-r2.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.12.0-r2.ebuild,v 1.3 2012/05/04 18:35:51 jdhore Exp $
-
-EAPI="4"
-
-inherit eutils autotools
-
-DESCRIPTION="Libraries and applications to access smartcards."
-HOMEPAGE="http://www.opensc-project.org/opensc/"
-
-SRC_URI="http://www.opensc-project.org/files/${PN}/${P}.tar.gz"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-IUSE="doc +pcsc-lite openct readline ssl zlib"
-
-# libtool is required at runtime for libltdl
-RDEPEND="sys-devel/libtool
- zlib? ( sys-libs/zlib )
- readline? ( sys-libs/readline )
- ssl? ( dev-libs/openssl )
- openct? ( >=dev-libs/openct-0.5.0 )
- pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- app-text/docbook-xsl-stylesheets
- dev-libs/libxslt"
-
-REQUIRED_USE="
- pcsc-lite? ( !openct )
- openct? ( !pcsc-lite )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-crossbuild.patch
- eautoreconf
-}
-
-src_configure() {
- # disable everything, enable selectively
- local myconf="--disable-pcsc --disable-openct --disable-ctapi"
-
- if use pcsc-lite; then
- myconf+=" --enable-pcsc"
- elif use openct; then
- myconf+=" --enable-openct"
- else
- myconf+=" --enable-ctapi"
- fi
-
- econf \
- --docdir="/usr/share/doc/${PF}" \
- --htmldir="/usr/share/doc/${PF}/html" \
- --disable-static \
- $(use_enable doc) \
- $(use_enable openct) \
- $(use_enable readline) \
- $(use_enable zlib) \
- ${myconf}
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
- find "${D}" -name '*.la' -delete
-
- dodoc ChangeLog
-}
diff --git a/dev-libs/opensc/opensc-0.12.1.ebuild b/dev-libs/opensc/opensc-0.12.1.ebuild
deleted file mode 100644
index 114a3ad5ffba..000000000000
--- a/dev-libs/opensc/opensc-0.12.1.ebuild
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.12.1.ebuild,v 1.2 2012/05/04 18:35:51 jdhore Exp $
-
-EAPI="4"
-
-inherit eutils autotools
-
-DESCRIPTION="Libraries and applications to access smartcards."
-HOMEPAGE="http://www.opensc-project.org/opensc/"
-
-SRC_URI="http://www.opensc-project.org/files/${PN}/${P}.tar.gz"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-IUSE="doc +pcsc-lite openct readline ssl zlib"
-
-# libtool is required at runtime for libltdl
-RDEPEND="sys-devel/libtool
- zlib? ( sys-libs/zlib )
- readline? ( sys-libs/readline )
- ssl? ( dev-libs/openssl )
- openct? ( >=dev-libs/openct-0.5.0 )
- pcsc-lite? ( >=sys-apps/pcsc-lite-1.3.0 )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- app-text/docbook-xsl-stylesheets
- dev-libs/libxslt"
-
-REQUIRED_USE="
- pcsc-lite? ( !openct )
- openct? ( !pcsc-lite )"
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-crossbuild.patch
- eautoreconf
-}
-
-src_configure() {
- # disable everything, enable selectively
- local myconf="--disable-pcsc --disable-openct --disable-ctapi"
-
- if use pcsc-lite; then
- myconf+=" --enable-pcsc"
- elif use openct; then
- myconf+=" --enable-openct"
- else
- myconf+=" --enable-ctapi"
- fi
-
- econf \
- --docdir="/usr/share/doc/${PF}" \
- --htmldir="/usr/share/doc/${PF}/html" \
- --disable-static \
- $(use_enable doc) \
- $(use_enable openct) \
- $(use_enable readline) \
- $(use_enable zlib) \
- ${myconf}
-}
-
-src_install() {
- emake DESTDIR="${D}" install
- find "${D}" -name '*.la' -delete
-
- dodoc ChangeLog
-}
diff --git a/dev-libs/opensc/opensc-0.12.2.ebuild b/dev-libs/opensc/opensc-0.12.2.ebuild
index 9ed9ae5cdead..60b6a962f2fe 100644
--- a/dev-libs/opensc/opensc-0.12.2.ebuild
+++ b/dev-libs/opensc/opensc-0.12.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.12.2.ebuild,v 1.4 2012/05/04 18:35:51 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/opensc/opensc-0.12.2.ebuild,v 1.5 2012/05/13 22:13:29 flameeyes Exp $
EAPI="4"
@@ -32,6 +32,7 @@ REQUIRED_USE="
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.12.1-crossbuild.patch
+ epatch "${FILESDIR}"/${P}-parallelinstall.patch
eautoreconf
}