On Sat, May 18, 2013 at 10:30:05AM +0100, John Pilkington wrote:
> On 17/05/13 22:05, John Pilkington wrote:
> >On 17/05/13 20:35, Axel Thimm wrote:
> >>thanks for the repost - on el6 both depmod and ldconfig are pulled
> >>from the proper locations, in the last days I built tons of packages
> >>and could not see the issue.
> >>
> >>There was an issue with f18 builds, but never with el6.
> >>
> >>Thanks, Axel.
> >>
> >>On Fri, May 17, 2013 at 10:34:58AM +0100, John Pilkington wrote:
> >>>Hi Axel:  Welcome back.  I'm replying to the gossamer-threads
> >>>version, so no thread.
> >>>
> >>>Copy of Stephen Collier's post on users' list, 9 April:
> >>>
> >>>The macro on line 79 of /etc/rpm/macros.atrpms doesn't seem to be
> >>>working properly. Needed for F18 I guess. I have temporary changed
> >>>it to build with /usr/sbin/ldconfig changed back to /sbin/ldconfig
> >>>and same for depmod a few lines later.
> >>>
> >>>Cheers,
> >>>
> >>>John P
> >>>
> >
> >I certainly saw this problem.  It looks as if 'our' target environments
> >weren't being recognised as el6.  Mine was Scientific Linux, or perhaps
> >CentOS.  Would be nice to fix it for future use, but not immediately
> >critical if the 'official' builds are ok.
> >
> 
> /etc/redhat-release  contains "Scientific Linux release 6.4 (Carbon)"
> 
> (without quotes), so it's not recognised in the first few lines of
> macros.atrpms and gets the Fedora 18 default?

You are right, the distro is considered unknown (so clones are not
100% clones) and gets the default setting (which is not f18, just the
default, which on the other hand is always the latest convention, so
effectively the latest Fedora release).

You can do two things:

a) fast and lazy: pass dist to the build like so: rpmbuild
   ... --define 'dist el6' ...  (actually this is the way ATrpms does
   it - especialy since the minimal chroots don't even contain
   /etc/redhat-release to have something to recognize the dist with)

b) extend the %distinitials macro to include more RHEL clones. We
   would need a strings to grep for in some /etc/*release|issue file
   as well as the versioning of the matching package (e.g. rpm -qf
   /etc/redhat-release)
-- 
Axel.Thimm at ATrpms.net

_______________________________________________
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel

Reply via email to