diff options
| author | Ross Burton <ross.burton@arm.com> | 2021-12-13 12:46:14 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-12-15 10:18:25 -0800 |
| commit | a74f3a6c21da59a2067244501b2491082039ffff (patch) | |
| tree | 0c99f743fc866252450d2ebbc437ae4b8c933533 /meta-networking | |
| parent | 77ab8b6445ccf6abbd6c215ec681262bba095309 (diff) | |
| download | meta-openembedded-a74f3a6c21da59a2067244501b2491082039ffff.tar.gz | |
dhcp-relay: fix rebuilds
dhcp-relay needs a fresh tarball of bind unpacked in ${S}, but this is
done by fetching the tarball to ${WORKDIR}, then in do_configure moving
it to ${S} and unpacking it.
If dhcp-relay is re-configured, the tarball no longer exists in ${WORKDIR}
so this fails. Copy instead of moving so rebuilds work.
Also don't rename the downloaded file to just bind.tar.gz as that can
cause probems if the version changes.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
| -rw-r--r-- | meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.2p1.bb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.2p1.bb b/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.2p1.bb index 8e41609f00..c86926813d 100644 --- a/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.2p1.bb +++ b/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.2p1.bb | |||
| @@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;beginline=4;md5=004a4db50a1e20972e924a8618747 | |||
| 11 | DEPENDS = "openssl libcap zlib" | 11 | DEPENDS = "openssl libcap zlib" |
| 12 | 12 | ||
| 13 | SRC_URI = "https://ftp.isc.org/isc/dhcp/4.4.2-P1/dhcp-4.4.2-P1.tar.gz \ | 13 | SRC_URI = "https://ftp.isc.org/isc/dhcp/4.4.2-P1/dhcp-4.4.2-P1.tar.gz \ |
| 14 | https://ftp.isc.org/isc/bind9/9.11.32/bind-9.11.32.tar.gz;name=bind;downloadfilename=bind.tar.gz;unpack=0 \ | 14 | https://ftp.isc.org/isc/bind9/9.11.32/bind-9.11.32.tar.gz;name=bind;unpack=0 \ |
| 15 | file://default-relay \ | 15 | file://default-relay \ |
| 16 | file://init-relay \ | 16 | file://init-relay \ |
| 17 | file://dhcrelay.service \ | 17 | file://dhcrelay.service \ |
| @@ -47,11 +47,11 @@ EXTRA_OECONF = "--enable-paranoia \ | |||
| 47 | # Enable shared libs per dhcp README | 47 | # Enable shared libs per dhcp README |
| 48 | do_configure:prepend () { | 48 | do_configure:prepend () { |
| 49 | cp configure.ac+lt configure.ac | 49 | cp configure.ac+lt configure.ac |
| 50 | rm ${S}/bind/bind.tar.gz | 50 | cp ${WORKDIR}/bind-9.11.32.tar.gz ${S}/bind/bind.tar.gz |
| 51 | mv ${WORKDIR}/bind.tar.gz ${S}/bind/ | ||
| 52 | } | 51 | } |
| 53 | 52 | ||
| 54 | do_compile:prepend() { | 53 | do_compile:prepend() { |
| 54 | # Need to unpack this now instead of earlier as do_configure will delete the configure script | ||
| 55 | rm -rf ${S}/bind/bind-9.11.32/ | 55 | rm -rf ${S}/bind/bind-9.11.32/ |
| 56 | tar xf ${S}/bind/bind.tar.gz -C ${S}/bind | 56 | tar xf ${S}/bind/bind.tar.gz -C ${S}/bind |
| 57 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/bind/bind-9.11.32/ | 57 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/bind/bind-9.11.32/ |
