Bug 476547

Summary: Cannot build Bacula, missing Python.h
Product: [Fedora] Fedora Reporter: Gwyn Ciesla <gwync>
Component: baculaAssignee: Andreas Thienemann <andreas>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: andreas, gwync, ivazqueznet, james.antill, jonathansteffan, katzj, mmcgrath
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-16 03:44:06 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:
Attachments:
Description Flags
Patch to fix building with Python 2.6 none

Description Gwyn Ciesla 2008-12-15 15:12:24 UTC
<snip>

checking for varargs.h... 
no
checking for Python support... 
no
configure: error: Unable to find Python.h in standard locations
error: Bad exit status from /var/tmp/rpm-tmp.mQXlg1 (%build)
    Bad exit status from /var/tmp/rpm-tmp.mQXlg1 (%build)
RPM build errors:
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/bacula.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.4/site-packages/mock/util.py", line 316, in do
    raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/bacula.spec']
LEAVE do --> EXCEPTION RAISED


Can provide more logs as needed, not sure what would be most helpful.  python-devel is BuildRequired.

Comment 1 James Antill 2008-12-15 17:35:29 UTC
 The only thing that comes to mind is that maybe you are looking for /usr/include/python2.5/Python.h instead of /usr/include/python2.6/Python.h ?
 If not that, please attach the mock log files.

Comment 2 Ignacio Vazquez-Abrams 2008-12-15 18:52:37 UTC
Created attachment 327003 [details]
Patch to fix building with Python 2.6

Comment 3 Gwyn Ciesla 2008-12-15 21:05:20 UTC
Ah, looks great.  Thanks Ignacio, building now.

Comment 4 Gwyn Ciesla 2008-12-15 21:14:10 UTC
That does not appear to have helped:

checking for varargs.h... 
no
checking for Python support... 
no
configure: error: Unable to find Python.h in standard locations
error: Bad exit status from /var/tmp/rpm-tmp.WDdkJf (%build)
    Bad exit status from /var/tmp/rpm-tmp.WDdkJf (%build)
RPM build errors:
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target i386 --nodeps builddir/build/SPECS/bacula.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.4/site-packages/mock/util.py", line 316, in do
    raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target i386 --nodeps builddir/build/SPECS/bacula.spec']
LEAVE do --> EXCEPTION RAISED


Full logs at http://koji.fedoraproject.org/koji/taskinfo?taskID=1000629

Comment 5 Ignacio Vazquez-Abrams 2008-12-15 22:26:16 UTC
That's because there's a typo on line 10 of your version of the patch.

Comment 6 Gwyn Ciesla 2008-12-16 03:44:06 UTC
<facepalm>.  Good catch.  After the day I at at work today, I'm surprised the thing wasn't COBOL. . .

Built successfully.