Linux Newbie help
 help / color / mirror / Atom feed
From: J S <webnews@comcast.net>
To: Robert <robert_schmidli@hotmail.com>
Cc: linux-newbie <linux-newbie@vger.kernel.org>
Subject: Re: How do you apply patches to source code?
Date: Mon, 26 May 2003 09:52:17 -0400	[thread overview]
Message-ID: <1053957137.20992.8.camel@jayhawk> (raw)
In-Reply-To: <bass5l$5fk$1@main.gmane.org>

Here's the easiest way to get a SRPM into buildable condition...

On "older" versions of RH / other distros, do ...

   rpm -bp <specfile>

On RH 8 & 9, the command is rpmbuild -bp <specfile>

This will apply all the patches that were included with the SRPM.  When
finished, there should be a "makeable" source tree in a BUILD
directory.  On RH systems, it's in /usr/src/redhat/BUILD.

Of course, to get the specfile, you need to install (rpm -I) the SRPM. 
That puts the specfile into a SPEC directory (/usr/src/redhat/SPEC on RH
systems).

If you simply want to get a binary executable out of an SRPM, use
rpmbuild --rebuild <SRPM>.  There are lots of other options for rpm and
rpmbuild.  I use these options the most.  The manpages for rpm and
rpmbuild are pretty good as far as manpages go.

Josh

On Mon, 2003-05-26 at 07:03, Robert wrote:
> I have recently obtained the source code to an application as a .src.rpm
> file.  I have unbundled the code into /usr/src/RPMS/SOURCES.  There are a
> whole lot of .patch.bz2 files in the directory, as well as the main .tar.bz2
> file.
> 
> How do I compile the program with the patches?
> 
> I realise this is probably an easy one, but I can't find any documentation
> about applying patches.
> 
> Robert.
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      parent reply	other threads:[~2003-05-26 13:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-26 11:03 How do you apply patches to source code? Robert
2003-05-26 12:42 ` Ken Moffat
2003-05-26 13:16   ` Robert
2003-05-26 20:36     ` Ken Moffat
2003-05-26 13:40   ` Amin
2003-05-26 13:52 ` J S [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1053957137.20992.8.camel@jayhawk \
    --to=webnews@comcast.net \
    --cc=linux-newbie@vger.kernel.org \
    --cc=robert_schmidli@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox