I've applied modified patch from Lubomir and now it works....

Below you can find patch against whole debian/ directory to fix this problem.


--
Sebastian Podjasek @ morenet.pl
diff -urp --new-file libapreq2-2.12-broken/debian/changelog 
libapreq2-2.12/debian/changelog
--- libapreq2-2.12-broken/debian/changelog      2010-03-06 00:01:40.000000000 
+0100
+++ libapreq2-2.12/debian/changelog     2010-04-30 14:06:00.155223316 +0200
@@ -1,3 +1,7 @@
+libapreq2 (2.12-2~mn) unstable; urgency=high
+
+  * urgency=high Apply patch (Closes: #573062)
+
 libapreq2 (2.12-1) unstable; urgency=low

   * New upstream release.
diff -urp --new-file 
libapreq2-2.12-broken/debian/patches/99-libapreq2-2.12-install.patch 
libapreq2-2.12/debian/patches/99-libapreq2-2.12-install.patch
--- libapreq2-2.12-broken/debian/patches/99-libapreq2-2.12-install.patch        
1970-01-01 01:00:00.000000000 +0100
+++ libapreq2-2.12/debian/patches/99-libapreq2-2.12-install.patch       
2010-04-30 14:47:15.451223211 +0200
@@ -0,0 +1,42 @@
+From: Lubomir Rintel <lkund...@v3.sk>
+
+APR shared objects were not properly linked when they were installed to a
+specific DESTDIR. This was broken in r733406, which attempted to fix
+rpaths for the obscure platforms that still use them.
+
+With this applied, we call apreq2-config we just installed and add a library
+path of libraries in DESTDIR to linker.
+
+$ perl -MAPR::Request
+Can't load '/usr/lib/perl5/auto/APR/Request/Request.so' for module 
APR::Request: /usr/lib/perl5/auto/APR/Request/Request.so: undefined symbol: 
apreq_hook_disable_uploads at /usr/lib/perl5/DynaLoader.pm line 200.
+ at - line 0
+Compilation failed in require.
+BEGIN failed--compilation aborted.
+
+--- libapreq2-2.12/glue/Makefile.am    2009-03-06 01:39:06.000000000 +0100
++++ libapreq2-2.12/glue/Makefile.am.new        2010-04-30 14:42:30.263223383 
+0200
+@@ -15,7 +15,8 @@ perl_test: perl/Makefile
+       cd perl; $(MAKE) test
+
+ perl_install:
+-      cd perl; INSTALL=1 @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ 
@MM_OPTS@
++      cd perl; INSTALL=1 DESTDIR=$(DESTDIR) LIBDIR=$(libdir) \
++              @PERL@ @PERL_OPTS@ Makefile.PL -apxs @APACHE2_APXS@ @MM_OPTS@
+       cd perl; $(MAKE) install
+
+ perl_clean:
+--- libapreq2-2.12/glue/perl/Makefile.PL       2009-03-06 01:39:06.000000000 
+0100
++++ libapreq2-2.12/glue/perl/Makefile.PL.new   2010-04-30 14:44:52.355222837 
+0200
+@@ -136,8 +136,11 @@ if (WIN32) {
+     my $apreq2_config = "$base_dir/apreq2-config";
+     my $bindir = qx{$apreq2_config --bindir};
+     chomp $bindir;
+-    $apreq2_config = "$bindir/apreq2-config" if $ENV{INSTALL};
++    $apreq2_config = $ENV{DESTDIR}."$bindir/apreq2-config" if $ENV{INSTALL};
+     $apreq_libs = qx{$apreq2_config --link-ld --ldflags --libs};
++    die "Failed to run $apreq2_config" if $?;
++    chomp $apreq_libs;
++    $apreq_libs .= " -L".$ENV{DESTDIR}.$ENV{LIBDIR} if $ENV{INSTALL};
+     chomp $apreq_libs;
+ }
+
diff -urp --new-file libapreq2-2.12-broken/debian/patches/series 
libapreq2-2.12/debian/patches/series
--- libapreq2-2.12-broken/debian/patches/series 2010-02-28 16:27:28.000000000 
+0100
+++ libapreq2-2.12/debian/patches/series        2010-04-30 14:03:50.211223020 
+0200
@@ -1,3 +1,3 @@
 01-fake-installed-apache.patch
 02-hardcode-usr-prefix.patch
-
+99-libapreq2-2.12-install.patch

Reply via email to