similar to: Significant speedup of package building with mock from EPEL for RHEL 6, should definitely go in CentOS 5

Displaying 20 results from an estimated 9000 matches similar to: "Significant speedup of package building with mock from EPEL for RHEL 6, should definitely go in CentOS 5"

2009 Nov 03
3
mock, extras vs epel
I am looking to be a bit more standard in the builds of my CentOS rpms, and so I was about to install mock but noticed that there is one provided in the centos/5/extras and another in epel. epel is obviously newer, but are there reasons/experiences in this group that would suggest sticking with the extras version instead? Or even reasons other than the shiny version number on the epel one to
2023 May 01
2
mock fails on gpg with epel - ?
Hi guys, Does your 'mock' work when used with 'centos-stream+epel-9-x86_64' config? It fails for me with every rpm packages I tried: -> $ mock -r centos-stream+epel-9-x86_64 --rootdir=~/mock --localrepo=/devs/var/www/dnf.repo --chain --continue rpmbuild/rpm.src/pass-1.7.4-6.el9.src.rpm ... CentOS Stream 9 - BaseOS 1.6 MB/s | 1.6 kB???? 00:00 The GPG keys listed for the
2023 May 03
0
mock fails on gpg with epel - ?
On 01/05/2023 15:10, lejeczek via CentOS wrote: > Hi guys, > > Does your 'mock' work when used with 'centos-stream+epel-9-x86_64' config? > It fails for me with every rpm packages I tried: > > -> $ mock -r centos-stream+epel-9-x86_64 --rootdir=~/mock > --localrepo=/devs/var/www/dnf.repo --chain --continue > rpmbuild/rpm.src/pass-1.7.4-6.el9.src.rpm
2014 Jan 15
1
Mock and Mock again
Question: If I use mock to build package rpmA from tarballA but rpmA has a dependency that can only be satisfied by package rpmB which must also be built from tarballB then how does the rpmB built from the tarballB get pulled into mock when building rpmA? I am trying to build httpd-2.4.7 from Apache and that needs apr-devel and apr-util-devel > 1.4. I can build apr and apr-utils in mock but
2006 Jul 24
2
Creating a ''default'' mock
Am I correct in thinking that it''s not currently possible to have a method that creates a ''standard'' mock (i.e. a mock that has defaults useful in all contexts)? I''ve tried with the mock method and also by manually creating new Mock instances. I get failures when setting up expectations (undefined method ''receive'' for proc). Chris
2006 Oct 25
2
mock parameter problem
Here''s another one. spec: m = mock("blah") m.should_receive(:foo).with(1) code: m.foo(2) Failure message: Mock ''blah'' expected ''foo'' once, but received it 0 times ------ Twice now I''ve gotten this failure message and wasted time trying to understand why the method foo() was not being called despite all evidence suggesting
2020 Aug 23
2
Mock config error
Hi, I am trying to create a mock configuration file that points to my local dnf repo. I have the following in the mock config template: [local-repo] name=my-Local baseurl=http://yumrepo.example.com/yum-repository/local/centos/8/x86_64/ failovermethod=priority skip_if_unavailable=False When I try to run mock I get the following error: (vgeppetto3 pts18) $ mock -v -r epel-8-x86_64
2006 Sep 01
3
Anyone seeing mock breakage after updating to 4.4?
Morning, somehow the upgrade to 4.4 broke mock on my system: | [angenenr at shutdown SPECS]$mock -r c3-i386 /home/angenenr/redhat/SRPMS/apache-ssl-2.8.28-2el4.src.rpm | init | clean | prep | This may take a while | Could not find useradd in chroot, maybe the install failed? Nope, it's not the config_opts['chroot_setup_cmd'] = 'groupinstall build' issue, as I'm still
2020 Aug 24
2
Mock config error
Hi Jonathan, On Sun, 23 Aug 2020, Jonathan Billings wrote: > On Aug 23, 2020, at 12:07, me at tdiehl.org wrote: >> >> ?Hi, >> >> I am trying to create a mock configuration file that points to my local dnf repo. >> I have the following in the mock config template: >> >> [local-repo] >> name=my-Local >>
2015 Jan 29
2
build c7 packages for i686 using mock
This might be an embarrassingly simple question. How are people building multi-arch library packages on CentOS 7? On older releases one could "mock -r epel-6-i386" and "mock -r epel-6-x86_64" to build a library twice. With no 32-bit release, there's no epel-7-i386 target for mock. Specifying --target=i386 or --arch-i386 both fail. Do we have to set up the
2020 Aug 25
1
Mock config error
On 25/08/20 11:27 am, Jonathan Billings wrote: > On Aug 24, 2020, at 16:48, me at tdiehl.org wrote: >> >> Also, I am trying to add a dist tag to rpms that I build in mock. >> In the epel-7 configs I do something like the following: >> config_opts['macros']['%dist'] = '.el7.tnt' to get a dist tag on the >> rpms. In epel/centos 8 this does not
2010 Dec 30
3
noob question about mock
Hi, Been recently more and more tempted to use mock for building rpms, but looking at it I have one problem. As far as I could read about it, mock essentially rebuilds srpms so to use it I would need a separate "classical" build environment to create those srpms in the first place. Am I right or did I get something terribly wrong? Cheers! -- Nux! www.nux.ro
2010 May 03
1
Mock Shell Arch Command
I've successfully rebuilt Red Hat EL PHP 5.2.10 RPMs using mock on a CentOS 5.4 i386. I wanted to be able to build both x86_64 and i386 versions so I reinstalled my builder system with CentOS 5.4 x86_64. Now I can build the PHP RPM successful for x86_64, but i386 fails with the following during configure /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found For the
2007 May 07
6
mock frameworks
Just curious - now that rspec (as of 0.9) let''s you choose your mock framework, how many of you are actually using (or planning to use) mocha or flexmock? Anybody planning to use any other mock framework besides rspec, mocha or flexmock? Thanks, David
2018 May 17
2
How to build nss-util.i686 on Centos 7 with mock
Hello list, I'm currently trying to build the i686 version of http://vault.centos.org/7.5.1804/os/Source/SPackages/nss-util-3.34.0-2.el7.src.rpm The x86_86 version works with mock, but I cannot figure out how to build the i686 version. best regards, Martin
2010 Mar 24
2
Mock "Consent_6335" received unexpected message :marked_for_destruction? with (no args)
I have a mock object (Person) that is associated with another object (my_object) through a belongs_to association. When I check whether my_object is valid (my_object.should be_valid), I am getting an error like the following: Mock "Person_6338" received unexpected message :marked_for_destruction? with (no args) Checking the list of methods on the mock,
2007 Nov 04
3
Returning the mock associated with an expectation.
I was reading through the FlexMock docs and noticed the expectation method .mock, which returns the original mock associated with an expectation. It looks really handy for writing nice all-in-one mocks like: mock_user = mock(''User'').expects(:first_name).returns(''Jonah'').mock So I started playing around with mocha and found I could actually already do this!
2006 Jun 15
3
How to mock a model method for unit tests?
I have a model class, say, model.rb, and in the normal course of things it creates an instance of another class, say utility.rb (also in the models directory). class Utility def initialize(obj) # do stuff... end def do_something_expensive # lots of stuff here end end During testing, I want to mock out do_something_expensive because it''s not important for the tests,
2006 Oct 23
6
overriding mock expectations
There is one annoyance I''m encountering with the Mock API in rSpec. Overall it works well, as far as dynamic mocks go ;)... but there''s this one thing... It doesn''t allow overriding of expectations. example: m = mock("blah") m.should_receive(:one).any_number_of_times().and_return(1) m.should_receive(:one).and_return(1) The second call to should_receive
2006 Jan 04
2
Mock Objects (Development)
I''m having a problem using mock objects in development (not testing). I have a class called User. In order to log in, User has to connect to an external IMAP server and authenticate. I don''t want to do this during development. So, I created a mock User in tests/mock/development that went something like this: require ''models/user'' class User def