[CentOS-devel] Building a package for RedHat

Troy Dawson

tdawson at redhat.com
Mon Mar 5 14:23:15 UTC 2018

On Mon, Mar 5, 2018 at 4:13 AM, dacav <dacav at teknik.io> wrote:
> On 2018-03-05, Mikolaj Izdebski
> <mizdebsk at redhat.com> wrote:
>>   config_opts['macros']['%dist'] = '.el7'
> Thanks, Mikolaj and Leon, for your answers.
> So this makes me wonder: what is the likelyhood of getting some
> error on RedHat without being able to detect it under CentOS?
> Let's say that my system builds in CentOS with modified %dist
> and then straight ahead for testing on a RedHat machine.
> Is there any chance of a building error which would happen under
> RedHat (but not under CentOS), which would introduce some subtle
> bug under RedHat?
That totally depends on your code.
Is it checking to see if the package is running on a real RHEL box?
If it is, how is it checking?

More information about the CentOS-devel mailing list