Bug 464959

Summary: FTBFS PythonCard-0.8.2-1.fc10
Product: [Fedora] Fedora Reporter: FTBFS <ftbfs>
Component: PythonCardAssignee: Marek Mahut <mmahut>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: matt_domsch, mmahut
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: http://linux.dell.com/files/fedora/FixBuildRequires/mock-results/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-29 12:39:47 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:    
Bug Blocks: 463452    
Attachments:
Description Flags
root.log
none
build.log
none
mock.log none

Description FTBFS 2008-10-01 15:42:31 UTC
PythonCard-0.8.2-1.fc10.src.rpm Failed To Build From Source against the rawhide tree.  See http://fedoraproject.org/wiki/FTBFS for more information.

Comment 1 FTBFS 2008-10-01 15:42:35 UTC
Created attachment 318275 [details]
root.log

root.log for x86_64

Comment 2 FTBFS 2008-10-01 15:42:36 UTC
Created attachment 318276 [details]
build.log

build.log for x86_64

Comment 3 FTBFS 2008-10-01 15:42:37 UTC
Created attachment 318277 [details]
mock.log

mock.log for x86_64

Comment 4 Matt Domsch 2008-10-29 04:57:48 UTC
* Need to use sitelib, not sitearch, for noarch.
* need to nuke build/ dir, not include it in the package.

diff -u -b -B -u -r1.1 PythonCard.spec
--- PythonCard.spec     8 Aug 2008 15:42:33 -0000       1.1
+++ PythonCard.spec     29 Oct 2008 04:56:49 -0000
@@ -1,4 +1,4 @@
-%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
+%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0)')

 Name:          PythonCard
 Version:       0.8.2
@@ -31,10 +31,11 @@
 rm -rf $RPM_BUILD_ROOT
 env CFLAGS="$RPM_OPT_FLAGS" python setup.py install --root=$RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
-mv $RPM_BUILD_ROOT/%{python_sitearch}/%{name}/samples $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
-mv $RPM_BUILD_ROOT/%{python_sitearch}/%{name}/docs $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
-mv $RPM_BUILD_ROOT/%{python_sitearch}/%{name}/tools $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/examples
+mv $RPM_BUILD_ROOT/%{python_sitelib}/%{name}/samples $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
+mv $RPM_BUILD_ROOT/%{python_sitelib}/%{name}/docs $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
+mv $RPM_BUILD_ROOT/%{python_sitelib}/%{name}/tools $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/examples
 mv *.txt $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/%{name}/build

 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -43,9 +44,9 @@
 %defattr(-,root,root,-)
 %exclude %{_bindir}/install-pythoncard.*
 %if 0%{?fedora} >= 9
-%{python_sitearch}/*egg-info
+%{python_sitelib}/*egg-info
 %endif
-%{python_sitearch}/%{name}
+%{python_sitelib}/%{name}
 %{_docdir}/%{name}-%{version}

 %changelog

Comment 5 Matt Domsch 2008-10-29 12:39:47 UTC
committed and building in koji.
 http://koji.fedoraproject.org/koji/taskinfo?taskID=910576