Hmmm... just remembered that dpkg-architecture is part of dpkg-dev, and I don't want to add another dependency in. I'll use 'uname -m' and then append '-linux-gnu' to that. Please tell me if anybody has an alternative solution.
** Description changed: + SRU Request for Precise + + ##### SRU Justification ##### + + [Impact] + + + [Development Fix] + + + [Stable Fix] + Edit the file /etc/apache2/mods-enabled/proxy_html.load to include the right path using the following sed command: + + sed -i "s/\/usr\/lib\/libxml2.so.2/\/usr\/lib\/`dpkg-architecture + -qDEB_HOST_GNU_TYPE`\/libxml2.so.2/g" /etc/apache2/mods- + available/proxy_html.load + + [Test Case] + 1) Install the packages 'apache2', 'libxml2', and 'libapache2-mod-proxy-html' + 2) Run the command 'sudo service apache2 start' + + With the version in Precise, it will error out with: + apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/proxy_html.load: Cannot load /usr/lib/libxml2.so.2 into server: /usr/lib/libxml2.so.2: cannot open shared object file: No such file or directory + Action 'start' failed. + + [Regression Potential] + Little as Apache doesn't run currently anyway. + + libxml2 2.7.8.dfsg-5.1ubuntu4.1 running on Ubuntu 12.04 LTS + + ------------ORIGINAL REPORT------------ + See also package libapache2-mod-proxy-html , file/link /etc/apache2 /mods-enabled/proxy_html.load # lsb_release -rd Description: Ubuntu 12.04 LTS Release: 12.04 (64 bit) - # apt-cache policy libxml2 libxml2: - Installed: 2.7.8.dfsg-5.1ubuntu4.1 - Candidate: 2.7.8.dfsg-5.1ubuntu4.1 - Version table: - *** 2.7.8.dfsg-5.1ubuntu4.1 0 - 500 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages - 500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages - 100 /var/lib/dpkg/status - 2.7.8.dfsg-5.1ubuntu4 0 - 500 http://de.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages - + Installed: 2.7.8.dfsg-5.1ubuntu4.1 + Candidate: 2.7.8.dfsg-5.1ubuntu4.1 + Version table: + *** 2.7.8.dfsg-5.1ubuntu4.1 0 + 500 http://de.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages + 500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages + 100 /var/lib/dpkg/status + 2.7.8.dfsg-5.1ubuntu4 0 + 500 http://de.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages # apt-cache policy libapache2-mod-proxy-html: libapache2-mod-proxy-html: - Installed: 3.0.1-1 - Candidate: 3.0.1-1 - Version table: - *** 3.0.1-1 0 - 500 http://de.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages - 100 /var/lib/dpkg/status + Installed: 3.0.1-1 + Candidate: 3.0.1-1 + Version table: + *** 3.0.1-1 0 + 500 http://de.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages + 100 /var/lib/dpkg/status Expected: I expected apache to start including module proxy_html.load. What happened: apache2 failed to start and showed an error message # service apache2 start - * Starting web server apache2 apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/proxy_html.load: Cannot load /usr/lib/libxml2.so.2 into server: /usr/lib/libxml2.so.2: cannot open shared object file: No such file or directory + * Starting web server apache2 apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/proxy_html.load: Cannot load /usr/lib/libxml2.so.2 into server: /usr/lib/libxml2.so.2: cannot open shared object file: No such file or directory Action 'start' failed. The Apache error log may have more information. - [fail] + [fail] proxy_html.load tries to load libxml2 (LoadFile /usr/lib/libxml2.so.2), but libxml2 only provides under /usr/lib/x86_64-linux-gnu (under 10.04 64 bit things are available under /usr/lib) ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: libxml2 2.7.8.dfsg-5.1ubuntu4.1 ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16 Uname: Linux 3.2.0-24-generic x86_64 ApportVersion: 2.0.1-0ubuntu7 Architecture: amd64 Date: Mon May 28 09:25:26 2012 InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1) ProcEnviron: - LANGUAGE=en_US:en - TERM=xterm - PATH=(custom, no user) - LANG=en_US.UTF-8 - SHELL=/bin/bash + LANGUAGE=en_US:en + TERM=xterm + PATH=(custom, no user) + LANG=en_US.UTF-8 + SHELL=/bin/bash SourcePackage: libxml2 UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1005425 Title: [SRU] Not looking for library in multiarch-friendly path To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mod-proxy-html/+bug/1005425/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
