[apparmor] [Bug 737074] Re: apache2 apparmor module missing link against libapparmor

Steve Beattie steve at nxnw.org
Thu Mar 17 20:13:01 UTC 2011


On Thu, Mar 17, 2011 at 07:37:02PM -0000, Steve Beattie wrote:
> Attached is a patch that fixes the issue.
> 
> ** Patch added: "mod_apparmor-build_fix.patch"
>    https://bugs.launchpad.net/apparmor/+bug/737074/+attachment/1915637/+files/mod_apparmor-build_fix.patch

And for list review, the patch is below. This is both for trunk and 2.6.

Based on this issue, I'd like to spin a 2.6.1 release soon.

=== modified file 'changehat/mod_apparmor/Makefile'
--- changehat/mod_apparmor/Makefile	2011-02-08 16:18:36 +0000
+++ changehat/mod_apparmor/Makefile	2011-03-17 19:33:50 +0000
@@ -41,12 +41,13 @@
 	      fi ) 
 APXS_INSTALL_DIR=$(shell ${APXS} -q LIBEXECDIR)
 DESTDIR=
-LIBAPPARMOR_FLAGS="-I../../libraries/libapparmor/src -L../../libraries/libapparmor/src/.libs -lapparmor"
+LIBAPPARMOR_FLAGS="-I../../libraries/libapparmor/src -L../../libraries/libapparmor/src/.libs"
+LDLIBS="-lapparmor"
 
 all: $(TARGET) ${MANPAGES} ${HTMLMANPAGES}
 
 %.so: %.c
-	${APXS} ${LIBAPPARMOR_FLAGS} -c $<
+	${APXS} ${LIBAPPARMOR_FLAGS} -c $< ${LDLIBS}
 	mv .libs/$@ .
 
 .PHONY: install


-- 
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20110317/9472d951/attachment.pgp>


More information about the AppArmor mailing list