Re: https LWP and perl 5.8.0
Package: libcrypt-ssleay-perl
Version: 0.29-2
On Mon, Sep 23, 2002 at 12:09:51PM +0200, Bruno De Fraine wrote:
>Is anybody succesfully using the libcrypt-ssleay-perl package with perl
>5.8.0 from currernt Debian unstable (non-US)? Any other suggestions on how
>to use https LWP?
>
>Mime stopped working after I upgrade from perl 5.6.1 to 5.8.0. Any https
>request now returns ``500 Can't locate object method "new" via package
>"LWP::Protocol::https::Socket" ''
>
>It seems pretty obvious this package is not adapted to perl 5.8.0 if you
>look at this output.
>
>santa@springfield:~$ dpkg --listfiles libcrypt-ssleay-perl
>/usr/lib/perl/5.6.1/auto/Crypt/SSLeay/SSLeay.so
>/usr/lib/perl/5.6.1/auto/Crypt/SSLeay/SSLeay.bs
>/usr/lib/perl/5.6.1/auto/Crypt/SSLeay/.packlist
Not even adapted for perl 5.6.x really. Module packages must *never*
install into Perl's privlib directory. The appended patch installs the
module into the correct directory as specified by perl-policy[0], and
adds ${perl:Depends} so that the package gets the correct dependencies.
Note also that the debian/dirs file may be removed entirely, or at least
should have the /usr/include entry removed from it.
[0] file://localhost/usr/share/doc/debian-policy/perl-policy.html/ch-module_packages.html#s-vendor_install
--bod
diff -Naur crypt-ssleay-0.29.orig/Makefile.PL crypt-ssleay-0.29/Makefile.PL
--- crypt-ssleay-0.29.orig/Makefile.PL 2002-09-23 21:54:49.000000000 +1000
+++ crypt-ssleay-0.29/Makefile.PL 2002-09-23 21:41:09.000000000 +1000
@@ -157,6 +157,7 @@
$version_file = $_;
}
}
+ return unless $version_file;
$open_ssl = ($version_file =~ /openssl/) ? 1 : 0;
my $dirname = $inc_dir = dirname($version_file);
return unless (-e "$dirname/ssl.h");
diff -Naur crypt-ssleay-0.29.orig/debian/control crypt-ssleay-0.29/debian/control
--- crypt-ssleay-0.29.orig/debian/control 2002-09-23 21:54:49.000000000 +1000
+++ crypt-ssleay-0.29/debian/control 2002-09-23 21:51:47.000000000 +1000
@@ -7,7 +7,7 @@
Package: libcrypt-ssleay-perl
Architecture: any
-Depends: libmime-base64-perl, liburi-perl
+Depends: ${perl:Depends}, libmime-base64-perl, liburi-perl
Description: Support for https protocol in LWP
This perl module provides support for the https protocol under LWP, so
that a LWP::UserAgent can make https GET & HEAD & POST requests. Please
diff -Naur crypt-ssleay-0.29.orig/debian/dirs crypt-ssleay-0.29/debian/dirs
--- crypt-ssleay-0.29.orig/debian/dirs 2002-09-23 21:54:49.000000000 +1000
+++ crypt-ssleay-0.29/debian/dirs 1970-01-01 10:00:00.000000000 +1000
@@ -1,3 +0,0 @@
-usr/include
-usr/lib/perl5
-usr/share/man/man3
diff -Naur crypt-ssleay-0.29.orig/debian/rules crypt-ssleay-0.29/debian/rules
--- crypt-ssleay-0.29.orig/debian/rules 2002-09-23 21:54:49.000000000 +1000
+++ crypt-ssleay-0.29/debian/rules 2002-09-23 21:56:23.000000000 +1000
@@ -13,40 +13,36 @@
PERL=/usr/bin/perl
endif
-
-
build: build-stamp
build-stamp:
dh_testdir
-
# Add here commands to compile the package.
- #$(MAKE)
- $(PERL) Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=$(tmp)/usr/share/man/man1 INSTALLMAN3DIR=$(tmp)/usr/share/man/man3 INSTALLPRIVLIB=$(tmp)/usr/lib/perl5
- $(MAKE)
-
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE) OPTIMIZE="-O2 -g -Wall"
touch build-stamp
clean:
dh_testdir
dh_testroot
- rm -f build-stamp
+ rm -f build-stamp install-stamp
# Add here commands to clean up after the build process.
- if [ -e Makefile ]; then $(MAKE) -i distclean; fi
-
+ -$(MAKE) distclean
dh_clean
-install: build
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
- # Add here commands to install the package into debian/tmp.
- $(MAKE) pure_install PREFIX=`pwd`/debian/tmp/usr
+ $(MAKE) install PREFIX=$(CURDIR)/debian/tmp/usr
+ rmdir debian/tmp/usr/share/perl5 # empty dir
+ touch build-stamp
# Build architecture-independent files here.
binary-indep: build install
@@ -76,9 +72,6 @@
dh_strip
dh_compress
dh_fixperms
- /usr/bin/find debian/tmp/usr/lib/perl5/ -type f -exec /bin/chmod -R a-X \{\} \;
- # You may want to make some executables suid here.
- dh_suidregister
dh_makeshlibs
dh_installdeb
dh_perl
Reply to: