Bug 1181722 - Fix mockbuild in rawhide - mockbuild doesn't use mock cache
Summary: Fix mockbuild in rawhide - mockbuild doesn't use mock cache
Keywords:
Status: CLOSED DUPLICATE of bug 1151956
Alias: None
Product: Fedora
Classification: Fedora
Component: fedpkg
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-13 16:31 UTC by Jaroslav Škarvada
Modified: 2015-11-04 14:15 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-04 14:15:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Proposed fix (556 bytes, patch)
2015-01-13 16:31 UTC, Jaroslav Škarvada
no flags Details | Diff

Description Jaroslav Škarvada 2015-01-13 16:31:32 UTC
Created attachment 979672 [details]
Proposed fix

Description of problem:
There is a bug in mockconfig initialization resulting in mockbuild re-creating mockconfig from koji each time it is called. This has various consequences:
- cache is wiped each time mockconfig exits, this mean that hundreds of megabytes are re-downloaded each time the mockbuild is run
- it creates chroot non compatible with the installed mock config

Version-Release number of selected component (if applicable):
fedpkg-1.19-1.fc21.noarch

How reproducible:
Always

Steps to Reproduce:
1. fedpk mockbuild in rawhide branch

Actual results:
Hundreds of megabytes are re-downloaded each time the  command is run.

Expected results:
Packages downloaded only if the mock cache expires or doesn't exists.

Additional info:
It is due to wrong mockconfig initialization. It uses fedora-devel-ARCH.cfg, but rawhide mock configs are named fedora-rawhide-ARCH.cfg.

Comment 1 Ville Skyttä 2015-01-24 10:27:55 UTC
(Cc'ing mock maintainer for possible comments)

Another option would be to add fedora-devel-* symlinks to mock's fedora-rawhide-* configs, which I'm doing locally until this gets properly fixed:

for f in /etc/mock/fedora-rawhide-*.cfg ; do
    ln -s $(basename $f) ${f/rawhide/devel}
done

Comment 2 Miroslav Suchý 2015-01-26 08:35:46 UTC
Those devel symlinks were present in mock as temporary workaround for limited time. It was just for compatibility and it was created in 2008. This was quite long time for transition period.
6 months ago we asked on buildsys mailing list if anybody have objection against removing it:
  https://lists.fedoraproject.org/pipermail/buildsys/2014-September/004381.html
No one raised objection, so I removed it.

It would be nice if you can alter fedpkg to use fedora-rawhide* instead of fedora-devel*.

Comment 3 Pavol Babinčák 2015-01-26 09:05:11 UTC
(In reply to Miroslav Suchý from comment #2)
> Those devel symlinks were present in mock as temporary workaround for
> limited time. It was just for compatibility and it was created in 2008. This
> was quite long time for transition period.
> 6 months ago we asked on buildsys mailing list if anybody have objection
> against removing it:
>  
> https://lists.fedoraproject.org/pipermail/buildsys/2014-September/004381.html
> No one raised objection, so I removed it.
> 
> It would be nice if you can alter fedpkg to use fedora-rawhide* instead of
> fedora-devel*.
This issue was already fixed in Bug 1151956.

Comment 4 Fedora End Of Life 2015-11-04 13:58:25 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Miroslav Suchý 2015-11-04 14:15:32 UTC

*** This bug has been marked as a duplicate of bug 1151956 ***


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