SPECS: audit.spec - lib64 safe

Elan Ruusamäe glen at delfi.ee
Wed Sep 13 17:52:52 CEST 2006


On Wednesday 13 September 2006 18:24, sparky at pld-linux.org wrote:
> On Wed, Sep 13, 2006 at 05:18:25PM +0200, glen wrote:
> > Author: glen                         Date: Wed Sep 13 15:18:25 2006 GMT
> > Module: SPECS                         Tag: HEAD
> > ---- Log message:
> > - lib64 safe
> >
> > -rm -r $RPM_BUILD_ROOT%{_prefix}/lib/python2.4
> > +rm -r $RPM_BUILD_ROOT%{py_libdir}
>
> NOOOOOOOOOOooooooooooooooooo!!!!!!!111!!!!!!.......

NOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!~!!22222!!!!

$ rpm -E "%{py_libdir}"; arch
/usr/lib64/python2.4
x86_64

oh and btw:
$ rpm -E "%{_prefix}/%{_lib}/python*"
/usr/lib64/python*

> 1.
> $ rpm --eval "%{py_libdir}"
> sh: python: not found
> sh: python: not found
> /lib/python
>
> python is needed for this macro
>
> 2.
> in audit-1.2.6/audisp/Makefile
>
> there is:
> LIBDIR ?= $(PREFIX)/lib/python2.4/site-packages
patch and pass %{py_libdir}

> so it isn't really installed in %{py_libdir}, but in some hardcoded path
> (if this behaviour is broken then there should be some 'mv' in
> %{with python} part)
patch it not to install python files?

ps: also try to avoid python2.4 (hardcoding 2.4)

-- 
glen


More information about the pld-devel-en mailing list