Skip to content

Custom Patches

Lars The edited this page Jul 8, 2019 · 4 revisions

Here you can found useful information for create/edit/configure your *_extra.sh files.

Patches that adds new files

If you use do_patch with a patch that adds a new file, you will be in trouble the second time you run the suite. The problem is because the update process doesn't removes the new file, and when applying the patch it fails because the file already exists.

As a workaround you can remove the file. Example ffmpeg_extra.sh:

#!/bin/bash
_pre_configure(){
    rm -rf "$LOCALBUILDDIR/ffmpeg-git/libavcodec/my_filter.c"
    do_patch "https://patchwork.ffmpeg.org/patch/99999999/mbox/ my_filter.patch" am
}

Clone this wiki locally