[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apparmor-dev
Subject:    Re: [apparmor] AppArmor utils on openSUSE
From:       Christian Boltz <apparmor () cboltz ! de>
Date:       2010-12-22 0:31:47
Message-ID: 201012220131.48421 () tux ! boltz ! de ! vu
[Download RAW message or body]

Hello,

Am Montag, 20. Dezember 2010 schrieb John Johansen:
> On 12/19/2010 04:10 PM, Christian Boltz wrote:
> > Am Sonntag, 19. Dezember 2010 schrieb John Johansen:
> >> On 12/19/2010 07:23 AM, Christian Boltz wrote:

> >> You should be able to use the apparmor 2.5 tools, as they are
> >> backwards compatible with 2.3,

> > Unfortunately the build for 11.3 in security:apparmor:factory fails
> > while trying to install a manpage, [...]
> 
> sorry, I don't have an answer to this atm

OK, then I will give the answer myself ;-)

I looked a bit closer at the build log and noticed that make says 
"nothing to do" instead of calling pod2man and pod2html in %build.
This explains why there's no manpage to copy around...

The attached specfile patch fixes this by manually calling pod2man and 
pod2html for several files at the end of %build - needless to say that 
it isn't the best solution, but it works ;-)

I did a submitrequest to security:apparmor:factory (SR 56578) - I'll see 
if such a hack will be accepted by Jeff ;-))

My guess is that the problem is caused by different make or automake 
versions. However I'm not sure if this is worth big investigations - 
IMHO my hack should be sufficient and can be dropped when 11.3 goes out 
of support.

