Missing symlinks for pkcs11_startup in /usr/lib/opencryptoki/stdll

Bug #237392 reported by David Smith
14
Affects Status Importance Assigned to Milestone
opencryptoki (Debian)
Fix Released
Unknown
opencryptoki (Ubuntu)
Fix Released
Low
Emilio Pozuelo Monfort
Hardy
Fix Released
Low
Unassigned

Bug Description

Binary package hint: opencryptoki

Clone of debian bug #481453. Copying the intro text here:

After installing opencryptoki, libopencryptoki0 I run the command
pkcs11_startup and then tried to start the daemon. The daemon complains
about not finding the config file under

/var/lib/opencryptoki/pk_config_data

This file should be created by pkcs11_startup, so I did take a look at
it. pkcs11_startup expects the libraries for the modules to have the
extension '.so', but the ones installed by libopencryptoki0 do have
'.so.0'. After adding the symlinks manually the nescessary files under
/var/lib/opencryptoki are created and the daemon starts.

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

uploaded

Changed in opencryptoki:
assignee: nobody → pochu
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package opencryptoki - 2.2.5+dfsg-1ubuntu5

---------------
opencryptoki (2.2.5+dfsg-1ubuntu5) intrepid; urgency=low

  * debian/libopencryptoki0.links:
    - Provide .so -> .so.0 symlinks for the libopencryptoki0 library.
      LP: #237392.

 -- Emilio Pozuelo Monfort <email address hidden> Sat, 07 Jun 2008 16:39:22 +0200

Changed in opencryptoki:
status: Fix Committed → Fix Released
Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

MOTU SRU:

Shall I upload this fix to hardy-proposed too? The fix from bug #198618 is somewhat useless without this. Thanks.

diff -u opencryptoki-2.2.5+dfsg/debian/changelog opencryptoki-2.2.5+dfsg/debian/changelog
--- opencryptoki-2.2.5+dfsg/debian/changelog
+++ opencryptoki-2.2.5+dfsg/debian/changelog
@@ -1,3 +1,11 @@
+opencryptoki (2.2.5+dfsg-1ubuntu1.2) hardy-proposed; urgency=low
+
+ * debian/libopencryptoki0.links:
+ - Provide .so -> .so.0 symlinks for the libopencryptoki0 library.
+ LP: #237392.
+
+ -- Emilio Pozuelo Monfort <email address hidden> Sat, 07 Jun 2008 16:51:32 +0200
+
 opencryptoki (2.2.5+dfsg-1ubuntu1.1) hardy-proposed; urgency=low

   * Revert changes from 2.2.5+dfsg-1ubuntu1 (install stdll files again).
only in patch2:
unchanged:
--- opencryptoki-2.2.5+dfsg.orig/debian/libopencryptoki0.links
+++ opencryptoki-2.2.5+dfsg/debian/libopencryptoki0.links
@@ -0,0 +1,3 @@
+usr/lib/opencryptoki/libopencryptoki.so.0 usr/lib/opencryptoki/libopencryptoki.so
+usr/lib/opencryptoki/stdll/libpkcs11_sw.so.0 usr/lib/opencryptoki/stdll/libpkcs11_sw.so
+usr/lib/opencryptoki/stdll/libpkcs11_tpm.so.0 usr/lib/opencryptoki/stdll/libpkcs11_tpm.so

Changed in opencryptoki:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

ACK from motu-sru

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote : Re: [Bug 237392] Re: Missing symlinks for pkcs11_startup in /usr/lib/opencryptoki/stdll

Luca Falavigna wrote:
> ACK from motu-sru

Thanks, uploaded.

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Changed in opencryptoki:
status: Confirmed → Fix Committed
Revision history for this message
Albert Damen (albrt) wrote :

-1

The .so symlinks added to libopencryptoki0 are already, as expected, in libopencryptoki-dev. Therefore libopencryptoki-dev cannot be installed anymore:

