[opensuse-buildservice] Macro issue for SLES 11 builds?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Getting package build failures for SLES 11 SP2 and SP3 as follows: [ 150s] The following directories from python-ec2deprecateimg-1.1.0-1.1.x86_64.rpm [ 150s] are already part of the filesystem RPM: [ 150s] /usr/share/man/man1 [1] The spec file contains: %doc %{_mandir}/* Which I figure triggers the issue. Is this a macro issue, a checker issue? How can I fix this? Preferably I would not add a %if condition into the spec file. Thanks, Robert [1] https://build.opensuse.org/package/live_build_log/Cloud:Tools/python-ec2depr... - -- Robert Schweikert MAY THE SOURCE BE WITH YOU Public Cloud Architect LINUX rjschwei@suse.com IRC: robjo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJVSi3eAAoJEE4FgL32d2UklTYH/2Qj5Kzc21q2I4dFVoMLrw26 8wFL9/gnxD8/OakXGXTxf63oWhZqMZnKm7BHDrNPK+6oGr2MIFVSQ8PpaSq0TpEW DcS1R1NyCEtV4WNNOOssMQgkEfvDpuPpBEnktJrI0GX9rKBUBgZv/a2pd+NyDZPn hLT7iXVxkPk0hoHdc9RV0Z1xW48VKqWwMz7RSZVfSIiCDC7McJuaRPC9SU81HBk6 YOlpTUK3u18nEF0Smb/nSL+n8/wbhkeFaWd4ifsIZlbLz1MMJsSJjKqjvrJ2cpqq v2p+cARYiHC4+Jm0Dq87P7ps7RNmg84/KqvZuUFrv2gauOlnVK594KUVRn15Ad4= =tSIM -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wednesday 2015-05-06 17:06, Robert Schweikert wrote:
Getting package build failures for SLES 11 SP2 and SP3 as follows:
[ 150s] The following directories from python-ec2deprecateimg-1.1.0-1.1.x86_64.rpm [ 150s] are already part of the filesystem RPM: [ 150s] /usr/share/man/man1
[1] The spec file contains: %doc %{_mandir}/* Which I figure triggers the issue. Is this a macro issue, a checker issue? How can I fix this?
Just %_mandir/man1/*.1* No %doc. That's implicit already. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, May 6, 2015 at 11:06 AM, Robert Schweikert
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
Getting package build failures for SLES 11 SP2 and SP3 as follows:
[ 150s] The following directories from python-ec2deprecateimg-1.1.0-1.1.x86_64.rpm [ 150s] are already part of the filesystem RPM: [ 150s] /usr/share/man/man1
[1]
The spec file contains:
%doc %{_mandir}/*
That's just plain wrong.
%doc says "Copy the specified file from the source tree to
/usr/share/doc/packages/
On Wed, May 6, 2015 at 3:39 PM, Greg Freemyer
Assuming you have already installed the man page to the right place, just list it as a file to include in the RPM.
%{_mandir}/*
Sorry, list the files, not the directories: %{_mandir}/man1/* -- Greg Freemyer -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Greg Freemyer
%doc says "Copy the specified file from the source tree to /usr/share/doc/packages/
and include it in the RPM"
%doc doesn't copy anything for an absolute name, it merely sets the doc flag for that file. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Wed, May 6, 2015 at 4:53 PM, Andreas Schwab
Greg Freemyer
writes: %doc says "Copy the specified file from the source tree to /usr/share/doc/packages/
and include it in the RPM" %doc doesn't copy anything for an absolute name, it merely sets the doc flag for that file.
Is there any end-user value in: %doc %{_mandir}/man1/* over %{_mandir}/man1/* None of my packages use %doc to tag man pages as documentation and I haven't noticed on other spec files either. Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi Greg, On Wed, May 06, 2015 at 05:25:31PM -0400, Greg Freemyer wrote:
On Wed, May 6, 2015 at 4:53 PM, Andreas Schwab
wrote: Greg Freemyer
writes: %doc says "Copy the specified file from the source tree to /usr/share/doc/packages/
and include it in the RPM" %doc doesn't copy anything for an absolute name, it merely sets the doc flag for that file.
Is there any end-user value in:
%doc %{_mandir}/man1/*
over
%{_mandir}/man1/*
No. The man pages are packaged as documentation anyhow automatically. Also the manual gzip of the man page as part of the install is superfluous.
None of my packages use %doc to tag man pages as documentation and I haven't noticed on other spec files either.
Samba had it till some hours back too. Thanks for the heads up! Cheers, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Wednesday 2015-05-06 23:25, Greg Freemyer wrote:
Is there any end-user value in:
%doc %{_mandir}/man1/*
over
%{_mandir}/man1/*
As I mentioned previously, no, because files in %_mandir are automatically set to %doc. (rpm -qd ... will show them.) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Greg Freemyer
Is there any end-user value in:
%doc %{_mandir}/man1/*
over
%{_mandir}/man1/*
Yes, if you have a directory that isn't a %docdir. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/06/2015 05:25 PM, Greg Freemyer wrote:
On Wed, May 6, 2015 at 4:53 PM, Andreas Schwab
wrote: Greg Freemyer
writes: %doc says "Copy the specified file from the source tree to /usr/share/doc/packages/
and include it in the RPM" %doc doesn't copy anything for an absolute name, it merely sets the doc flag for that file.
Is there any end-user value in:
%doc %{_mandir}/man1/*
over
%{_mandir}/man1/*
None of my packages use %doc to tag man pages as documentation and I haven't noticed on other spec files either.
The advantage would be that the man page is not installed when one installs with the --excludedocs. If the man page is not marked as documentation it will always be installed. Later, Robert - -- Robert Schweikert MAY THE SOURCE BE WITH YOU Public Cloud Architect LINUX rjschwei@suse.com IRC: robjo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJVS5qWAAoJEE4FgL32d2Uk804H/A5Zwf2AehA7md8l5X7CExEB +X57JPMmMbFDDutggM8T6JmX/dU8QifWICDgRGC2YAzJcEMD4k8XPR74sngfeGGv FB1s98rldqdBBROmdx4+xAdq22dxQaN/YTWYfYk4WAQHfKJ8NxtkUYUXG6++BEiE OLIUwPtAf7OPC1JTGMWjWvqY664mNY3NWFIzqQyNa7VA7hVmyn5tExTzgzYBFmGM 6hGG/jCBgaP9WcbzfkItPWYYRpiE541KB1eh7qtWKTKq9T5f99M2yR+noGQ0AMlj 9PyrmOY3FYmxHX1rgKJhxYO2Z/J8LW3oxl9N50UH8KdpLDpRKlAqOqkzCqtUTiQ= =eOuN -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hi, On Thu, May 07, 2015 at 01:02:14PM -0400, Robert Schweikert wrote:
On 05/06/2015 05:25 PM, Greg Freemyer wrote:
On Wed, May 6, 2015 at 4:53 PM, Andreas Schwab
wrote: Greg Freemyer
writes: %doc says "Copy the specified file from the source tree to /usr/share/doc/packages/
and include it in the RPM" %doc doesn't copy anything for an absolute name, it merely sets the doc flag for that file.
Is there any end-user value in:
%doc %{_mandir}/man1/*
over
%{_mandir}/man1/*
None of my packages use %doc to tag man pages as documentation and I haven't noticed on other spec files either.
The advantage would be that the man page is not installed when one installs with the --excludedocs. If the man page is not marked as documentation it will always be installed.
man pages are automatically installed as documentation. That's why this extra %doc isn't required. You're able to verify this with the help of rpm -ql -d That's also the motivation of https://build.opensuse.org/request/show/305639 Cheers, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team + SUSE Labs SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/06/2015 04:53 PM, Andreas Schwab wrote:
Greg Freemyer
writes: %doc says "Copy the specified file from the source tree to /usr/share/doc/packages/
and include it in the RPM" %doc doesn't copy anything for an absolute name, it merely sets the doc flag for that file.
That's what I thought, which is why I added it in front of the %{_mandir}.... file Robert - -- Robert Schweikert MAY THE SOURCE BE WITH YOU Public Cloud Architect LINUX rjschwei@suse.com IRC: robjo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJVS5hiAAoJEE4FgL32d2Uk6fcIAJ/tz7U+50SADJ+FtG8gEmZP D4rZru6KG9+sHVjkTsaGMGb0wKs3X0ulLRiJSMYd/uu/eh+z1DruIh0v2jtiJgr/ Q1pdTJqoLHAsyUqVztjzteAuvu+sgEQRDaAUyryQWGQ/IIpbjROry2MTo9DDemyC 2wJoYipt9kbD7DCkn+xAl3IZnbRPyEosKS5UXddTGJdph9bAFecDT05E1FfQ5ODJ u2AhgYr2XFtv/wuCeHGR3Msv6qz9uAKMufME+bQK7kUVuPKqT1K4g+BaxYY/O3fg PFP1XiKZLoOua9eOI6ZozDOIThLjoFYPnzzN+T8JXKvLR7fM/qEq1xdQImZPID8= =Dw+n -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Thu, May 7, 2015 at 12:52 PM, Robert Schweikert
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 05/06/2015 04:53 PM, Andreas Schwab wrote:
Greg Freemyer
writes: %doc says "Copy the specified file from the source tree to /usr/share/doc/packages/
and include it in the RPM" %doc doesn't copy anything for an absolute name, it merely sets the doc flag for that file.
That's what I thought, which is why I added it in front of the %{_mandir}.... file
Robert
Robert, Your first post had "%doc %{_mandir}/*" which is a reference to the directory /usr/man/man1 shown in the error message. I'm guessing now that all would be fine if had been a reference solely to the man files: %doc %{_mandir}/man1/*" The issue being /usr/man/man1 is not owned by your package so it should not be called out in the %files section. Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/08/2015 10:50 AM, Greg Freemyer wrote:
On Thu, May 7, 2015 at 12:52 PM, Robert Schweikert
wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 05/06/2015 04:53 PM, Andreas Schwab wrote:
Greg Freemyer
writes: %doc says "Copy the specified file from the source tree to /usr/share/doc/packages/
and include it in the RPM" %doc doesn't copy anything for an absolute name, it merely sets the doc flag for that file.
That's what I thought, which is why I added it in front of the %{_mandir}.... file
Robert
Robert,
Your first post had "%doc %{_mandir}/*" which is a reference to the directory /usr/man/man1 shown in the error message.
I'm guessing now that all would be fine if had been a reference solely to the man files: %doc %{_mandir}/man1/*"
The issue being /usr/man/man1 is not owned by your package so it should not be called out in the %files section.
Greg
Thanks everyone for the help to get this sorted out. Robert - -- Robert Schweikert MAY THE SOURCE BE WITH YOU Public Cloud Architect LINUX rjschwei@suse.com IRC: robjo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJVTM3uAAoJEE4FgL32d2UkH1YIAKUfq84WDK77JjfYnNHtMf3s nsCOhSQdTQW7GdQIaJlQX+co/rajaMUhvWbpb/Gxgj/Y6DPzJ/ts3HhuMxDVU2mP FO5RbN2W/TsLfdZsFLGOcyaNJYyOzbV4WWUyRkY19MglH18WTwsuNRfI4e1f0sje eSLe9You3z2UTC+uXKu+5ZtqSDONo4PXuEPSpwLo6EOoeeZ2cQOREBGhoGEyYV4j cGqUwZQhI4WOeoo4xdoz5iKvc7t9LJnLhqYg4kC/K2AsxmLWzo5ZhpZcCvgUMqbg 8CJ7F4MQllTZVXsWG3ZaJ+E6LWdBsVMyo5V4wuHlmjVjKU7iBpyrzkKE8kUt5l4= =6wyz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (5)
-
Andreas Schwab
-
Greg Freemyer
-
Jan Engelhardt
-
Lars Müller
-
Robert Schweikert