Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135612 - pcsc-lite-1.3.1 installs config file into /etc/reader.conf.d/
Summary: pcsc-lite-1.3.1 installs config file into /etc/reader.conf.d/
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-05 04:00 UTC by Ivan Lloro
Modified: 2006-06-24 20:15 UTC (History)
1 user (show)

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


Attachments
pcsc-lite-1.3.1-r1.ebuild.diff (pcsc-lite-1.3.1-r1.ebuild.diff,548 bytes, patch)
2006-06-10 03:31 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 Ivan Lloro 2006-06-05 04:00:56 UTC
pscd tries to read configuration file from /etc/reader.conf instead of the gentoo installed /etc/reader.conf.d/reader.conf. The outcome is that pscd always loads with no configuration at all and the smartcard reader cannot be used.

Verified with ebuild pcsc-lite version 1.3.1
Comment 1 SpanKY gentoo-dev 2006-06-08 04:01:54 UTC
this is a bug in the etc/Makefile.am file ... it doesnt properly respect the option given to it by configure
Comment 2 SpanKY gentoo-dev 2006-06-08 04:08:55 UTC
fixed in 1.3.1-r1
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2006-06-08 11:07:07 UTC
Saw -r1 in portage...

I don't understand...
This behavior was intentail.

It should access /etc/reader.conf file, the /etc/reader.conf.d/reader.conf is only a sample!

The /etc/reader.conf.d can have many files, each define distinctive reader group. You should use /usr/sbin/update-reader.conf in order to concat all /etc/reader.conf.d/* to /etc/reader.conf.

Maybe the bug was that the pkg_postinst you should have executed update-reader.conf to create a default /etc/reader.conf.

So I am afraid that current fix is a bug.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2006-06-10 03:31:42 UTC
Created attachment 88828 [details, diff]
pcsc-lite-1.3.1-r1.ebuild.diff

Please reopen or consider apply attached.
Comment 5 Ivan Lloro 2006-06-12 03:25:42 UTC
Reopened after the enlightening Alon's comments. So, current fix is a bug. The original behavior was correct.

In any case, tough, there is a clear problem of discoverability which lead me (and maybe also to other people) to the mistaken idea this issue was actually a bug. What I suggest, then, is to just add an explanation at /etc/reader.conf.d/reader.conf header which points the need to execute update-reader.conf.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2006-06-12 11:42:21 UTC
(In reply to comment #5)
> What I suggest, then, is to just add an explanation at
> /etc/reader.conf.d/reader.conf header which points the need to execute
> update-reader.conf.

Please report this to upstream. I don't think this kind of modifications should be done by distro maintainers.

Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2006-06-16 04:27:19 UTC
Hello,
Can you please revert portage back to orignal?
Thanks!
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2006-06-22 22:31:27 UTC
Hello,
Is there any reason why you don't fix and close this bug?
Regards.
Comment 9 SpanKY gentoo-dev 2006-06-24 20:15:02 UTC
in cvs