Description of problem: --define 'exp macro' expects to be right after the mock config file used. If put elsewhere it will not work. Also some srpms it will not work on, for example kernel but it will on redhat-release*. Version-Release number of selected component (if applicable): mock-1.1.11-*.el6.noarch How reproducible: Always Steps to Reproduce: 1. mock -r myconfig-6-x86_64 my.el6.srpm --define 'dist .el6_6' Actual results: No error but the --define is ignored.. and some rpms will not get the dist tag that you use. Expected results: To work where ever it is used on the command line, before or after the srpm and work on all srpms. Additional info: Works as: mock -r myconfig-6-x86_64 --define 'dist .el6_6' redhat-release*
(In reply to comment #0) > Description of problem: > > --define 'exp macro' expects to be right after the mock config file used. If > put elsewhere it will not work. Also some srpms it will not work on, for > example kernel but it will on redhat-release*. Perhaps the the kernel.spec has no %{?dist} tag...So %define overrides it. The commandline should take priority though.. # The kernel tarball/base version %define kversion 2.6.32-131.0.15.el6
Can be closed as not a Mock problem.
Set status to Closed.