git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Running "make rpm" fails on a CentOS 6.3 machine

From
Todd Zullinger <tmz@pobox.com>
Date
Feb 2, 2014, 21:07 UTC
Message-ID
<20140202210724.GX3241@zaya.teonanacatl.net>
In-Reply-To
<CALMr_pVP-YVJ9K7ZpQxk3d5YBFQmCZBonFeUYY1fxdZNHHZJHA@mail.gmail.com>
Hi Erez,
Erez Zilber wrote:
> Thanks. I will try to use the rpm from Todd's build. BTW - if I want 
> to create such a build on Fedora that will create el6 packages (e.g. 
> git-1.8.5.3-2.el6.x86_64.rpm), what's the procedure?
Something like this (this is from memory):

# Install fedpkg $ yum install fedpkg

# Checkout the fedora git package (anonymously) $ fedpkg clone -a git && cd git

Verify the git tarball. This is optional, but I would be remiss to suggest you skip it. We used to include the tarball .asc file in the fedora git repo, but that is no longer available for download. Instead, it must be copied and pasted from Google Code (I'd love to see the .asc files return, FWIW).

# To verify the tarball, have fedpkg download the sources first -- if # you don't want to verify the tarball, you can skip this command and # the gpg/sha1sum commands that follow $ fedpkg sources

# Copy and paste the gpg signature from # http://code.google.com/p/git-core/downloads/detail?name=git-1.8.5.3.tar.gz&can=2&q= # to a local file and use gpg to verify it, then sha1sum to check the # tarballs $ gpg --verify sha1.asc ... $ sha1sum -c sha1.asc

# Create an el6 srpm $ fedpkg --dist el6 srpm

# Build that package in mock, adding yourself or your build user to # the mock group first $ sudo useradd -a -G mock $USER $ mock -r epel-6-x86_64 git-1.8.5.3-2.el6.src.rpm

The first time you build for a given release in mock will take longer than subsequent builds, because mock needs to download a lot of packages for the build root. These packages will be cached for future runs builds.

In the end, you should end up with a set of packages and build logs under /var/lib/mock/epel-6-x86_64/result/.

Hope this helps,
-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anyone who is capable of getting themselves made President should on
no account be allowed to do the job.
     -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
Previous: Erez ZilberNext: Erez Zilber
Message 6 of 11 in “Running "make rpm" fails on a CentOS 6.3 machine”
  1. Erez ZilberJan 28, 2014
  2. Erez ZilberJan 30, 2014
  3. Jonathan NiederJan 30, 2014
  4. Todd ZullingerJan 30, 2014
  5. Erez ZilberFeb 2, 2014
  6. Todd ZullingerFeb 2, 2014
  7. Erez ZilberFeb 3, 2014
  8. Todd ZullingerFeb 3, 2014
  9. Martin LanghoffFeb 3, 2014
  10. Todd ZullingerFeb 3, 2014
  11. Junio C HamanoFeb 3, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.