Perhaps I missed this, but did the behavior of this change or is this a bug?
Here are two lines of my spec file which previously worked:
%doc HACKING NEWS README TODO %license LICENSE
Now, I'm getting this error: RPM build errors: Installed (but unpackaged) file(s) found: /usr/share/doc/megatools/LICENSE
I can get rid of the error by adding LICENSE to %doc, but my understanding is I shouldn't have to do that.
I also can resolve the error by changing: %license LICENSE to %license %{_docdir}/megatools/LICENSE
but of course if I do that, it doesn't put the LICENSE file in the special license subdirectory.
Anyone else notice this?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 01/02/2016 08:22 PM, Gerald B. Cox wrote:
Perhaps I missed this, but did the behavior of this change or is this a bug?
Here are two lines of my spec file which previously worked:
%doc HACKING NEWS README TODO %license LICENSE
Now, I'm getting this error: RPM build errors: Installed (but unpackaged) file(s) found: /usr/share/doc/megatools/LICENSE
Maybe It's previously installed by 'make install'.
I can get rid of the error by adding LICENSE to %doc, but my understanding is I shouldn't have to do that.
I also can resolve the error by changing: %license LICENSE to %license %{_docdir}/megatools/LICENSE
but of course if I do that, it doesn't put the LICENSE file in the special license subdirectory.
Anyone else notice this?
-- packaging mailing list packaging@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/packaging@lists.fedoraproject.org
- -- Antonio Trande
mailto: sagitter 'at' fedoraproject 'dot' org http://fedoraos.wordpress.com/ https://fedoraproject.org/wiki/User:Sagitter GPG Key: 0x565E653C Check on https://keys.fedoraproject.org/
On Sat, Jan 2, 2016 at 11:30 AM, Antonio Trande anto.trande@gmail.com wrote:
Maybe It's previously installed by 'make install'.
Well, that doesn't explain why it worked fine a few months ago...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 01/02/2016 08:49 PM, Gerald B. Cox wrote:
On Sat, Jan 2, 2016 at 11:30 AM, Antonio Trande <anto.trande@gmail.com mailto:anto.trande@gmail.com> wrote:
Maybe It's previously installed by 'make install'.
Well, that doesn't explain why it worked fine a few months ago...
Please, let me see SPEC file.
- -- Antonio Trande
mailto: sagitter 'at' fedoraproject 'dot' org http://fedoraos.wordpress.com/ https://fedoraproject.org/wiki/User:Sagitter GPG Key: 0x565E653C Check on https://keys.fedoraproject.org/
On Sat, Jan 2, 2016 at 11:53 AM, Antonio Trande anto.trande@gmail.com wrote:
Please, let me see SPEC file.
It's out on Koji.... megatools... the current version out there had no errors when it was created. Ran into this problem when trying to package the new version, so re-ran the current version and the error also appeared there also.
On Sat, 2 Jan 2016 11:49:13 -0800, Gerald B. Cox wrote:
Maybe It's previously installed by 'make install'.
Well, that doesn't explain why it worked fine a few months ago...
No, because rpmbuild has changed is more strict nowadays. Previously, it included *everything* found in the docdir to be used by any %doc statement. It has always been a mistake to overwrite files in %buildroot with local %doc files. Include such files with full path instead. Or move them to local builddir and then include them with %doc.
packaging@lists.fedoraproject.org