diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2019-08-22 10:07:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-22 22:48:27 +0100 |
commit | 7becded10e4ba50a7a9005bbd9e4654e222c2c63 (patch) | |
tree | e01b766c2bd6003b1cbbfd97961d5bf32812ac00 /meta/recipes-devtools/distcc/distcc_3.3.3.bb | |
parent | a44adae844d485c376d2618a11e0b13be1d40427 (diff) | |
download | poky-7becded10e4ba50a7a9005bbd9e4654e222c2c63.tar.gz |
distcc: upgrade 3.3.2 -> 3.3.3
(From OE-Core rev: 43faa66ff746b60a1a845472e7a66ab204854c77)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/distcc/distcc_3.3.3.bb')
-rw-r--r-- | meta/recipes-devtools/distcc/distcc_3.3.3.bb | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/meta/recipes-devtools/distcc/distcc_3.3.3.bb b/meta/recipes-devtools/distcc/distcc_3.3.3.bb new file mode 100644 index 0000000000..7942debec9 --- /dev/null +++ b/meta/recipes-devtools/distcc/distcc_3.3.3.bb | |||
@@ -0,0 +1,95 @@ | |||
1 | SUMMARY = "A parallel build system" | ||
2 | DESCRIPTION = "distcc is a parallel build system that distributes \ | ||
3 | compilation of C/C++/ObjC code across machines on a network." | ||
4 | SECTION = "devel" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
7 | |||
8 | DEPENDS = "avahi binutils" | ||
9 | |||
10 | PACKAGECONFIG ??= "popt" | ||
11 | PACKAGECONFIG[gtk] = "--with-gtk,--without-gtk --without-gnome,gtk+" | ||
12 | # use system popt by default | ||
13 | PACKAGECONFIG[popt] = "--without-included-popt,--with-included-popt,popt" | ||
14 | |||
15 | RRECOMMENDS_${PN} = "avahi-daemon" | ||
16 | |||
17 | SRC_URI = "git://github.com/distcc/distcc.git \ | ||
18 | file://separatebuilddir.patch \ | ||
19 | file://default \ | ||
20 | file://distccmon-gnome.desktop \ | ||
21 | file://distcc \ | ||
22 | file://distcc.service" | ||
23 | SRCREV = "4cde9bcfbda589abd842e3bbc652ce369085eaae" | ||
24 | S = "${WORKDIR}/git" | ||
25 | |||
26 | inherit autotools pkgconfig update-rc.d useradd systemd | ||
27 | |||
28 | ASNEEDED = "" | ||
29 | |||
30 | EXTRA_OECONF += "--disable-Werror PYTHON='' --disable-pump-mode" | ||
31 | |||
32 | USERADD_PACKAGES = "${PN}" | ||
33 | USERADD_PARAM_${PN} = "--system \ | ||
34 | --home /dev/null \ | ||
35 | --no-create-home \ | ||
36 | --gid nogroup \ | ||
37 | distcc" | ||
38 | |||
39 | INITSCRIPT_NAME = "distcc" | ||
40 | |||
41 | SYSTEMD_PACKAGES = "${PN}" | ||
42 | SYSTEMD_SERVICE_${PN} = "distcc.service" | ||
43 | |||
44 | do_install() { | ||
45 | # Improve reproducibility: compress w/o timestamps | ||
46 | oe_runmake 'DESTDIR=${D}' "GZIP_BIN=gzip -n" install | ||
47 | install -d ${D}${sysconfdir}/init.d/ | ||
48 | install -d ${D}${sysconfdir}/default | ||
49 | install -m 0755 ${WORKDIR}/distcc ${D}${sysconfdir}/init.d/ | ||
50 | install -m 0755 ${WORKDIR}/default ${D}${sysconfdir}/default/distcc | ||
51 | install -d ${D}${systemd_unitdir}/system/ | ||
52 | install -m 0644 ${WORKDIR}/distcc.service ${D}${systemd_unitdir}/system | ||
53 | sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/distcc.service | ||
54 | ${DESKTOPINSTALL} | ||
55 | } | ||
56 | DESKTOPINSTALL = "" | ||
57 | DESKTOPINSTALL_libc-glibc () { | ||
58 | install -d ${D}${datadir}/distcc/ | ||
59 | install -m 0644 ${WORKDIR}/distccmon-gnome.desktop ${D}${datadir}/distcc/ | ||
60 | } | ||
61 | PACKAGES += "distcc-distmon-gnome" | ||
62 | |||
63 | FILES_${PN} = " ${sysconfdir} \ | ||
64 | ${bindir}/distcc \ | ||
65 | ${bindir}/lsdistcc \ | ||
66 | ${bindir}/distccd \ | ||
67 | ${bindir}/distccmon-text \ | ||
68 | ${sbindir}/update-distcc-symlinks \ | ||
69 | ${systemd_unitdir}/system/distcc.service" | ||
70 | FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ | ||
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" | ||