Bug 476547 - Cannot build Bacula, missing Python.h
Summary: Cannot build Bacula, missing Python.h
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: bacula
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Andreas Thienemann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-15 15:12 UTC by Gwyn Ciesla
Modified: 2008-12-16 03:44 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-16 03:44:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to fix building with Python 2.6 (1.43 KB, patch)
2008-12-15 18:52 UTC, Ignacio Vazquez-Abrams
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.