Carlos O'Donell 33fde86
This package supports working with patch files using quilt.
Carlos O'Donell 33fde86
Carlos O'Donell 33fde86
To regenerate the quilt series file run:
Carlos O'Donell 33fde86
./gen-quilt-series.sh
Carlos O'Donell 33fde86
Carlos O'Donell 33fde86
Setup environment:
Carlos O'Donell 33fde86
export QUILT_PATCHES=$PWD
Carlos O'Donell 33fde86
Carlos O'Donell 33fde86
Setup the source:
Carlos O'Donell 0457f64
./quilt-patch.sh [-f]
Carlos O'Donell 0457f64
Carlos O'Donell 0457f64
Use `-f` if you want to have quilt-patch always remove the existing
Carlos O'Donell 0457f64
source directory before starting. Otherwise you'll be patching on top of
Carlos O'Donell 0457f64
an already patched tree generated perhaps by `*pkg prep`.
Carlos O'Donell 33fde86
Carlos O'Donell 33fde86
Create a new patch:
Carlos O'Donell 33fde86
cd glibc-2.17-c758a686/
Carlos O'Donell 33fde86
quilt new glibc-rh1234622.patch
Carlos O'Donell 33fde86
quilt add ports/sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist
Carlos O'Donell 33fde86
vi ports/sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist
Carlos O'Donell 33fde86
quilt refresh
Carlos O'Donell 33fde86
cd ..
Carlos O'Donell 33fde86
git add glibc-rh1234622.patch
Carlos O'Donell 33fde86
<Then edit the glibc.spec file to build with the new patch>
Carlos O'Donell 33fde86
e.g.
Carlos O'Donell 33fde86
...
Carlos O'Donell 33fde86
PatchXXXX: glibc-rh1234622.patch
Carlos O'Donell 33fde86
...
Carlos O'Donell 33fde86
%patchXXXX -p1
Carlos O'Donell 33fde86
...
Carlos O'Donell 33fde86
git add glibc.spec
Carlos O'Donell 33fde86
git commit
Carlos O'Donell 33fde86
Carlos O'Donell 33fde86
You're done!