Bug#735532: libanyevent-rabbitmq-perl: Invalid location of fixed_amqp0-9-1.xml

Maarten van Schaik maarten at byte.nl
Thu Jan 16 09:26:37 UTC 2014


Package: libanyevent-rabbitmq-perl
Version: 1.15~dfsg-1
Severity: grave
Tags: patch
Justification: renders package unusable

Dear Maintainer,

The XML spec file that is used by AnyEvent::RabbitMQ seems to be in the wrong
location.

Because of licensing issues the original file is removed from the package, and
replaced by a symlink to a stripped version included in amqp-specs. The location
of the symlink differs from the expected location though.

To demonstrate the issue:

$ perl -MAnyEvent::RabbitMQ -e 'AnyEvent::RabbitMQ->new->load_xml_spec();'
Could not create file parser context for file "/usr/share/perl5/auto/share/dist/AnyEvent-RabbitMQ/fixed_amqp0-9-1.xml": No such file or directory at /usr/share/perl5/Net/AMQP/Protocol.pm line 64.
	(in cleanup) close already in progress at /usr/share/perl5/AnyEvent/RabbitMQ.pm line 612.

(This command is expected to give no output and no error.)

The symlink is located in a subdirectory 'share', which is not expected by the
library.

This patch fixes the issue for me:

diff --git a/debian/rules b/debian/rules
index 46cd581..a86c334 100755
--- a/debian/rules
+++ b/debian/rules
@@ -52,8 +52,8 @@ clean::
 # use separately packaged spec files
 DEB_DH_LINK_$(pkg) = \
  /usr/share/amqp/specs/0-9-1-rabbit/amqp0-9-1.stripped.extended.xml \
- /usr/share/perl5/auto/share/dist/AnyEvent-RabbitMQ/share/fixed_amqp0-9-1.xml
+ /usr/share/perl5/auto/share/dist/AnyEvent-RabbitMQ/fixed_amqp0-9-1.xml
 common-configure-arch common-configure-indep::
-       ln -sf /usr/share/amqp/specs/0-9-1-rabbit/amqp0-9-1.stripped.extended.xml share/fixed_amqp0-9-1.xml
+       ln -sf /usr/share/amqp/specs/0-9-1-rabbit/amqp0-9-1.stripped.extended.xml fixed_amqp0-9-1.xml
 clean::
-       rm -rf share/fixed_amqp0-9-1.xml
+       rm -rf fixed_amqp0-9-1.xml


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

Kernel: Linux 3.12-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libanyevent-rabbitmq-perl depends on:
ii  libanyevent-perl                 7.070-1
ii  libdevel-globaldestruction-perl  0.12-1
ii  libfile-sharedir-perl            1.03-1
ii  liblist-moreutils-perl           0.33-1+b2
ii  libnamespace-clean-perl          0.24-1
ii  libnet-amqp-perl                 0.06~dfsg-1
ii  libreadonly-perl                 1.04-1
ii  perl                             5.18.1-5

Versions of packages libanyevent-rabbitmq-perl recommends:
ii  amqp-specs  1-0r0-2

libanyevent-rabbitmq-perl suggests no packages.

-- no debconf information



More information about the pkg-perl-maintainers mailing list