(I didn't test the 2.5.1 utils on 11.3 yet.)

> > 2040k = 2 MB total profile size if I follow all abstractions/*.
> > Wow.
> 
> yeah, thought text policy size doesn't actually determine what the
> finally compiled binary policy size is.

Of course. However I'm quite sure that the apache profile is also the 
biggest profile in compiled binary size (and for sure bigger than the 
profile for ping ;-)


Regards,

Christian Boltz
-- 
Maybe you need to turn the chamaeleon (gecko) once more, 90 grades this
time, with a silly grin and a rolling stones tongue coming out. ;-))
[Eberhard Moenkeberg in opensuse]

["113-call-pod2man.diff" (text/x-patch)]

- Fixed build failure on openSUSE 11.3
  For whatever reason, make said "nothing to do" instead of running 
  pod2man and pod2html. Calling them explicitely helps.

(I know this solution is not really nice, but it is easier and faster 
than debugging automake...)
--This line, and those below, will be ignored--

old: security:apparmor:factory/apparmor
new: home:cboltz:branches:security:apparmor:factory/apparmorIndex: apparmor.changes
===================================================================
--- apparmor.changes (revision 25)
+++ apparmor.changes (revision 11)
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Wed Dec 22 00:14:14 UTC 2010 - opensuse@cboltz.de
+
+- Fixed build failure on openSUSE 11.3
+  For whatever reason, make said "nothing to do" instead of running 
+  pod2man and pod2html. Calling them explicitely helps.
+
+-------------------------------------------------------------------
 Tue Dec 21 00:36:39 CET 2010 - jeffm@suse.de
 
 - Fixed building of perl and ruby SWIG modules. The former
Index: apparmor.spec
===================================================================
--- apparmor.spec (revision 25)
+++ apparmor.spec (revision 11)
@@ -515,6 +515,31 @@
 #make -C libraries/libapparmor/swig/ruby
 %endif
 
+%if %{distro} == "suse"
+%if 0%{?suse_version} < 1131
+# hotfix for 11.3: make says "nothing to do" instead of calling pod2man and pod2html
+( cd libraries/libapparmor/doc && pod2man --center=AppArmor --release=NOVELL/SUSE \
--section pod aa_change_hat.pod > aa_change_hat.2 ) +( cd parser && pod2man \
--center=AppArmor --release=NOVELL/SUSE --section pod apparmor.d.pod > apparmor.d.5   \
&& pod2html --header --css ../common/apparmor.css --infile=apparmor.d.pod \
--outfile=apparmor.d.5.html ) +( cd parser && pod2man --center=AppArmor \
--release=NOVELL/SUSE --section pod apparmor.pod > apparmor.7               && \
pod2html --header --css ../common/apparmor.css --infile=apparmor.pod \
--outfile=apparmor.7.html ) +( cd parser && pod2man --center=AppArmor \
--release=NOVELL/SUSE --section pod subdomain.conf.pod > subdomain.conf.5   && \
pod2html --header --css ../common/apparmor.css --infile=subdomain.conf.pod \
--outfile=subdomain.conf.5.html) +( cd parser && pod2man --center=AppArmor \
--release=NOVELL/SUSE --section pod apparmor.vim.pod > apparmor.vim.5       && \
pod2html --header --css ../common/apparmor.css --infile=apparmor.vim.pod \
--outfile=apparmor.vim.5.html ) +( cd parser && pod2man --center=AppArmor \
--release=NOVELL/SUSE --section pod apparmor_parser.pod > apparmor_parser.8 && \
pod2html --header --css ../common/apparmor.css --infile=apparmor_parser.pod \
--outfile=apparmor_parser.8.html) +( cd changehat/mod_apparmor && pod2man \
--center=AppArmor --release=NOVELL/SUSE --section pod mod_apparmor.pod > \
mod_apparmor.8 ) +( cd utils && \
+  pod2man --center=AppArmor --release=NOVELL/SUSE --section pod autodep.pod > \
autodep.8                 && pod2html --header --css ../common/apparmor.css \
--infile=autodep.pod --outfile=autodep.8.html && \ +  pod2man --center=AppArmor \
--release=NOVELL/SUSE --section pod complain.pod > complain.8               && \
pod2html --header --css ../common/apparmor.css --infile=complain.pod \
--outfile=complain.8.html &&  \ +  pod2man --center=AppArmor --release=NOVELL/SUSE \
--section pod enforce.pod > enforce.8                 && pod2html --header --css \
../common/apparmor.css --infile=enforce.pod --outfile=enforce.8.html  && \ +  pod2man \
--center=AppArmor --release=NOVELL/SUSE --section pod logprof.pod > logprof.8         \
&& pod2html --header --css ../common/apparmor.css --infile=logprof.pod \
--outfile=logprof.8.html  && \ +  pod2man --center=AppArmor --release=NOVELL/SUSE \
--section pod genprof.pod > genprof.8                 && pod2html --header --css \
../common/apparmor.css --infile=genprof.pod --outfile=genprof.8.html  && \ +  pod2man \
--center=AppArmor --release=NOVELL/SUSE --section pod unconfined.pod > unconfined.8   \
&& pod2html --header --css ../common/apparmor.css --infile=unconfined.pod \
--outfile=unconfined.8.html &&  \ +  pod2man --center=AppArmor --release=NOVELL/SUSE \
--section pod audit.pod > audit.8                     && pod2html --header --css \
../common/apparmor.css --infile=audit.pod --outfile=audit.8.html  && \ +  pod2man \
--center=AppArmor --release=NOVELL/SUSE --section pod logprof.conf.pod > \
logprof.conf.5       && pod2html --header --css ../common/apparmor.css \
--infile=logprof.conf.pod --outfile=logprof.conf.5.html  && \ +  pod2man \
--center=AppArmor --release=NOVELL/SUSE --section pod apparmor_status.pod > \
apparmor_status.8 && pod2html --header --css ../common/apparmor.css \
--infile=apparmor_status.pod --outfile=apparmor_status.8.html  && \ +  pod2man \
--center=AppArmor --release=NOVELL/SUSE --section pod aa-decode.pod > aa-decode.8     \
&& pod2html --header --css ../common/apparmor.css --infile=aa-decode.pod \
--outfile=aa-decode.8.html  && \ +  pod2man --center=AppArmor --release=NOVELL/SUSE \
--section pod apparmor_notify.pod > apparmor_notify.8 && pod2html --header --css \
../common/apparmor.css --infile=apparmor_notify.pod --outfile=apparmor_notify.8.html  \
) +%endif
+%endif
+
 %install
 %{make_install}
 



-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic