Closed Bug 836433 Opened 11 years ago Closed 11 years ago

mock-init brings in gcc45_0moz3 package via gcc dependency

Categories

(Release Engineering :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhopkins, Assigned: jhopkins)

Details

Attachments

(2 files, 1 obsolete file)

The mock-init step installs several packages including system gcc which in turn brings in the Mozilla gcc45_0moz3 package.
We should either:
a) stop installing system gcc during mock-init.
b) satisfy gcc's dependency explicitly to avoid bringing in gcc45_0moz3.

The system gcc may be used for a build bootstrapping operation (this has not been confirmed) so I would consider option (a) a bit more risky than option (b).

The root issue is the gcc45_0moz3 RPM package lists 'provides' of libraries which it only installs privately (in /tools/gcc-4.5-0moz3/lib/...).
tested in staging
Attachment #710285 - Flags: review?(catlee)
Attachment #710285 - Flags: review?(catlee) → review+
Comment on attachment 710285 [details] [diff] [review]
[puppet] satisfy gcc's dependency explicitly to avoid bringing in gcc45_0moz3

Landed in https://hg.mozilla.org/build/puppet/rev/36ae4b7caf5e
Attachment #710285 - Flags: checked-in+
gcc45_0moz3 is still being installed during mock-init which I believe is due to the yum cache holding on to package and dependency info.
I'll check back tomorrow and see whether it is cleared up.
Checked in a change to $repoflag to trigger a yum-clean-expire-cache run.  http://hg.mozilla.org/build/puppet/rev/a0b71b1ab3a9

(thanks to :rail for pointing out this mechanism)
Mock has its own yum cache which needs to be cleared.  This patch adds a mechanism to do that.
Attachment #711452 - Flags: review?(catlee)
Attachment #711452 - Flags: review?(catlee) → review+
Comment on attachment 711452 [details] [diff] [review]
[puppet] scrub mock_mozilla caches when mock_mozilla configs change

Landed in http://hg.mozilla.org/build/puppet/rev/a9f93c451aff
Attachment #711452 - Flags: checked-in+
This patch also reverts patch 710285 which didn't resolve the issue.
Ran with this patch in staging and mock-init no longer brings in gcc45_0moz[34]
Attachment #710285 - Attachment is obsolete: true
Attachment #712600 - Flags: review?(rail)
Attachment #712600 - Flags: review?(rail) → review+
Comment on attachment 712600 [details] [diff] [review]
[puppet] satisfy gcc deps which bring in gcc45_0moz[34]

Landed in http://hg.mozilla.org/build/puppet/rev/5307cc523c52
Attachment #712600 - Flags: checked-in+
Confirmed that gcc45_0moz3 was not installed in build http://buildbot-master49.srv.releng.scl3.mozilla.com:8001/builders/Thunderbird%20comm-aurora%20linux%20l10n%20nightly/builds/1392/steps/mock-init/logs/stdio
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: