From 103febea8e0d60ce2e3c942444b81abe5d5294db Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 16 Aug 2006 00:54:50 +0000 Subject: [PATCH] Add a section on how to build an RPM package as an optional release activity. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29719 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/HowToReleaseLLVM.html | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/HowToReleaseLLVM.html b/docs/HowToReleaseLLVM.html index 8b95ac66fc5..bee43493c43 100644 --- a/docs/HowToReleaseLLVM.html +++ b/docs/HowToReleaseLLVM.html @@ -61,6 +61,7 @@ There are three main tasks for building a release of LLVM:
  • Run 'make check'
  • Run LLVM Test Suite
  • Build the LLVM Source Distributions
  • +
  • Build RPM Packages (optional)
  • Build the LLVM GCC Binary Distribution
  • Update the LLVM Website
  • @@ -243,16 +244,31 @@ fix for the release. tar -cvf - llvm-test | gzip > llvm-test-X.X.tar.gz
    tar -cvf - cfrontend/src | gzip > cfrontend-X.X.source.tar.gz

    + - +
    Building RPM packages (optional)
    +
    +

    You can, optionally, create source and binary RPM packages for LLVM. These + may make it easier to get LLVM into a distribution. This can be done with + the following commands:

    +
    +  make dist        # Build the distribution source tarball
    +  make dist-check  # Check that the source tarball can build itself.
    +  cp llvm-M.m.tar.gz /usr/src/redhat/SOURCES  # Required by rpmbuild
    +  make srpm # for source rpm
    +  make rpm  # for binary rpm
    +  
    +

    First, use "make dist" to simply build the distribution. Any failures need to be corrected (on the branch). Once "make dist" can be successful, do "make dist-check". This target will do the same thing as the - 'dist' target but also test that distribution to make sure it works. This - ensures that needed files are not missing and that the src tarball can be - successfully unbacked, built, installed, and cleaned. This two-level testing - needs to be done on each target platform. - --> + 'dist' target but also test that distribution to make sure it can build itself + and runs "make check" as well. This ensures that needed files are not + missing and that the src tarball can be successfully unpacked, built, + installed, and cleaned. Once you have a reliable tarball, you need to copy + it to the /usr/src/redhat/SOURCES directory which is a requirement of the + rpmbuild tool. The last two "make" invocations just run rpmbuild to build + either a source (srpm) or binary (rpm) RPM package.

    -- 2.34.1