On Thu, Dec 28, 2017 at 03:54:58PM +0100, Klaas Freitag wrote:
Hi,
can anybody help me to understand what is going wrong in https://build.opensuse.org/package/show/home:ocfreitag:branches:KDE:Extra/ow... ?
The Leap builds are failing because of a post build check complaining about duplicates: [ 174s] found conflict of owncloud-client-2.4.0-27.1.x86_64 with owncloud-client-doc-2.4.0-27.1.x86_64: [ 174s] - /usr/share/doc/packages/owncloud-client/html/advancedusage.html
It complains about all files in the doc subfolder called 'html' which should be in the -doc subpackage, and only there. The main package owncloud-client should only contain a few doc files like README and such.
In the Tumbleweed builds, this all works like expected, and the packages contain the right doc files.
What is going on with the Leap builds?
The problem is that "make install" is copying the HTML into this directory, but you use %doc macro in the main %files section. So this /usr/share/doc/packages/owncloud-client/html gets packages via the %doc macro in %files and also via %doc %{_docdir}/%{name}/html in the "doc" subpackage. %doc is a bit of a weird macro and occasionaly too powerful, either avoid or do all documentation with it. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org