[opensuse-packaging] sorting out duplicates help
Hi, Working on a package that creates a -doc package and includes the files in docdir via: %files doc %defattr(-,root,root) %doc %{docdir} I'd like to get the LICENSE file from the source into the main package via %files %doc LICENSE But when I do this I get complaints about the doc files being packaged twice. How do I solve this puzzle? Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU Public Cloud Architect LINUX SUSE-IBM Software Integration Center Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tuesday 2014-03-18 16:48, Robert Schweikert wrote:
Hi,
Working on a package that creates a -doc package and includes the files in docdir via:
%files doc %defattr(-,root,root) %doc %{docdir}
I'd like to get the LICENSE file from the source into the main package via
%files %doc LICENSE
But when I do this I get complaints about the doc files being packaged twice.
How do I solve this puzzle?
Drop the %doc before %{docdir}. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 03/18/2014 11:50 AM, Jan Engelhardt wrote:
On Tuesday 2014-03-18 16:48, Robert Schweikert wrote:
Hi,
Working on a package that creates a -doc package and includes the files in docdir via:
%files doc %defattr(-,root,root) %doc %{docdir}
I'd like to get the LICENSE file from the source into the main package via
%files %doc LICENSE
But when I do this I get complaints about the doc files being packaged twice.
How do I solve this puzzle?
Drop the %doc before %{docdir}.
Thanks, but that didn't do the trick, still getting: ERROR: FILE_PATH is packaged in both cloud-init-doc and cloud-init, and the packages do not conflict message is printed for every file in docdir with the FILE_PATH given accordingly Robert
-- Robert Schweikert MAY THE SOURCE BE WITH YOU Public Cloud Architect LINUX SUSE-IBM Software Integration Center Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hello, Am Dienstag, 18. März 2014 schrieb Robert Schweikert:
On 03/18/2014 11:50 AM, Jan Engelhardt wrote:
On Tuesday 2014-03-18 16:48, Robert Schweikert wrote:
How do I solve this puzzle?
Drop the %doc before %{docdir}.
Thanks, but that didn't do the trick, still getting:
ERROR: FILE_PATH is packaged in both cloud-init-doc and cloud-init, and the packages do not conflict
message is printed for every file in docdir with the FILE_PATH given accordingly
Just an untested guess: %exclude %{docdir}/LICENSE in %files of the doc package could help Regards, Christian Boltz -- linux:~ # nmap localhost bash: nmap: command not found linux:~ # nmap geht nicht [Marcel Stein in suse-linux] -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tue, 18 Mar 2014 16:48, Robert Schweikert <rjschwei@...> wrote:
Working on a package that creates a -doc package and includes the files in docdir via:
%files doc %defattr(-,root,root) %doc %{docdir}
I'd like to get the LICENSE file from the source into the main package via
%files %doc LICENSE
But when I do this I get complaints about the doc files being packaged twice.
How do I solve this puzzle?
IMHO the LICENSE file has it's place in the main package (as per the 'rules') To pack the LICENSE file AGAIN in the -doc package makes no sense to me. There could be made a case for including a LICENSE file into a -doc package IF the -doc package does NOT depend on the main package, but in that case the %{docdir} of the -doc package should be different from the %{docdir} of the main package. E.g. php and php-doc whre php-doc contains a primer, examples, guides, etc in that case %{docdir} of the main package has to contain the LICENSE file for php it self (e.g. GPL), whereas %{docdir} of the php-doc (e.g. /usr/share/doc/packges/php-doc) has the LICENSE file for the documentation, (e.g. CC or OpenDoc) If the seperate -doc package makes sense (e.g. package-size), and still uses the same %{docdir} as the main package, the LICENSE / COPYING file should packaged with the main package and excluded from the -doc package. Does that give you enough hints? Other voices? Please speak up. - Yamaban. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi, On 03/18/2014 12:10 PM, Yamaban wrote:
On Tue, 18 Mar 2014 16:48, Robert Schweikert <rjschwei@...> wrote:
Working on a package that creates a -doc package and includes the files in docdir via:
%files doc %defattr(-,root,root) %doc %{docdir}
I'd like to get the LICENSE file from the source into the main package via
%files %doc LICENSE
But when I do this I get complaints about the doc files being packaged twice.
How do I solve this puzzle?
IMHO the LICENSE file has it's place in the main package (as per the 'rules')
To pack the LICENSE file AGAIN in the -doc package makes no sense to me.
There could be made a case for including a LICENSE file into a -doc package IF the -doc package does NOT depend on the main package, but in that case the %{docdir} of the -doc package should be different from the %{docdir} of the main package.
E.g. php and php-doc whre php-doc contains a primer, examples, guides, etc in that case %{docdir} of the main package has to contain the LICENSE file for php it self (e.g. GPL), whereas %{docdir} of the php-doc (e.g. /usr/share/doc/packges/php-doc) has the LICENSE file for the documentation, (e.g. CC or OpenDoc)
If the seperate -doc package makes sense (e.g. package-size), and still uses the same %{docdir} as the main package, the LICENSE / COPYING file should packaged with the main package and excluded from the -doc package.
Thanks for the info. I do understand why the conflict arises, just have no idea how to avoid it.
Does that give you enough hints?
No,. Later, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU Public Cloud Architect LINUX SUSE-IBM Software Integration Center Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Christian Boltz
-
Jan Engelhardt
-
Robert Schweikert
-
Yamaban