renatobianchini / eid-mw

Automatically exported from code.google.com/p/eid-mw
GNU Lesser General Public License v3.0
0 stars 0 forks source link

eid-mw not compatible with systemd on Fedora 17 #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to install the middleware on Fedora 17
2.
3.

What is the expected output? What do you see instead?
When installing the eid-mw package that is available for Fedora 16 (there is 
none for fedora 17 yet as far as I see), the following error is produced:
Preparing packages for installation...
eid-mw-4.0.4-0.1253.fc16

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

ERROR: Your pcscd installation is seriously broken.
warning: %post(eid-mw-4.0.4-0.1253.fc16.x86_64) scriptlet failed, exit status 1

It looks like the eid-mw is not compatible with systemd, to which Fedora has 
now switched.

Note that since eid-viewer also doesn't work on Fedora 17 (needs Java 1.6.0, 
but Fedora 17 has 1.7.0 -> I'll make a separate bug for that), I don't know 
whether the middleware actually works regardless of the error above.

What version of the product are you using? On what operating system?
- Fedora 17 (64-bit)
- eid-mw-4.0.4-0.1253.fc16.x86_64_tcm227-178463.rpm

pcsc-lite is installed:
$ rpm -qa | grep pcsc
pcsc-lite-devel-1.8.3-1.fc17.x86_64
pcsc-lite-1.8.3-1.fc17.x86_64
pcsc-lite-libs-1.8.3-1.fc17.x86_64
pcsc-lite-ccid-1.4.6-1.fc17.x86_64
$ which pcscd
/usr/sbin/pcscd
$ ls -l /lib/systemd/system/pcs*
-rw-r--r--. 1 root root 193 Mar 30 15:29 /lib/systemd/system/pcscd.service
-rw-r--r--. 1 root root 145 Mar 30 15:29 /lib/systemd/system/pcscd.socket

Original issue reported on code.google.com by peter.ve...@gmail.com on 15 Aug 2012 at 7:41

GoogleCodeExporter commented 9 years ago
Hi Peter,

While the %post script for eid-mw does use the old commands, this should work 
transparently, since a compatibility layer was introduced when fedora changed 
over to systemd.

http://fedoraproject.org/wiki/Systemd

we'll re-test that part manually. Thank you for bringing this to our attention.

Unless you had openct running, you should still be able to use eid-mw, 
regardless of that post install script. It's mainly there to work around the 
incompatibility between pcsc-lite and openct (openct always wins and grabs the 
card..), and to make detection smoother in first-installs. It's not necessary 
for the normal functioning of eid-mw.

As for the eid-viewer, the Java Requires was set to

Requires: java >= 1:1.6.0

in revision 147.

http://code.google.com/p/eid-viewer/source/browse/trunk/rpm/eid-viewer.spec#21

Would you mind trying with rev 152?

http://eid-files.be/continuous/rpm/fedora-17-x86_64/eid-viewer-4.0.4-0.152.fc17.
x86_64.rpm

Original comment by fr4...@gmail.com on 7 Sep 2012 at 9:41

GoogleCodeExporter commented 9 years ago
OK, works perfectly.   Thank you very much!

Original comment by peter.ve...@gmail.com on 9 Sep 2012 at 5:55

GoogleCodeExporter commented 9 years ago
This issue affects Fedora 19 as well, I get the same errors with 
eid-mw-4.0.6-0.1502.fc19.x86_64

Original comment by mertensb...@gmail.com on 2 Jul 2014 at 8:14

GoogleCodeExporter commented 9 years ago
I've changed the way in which we deal with the openct conflict by marking 
eid-mw (and eid-viewer) as "conflicts: openct", rather than trying to deal with 
init scripts through compatibility layers.

This should cause the warnings to go away.

Original comment by wouter.v...@fedict.be on 9 Jul 2014 at 9:03