[opensuse-buildservice] Fedora x86_64 issues
Afternoon all, I'm having issues building against all Fedora x86_64 targets. All Fedora x86, SUSE x86_64/x86 targets build fine. Basically my problem is to do with python and as it is split between /usr/lib and /usr/lib64, below are the two sections that it complains of ' Installed (but unpackaged) file(s) found:' I'm most likely doing something stupid, but for the life of me I can't work it out. I would really appreciate any help. %files -n %{name}-web %defattr(-,root,root,0755) %if 0%{?fedora_version} %ifarch %ix86 %defattr(-,root,root,0755) %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ %{_libdir}/python*/site-packages/bongo/hawkeye/ %{_libdir}/python*/site-packages/bongo/dragonfly/ %else %ifarch %x86_64 %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ /usr/lib/python*/site-packages/bongo/dragonfly/ /usr/lib/python*/site-packages/bongo/hawkeye/ %endif %endif %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ %{py_sitedir}/bongo/hawkeye/ %{py_sitedir}/bongo/dragonfly/ %endif %files -n python-%{name} %defattr(-,root,root,0755) %if 0%{?fedora_version} %ifarch %ix86 %{_libdir}/python*/site-packages/bongo/* %else %ifarch %x86_64 /usr/lib/python*/site-packages/bongo/* %{_libdir}/python*/site-packages/bongo/bootstrap.a %{_libdir}/python*/site-packages/bongo/bootstrap.la %{_libdir}/python*/site-packages/bongo/bootstrap.so %{_libdir}/python*/site-packages/bongo/libs.a %{_libdir}/python*/site-packages/bongo/libs.la %{_libdir}/python*/site-packages/bongo/libs.so %endif %endif %{py_sitedir}/bongo %endif Many thanks, Andy -- Andrew Wafaa Tel: +44 (0)7974 074546 e-Mail: andrew@forcev.net --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Instead of using %{_libdir}/python*/site-packages it would preferable to query python directly to obtain these file locations, and define an RPM macro with their value, eg For example: %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} [...] %files [...] %{python_sitelib}/freesteam.py* Regarding the split of file locations, perhaps you are not correctly passing your value of %_libdir to the build install script, whatever that is. The default value of /usr/lib is being used instead of the 64-bit platform value which is /usr/lib64. Cheers JP Andrew Wafaa wrote:
Afternoon all,
I'm having issues building against all Fedora x86_64 targets. All Fedora x86, SUSE x86_64/x86 targets build fine.
Basically my problem is to do with python and as it is split between /usr/lib and /usr/lib64, below are the two sections that it complains of ' Installed (but unpackaged) file(s) found:' I'm most likely doing something stupid, but for the life of me I can't work it out. I would really appreciate any help.
%files -n %{name}-web %defattr(-,root,root,0755) %if 0%{?fedora_version} %ifarch %ix86 %defattr(-,root,root,0755) %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ %{_libdir}/python*/site-packages/bongo/hawkeye/ %{_libdir}/python*/site-packages/bongo/dragonfly/ %else %ifarch %x86_64 %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ /usr/lib/python*/site-packages/bongo/dragonfly/ /usr/lib/python*/site-packages/bongo/hawkeye/ %endif %endif %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ %{py_sitedir}/bongo/hawkeye/ %{py_sitedir}/bongo/dragonfly/ %endif
%files -n python-%{name} %defattr(-,root,root,0755) %if 0%{?fedora_version} %ifarch %ix86 %{_libdir}/python*/site-packages/bongo/* %else %ifarch %x86_64 /usr/lib/python*/site-packages/bongo/* %{_libdir}/python*/site-packages/bongo/bootstrap.a %{_libdir}/python*/site-packages/bongo/bootstrap.la %{_libdir}/python*/site-packages/bongo/bootstrap.so %{_libdir}/python*/site-packages/bongo/libs.a %{_libdir}/python*/site-packages/bongo/libs.la %{_libdir}/python*/site-packages/bongo/libs.so %endif %endif %{py_sitedir}/bongo %endif
Many thanks,
Andy
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2007-07-03 13:59:37 +0100, Andrew Wafaa wrote:
Date: Tue, 3 Jul 2007 13:59:37 +0100 (BST) From: Andrew Wafaa
Subject: [opensuse-buildservice] Fedora x86_64 issues To: openSUSE-BuildService List Afternoon all,
I'm having issues building against all Fedora x86_64 targets. All Fedora x86, SUSE x86_64/x86 targets build fine.
Basically my problem is to do with python and as it is split between /usr/lib and /usr/lib64, below are the two sections that it complains of ' Installed (but unpackaged) file(s) found:' I'm most likely doing something stupid, but for the life of me I can't work it out. I would really appreciate any help.
%files -n %{name}-web %defattr(-,root,root,0755) %if 0%{?fedora_version} %ifarch %ix86 %defattr(-,root,root,0755) %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ %{_libdir}/python*/site-packages/bongo/hawkeye/ %{_libdir}/python*/site-packages/bongo/dragonfly/ %else
shouldnt this be %endif instead of %else
%ifarch %x86_64 %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ /usr/lib/python*/site-packages/bongo/dragonfly/ /usr/lib/python*/site-packages/bongo/hawkeye/
fedora really uses /usr/lib/python even on x86_64?
%endif %endif %{prefix}/share/bongo/htdocs/ %{prefix}/share/bongo/templates/ %{py_sitedir}/bongo/hawkeye/ %{py_sitedir}/bongo/dragonfly/
are you sure you need that in the fedora case?
%endif
%files -n python-%{name} %defattr(-,root,root,0755) %if 0%{?fedora_version} %ifarch %ix86 %{_libdir}/python*/site-packages/bongo/* %else %ifarch %x86_64 /usr/lib/python*/site-packages/bongo/* %{_libdir}/python*/site-packages/bongo/bootstrap.a
i would recommend --disable-static on the configure cmdline or remove the static lib. i doubt you need it.
%{_libdir}/python*/site-packages/bongo/bootstrap.la
you dont need that .la file either.
%{_libdir}/python*/site-packages/bongo/bootstrap.so %{_libdir}/python*/site-packages/bongo/libs.a %{_libdir}/python*/site-packages/bongo/libs.la %{_libdir}/python*/site-packages/bongo/libs.so %endif %endif %{py_sitedir}/bongo %endif
in general i would recommend only put the _different_ parts into conditionals. e.g. %{prefix}/share/* could be outside of the conditionals, as it is shared among all conditionals. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
I'm slightly confused as to why I'm getting an "Installed but un-packaged files" error on Fedora x86_64 targets. I have stipulated the location for all the files in the spec, yet it still complains. Is someone able to tell me where I'm going wrong please? The project in question is http://build.opensuse.org/package/show?package=Bongo-UNSTABLE&project=home%3AFunkyPenguin I have tried various ways round it, but all fail in building packages. Many thanks, Andy -- Andrew Wafaa Tel: +44 (0)7974 074546 e-Mail: andrew@forcev.net --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hello, on Donnerstag, 5. Juli 2007, Andrew Wafaa wrote:
The project in question is http://build.opensuse.org/package/show?package=Bongo-UNSTABLE&project =home%3AFunkyPenguin
I have tried various ways round it, but all fail in building packages.
You should have a look at the build log, the error is sitting near the end of it: make[3]: Entering directory `/usr/src/packages/BUILD/bongo-0.2.0+svn184' msgfmt -o po/fr.gmo po/fr.po msgfmt: error while opening "po/fr.po" for reading: No such file or directory make[3]: *** [po/fr.gmo] Error 1 Regards, Christian Boltz -- "If you are using an Macintosh e-mail program that is not from Microsoft, we recommend checking with that particular company. But most likely other e-mail programs like Eudora are not designed to enable virus replication" [http://www.microsoft.com/mac/products/office/2001/virus_alert.asp] --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi,
You should have a look at the build log, the error is sitting near the
end of it:
Sorry about that, we had managed to break our nascent i18n. I have uploaded a new source and the original issue has returned - complaining of installed but unpackaged files even though they are mentioned in the %files section. Many thanks, Andy -- Andrew Wafaa Tel: +44 (0)7974 074546 e-Mail: andrew@forcev.net --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Andrew Wafaa
-
Christian Boltz
-
John Pye
-
Marcus Rueckert