similar to: Best way to install mock package

Displaying 20 results from an estimated 6000 matches similar to: "Best way to install mock package"

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
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
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
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
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
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 >>
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
2011 Feb 02
1
Significant speedup of package building with mock from EPEL for RHEL 6, should definitely go in CentOS 5
The speedups in building RPM's with "mock" from the EPEL packages for RHEL 6 are *profound*, especially if your environment is like mine and you have thousands of user id's. The issue seems to be the handling of "/var/log/lastlog" and similar files, which are otherwise quite large and take significant time to compress and uncompress when laying out new mock
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
2007 Aug 14
1
To mock or not mock base classes
Just a general opinion question on idioms/common usage. Is it better to mock Ruby''s base classes, or to use real instances of those base classes? @string = mock String @string.stub!(:to_s).and_return "hello" # or: @string = "hello" I was wondering which is generally favored, and if so, for what reasons? Or is it highly dependent on the type of spec which is
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,
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
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
2009 Apr 11
2
Mock Questions
Just started using mock to rebuild some srpms. I have two I want to rebuild, problem is the first creates a dep that is required by the second. Is there an automated way to populate an additional repo/cache that mock would look at when building the second so I could queue both? Although I haven't tried, I presume I could drop the output from the first build into a dir, createrepo it and add
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
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,
2007 May 17
4
How to mock helpers in view specs ?
Hi all, I am mocking the following Rails view (inside a partial): <%= render :partial => "forums/forum", :collection => forum_category.forums.readable_by(current_user? ? current_user : nil) %> My spec fails with the following message: 1) ActionView::TemplateError in ''forum_categories/index (anonymous user) should only render forums accessible to anonymous