Hello, I just upgraded from FC30 to FC 31. it seems that mock's "default.cfg" is still pointing to the FC30 config.
cd /etc/mock/ [az@dell5000 mock]$ ls -l ./default.cfg lrwxrwxrwx 1 root root 20 Nov 24 12:52 ./default.cfg -> fedora-30-x86_64.cfg
[az@dell5000 mock]$ uname -a Linux dell5000 5.5.16-200.fc31.x86_64 #1 ... ... [root@dell5000 ~]# dnf whatprovides /etc/mock/default.cfg Last metadata expiration check: 1:41:15 ago on Sat 18 Apr 2020 02:52:52 PM EDT. mock-core-configs-31.6-1.fc31.noarch : Mock core config files basic chroots Repo : fedora Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic chroots Repo : @System Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic chroots Repo : updates Matched from: Filename : /etc/mock/default.cfg
thank you for checking.
On Saturday, April 18, 2020 10:37:35 PM CEST Andrew Z wrote:
Hello, I just upgraded from FC30 to FC 31. it seems that mock's "default.cfg" is still pointing to the FC30 config.
The /etc/mock/site-defaults.cfg symlink is %config(noreplace); so it stays pointing at FC30 after upgrade if and only if you modified it manually.
I'd suggest you to remove it, and reinstall mock-core-configs (the file will be restored and from that point, you'll get the symlink updated automatically after upgrade to f32).
Perhaps you can use 'rpmconf' for adjusting config files (dunno if that handles symlinks, but I bet yes).
Pavel
cd /etc/mock/ [az@dell5000 mock]$ ls -l ./default.cfg lrwxrwxrwx 1 root root 20 Nov 24 12:52 ./default.cfg -> fedora-30-x86_64.cfg
[az@dell5000 mock]$ uname -a Linux dell5000 5.5.16-200.fc31.x86_64 #1 ... ... [root@dell5000 ~]# dnf whatprovides /etc/mock/default.cfg Last metadata expiration check: 1:41:15 ago on Sat 18 Apr 2020 02:52:52 PM EDT. mock-core-configs-31.6-1.fc31.noarch : Mock core config files basic chroots Repo : fedora Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic chroots Repo : @System Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic chroots Repo : updates Matched from: Filename : /etc/mock/default.cfg
thank you for checking.
Thank you Pavel, i shall do that.
On Sun, Apr 19, 2020, 11:32 Pavel Raiskup praiskup@redhat.com wrote:
On Saturday, April 18, 2020 10:37:35 PM CEST Andrew Z wrote:
Hello, I just upgraded from FC30 to FC 31. it seems that mock's "default.cfg" is still pointing to the FC30 config.
The /etc/mock/site-defaults.cfg symlink is %config(noreplace); so it stays pointing at FC30 after upgrade if and only if you modified it manually.
I'd suggest you to remove it, and reinstall mock-core-configs (the file will be restored and from that point, you'll get the symlink updated automatically after upgrade to f32).
Perhaps you can use 'rpmconf' for adjusting config files (dunno if that handles symlinks, but I bet yes).
Pavel
cd /etc/mock/ [az@dell5000 mock]$ ls -l ./default.cfg lrwxrwxrwx 1 root root 20 Nov 24 12:52 ./default.cfg ->
fedora-30-x86_64.cfg
[az@dell5000 mock]$ uname -a Linux dell5000 5.5.16-200.fc31.x86_64 #1 ... ... [root@dell5000 ~]# dnf whatprovides /etc/mock/default.cfg Last metadata expiration check: 1:41:15 ago on Sat 18 Apr 2020 02:52:52
PM
EDT. mock-core-configs-31.6-1.fc31.noarch : Mock core config files basic
chroots
Repo : fedora Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic
chroots
Repo : @System Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic
chroots
Repo : updates Matched from: Filename : /etc/mock/default.cfg
thank you for checking.
On Monday, April 20, 2020 1:24:04 AM CEST Andrew Z wrote:
Thank you Pavel, i shall do that.
On Sun, Apr 19, 2020, 11:32 Pavel Raiskup praiskup@redhat.com wrote:
On Saturday, April 18, 2020 10:37:35 PM CEST Andrew Z wrote:
Hello, I just upgraded from FC30 to FC 31. it seems that mock's "default.cfg" is still pointing to the FC30 config.
The /etc/mock/site-defaults.cfg symlink is %config(noreplace); so it stays pointing at FC30 after upgrade if and only if you modified it manually.
I was corrected by @msuchy now, this is not %config(noreplace) because it basically brings arch-specific file in noarch package.
So there's pretty complicated %post scriptlet for this, which doesn't ever replace the old symlink, and only creates `rpmnew` file.
Feel free to submit an issue or pull-request, preferably, to fix this.
Pavel
I'd suggest you to remove it, and reinstall mock-core-configs (the file will be restored and from that point, you'll get the symlink updated automatically after upgrade to f32).
Perhaps you can use 'rpmconf' for adjusting config files (dunno if that handles symlinks, but I bet yes).
Pavel
cd /etc/mock/ [az@dell5000 mock]$ ls -l ./default.cfg lrwxrwxrwx 1 root root 20 Nov 24 12:52 ./default.cfg ->
fedora-30-x86_64.cfg
[az@dell5000 mock]$ uname -a Linux dell5000 5.5.16-200.fc31.x86_64 #1 ... ... [root@dell5000 ~]# dnf whatprovides /etc/mock/default.cfg Last metadata expiration check: 1:41:15 ago on Sat 18 Apr 2020 02:52:52
PM
EDT. mock-core-configs-31.6-1.fc31.noarch : Mock core config files basic
chroots
Repo : fedora Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic
chroots
Repo : @System Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic
chroots
Repo : updates Matched from: Filename : /etc/mock/default.cfg
thank you for checking.
Pavel, https://github.com/rpm-software-management/mock/issues/563 filed.
On Mon, Apr 20, 2020 at 5:29 AM Pavel Raiskup praiskup@redhat.com wrote:
On Monday, April 20, 2020 1:24:04 AM CEST Andrew Z wrote:
Thank you Pavel, i shall do that.
On Sun, Apr 19, 2020, 11:32 Pavel Raiskup praiskup@redhat.com wrote:
On Saturday, April 18, 2020 10:37:35 PM CEST Andrew Z wrote:
Hello, I just upgraded from FC30 to FC 31. it seems that mock's "default.cfg" is still pointing to the FC30
config.
The /etc/mock/site-defaults.cfg symlink is %config(noreplace); so it
stays
pointing at FC30 after upgrade if and only if you modified it manually.
I was corrected by @msuchy now, this is not %config(noreplace) because it basically brings arch-specific file in noarch package.
So there's pretty complicated %post scriptlet for this, which doesn't ever replace the old symlink, and only creates `rpmnew` file.
Feel free to submit an issue or pull-request, preferably, to fix this.
Pavel
I'd suggest you to remove it, and reinstall mock-core-configs (the file will be restored and from that point, you'll get the symlink updated automatically after upgrade to f32).
Perhaps you can use 'rpmconf' for adjusting config files (dunno if that handles symlinks, but I bet yes).
Pavel
cd /etc/mock/ [az@dell5000 mock]$ ls -l ./default.cfg lrwxrwxrwx 1 root root 20 Nov 24 12:52 ./default.cfg ->
fedora-30-x86_64.cfg
[az@dell5000 mock]$ uname -a Linux dell5000 5.5.16-200.fc31.x86_64 #1 ... ... [root@dell5000 ~]# dnf whatprovides /etc/mock/default.cfg Last metadata expiration check: 1:41:15 ago on Sat 18 Apr 2020
02:52:52
PM
EDT. mock-core-configs-31.6-1.fc31.noarch : Mock core config files basic
chroots
Repo : fedora Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic
chroots
Repo : @System Matched from: Filename : /etc/mock/default.cfg
mock-core-configs-32.4-1.fc31.noarch : Mock core config files basic
chroots
Repo : updates Matched from: Filename : /etc/mock/default.cfg
thank you for checking.
buildsys@lists.fedoraproject.org