https://bugs.contribs.org/show_bug.cgi?id=11278

John Crisp <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from John Crisp <[email protected]> ---
This is a rpm compile error and needs fixing in the build phase.

The issue is the builder trying to build python files during the rpm build.

We should be able to disable that, but nothing I have tried so far works.

https://github.com/syuu1228/scylla/commit/30a3818511bd638f956f782792e4e6f29650d88f

https://bugzilla.redhat.com/show_bug.cgi?id=1411588

I tried this in the spec file:

# this is needed to prevent python compilation error on CentOS (#2235)
%global __os_install_post    \
    /usr/lib/rpm/redhat/brp-compress \
    %{!?__debug_package:\
    /usr/lib/rpm/redhat/brp-strip %{__strip} \
    /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \
    } \
    /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \
    %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} \
%{nil}


Checked this output:


rpm --eval '%{__os_install_post}'

    /usr/lib/rpm/redhat/brp-compress 
    /usr/lib/rpm/redhat/brp-strip /usr/bin/strip 
    /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip 
    /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump 
    /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 
    /usr/lib/rpm/redhat/brp-python-hardlink 
    /usr/lib/rpm/redhat/brp-java-repack-jars 


Took the brute force and ignorance route (we can't do this for realt becuase
this is in buildsys)


/usr/lib/rpm/brp-python-bytecompile 
just add 'exit 0' after '#!/bin/sh' line

But THAT failed too, so it isn't strictly brp-python-bytecompile

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to