Bug 26997 - mock-core-configs %post scriptlet fails to detect distro version in stable releases and thus no default.cfg symlink is created
Summary: mock-core-configs %post scriptlet fails to detect distro version in stable re...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-07-24 13:44 CEST by Jani Välimaa
Modified: 2020-08-01 01:27 CEST (History)
4 users (show)

See Also:
Source RPM: mock-core-configs-30.2-3.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Jani Välimaa 2020-07-24 13:44:26 CEST
%post scriptlet fails when installing:

installing mock-core-configs-30.2-3.mga7.noarch.rpm from /var/cache/urpmi/rpms                       
Preparing...                     ###################################################################
      1/1: mock-core-configs     ###################################################################
Warning: file /etc/mock/mageia--x86_64.cfg does not exist.
         unable to update /etc/mock/default.cfg
Comment 1 Jani Välimaa 2020-07-24 13:52:04 CEST
Pushed fixed mock-core-configs-30.2-3.1.mga7 to core/updates for mga7. Please test.

Applied the same fix also for Cauldron pkg.

Assignee: bugsquad => qa-bugs

Comment 2 Jani Välimaa 2020-07-24 16:54:07 CEST
Because of the scriptlet is failing, no /etc/mock/default.cfg symlink is created. Updated pkg should fix that.
Jani Välimaa 2020-07-24 16:56:35 CEST

Summary: mock-core-configs %post scriptlet fails to detect distro version in stable releases => mock-core-configs %post scriptlet fails to detect distro version in stable releases and thus no default.cfg symlink is created

Comment 3 Len Lawrence 2020-07-26 10:26:02 CEST
No package list yet but going ahead with the test for x86_64.
$ uname -r
5.6.14-desktop-2.mga7
Installed:
  distribution-gpg-keys          1.29         1.mga7        noarch  
  mock-core-configs              30.2         3.mga7        noarch  
Warning: file /etc/mock/mageia--x86_64.cfg does not exist.
         unable to update /etc/mock/default.cfg

Updated mock-core-configs.
installing mock-core-configs-30.2-3.1.mga7.noarch.rpm from /var/cache/urpmi/rpms
starting installing packages
created transaction for installing on / (remove=0, install=0, upgrade=1)

$ ll /etc/mock/default.cfg
lrwxrwxrwx 1 root root 19 Jul 26 09:18 /etc/mock/default.cfg -> mageia-7-x86_64.cfg

Approving this on the assumption that this is all that is required.

CC: (none) => tarazed25
Whiteboard: (none) => MGA7-64-OK

Comment 4 Thomas Andrews 2020-07-29 02:48:34 CEST
Giving this a tentative validation, but it still needs a proper package list/advisory.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Comment 5 Jani Välimaa 2020-07-31 09:08:30 CEST
(S)RPMS:
mock-core-configs-30.2-3.1.mga8
Dave Hodgins 2020-07-31 12:27:40 CEST

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Comment 6 Mageia Robot 2020-08-01 01:27:37 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0166.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.