Changes

Jump to: navigation, search

LEAP SOP

1,197 bytes added, 19:42, 27 March 2016
no edit summary
* Add the word ''LEAP'' at the beginning of any comments, for example:
<source lang=bash>
# LEAP Add AArch64 support ExclusiveArch: x86_64 aarch64</source>* When commenting out a existing line of code, add one more % before any rpm macro otherwise rpmbuild will complain. For instance:<source lang=bash># Before commenting outcp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/virt-tools # After# cp %%{SOURCE1} $RPM_BUILD_ROOT%%{_datadir}/virt-tools 
</source>
* Add ''.leap'' after the release version, add ''.leap.1'', ''.leap.2'' ... and so on for further modification
=== Rebranding ===
The packages that contains contain the word ''.centos'' in their release version are branded packages. In order to properly rebranding those packages for LEAP, here is the checklist:
* Replace the word ''CentOS'' or ''CentOS Linux'' with ''LEAP'' in spec package descriptions and patches (make sure they are branding-related)
* Replace CentOS branding patches with LEAP branding patches
** If certain patch file contain contains author namesname, regenerate the patch with your own name instead of modifying the patch directly
* Replace CentOS links with LEAP links accordingly
* Sometimes Red Hat trademarks and links have to be replaced as well
; libreport/abrt
: '''Libreport''' and '''abrt''' are the library and application for automatic bug detection and reporting to RHEL bug tracker servers. Since CentOS added several significant patches to both packages for supporting their own bug tracker, removing those patches can be very complicated process. The best way to solve this problem is retrieving the original RHEL versions from http://git.centos.org, add our old debranding own de-branding patches, and bump the version-release number + ''.leap'' to match the requirements of dependency. ; ntp/chrony/Packagekit/system-config-date: These packages contain network time protocol configurations pointing to the NTP pool address: pool.VENDERZONE.ntp.org . By default, they are pointing to pool.centos.ntp.org. Since ntp pool for LEAP hasn't been set up, it is necessary to remove any .VENDERZONE in the spec files in stead of just replacing the brand. ; grub2/shim/shim-signed/system-config-kdump: There is a important variable <tt>efidir</tt> in the patches and specs in these packages. It represents the name of the EFI directory containing all the EFI boot files. Make sure the value of <tt>efidir</tt> '''leap'''.
; oscap-anaconda-addon/oscap-security-guide
: TODO
== Build order ==
It is better and time-saving to build certain packages before any other packages, because other packages is likely to depend on them:
* leap-release
* gcc, glibc, make
* coreutils
* xorg-x11-server
More coming ...

Navigation menu