Overview#
Name |
---|
Listing Packages#
To list available packages:
$ dnf list
Getting Package Source#
To clone a package repository:
$ git clone ssh://<username>@pkgs.fedoraproject.org/pki-core
$ cd pki-core
$ git checkout f28
Creating Patches#
Creating patches in main source repository#
Checkout a branch:
$ cd MAIN_SRC_DIR
$ git checkout -b DOGTAG_10_3_BRANCH origin/DOGTAG_10_3_BRANCH
Make code changes, then create a new patch:
$ git commit -a -m "Some changes."
$ git format-patch -M -C --patience --full-index -1
$ mv <patch filename> ..
Creating patches in package source repository#
Prepare a source repository that includes the current patches:
$ cd PKG_SRC_DIR
$ fedpkg prep
$ mv pki-core-10.3.0 orig
$ cd orig
$ git init .
$ git add *
$ git commit -a -m "Initial import."
Make code changes, then create a new patch:
$ git commit -a -m "Some changes."
$ git format-patch -M -C --patience --full-index -1
$ mv <patch filename> ..
Adding Patches#
To include a patch in the spec file:
Patch<N>: <patch filename>
...
%prep
...
%patch<N> -p1
Continuous Integration#
BuildRoot Overrides#
If a dependency is not published yet, it needs to be added into BuildRoot Overrides.
To check buildroot overrides via CLI:
$ bodhi overrides query
To check the latest builds:
$ koji latest-build f28-build tomcat
To create BuildRoot override:
$ bodhi overrides save tomcat-8.5.29-1.fc28
$ koji wait-repo f28-build --build=tomcat-8.5.29-1.fc28