[opensuse-buildservice] Missing macro on CentOS 6 VM?
Doing some test builds with the CentOS 6 platform, there appears to be an RPM macro missing, specifically %{rhel} set to 6. This is present on Red Hat 6 and in my testing is present on default installs of CentOS 6 as well, but it's apparently missing on the VM image the build service spins up. I have some packages that do straightforwardly different things if the value is >= 6, and they work on RH6, but not CentOS. I haven't tried to dump the macro in an RPM scriptlet or anything that detailed yet, but it's apparently not present. -- Scott -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, I believe the macro you are looking for is 0%{?centos_version} >= 600 || 0%{?rhel_version} >= 600 . Cheers, Christian Am 03.08.2011 21:25, schrieb Cantor, Scott E.:
Doing some test builds with the CentOS 6 platform, there appears to be an RPM macro missing, specifically %{rhel} set to 6. This is present on Red Hat 6 and in my testing is present on default installs of CentOS 6 as well, but it's apparently missing on the VM image the build service spins up.
I have some packages that do straightforwardly different things if the value is >= 6, and they work on RH6, but not CentOS. I haven't tried to dump the macro in an RPM scriptlet or anything that detailed yet, but it's apparently not present.
-- Scott
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 8/4/11 3:05 AM, "Christian Kampka" <c.kampka@uib.de> wrote:
I believe the macro you are looking for is 0%{?centos_version} >= 600 || 0%{?rhel_version} >= 600 .
I can make some attempts, but no, the one I'm looking for is the one I described, rhel, and it's present on both RH6 and CentOS 6 installs, and the Build Service RH6, but not CentOS 6. -- Scott -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 8/4/11 3:05 AM, "Christian Kampka" <c.kampka@uib.de> wrote:
I believe the macro you are looking for is 0%{?centos_version} >= 600 || 0%{?rhel_version} >= 600 .
I think these are OBS-specific? Definitely less ideal than simply getting the macro that is built in to the OS to show up, since my specfiles wouldn't work on customer machines for those doing rebuilds. -- Scott -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Thu, Aug 04, 2011 at 05:29:54PM +0000, Cantor, Scott E. wrote:
On 8/4/11 3:05 AM, "Christian Kampka" <c.kampka@uib.de> wrote:
I believe the macro you are looking for is 0%{?centos_version} >= 600 || 0%{?rhel_version} >= 600 .
I think these are OBS-specific? Definitely less ideal than simply getting the macro that is built in to the OS to show up, since my specfiles wouldn't work on customer machines for those doing rebuilds.
Please quote the ID of the bug you filed to allow us to track this issue. If there is no bug reported please add the following pointer to the initial comment. http://lists.opensuse.org/opensuse-buildservice/2011-08/msg00021.html Classification (Product Line): openSUSE Product: openSUSE.org Component: BuildService What happens if no bug gets filed? Then the issue does not exist. ;) Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On 8/4/11 2:28 PM, "Lars Müller" <lmuelle@suse.de> wrote:
Please quote the ID of the bug you filed to allow us to track this issue.
If there is no bug reported please add the following pointer to the initial comment.
I will, thanks. The centos_version macro should give me a workaround for the time being. -- Scott -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Cantor, Scott E.
-
Christian Kampka
-
Lars Müller