diff options
| -rw-r--r-- | meta/recipes-devtools/distcc/distcc_3.3.2.bb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-devtools/distcc/distcc_3.3.2.bb b/meta/recipes-devtools/distcc/distcc_3.3.2.bb index 0d06963165..a93604bc47 100644 --- a/meta/recipes-devtools/distcc/distcc_3.3.2.bb +++ b/meta/recipes-devtools/distcc/distcc_3.3.2.bb | |||
| @@ -69,3 +69,27 @@ FILES_${PN} = " ${sysconfdir} \ | |||
| 69 | ${systemd_unitdir}/system/distcc.service" | 69 | ${systemd_unitdir}/system/distcc.service" |
| 70 | FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ | 70 | FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ |
| 71 | ${datadir}/distcc" | 71 | ${datadir}/distcc" |
| 72 | |||
| 73 | |||
| 74 | # | ||
| 75 | # distcc upstream dropped the 3.2 branch which we reference in older project releases | ||
| 76 | # the revisions are there, just the branch is not. In order to be able to continue | ||
| 77 | # to build those old releases, adjust any mirror tarball to contain the missing branch | ||
| 78 | # | ||
| 79 | fixup_distcc_mirror_tarball () { | ||
| 80 | TBALL=${DL_DIR}/git2_github.com.distcc.distcc.git.tar.gz | ||
| 81 | if [ -f $TBALL ]; then | ||
| 82 | TDIR=`mktemp -d` | ||
| 83 | cd $TDIR | ||
| 84 | tar -xzf $TBALL | ||
| 85 | set +e | ||
| 86 | git rev-parse --verify 3.2 | ||
| 87 | if [ "$?" != "0" ]; then | ||
| 88 | git branch 3.2 d8b18df3e9dcbe4f092bed565835d3975e99432c | ||
| 89 | tar -czf $TBALL * | ||
| 90 | fi | ||
| 91 | set -e | ||
| 92 | rm -rf $TDIR/* | ||
| 93 | fi | ||
| 94 | } | ||
| 95 | do_fetch[postfuncs] += "fixup_distcc_mirror_tarball" | ||
