Bug 849994

Summary: Setting environ['CFLAGS'] in a distutils setup.py file results in missing compile flags
Product: Red Hat Enterprise Linux 7 Reporter: Branislav Náter <bnater>
Component: pythonAssignee: Bohuslav "Slavek" Kabrda <bkabrda>
Status: CLOSED CURRENTRELEASE QA Contact: Branislav Náter <bnater>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: a.badger, bkabrda, psplicha, rda
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: python-2.7.5-3.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 727364 Environment:
Last Closed: 2014-06-13 12:09:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 727364    
Bug Blocks:    

Comment 4 Dave Malcolm 2013-02-20 18:59:26 UTC
Fix committed to Fedora git:
http://pkgs.fedoraproject.org/cgit/python.git/commit/?id=01cf2c167eea6e4243facb4bbd5f87ba5ea128fb

Building python-2.7.3-22.fc19 for rawhide
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=5037616

Comment 5 Bohuslav "Slavek" Kabrda 2013-07-24 10:00:34 UTC
This has been merged into RHEL 7 dist-git a while ago. The current build, python-2.7.5-3.el7 has this patch incorporated. Moving to MODIFIED.

Comment 7 Branislav Náter 2013-11-15 14:35:10 UTC
Fix is present in python-2.7.5-10.el7. No build errors appear.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Build module
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

running build
running build_ext
building 'example' extension
creating build
creating build/temp.linux-ppc64-2.7
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power7 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power7 -D_GNU_SOURCE -fPIC -fwrapv -Wno-write-strings -fPIC -I/usr/include/python2.7 -c example.c -o build/temp.linux-ppc64-2.7/example.o
creating build/lib.linux-ppc64-2.7
gcc -pthread -shared -Wl,-z,relro -Wno-write-strings build/temp.linux-ppc64-2.7/example.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-ppc64-2.7/example.so
:: [   PASS   ] :: Building the module (Expected 0, got 0)
:: [   PASS   ] :: File 'output' should contain 'fno-strict-aliasing' 
:: [   PASS   ] :: File 'output' should contain 'no-write-string'

Comment 8 Ludek Smid 2014-06-13 12:09:48 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.