Bug 476547
| Summary: | Cannot build Bacula, missing Python.h | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Gwyn Ciesla <gwync> | ||||
| Component: | bacula | Assignee: | Andreas Thienemann <andreas> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | rawhide | CC: | 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: |
|
||||||
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. Created attachment 327003 [details]
Patch to fix building with Python 2.6
Ah, looks great. Thanks Ignacio, building now. 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
That's because there's a typo on line 10 of your version of the patch. <facepalm>. Good catch. After the day I at at work today, I'm surprised the thing wasn't COBOL. . . Built successfully. |
<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.