Overview

Request 1133996 superseded

- Update to version 20231207.46c2ec3:
* make FLAVOR_compile compatible with python2

- Update to version 20231204.dd64e74:
* Combine fix_shebang in one line
* New macro FLAVOR_fix_shebang_path
* Use realpath in %python_clone macro shebang replacement
* Compile and fix_shebang in %python_install macros


Ana Guerrero's avatar

New issue:

[   13s] + xargs -0 /usr/bin/python2 -c ' 
[   13s] import sys, py_compile 
[   13s] for f in sys.argv[1:]: 
[   13s]   fp=f[len("/home/abuild/rpmbuild/BUILDROOT/python2-pycairo-1.18.1-6.57.x86_64"):] 
[   13s]   print("Generating cached byte-code for " + str(fp)) 
[   13s]   for o in [0, 1]: 
[   13s]     py_compile.compile(f, dfile=fp, optimize=o) 
[   13s] '
[   13s] Generating cached byte-code for /usr/lib64/python2.7/site-packages/cairo/__init__.py
[   13s] Traceback (most recent call last):
[   13s]   File "<string>", line 7, in <module>
[   13s] TypeError: compile() got an unexpected keyword argument 'optimize'
[   13s] error: Bad exit status from /var/tmp/rpm-tmp.JyEZik (%install)

Dominique Leuenberger's avatar
[   12s] + xargs -0 /usr/bin/python2 -c ' 
[   12s] import sys, py_compile 
[   12s] for f in sys.argv[1:]: 
[   12s]   fp=f[len("/home/abuild/rpmbuild/BUILDROOT/python2-pycairo-1.18.1-6.60.x86_64"):] 
[   12s]   print(f"Generating cached byte-code for {fp}") 
[   12s]   for o in [0, 1]: 
[   12s]     py_compile.compile(f, dfile=fp, optimize=o) 
[   12s] '
[   12s]   File "<string>", line 5
[   12s]     print(f"Generating cached byte-code for {fp}") 
[   12s]                                                 ^
[   12s] SyntaxError: invalid syntax
[   12s] error: Bad exit status from /var/tmp/rpm-tmp.ZxZmqo (%install)

from https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:A/python2-pycairo/standard/x86_64


Ana Guerrero's avatar

In a new rebuild there were many other issues (likely transient problems) but this issue was still present.


Jan Engelhardt's avatar

AIUI f-strings are python3-only


Ana Guerrero's avatar

makes pycairo FTBFS


Marcus Rueckert's avatar

mrueckert wrote (1130671) see comment from dimstar


Ana Guerrero's avatar

https://bugzilla.opensuse.org/show_bug.cgi?id=1218143 - python2-pycairo is blocking update python-rpm-macros


Request History
Daniel Garcia's avatar

dgarcia created request

- Update to version 20231207.46c2ec3:
* make FLAVOR_compile compatible with python2

- Update to version 20231204.dd64e74:
* Combine fix_shebang in one line
* New macro FLAVOR_fix_shebang_path
* Use realpath in %python_clone macro shebang replacement
* Compile and fix_shebang in %python_install macros


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Ana Guerrero's avatar

anag+factory set openSUSE:Factory:Staging:B as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:B"


Ana Guerrero's avatar

anag+factory accepted review

Picked "openSUSE:Factory:Staging:B"


Ana Guerrero's avatar

anag+factory added factory-staging as a reviewer

Being evaluated by group "factory-staging"


Ana Guerrero's avatar

anag+factory accepted review

Unstaged from project "openSUSE:Factory:Staging:B"


Dominique Leuenberger's avatar

dimstar accepted review


openSUSE Build Service is sponsored by