dpkg: error processing /var/cache/apt/archives/libopencryptoki-dev_2.2.5+dfsg-1ubuntu1.2_amd64.deb (--unpack):
 trying to overwrite `/usr/lib/opencryptoki/libopencryptoki.so', which is also in package libopencryptoki0
Errors were encountered while processing:
 /var/cache/apt/archives/libopencryptoki-dev_2.2.5+dfsg-1ubuntu1.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The same problem on intrepid:
dpkg: error processing /var/cache/apt/archives/libopencryptoki-dev_2.2.5+dfsg-1ubuntu5_amd64.deb (--unpack):
 trying to overwrite `/usr/lib/opencryptoki/libopencryptoki.so', which is also in package libopencryptoki0

Revision history for this message
David Smith (dds) wrote : Re: [Bug 237392] Re: Missing symlinks for pkcs11_startup in /usr/lib/opencryptoki/stdll

Albert Damen <email address hidden> writes:

> -1
>
> The .so symlinks added to libopencryptoki0 are already, as expected, in
> libopencryptoki-dev. Therefore libopencryptoki-dev cannot be installed
> anymore:
>
> dpkg: error processing /var/cache/apt/archives/libopencryptoki-dev_2.2.5+dfsg-1ubuntu1.2_amd64.deb (--unpack):
> trying to overwrite `/usr/lib/opencryptoki/libopencryptoki.so', which is also in package libopencryptoki0
> Errors were encountered while processing:
> /var/cache/apt/archives/libopencryptoki-dev_2.2.5+dfsg-1ubuntu1.2_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> The same problem on intrepid:
> dpkg: error processing /var/cache/apt/archives/libopencryptoki-dev_2.2.5+dfsg-1ubuntu5_amd64.deb (--unpack):
> trying to overwrite `/usr/lib/opencryptoki/libopencryptoki.so', which is also in package libopencryptoki0

Right, libopencryptoki-dev should still be responsible for the
/usr/lib/opencryptoki/libopencryptoki.so symlink. Only the stdll .so files
symlinks should be created inside of the libopencryptoki0 package and
*not* in the -dev package.

- dds

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote : Re: [Bug 237392] Re: Missing symlinks for pkcs11_startup in /usr/lib/opencryptoki/stdll

Albert Damen wrote:
> The same problem on intrepid:
> dpkg: error processing /var/cache/apt/archives/libopencryptoki-dev_2.2.5+dfsg-1ubuntu5_amd64.deb (--unpack):
> trying to overwrite `/usr/lib/opencryptoki/libopencryptoki.so', which is also in package libopencryptoki0

I've just uploaded a fix to Intrepid, could you verify that it works fine? If
so, I'll upload the same fix to hardy-proposed.

Revision history for this message
Albert Damen (albrt) wrote :

With 1ubuntu6 the -dev package can be installed again, but we are back at the original issue. The .so symlink for libopencryptoki is not available if the -dev is not installed:

Error loading PKCS#11 library
dlopen error: libopencryptoki.so: cannot open shared object file: No such file or directory

Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

bah, I forgot to link libopencryptoki0, and was only linking stdll/*so. -1ubuntu7 uploaded to Intrepid, if it's fine now I'll reupload to hardy-proposed :)

Changed in opencryptoki:
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package opencryptoki - 2.2.5+dfsg-1ubuntu7

---------------
opencryptoki (2.2.5+dfsg-1ubuntu7) intrepid; urgency=low

  * debian/libopencryptoki0.links,
    debian/rules:
    - Also provide a link for libopencryptoki0. Really closes lp: #237392.

 -- Emilio Pozuelo Monfort <email address hidden> Fri, 27 Jun 2008 23:40:58 +0200

Changed in opencryptoki:
status: Fix Committed → Fix Released
Changed in opencryptoki:
status: Unknown → New
Revision history for this message
Emilio Pozuelo Monfort (pochu) wrote :

I've re-uploaded the fix to hardy-proposed.

Changed in opencryptoki:
status: New → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted updated package into hardy-proposed, please test.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Package is installable and now provides links in /usr/lib/opencryptoki/stdll.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in opencryptoki:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.