2020-10-15 07:45:06 +00:00
# grafana-pcp
The grafana-pcp package
2020-12-23 14:08:59 +00:00
## Upgrade instructions
2021-11-12 15:21:30 +00:00
* update `Version` , `Release` , `%changelog` and tarball NVRs in the specfile
* create bundles and manifest: `make clean all`
2020-12-23 14:08:59 +00:00
* update specfile with contents of the `.manifest` file
* run local build: `rpkg local`
2021-11-12 15:21:30 +00:00
* run rpm linter: `rpkg lint -r *.rpmlintrc`
2020-12-23 14:08:59 +00:00
* run a scratch build: `fedpkg scratch-build --srpm`
* upload new source tarballs: `fedpkg new-sources *.tar.gz *.tar.xz`
2021-11-12 15:21:30 +00:00
* commit new `sources` file
2020-10-15 07:45:06 +00:00
2021-11-12 15:21:30 +00:00
## Patches
2020-12-23 14:08:59 +00:00
* create the patch
* declare and apply (`%prep`) the patch in the specfile
* if the patch affects Go or Node.js dependencies, or the webpack
2021-11-12 15:21:30 +00:00
* add the patch to `PATCHES_PRE_VENDOR` or `PATCHES_PRE_WEBPACK` in the Makefile
* create new tarballs
* update the specfile with new tarball name and contents of the `.manifest` file
### General guidelines
* aim to apply all patches in the specfile
* avoid rebuilding the tarballs
Patches fall in several categories:
* modify dependency versions
* modify both sources and vendored dependencies (e.g. CVEs)
* modify the Node.js source (i.e. affect the webpack)
* some patches are conditional (e.g. FIPS)
2020-10-15 07:45:06 +00:00
2021-11-12 15:21:30 +00:00
Patches cannot be applied twice.
It is not possible to unconditionally apply all patches in the Makefile, and great care must be taken to include the required patches at the correct stage of the build.