• David Malcolm's avatar
    Issue #14443: ensure that brp-python-bytecompile is invoked with the correct · b8371928
    David Malcolm yazdı
    python executable
    
    The __os_install_macro defines some post-processing activities during an rpm
    build; one of the scripts it calls is brp-python-bytecompile, which can take
    an argument: the python executable with which to byte-compile .py files in the
    package payload.
    
    In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
    in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
    which can lead to the .py files being byte-compiled for the wrong version of
    python.  This has been fixed in later versions of rpm by passing in
    %{__python} as an argument to brp-python-bytecompile.
    
    Workaround this by detecting if __os_install_post has a 0-argument invocation
    of brp-python-bytecompile, and if so generating an equivalent macro that has
    the argument, and explicitly provide the new definition within the specfile.
    b8371928
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...