Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109600 - opensc does not need openct, please remove the requirement from ebuild
Summary: opensc does not need openct, please remove the requirement from ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-17 11:20 UTC by step
Modified: 2006-09-22 19:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
opensc-0.11.0-r1.ebuild.diff (opensc-0.11.0-r1.ebuild.diff,1.28 KB, patch)
2006-09-12 10:53 UTC, Alon Bar-Lev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description step 2005-10-17 11:20:41 UTC
opensc does not need openct, please remove the requirement from ebuild. 

openct will cause problems to pcsc-lite too. 




Reproducible: Always
Steps to Reproduce:
1. emerge opensc -p 

[ebuild  N    ] dev-libs/openct-0.5.0
[ebuild  N    ] dev-libs/opensc-0.9.6
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-11-07 11:54:23 UTC
should openct be an optional dependency pulled in by a user flag? 
 
like this? 
RDEPEND=.... 
pcsc-lite? ( sys-apps/pcsc-lite ) 
!pcsc-lite? ( openct? ( >=dev-libs/openct-0.5.0 ) )" 
 
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2005-12-10 14:46:46 UTC
step, any ideas with regard to comment #1?
Comment 3 step 2005-12-11 00:24:33 UTC
if it lets you emerge only the opensc, then this is OK.
Comment 4 Andreas Jellinghaus 2006-05-29 04:48:23 UTC
!pcsc-lite? ( openct? ( >=dev-libs/openct-0.5.0 ) )" 

is wrong I think, openct does not conflict pcsc-lite.

opensc is doing well with both openct and pcsc-lite installed.
Comment 5 petre rodan (RETIRED) gentoo-dev 2006-06-03 04:17:20 UTC
opensc provides a number of generic pkcs#11 utilities that could (in theory) be useful to a lot of different smartcard/token implementations. these include, but are not limited to openct, pcsc-lite, opencryptoki and maybe athena-scs (pcsc-ase) or the aladdin sdk.

so I think the user should decide if opensc is to be merged with openct or pcsc-lite support or simply merged as-is and only used to maintain an opencryptoki/whatever token that provides a module that can be loaded by pkcs11-tool.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-12 10:53:07 UTC
Created attachment 96810 [details, diff]
opensc-0.11.0-r1.ebuild.diff

I agree.
I've added a new local use flag opensc so people can choose if they want such dependency.
In order to be backward compatible opensc use flag may be set by default, but I am not sure that it should. It is better that user will set the correct underline drivers.

I've also removed much of the dependencies that were incorrect for the modular opensc distribution. And introduce currect ones.

There is a problem with sparc and alpha dependency, since pcsc-lite is not on ~ARCH.
Comment 7 Daniel Black (RETIRED) gentoo-dev 2006-09-19 14:10:17 UTC
(In reply to comment #6)
> Created an attachment (id=96810) [edit]
> opensc-0.11.0-r1.ebuild.diff
> 
> I agree.
> I've added a new local use flag opensc so people can choose if they want such
> dependency.
> In order to be backward compatible opensc use flag may be set by default, but I
> am not sure that it should. It is better that user will set the correct
> underline drivers.

Good. Thanks for the patch. Is it possible to force the compile process towards the underlying drivers rather than relying on dependencies?

> I've also removed much of the dependencies that were incorrect for the modular
> opensc distribution. And introduce currect ones.
> 
> There is a problem with sparc and alpha dependency, since pcsc-lite is not on
> ~ARCH.
> 
Can you create a testing bug for the sparc and alpha teams and make it block this bug?
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-20 04:21:46 UTC
(In reply to comment #7)
> Good. Thanks for the patch. Is it possible to force the compile process towards
> the underlying drivers rather than relying on dependencies?

No.
The configure uses pkgconfig in order to do the detection.

> > There is a problem with sparc and alpha dependency, since pcsc-lite is not on
> > ~ARCH.
> > 
> Can you create a testing bug for the sparc and alpha teams and make it block
> this bug?

The problem is on current ebuilds too... So this is not new to this change.
Maybe first commit this fix?
We can mask out pcsc-lite USE for alpha and sparc, then ask them to check it out.
Comment 9 Daniel Black (RETIRED) gentoo-dev 2006-09-22 19:36:14 UTC
sounds good - done.