Package: libssl0.9.8
Version: 0.9.8o-1
Severity: important
Tags: patch

The openssl engine shared objects are built, but not include in
libssl0.9.8 package. 

This can be verified with the following commands:
$ dpkg -L libssl0.9.8 | grep engine
$ openssl engine chil
13871:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared 
library:dso_dlfcn.c:162:filename(/usr/lib/ssl/engines/libchil.so): 
/usr/lib/ssl/engines/libchil.so: cannot open shared object file: No such file 
or directory
13871:error:25070067:DSO support routines:DSO_load:could not load the shared 
library:dso_lib.c:244:
13871:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
13871:error:2606A074:engine routines:ENGINE_by_id:no such 
engine:eng_list.c:416:id=chil

The problem is caused by debian/patches/engines-path.patch, which
is supposed to change the engine location from /usr/lib/engines to
/usr/lib/ssl/engines, but fails to do so in all required places.

I've attached a patch, which fixes the problem.

-- System Information:
Debian Release: squeeze/sid
  APT prefers stable
  APT policy: (600, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.36-core2 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libssl0.9.8 depends on:
ii  debconf [debconf-2.0]  1.5.24            Debian configuration management sy
ii  libc6                  2.11.2-6+squeeze1 Embedded GNU C Library: Shared lib
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

libssl0.9.8 recommends no packages.

libssl0.9.8 suggests no packages.

-- debconf information:
  libssl0.9.8/restart-failed:
  libssl0.9.8/restart-services:
Index: debian/patches/engines-path.patch
===================================================================
--- debian/patches/engines-path.patch	(revision 460)
+++ debian/patches/engines-path.patch	(working copy)
@@ -15,6 +15,15 @@
 ===================================================================
 --- openssl-0.9.8m.orig/engines/Makefile	2009-11-10 01:53:02.000000000 +0000
 +++ openssl-0.9.8m/engines/Makefile	2010-02-27 00:45:03.000000000 +0000
+@@ -92,7 +92,7 @@
+ 	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
+ 	@if [ -n "$(SHARED_LIBS)" ]; then \
+ 		set -e; \
+-		$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/lib/engines; \
++		$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines; \
+ 		for l in $(LIBNAMES); do \
+ 			( echo installing $$l; \
+ 			  if [ "$(PLATFORM)" != "Cygwin" ]; then \
 @@ -101,13 +101,13 @@
  				*DSO_DL*)	sfx="sl";;	\
  				*)		sfx="bad";;	\
@@ -23,12 +32,13 @@
 +				cp lib$$l.$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx.new; \
  			  else \
  			  	sfx="so"; \
- 				cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \
+-				cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \
++				cp cyg$$l.dll $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx.new; \
  			  fi; \
 -			  chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new; \
 -			  mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx ); \
 +			  chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx.new; \
-+			  mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/lib$$l.$$sfx ); \
++			  mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/ssl/engines/lib$$l.$$sfx ); \
  		done; \
  	fi
  

Reply via email to