[opensuse-buildservice] Help with file list please
Hi, I am running into an issue with the file list of a package Virtualization:Cloud:Eucalyptus/axis2c The spec file currently has the following entry: ...... %define axis2c_home %{_libdir}/%{name} ......... %files %defattr(-,root,root) %config /etc/ld.so.conf.d/* %doc AUTHORS ChangeLog COPYING CREDITS LICENSE NEWS NOTICE README %{axis2c_home}/bin %{axis2c_home}/lib %{axis2c_home}/modules %{axis2c_home}/modules/*/module.xml %{axis2c_home}/axis2.xml %{_bindir}/axis2* # .so links need to be in the regular package as they will be used by dlopen %{_libdir}/*.so* #%dir %{axis2c_home} #%dir %{axis2c_home}/lib #%dir %{axis2c_home}/modules #%dir %{axis2c_home}/modules/addressing #%dir %{axis2c_home}/modules/logging #%dir %{axis2c_home}/services %files doc %defattr(-,root,root) %doc %{_defaultdocdir}/%{name} #%dir %{_defaultdocdir}/%{name} %files devel %defattr(-,root,root) %doc INSTALL %{_includedir}/* %{_libdir}/pkgconfig/%{name}.pc This results in the message: ... checking filelist axis2c-1.6.0-1.x86_64.rpm: directories not owned by a package: - /usr/lib64/axis2c This should be cured by uncommenting the %dir derective(s). However, as soon as I comment out the %dir directive(s) I end up with tons of messages claiming that files in /usr/share/doc/packages/axis2c are packaged twice in axis2c and axis2c-doc. These messages are prefixed with ERROR. This problem occur when building for Factory. Help is much appreciated. Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thu, Jan 19, 2012 at 10:00:46PM -0500, Robert Schweikert wrote:
I believe this is the only one you need. ...
... due to this message.
This happens even if you only have _one_ line with "%dir %{axis2c_home}" in your spec file? Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Fri, Jan 20, 2012 at 10:11 AM, Lars Müller <lmuelle@suse.de> wrote:
This happens even if you only have _one_ line with "%dir %{axis2c_home}" in your spec file?
Yes... why not do this? Do you intend to have some modules in separate packages perhaps? I can see no hint of that in Virtualization:Cloud:Eucalyptus. If you don't, the aforementioned one-liner is best. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 01/20/2012 08:11 AM, Lars Müller wrote:
Yes, I am stuck with either getting a complaint about the directory not being owned by a package or getting messages about files being packaged twice. Although, I am pretty certain that I do not have duplicated entries in the files section. <snip> %{axis2c_home}/modules/*/module.xml %{axis2c_home}/axis2.xml %{_bindir}/axis2* # .so links need to be in the regular package as they will be used by dlopen %{_libdir}/*.so* %dir %{axis2c_home} #%dir %{axis2c_home}/lib #%dir %{axis2c_home}/modules #%dir %{axis2c_home}/modules/addressing #%dir %{axis2c_home}/modules/logging #%dir %{axis2c_home}/services %files doc %defattr(-,root,root) %doc %{_defaultdocdir}/%{name} #%dir %{_defaultdocdir}/%{name} Results in: ..... ERROR: /usr/share/doc/packages/axis2c/api/html/axiom__document_8h.html is packaged in both axis2c and axis2c-doc, and the packages do not conflict ERROR: /usr/share/doc/packages/axis2c/api/html/axis2__http__transport_8h-source.html is packaged in both axis2c and axis2c-doc, and the packages do not conflict One error message for every file packaged in /usr/share/doc/packages/axis2c Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Jan 20, 2012 at 12:26 PM, Robert Schweikert <rjschwei@suse.com> wrote:
I see. Well, I would imagine you'd only need to uncomment #%dir %{axis2c_home} ...and it should work. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 01/20/2012 11:02 AM, Claudio Freire wrote:
That's what I did. After that I get the errors about the duplicate packaged files..... I am not sure how to explain it differently. When I have #%dir %{axis2c_home} I get the complaint about an un-owned directory. When I use %dir %{axis2c_home} I get errors about files being packaged in 2 packages. Robert
-- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Jan 20, 2012 at 1:14 PM, Robert Schweikert <rjschwei@suse.com> wrote:
According to this[0], it should work. Exactly which error do you get? [0] http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 01/20/2012 11:28 AM, Claudio Freire wrote:
As posted previously: ERROR: /usr/share/doc/packages/axis2c/api/html/axiom__document_8h.html is packaged in both axis2c and axis2c-doc, and the packages do not conflict For the case with %dir %{axis2c_home} and: ... checking filelist axis2c-1.6.0-1.x86_64.rpm: directories not owned by a package: - /usr/lib64/axis2c for the case with #%dir %{axis2c_home}
[0] http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html
Thanks for the link. I now understand the problem and have a fix. The problem is really the %doc README...... in the files section for the main package. After reading the text from the link the light came on. %doc README...... will not only package the files listed with the %doc directive, but everything that ends up in %{_defaultdocdir}. Thus all the API documentation files that I am trying to split into a -doc package do really get packaged twice due to this oddity of overzealous packaging. An %except directive fixes this problem. Thanks for the help, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thu, Jan 19, 2012 at 10:00:46PM -0500, Robert Schweikert wrote:
I believe this is the only one you need. ...
... due to this message.
This happens even if you only have _one_ line with "%dir %{axis2c_home}" in your spec file? Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Fri, Jan 20, 2012 at 10:11 AM, Lars Müller <lmuelle@suse.de> wrote:
This happens even if you only have _one_ line with "%dir %{axis2c_home}" in your spec file?
Yes... why not do this? Do you intend to have some modules in separate packages perhaps? I can see no hint of that in Virtualization:Cloud:Eucalyptus. If you don't, the aforementioned one-liner is best. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 01/20/2012 08:11 AM, Lars Müller wrote:
Yes, I am stuck with either getting a complaint about the directory not being owned by a package or getting messages about files being packaged twice. Although, I am pretty certain that I do not have duplicated entries in the files section. <snip> %{axis2c_home}/modules/*/module.xml %{axis2c_home}/axis2.xml %{_bindir}/axis2* # .so links need to be in the regular package as they will be used by dlopen %{_libdir}/*.so* %dir %{axis2c_home} #%dir %{axis2c_home}/lib #%dir %{axis2c_home}/modules #%dir %{axis2c_home}/modules/addressing #%dir %{axis2c_home}/modules/logging #%dir %{axis2c_home}/services %files doc %defattr(-,root,root) %doc %{_defaultdocdir}/%{name} #%dir %{_defaultdocdir}/%{name} Results in: ..... ERROR: /usr/share/doc/packages/axis2c/api/html/axiom__document_8h.html is packaged in both axis2c and axis2c-doc, and the packages do not conflict ERROR: /usr/share/doc/packages/axis2c/api/html/axis2__http__transport_8h-source.html is packaged in both axis2c and axis2c-doc, and the packages do not conflict One error message for every file packaged in /usr/share/doc/packages/axis2c Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Jan 20, 2012 at 12:26 PM, Robert Schweikert <rjschwei@suse.com> wrote:
I see. Well, I would imagine you'd only need to uncomment #%dir %{axis2c_home} ...and it should work. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 01/20/2012 11:02 AM, Claudio Freire wrote:
That's what I did. After that I get the errors about the duplicate packaged files..... I am not sure how to explain it differently. When I have #%dir %{axis2c_home} I get the complaint about an un-owned directory. When I use %dir %{axis2c_home} I get errors about files being packaged in 2 packages. Robert
-- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Jan 20, 2012 at 1:14 PM, Robert Schweikert <rjschwei@suse.com> wrote:
According to this[0], it should work. Exactly which error do you get? [0] http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Claudio Freire
-
Lars Müller
-
Robert Schweikert