Skip to content

dithotxgh/rocky-devtools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A quick helper for getting a Rocky package maintainer build development configuration setup.

Installation

From this source directory, run the following commands:

    make
    sudo make install

This installation will automatically install nginx and will configure a local repository to be run and usable at: /usr/share/nginx/html/repo

note: The permissions on this repository are wide open, so please tune if you are on a shared system.

Getting and building a Rocky Linux package

Once these tools are installed, you will be able to do the following:

    rockyget sed
    rockybuild sed

This will create a directory structure at ~/rocky/ and you will be able to find the RPM sources as well as the build directory, logs, and artificats there.

Debugging and patching packages

When build errors happen, and you need to create a patch for a package, you can use the following example to get you going:

    # Creates a working directory, will take optional branch
    rockyprep sed
    cd ~/rocky/_work/sed/*

    # A build error exists when running in nspawn container on the builder
    # for this test, so let's "exit 0" near the top...
    vim testsuite/inplace-selinux.sh

    # Create a patch configuration from the working directory and name the
    # patch file. This will create the patch, integrate it into the SPEC
    # file, and "reget" the sed package. If you need to edit or view the
    # Proto3 config and patch, it can be found here: ~/rocky/patch/sed/r8/
    rockypatch inplace-selinux-notest.patch

    # Now you can test your build
    rockybuild sed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Roff 88.1%
  • Shell 6.8%
  • Go 2.9%
  • Makefile 2.2%