![]() Mock -v -r epel-6-x86_64 -copyout /builddir/build/SRPMS/libgphoto2-2.5. Mock -v -r epel-6-x86_64 -copyout /builddir/build/SRPMS/gphoto2-2.5. # out the packages we just built at this point.Ignore the warning # We'll return to the directory we were previously in. # exit or simply type exit on the command line of our virtual # we're now done with our mock environment for now Press Ctrl-D to # Now we can build gphoto2 (this goes really fast - 10 seconds or so) # environment as they are required to build the gphoto2 package # We need to install the libgphoto2-devel and libgphoto2 into our mock # When this is done you'll have several RPMS built # Once your satisfied build the libgphoto2 rpm first it won't take # There aren't any chages made to this spec file but have a look # Inspect the SPEC file (which is a copy from the v2.4.7 version Less SOURCES/gphoto2-cjc-device-return.patch Feel free to download the previous version # provided in the src.rpm with the fresh ones you downloaded from The following command will overwrite the files # provided so you're confident I haven't introduced something you're tar.bz2 files you downloaded over the ones # The only reason I took you this far is so you can see there is # There is no magic here we basically just extracted the gphoto # You can see how the files were distributed using the find command # you into the '/builddir/build' directory. # command within the SPEC, and SOURCE directory you see infront of # Instead they'll just distribute the files you saw in the above # safe to do since src.rpm's don't contain executable scripts. # You're going to install the src.rpm's now. # You can confirm that you do infact have properly formatted source # copied into here in addition of the the 2. # If you type the following, you should 'only' see the 2 RPMs we # You're now in the build environment within the mock environment. Mock -v -r epel-6-x86_64 -install readline-devel # the following command to speed up and simplify this tutorial # -installdeps flag because another dependency is libgphoto2 # readline-devel is required by gphoto2, but we can't use the # Just install the nessisary dependencies # Download the official libgphoto2 packages from their official # This step will also require you to be the root user.Īt this point we can get away from the root user and build using our own user we created for our system. ![]() # Grant your normal every day user account access to the mock group # This step will require you to be the superuser (root) in your native # Install 'mock' into your environment if you don't have it already I was prepared for this just to cover myself until I gain your trust, here is what I did:įirst I set up a mock environment to work in this allows us to do compiling outside of our native environment and means we don’t need to ever install any development libraries.įirst prepare our development environment with mock if you haven’t already: I don’t trust you I’d like to do it myself You can scroll to the bottom of this blog for information on how to install these packages onto your system if your not familiar with the task at hand. I also needed to create a patch to accommodate the changes that reside in the libgphoto2 library. As a result, I needed to re-compile this package against the new version of libphoto2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |