Return-Path: Received: from mail-pl0-f51.google.com (mail-pl0-f51.google.com [209.85.160.51]) by mail.openembedded.org (Postfix) with ESMTP id 9DB1D6093A for ; Sun, 1 Jul 2018 14:24:30 +0000 (UTC) Received: by mail-pl0-f51.google.com with SMTP id 31-v6so6703684plc.4 for ; Sun, 01 Jul 2018 07:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=znO1HJguLbNceos+uguKp48dtrbMXh8TskxErG1UCjg=; b=Fr824jCedyv/LZehdLjR7iNFW1QhAWkyUxjWw3Lzv/1CPtDRM1TYHCjBV2KQZyiq59 oBX1lpn7Y8m7j2caBljsDOrixmkZgigfrWgFwaSVRktWkR6MM37OkleTs3NpBCHPrP53 OYMwV2lh+0REfFhRigj9phK+XSIE5qywUKLk+14Uay7Y+1G3IB9OOGflBcxGTRjBWdLb as0OdJO4cwn9QIzHgi7O+uJuv6Y6VlvhlCydVviuIgs7TKf/riL+mfVNT0FNSgCb7Tpf iUs06VKwYz1SMQrE9nZdPoCVaUFsMV+E2VQ05QzlCipXOP1Qpx6IDLnzC7vjifh19cxb /qKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=znO1HJguLbNceos+uguKp48dtrbMXh8TskxErG1UCjg=; b=A/AfLR6dPyi7l9J6fMdREBT164saqOzzShvOyC5DBRlFDGOOC70g6ZD0zy6/GLPJHP eIdWJULfqfGN3rAaT+KZsnFP9PhWkD9+WZlQqnFnnzwRBNMF8qmWA63tYKSJxY39cKXA wcP2UlDlTv9aKeg6Im7GB3O7LgtU3uojwoWsYiXo+HTxqjgutQ86iOvbPwn2hQXQyox/ YA6cLzfJBLsC9BbMzu53TSKIlxvSUlkgZPVZSgewNTGSqYQQM26x3BAcyzXuHIfkPA1m JBDnHxwiMcTwAD6diYZ7GfWC/gua+DQkAZ8fOv9bQh+siBXzX64Tiw7uYORIWKnyZ5Hn J5/g== X-Gm-Message-State: APt69E2vPwZ4caXvhOdeDW9T0J3iRmcgVBlDnAPD/OW9TzkGBMf3ZQIk NHpKoBVjCcQG6VWs8LhdO7KqgA== X-Google-Smtp-Source: ADUXVKKrz+CSURk95JIsI07cjxGAoRTin9Kq3UHo8tW0qw0PRUf1PnaJveuqYqQ9T0KJcJJkbaZNkQ== X-Received: by 2002:a17:902:aa48:: with SMTP id c8-v6mr22362820plr.132.1530455071519; Sun, 01 Jul 2018 07:24:31 -0700 (PDT) Received: from ?IPv6:2601:202:4000:1184:f9e4:5e2e:71ed:81e4? ([2601:202:4000:1184:f9e4:5e2e:71ed:81e4]) by smtp.gmail.com with ESMTPSA id p1-v6sm21555085pfh.58.2018.07.01.07.24.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jul 2018 07:24:30 -0700 (PDT) To: Christopher Larson References: <1529865828-13206-1-git-send-email-akuster808@gmail.com> From: akuster808 Openpgp: preference=signencrypt Autocrypt: addr=akuster808@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFnlUP4BEADpKf+FQdLykenQXKk8i6xJNxDow+ypFeVAy8iFJp7Dsev+BtwUFo8VG7hx Jmd71vHMw+coBetWC3lk+IKjX815Ox0puYXQVRRtI+yMCgd6ib3oGxoQ8tCMwhf9c9/aKjaz mP97lWgGHbiEVsDpjzmMZGlJ6pDVZzxykkJExKaosE46AcA8KvfhRQg5zRyYBtinzs8Zu8AP aquZVHNXxPwjKPaSEEYqQjFeiNgFTavV+AhM2dmPmGUWCX9RZisrqA4slGwEB0srMdFf12Zg mD35Y9jZ80qpu5LPtJCFcsaAlebqR+dg36pIpiRR+olhN1wmC6LYP1vw6uMEYBjkTa2Rnb6+ C4FDzCJD4UCrUvLMNeTW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UuSEi0WrlSxoLAr6p JG8rTUErYNeXe6JCdL31odDx1Dh5sdKIj2RicUYZNilxu9f1M7jZwf2ra1FGAlKj2ybqmgpZ EFteaiCinEYsvDyZyOiWHjAFI+RZIPQQL3AnVp4l7wYD3r9hnqYPww0slyMDcb9262RoFkHq dDwxPYarrNjWUpOzxB6bFxOgNRdCTgvQl8Ftk8a/yXB6vHeUSm1vPFCBxQPZytyfOLhEWm0J /mkVL0Z6iRK3p1LKnpLYCS4/esL2u7RrhPyCs2SsL58YcQF/g+PpeT9geZ+oyZ/4IQ+TWJoU PNHndk8VBTpzrmOaJxrebNL/W6C8JCmbLM11TAUMmHYi9JDytN8Au78hWpDbIdKwg1LeSxpw ZZD/OqOc0DBvHOpQhzkSrtR1lVlDV/+9E8J1T4uDhrGmZwYV+4xQetypHax8aAHisYbjXdVa 8CS2NxU= Message-ID: Date: Sun, 1 Jul 2018 07:24:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCH] dhcp: update 4.4.1 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jul 2018 14:24:30 -0000 Content-Type: multipart/alternative; boundary="------------5BB6DB5577F1E16401569A82" Content-Language: en-US --------------5BB6DB5577F1E16401569A82 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit On 06/29/2018 06:53 PM, Christopher Larson wrote: > > > On Fri, Jun 29, 2018 at 1:40 PM akuster808 > wrote: > > > > On 06/29/2018 08:13 AM, Christopher Larson wrote: >> >> >> On Sun, Jun 24, 2018 at 11:43 AM Armin Kuster >> > wrote: >> >> include several CVE fixes. >> CVE: CVE-2018-5733 >> CVE: CVE-2018-5732 >> >> LIC_CHKSUM_FILE updated to SPFX format >> >> https://kb.isc.org/article/AA-01571 >> >> remove several patches now included in update. >> Shared libarary support is now enabled in configure+lt, use it >> and revert to autotools-brokensep >> Refresh patches >> >> alings support with bind 9.11.x >> >> add libxml2 support to configure.ac +lt >> >> Signed-off-by: Armin Kuster > > >> --- >>  meta/recipes-connectivity/dhcp/dhcp.inc            |  19 +- >>  ...o-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.patch |  13 +- >>  .../dhcp/dhcp/0003-link-with-lcrypto.patch         |  13 +- >>  .../dhcp/dhcp/0004-Fix-out-of-tree-builds.patch    | 109 >> +++++------ >>  .../dhcp/0006-site.h-enable-gentle-shutdown.patch  |  13 +- >>  ...re-argument-to-make-the-libxml2-dependenc.patch |  40 +++- >>  .../dhcp/dhcp/0010-build-shared-libs.patch         | 208 >> --------------------- >>  ...all-to-isc_app_ctxstart-to-not-get-signal.patch |  81 >> -------- >>  ...correct-the-intention-for-xml2-lib-search.patch |  13 +- >>  .../dhcp/dhcp/CVE-2017-3144.patch                  |  74 >> -------- >>  .../dhcp/{dhcp_4.3.6.bb => >> dhcp_4.4.1.bb }          |  12 +- >>  11 files changed, 120 insertions(+), 475 deletions(-) >>  delete mode 100644 >> meta/recipes-connectivity/dhcp/dhcp/0010-build-shared-libs.patch >>  delete mode 100644 >> meta/recipes-connectivity/dhcp/dhcp/0011-Moved-the-call-to-isc_app_ctxstart-to-not-get-signal.patch >>  delete mode 100644 >> meta/recipes-connectivity/dhcp/dhcp/CVE-2017-3144.patch >>  rename meta/recipes-connectivity/dhcp/{dhcp_4.3.6.bb >> => dhcp_4.4.1.bb >> } (65%) >> >> diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc >> b/meta/recipes-connectivity/dhcp/dhcp.inc >> index e943707..2eb3513 100644 >> --- a/meta/recipes-connectivity/dhcp/dhcp.inc >> +++ b/meta/recipes-connectivity/dhcp/dhcp.inc >> @@ -8,7 +8,7 @@ easier to administer devices." >>  HOMEPAGE = "http://www.isc.org/" >> >>  LICENSE = "ISC" >> -LIC_FILES_CHKSUM = >> "file://LICENSE;beginline=4;md5=c5c64d696107f84b56fe337d14da1753" >> +LIC_FILES_CHKSUM = >> "file://LICENSE;beginline=4;md5=004a4db50a1e20972e924a8618747c01" >> >>  DEPENDS = "openssl bind" >> >> @@ -24,7 +24,7 @@ SRC_URI = >> "http://ftp.isc.org/isc/dhcp/${PV}/dhcp-${PV}.tar.gz >> \ >>  UPSTREAM_CHECK_URI = "ftp://ftp.isc.org/isc/dhcp/" >>  UPSTREAM_CHECK_REGEX = "(?P\d+\.\d+\.(\d+?))/" >> >> -inherit autotools systemd useradd update-rc.d >> +inherit autotools-brokensep systemd useradd update-rc.d >> >>  USERADD_PACKAGES = "${PN}-server" >>  USERADD_PARAM_${PN}-server = "--system --no-create-home >> --home-dir /var/run/${BPN} --shell /bin/false --user-group >> ${BPN}" >> @@ -48,11 +48,21 @@ EXTRA_OECONF = >> "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \ >>                 >>  --with-srv6-lease-file=${localstatedir}/lib/dhcp/dhcpd6.leases \ >>                 >>  --with-cli-lease-file=${localstatedir}/lib/dhcp/dhclient.leases >> \ >>                 >>  --with-cli6-lease-file=${localstatedir}/lib/dhcp/dhclient6.leases >> \ >> -                --with-libbind=${STAGING_LIBDIR}/ \ >>                  --enable-paranoia --disable-static \ >>                  --with-randomdev=/dev/random \ >> +                --with-libbind=${STAGING_DIR_HOST}/usr \ >> +               --enable-libtool \ >>                 " >> >> +#Enable shared libs per dhcp README >> +do_configure () { >> +       cd ${S} >> +       cp configure.ac +lt configure.ac >> >> +        autoreconf -i >> +       ./configure  ${CONFIGUREOPTS} ${EXTRA_OECONF}    >> +       automake >> >> >> 1. Why run automake when autoreconf already runs automake? > it caused errors when I did not included. > >> 2. Why override do_configure and reproduce what's already in >> autotools-brokensep rather than doing the cp in a >> do_configure_prepend? > I did that first and it did not work. The README regarding *+lt > says it needs "autoreconf -i". I am only doing this as the current > version of dhcp has a patch to create shared libs. The isc dhcp > solution to this is their configure.ac +lt.  > I would rather no do this but someone needed shared libs. > > > We already run autoreconf -i in the default do_configure, I see no > reason to be duplicating half of its logic when all you need to do is > replace the default configure.ac with the +lt > version before that. cool. that does seem to work.  V2 being sent shortly. thanks for the push. - armin > -- > Christopher Larson > kergoth at gmail dot com > Founder - BitBake, OpenEmbedded, OpenZaurus > Senior Software Engineer, Mentor Graphics --------------5BB6DB5577F1E16401569A82 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit



On 06/29/2018 06:53 PM, Christopher Larson wrote:


On Fri, Jun 29, 2018 at 1:40 PM akuster808 <akuster808@gmail.com> wrote:



On 06/29/2018 08:13 AM, Christopher Larson wrote:


On Sun, Jun 24, 2018 at 11:43 AM Armin Kuster <akuster808@gmail.com> wrote:
include several CVE fixes.
CVE: CVE-2018-5733
CVE: CVE-2018-5732

LIC_CHKSUM_FILE updated to SPFX format

https://kb.isc.org/article/AA-01571

remove several patches now included in update.
Shared libarary support is now enabled in configure+lt, use it
and revert to autotools-brokensep
Refresh patches

alings support with bind 9.11.x

add libxml2 support to configure.ac+lt

Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 meta/recipes-connectivity/dhcp/dhcp.inc            |  19 +-
 ...o-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.patch |  13 +-
 .../dhcp/dhcp/0003-link-with-lcrypto.patch         |  13 +-
 .../dhcp/dhcp/0004-Fix-out-of-tree-builds.patch    | 109 +++++------
 .../dhcp/0006-site.h-enable-gentle-shutdown.patch  |  13 +-
 ...re-argument-to-make-the-libxml2-dependenc.patch |  40 +++-
 .../dhcp/dhcp/0010-build-shared-libs.patch         | 208 ---------------------
 ...all-to-isc_app_ctxstart-to-not-get-signal.patch |  81 --------
 ...correct-the-intention-for-xml2-lib-search.patch |  13 +-
 .../dhcp/dhcp/CVE-2017-3144.patch                  |  74 --------
 .../dhcp/{dhcp_4.3.6.bb => dhcp_4.4.1.bb}          |  12 +-
 11 files changed, 120 insertions(+), 475 deletions(-)
 delete mode 100644 meta/recipes-connectivity/dhcp/dhcp/0010-build-shared-libs.patch
 delete mode 100644 meta/recipes-connectivity/dhcp/dhcp/0011-Moved-the-call-to-isc_app_ctxstart-to-not-get-signal.patch
 delete mode 100644 meta/recipes-connectivity/dhcp/dhcp/CVE-2017-3144.patch
 rename meta/recipes-connectivity/dhcp/{dhcp_4.3.6.bb => dhcp_4.4.1.bb} (65%)

diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc
index e943707..2eb3513 100644
--- a/meta/recipes-connectivity/dhcp/dhcp.inc
+++ b/meta/recipes-connectivity/dhcp/dhcp.inc
@@ -8,7 +8,7 @@ easier to administer devices."
 HOMEPAGE = "http://www.isc.org/"

 LICENSE = "ISC"
-LIC_FILES_CHKSUM = "file://LICENSE;beginline=4;md5=c5c64d696107f84b56fe337d14da1753"
+LIC_FILES_CHKSUM = "file://LICENSE;beginline=4;md5=004a4db50a1e20972e924a8618747c01"

 DEPENDS = "openssl bind"

@@ -24,7 +24,7 @@ SRC_URI = "http://ftp.isc.org/isc/dhcp/${PV}/dhcp-${PV}.tar.gz \
 UPSTREAM_CHECK_URI = "ftp://ftp.isc.org/isc/dhcp/"
 UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.\d+\.(\d+?))/"

-inherit autotools systemd useradd update-rc.d
+inherit autotools-brokensep systemd useradd update-rc.d

 USERADD_PACKAGES = "${PN}-server"
 USERADD_PARAM_${PN}-server = "--system --no-create-home --home-dir /var/run/${BPN} --shell /bin/false --user-group ${BPN}"
@@ -48,11 +48,21 @@ EXTRA_OECONF = "--with-srv-lease-file=${localstatedir}/lib/dhcp/dhcpd.leases \
                 --with-srv6-lease-file=${localstatedir}/lib/dhcp/dhcpd6.leases \
                 --with-cli-lease-file=${localstatedir}/lib/dhcp/dhclient.leases \
                 --with-cli6-lease-file=${localstatedir}/lib/dhcp/dhclient6.leases \
-                --with-libbind=${STAGING_LIBDIR}/ \
                 --enable-paranoia --disable-static \
                 --with-randomdev=/dev/random \
+                --with-libbind=${STAGING_DIR_HOST}/usr \
+               --enable-libtool \
                "

+#Enable shared libs per dhcp README
+do_configure () {
+       cd ${S}
+       cp configure.ac+lt configure.ac
+        autoreconf -i
+       ./configure  ${CONFIGUREOPTS} ${EXTRA_OECONF}   
+       automake

1. Why run automake when autoreconf already runs automake?
it caused errors when I did not included.

2. Why override do_configure and reproduce what's already in autotools-brokensep rather than doing the cp in a do_configure_prepend?
I did that first and it did not work. The README regarding *+lt says it needs "autoreconf -i". I am only doing this as the current version of dhcp has a patch to create shared libs. The isc dhcp solution to this is their configure.ac+lt.  I would rather no do this but someone needed shared libs.

We already run autoreconf -i in the default do_configure, I see no reason to be duplicating half of its logic when all you need to do is replace the default configure.ac with the +lt version before that.

cool. that does seem to work.  V2 being sent shortly.

thanks for the push.

- armin
--
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics

--------------5BB6DB5577F1E16401569A82--