Bug 1084526

Summary: pyparted build failed on error: 'PED_PARTITION_HFS_ESP' undeclared
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: pypartedAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bcl, dcantrell, jcapik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pyparted-3.9.3-3.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 15:53:53 UTC Type: Bug
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:    
Bug Blocks: 1051573    

Description Menanteau Guy 2014-04-04 14:57:16 UTC
Description of problem:
pyparted build failed

Version-Release number of selected component (if applicable):
pyparted-3.9.2-1.fc21
with
parted-3.1-17.fc21
installed

How reproducible:
rpmbuild -bb

Actual results:
creating build/temp.linux-ppc64le-2.7/src
...
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYPARTED_VERSION="3.9.2" -Iinclude -I/usr/include/python2.7 -c src/_pedmodule.c -o build/temp.linux-ppc64le-2.7/src/_pedmodule.o
src/_pedmodule.c: In function 'init_ped':
src/_pedmodule.c:523:53: error: 'PED_PARTITION_HFS_ESP' undeclared (first use in this function)
     PyModule_AddIntConstant(m, "PARTITION_HFS_ESP", PED_PARTITION_HFS_ESP);
                                                     ^
src/_pedmodule.c:523:53: note: each undeclared identifier is reported only once for each function it appears in
error: command 'gcc' failed with exit status 1

Additional info:
I didn't find what header provides PARTITION_HFS_ESP.
The only place where I see it is in parted but it seems not integrated yet.
see bug report:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15356

Comment 1 Brian Lane 2014-04-04 16:03:41 UTC
Note that 3.1-17 has not yet been built for rawhide.

A patch to remove the HFS_ESP has been posted to the pyparted list though.

Comment 2 Jaromír Cápík 2014-05-07 15:53:53 UTC
Fails on primary too ...