You are not logged in.
Hello
i tried to compile the apparmor package from AUR but failed
creating //tmp/yaourt-tmp-weltio/aur-apparmor/pkg/apparmor-libapparmor/usr/lib/python2.7
creating //tmp/yaourt-tmp-weltio/aur-apparmor/pkg/apparmor-libapparmor/usr/lib/python2.7/site-packages
creating //tmp/yaourt-tmp-weltio/aur-apparmor/pkg/apparmor-libapparmor/usr/lib/python2.7/site-packages/LibAppArmor
copying build/lib.linux-x86_64-2.7/LibAppArmor/_LibAppArmor.so -> //tmp/yaourt-tmp-weltio/aur-apparmor/pkg/apparmor-libapparmor/usr/lib/python2.7/site-packages/LibAppArmor
copying build/lib.linux-x86_64-2.7/LibAppArmor/__init__.py -> //tmp/yaourt-tmp-weltio/aur-apparmor/pkg/apparmor-libapparmor/usr/lib/python2.7/site-packages/LibAppArmor
byte-compiling //tmp/yaourt-tmp-weltio/aur-apparmor/pkg/apparmor-libapparmor/usr/lib/python2.7/site-packages/LibAppArmor/__init__.py to __init__.pyc
running install_egg_info
Writing //tmp/yaourt-tmp-weltio/aur-apparmor/pkg/apparmor-libapparmor/usr/lib/python2.7/site-packages/LibAppArmor-2.8.1-py2.7.egg-info
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig/python'
make[2]: Leaving directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig/python'
Making install in ruby
make[2]: Entering directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig/ruby'
make[3]: Entering directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig/ruby'
make -fMakefile.ruby install
make[4]: Entering directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig/ruby'
make[4]: *** No rule to make target `/tmp/yaourt-tmp-weltio/aur-apparmor/pkg/apparmor-libapparmor/usr/include/ruby-2.0.0/ruby.h', needed by `LibAppArmor_wrap.o'. Stop.
make[4]: Leaving directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig/ruby'
make[3]: *** [install-exec-local] Error 2
make[3]: Leaving directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig/ruby'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig/ruby'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-weltio/aur-apparmor/src/apparmor-2.8.1/libraries/libapparmor/swig'
make: *** [install-recursive] Error 1
Somehow the ruby.h is missing there which obviously shouldnt be. Did anyone get managed to compile it?
Offline
As a workaround, I just compile the bits I need:
pushd parser &&
make &&
make install &&
popd &&
pushd libraries/libapparmor &&
# From /usr/share/doc/apparmor/README
./autogen.sh &&
./configure --prefix=/usr --without-perl --with-python &&
make &&
make install &&
popd &&
# Utils
pushd utils &&
make &&
d=$(installed_version perl) # This will not work in Arch - FIX IT
make PERLDIR="/usr/lib/perl5/site_perl/$d/Immunix" install &&
popd &&
pushd profiles &&
make &&
make install &&
popd
You'd have to tweak that PERLDIR line
Offline
I simply removed --with-ruby from the the PKGBUILD.
Not sure what perl would have to do with it..
build() {
msg2 "Building: apparmor-libapparmor"
cd "${srcdir}/${pkgbase}-${pkgver}/libraries/libapparmor"
./autogen.sh
./configure --prefix=/usr --with-perl --with-python #--with-ruby
...
}
package_apparmor-libapparmor() {
....
#mv ${pkgdir}/usr/lib/ruby/site_ruby ${pkgdir}/usr/lib/ruby/vendor_rub
}
Offline
I had the same idea ealier but simply failed because i forgot to comment the mv-line
Thank you guys
But what is the reason for the compilation error with ruby?
Offline
Good question. I suspect relatively-simple-to-fix automake-foo/pkgconfig-foo breakage with ruby 2.0, but I haven't looked into it, because like all of us here I also don't need ruby support for apparmor.
Last edited by teekay (2013-03-26 22:12:07)
Offline