All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
@ 2020-04-14 19:49 Trevor Gamblin
  2020-04-14 22:38 ` [oe] " Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Trevor Gamblin @ 2020-04-14 19:49 UTC (permalink / raw)
  To: openembedded-devel

LICENSE file was updated due to a typo fix.

Note that this upgrade fixes two CVES affecting versions
2.4.41 and earlier:

CVE: CVE-2020-1927
CVE: CVE-2020-1934

See:
https://nvd.nist.gov/vuln/detail/CVE-2020-1927
https://nvd.nist.gov/vuln/detail/CVE-2020-1934

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
---
 .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb}        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb} (97%)

diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
similarity index 97%
rename from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
rename to meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
index a34734c20..2fff153fc 100644
--- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
+++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
@@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \
            file://volatiles.04_apache2 \
            "
 
-LIC_FILES_CHKSUM = "file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
-SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e"
-SRC_URI[sha256sum] = "133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
+SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64"
+SRC_URI[sha256sum] = "a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"
 
 S = "${WORKDIR}/httpd-${PV}"
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
  2020-04-14 19:49 [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43 Trevor Gamblin
@ 2020-04-14 22:38 ` Khem Raj
  2020-04-15  0:09   ` Trevor Gamblin
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2020-04-14 22:38 UTC (permalink / raw)
  To: Trevor Gamblin; +Cc: openembeded-devel

apache-websockets does not like it

https://errors.yoctoproject.org/Errors/Details/403771/

On Tue, Apr 14, 2020 at 12:49 PM Trevor Gamblin
<trevor.gamblin@windriver.com> wrote:
>
> LICENSE file was updated due to a typo fix.
>
> Note that this upgrade fixes two CVES affecting versions
> 2.4.41 and earlier:
>
> CVE: CVE-2020-1927
> CVE: CVE-2020-1934
>
> See:
> https://nvd.nist.gov/vuln/detail/CVE-2020-1927
> https://nvd.nist.gov/vuln/detail/CVE-2020-1934
>
> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> ---
>  .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb}        | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>  rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb} (97%)
>
> diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> similarity index 97%
> rename from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
> rename to meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> index a34734c20..2fff153fc 100644
> --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
> +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> @@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \
>             file://volatiles.04_apache2 \
>             "
>
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
> -SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e"
> -SRC_URI[sha256sum] = "133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
> +SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64"
> +SRC_URI[sha256sum] = "a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"
>
>  S = "${WORKDIR}/httpd-${PV}"
>
> --
> 2.17.1
>
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
  2020-04-14 22:38 ` [oe] " Khem Raj
@ 2020-04-15  0:09   ` Trevor Gamblin
  2020-04-15 23:02     ` Peter Kjellerstedt
  0 siblings, 1 reply; 8+ messages in thread
From: Trevor Gamblin @ 2020-04-15  0:09 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel


On 4/14/20 6:38 PM, Khem Raj wrote:
> apache-websockets does not like it
Thanks, will take a look at it and re-send.
>
> https://errors.yoctoproject.org/Errors/Details/403771/
>
> On Tue, Apr 14, 2020 at 12:49 PM Trevor Gamblin
> <trevor.gamblin@windriver.com> wrote:
>> LICENSE file was updated due to a typo fix.
>>
>> Note that this upgrade fixes two CVES affecting versions
>> 2.4.41 and earlier:
>>
>> CVE: CVE-2020-1927
>> CVE: CVE-2020-1934
>>
>> See:
>> https://nvd.nist.gov/vuln/detail/CVE-2020-1927
>> https://nvd.nist.gov/vuln/detail/CVE-2020-1934
>>
>> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
>> ---
>>   .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb}        | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>   rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb} (97%)
>>
>> diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
>> similarity index 97%
>> rename from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
>> rename to meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
>> index a34734c20..2fff153fc 100644
>> --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
>> +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
>> @@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \
>>              file://volatiles.04_apache2 \
>>              "
>>
>> -LIC_FILES_CHKSUM = "file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
>> -SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e"
>> -SRC_URI[sha256sum] = "133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
>> +SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64"
>> +SRC_URI[sha256sum] = "a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"
>>
>>   S = "${WORKDIR}/httpd-${PV}"
>>
>> --
>> 2.17.1
>>
>> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
  2020-04-15  0:09   ` Trevor Gamblin
@ 2020-04-15 23:02     ` Peter Kjellerstedt
  2020-04-16 13:20       ` Trevor Gamblin
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Kjellerstedt @ 2020-04-15 23:02 UTC (permalink / raw)
  To: Trevor Gamblin, Khem Raj; +Cc: openembeded-devel

> -----Original Message-----
> From: openembedded-devel@lists.openembedded.org <openembedded-
> devel@lists.openembedded.org> On Behalf Of Trevor Gamblin
> Sent: den 15 april 2020 02:10
> To: Khem Raj <raj.khem@gmail.com>
> Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>
> Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 ->
> 2.4.43
> 
> On 4/14/20 6:38 PM, Khem Raj wrote:
> > apache-websockets does not like it
> > 
> > https://errors.yoctoproject.org/Errors/Details/403771/
> 
> Thanks, will take a look at it and re-send.

It appears they have added cross compilation support to apxs, but 
it clashes with the changes done in OE to make it support cross 
compilation. I tried to solve it by basically removing the OE 
changes, but it was not as simple as that. In the end we worked 
around it with this quick fix:

apache_sysroot_preprocess_append() {
        # Disable apxs' built in cross compilation support and rely on what the
        # recipe sets up.
        sed -i 's!$destdir = .*!$destdir = "";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
}

However, I hope you can come up with a better solution that 
actually makes use of what they did upstream and thus lessen 
the changes that have to be applied by OE.

//Peter

> > On Tue, Apr 14, 2020 at 12:49 PM Trevor Gamblin
> > <trevor.gamblin@windriver.com> wrote:
> >> LICENSE file was updated due to a typo fix.
> >>
> >> Note that this upgrade fixes two CVES affecting versions
> >> 2.4.41 and earlier:
> >>
> >> CVE: CVE-2020-1927
> >> CVE: CVE-2020-1934
> >>
> >> See:
> >> https://nvd.nist.gov/vuln/detail/CVE-2020-1927
> >> https://nvd.nist.gov/vuln/detail/CVE-2020-1934
> >>
> >> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> >> ---
> >>   .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb}        | 6 +++-
> --
> >>   1 file changed, 3 insertions(+), 3 deletions(-)
> >>   rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb =>
> apache2_2.4.43.bb} (97%)
> >>
> >> diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
> b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> >> similarity index 97%
> >> rename from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
> >> rename to meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> >> index a34734c20..2fff153fc 100644
> >> --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
> >> +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> >> @@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \
> >>              file://volatiles.04_apache2 \
> >>              "
> >>
> >> -LIC_FILES_CHKSUM =
> "file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
> >> -SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e"
> >> -SRC_URI[sha256sum] =
> "133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"
> >> +LIC_FILES_CHKSUM =
> "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
> >> +SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64"
> >> +SRC_URI[sha256sum] =
> "a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"
> >>
> >>   S = "${WORKDIR}/httpd-${PV}"
> >>
> >> --
> >> 2.17.1
> >>
> >>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
  2020-04-15 23:02     ` Peter Kjellerstedt
@ 2020-04-16 13:20       ` Trevor Gamblin
  2020-04-16 15:48         ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Trevor Gamblin @ 2020-04-16 13:20 UTC (permalink / raw)
  To: Peter Kjellerstedt, Khem Raj; +Cc: openembeded-devel


On 4/15/20 7:02 PM, Peter Kjellerstedt wrote:
>> -----Original Message-----
>> From: openembedded-devel@lists.openembedded.org <openembedded-
>> devel@lists.openembedded.org> On Behalf Of Trevor Gamblin
>> Sent: den 15 april 2020 02:10
>> To: Khem Raj <raj.khem@gmail.com>
>> Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>
>> Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 ->
>> 2.4.43
>>
>> On 4/14/20 6:38 PM, Khem Raj wrote:
>>> apache-websockets does not like it
>>>
>>> https://errors.yoctoproject.org/Errors/Details/403771/
>> Thanks, will take a look at it and re-send.
> It appears they have added cross compilation support to apxs, but
> it clashes with the changes done in OE to make it support cross
> compilation. I tried to solve it by basically removing the OE
> changes, but it was not as simple as that. In the end we worked
> around it with this quick fix:
>
> apache_sysroot_preprocess_append() {
>          # Disable apxs' built in cross compilation support and rely on what the
>          # recipe sets up.
>          sed -i 's!$destdir = .*!$destdir = "";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
> }
>
> However, I hope you can come up with a better solution that
> actually makes use of what they did upstream and thus lessen
> the changes that have to be applied by OE.

Hi Peter,

Ironically I'm seeing your email just as I submit a v2 reverting their 
cross-compilation changes. I wasn't able to find a better workaround 
than just reverting the destdir stuff that they added, but I did it via 
a patch file instead of within the recipe itself. I do like your 
approach better though, as it avoids adding a patch file that'll have to 
be maintained. Do you want to submit your fix in lieu of mine?

Cheers,

Trevor

>
> //Peter
>
>>> On Tue, Apr 14, 2020 at 12:49 PM Trevor Gamblin
>>> <trevor.gamblin@windriver.com> wrote:
>>>> LICENSE file was updated due to a typo fix.
>>>>
>>>> Note that this upgrade fixes two CVES affecting versions
>>>> 2.4.41 and earlier:
>>>>
>>>> CVE: CVE-2020-1927
>>>> CVE: CVE-2020-1934
>>>>
>>>> See:
>>>> https://nvd.nist.gov/vuln/detail/CVE-2020-1927
>>>> https://nvd.nist.gov/vuln/detail/CVE-2020-1934
>>>>
>>>> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
>>>> ---
>>>>    .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb}        | 6 +++-
>> --
>>>>    1 file changed, 3 insertions(+), 3 deletions(-)
>>>>    rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb =>
>> apache2_2.4.43.bb} (97%)
>>>> diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
>> b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
>>>> similarity index 97%
>>>> rename from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
>>>> rename to meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
>>>> index a34734c20..2fff153fc 100644
>>>> --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
>>>> +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
>>>> @@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \
>>>>               file://volatiles.04_apache2 \
>>>>               "
>>>>
>>>> -LIC_FILES_CHKSUM =
>> "file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
>>>> -SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e"
>>>> -SRC_URI[sha256sum] =
>> "133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"
>>>> +LIC_FILES_CHKSUM =
>> "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
>>>> +SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64"
>>>> +SRC_URI[sha256sum] =
>> "a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"
>>>>    S = "${WORKDIR}/httpd-${PV}"
>>>>
>>>> --
>>>> 2.17.1
>>>>
>>>>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
  2020-04-16 13:20       ` Trevor Gamblin
@ 2020-04-16 15:48         ` Khem Raj
  2020-04-17 10:46           ` Peter Kjellerstedt
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2020-04-16 15:48 UTC (permalink / raw)
  To: Trevor Gamblin; +Cc: Peter Kjellerstedt, openembeded-devel

On Thu, Apr 16, 2020 at 6:21 AM Trevor Gamblin
<trevor.gamblin@windriver.com> wrote:
>
>
> On 4/15/20 7:02 PM, Peter Kjellerstedt wrote:
> >> -----Original Message-----
> >> From: openembedded-devel@lists.openembedded.org <openembedded-
> >> devel@lists.openembedded.org> On Behalf Of Trevor Gamblin
> >> Sent: den 15 april 2020 02:10
> >> To: Khem Raj <raj.khem@gmail.com>
> >> Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>
> >> Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 ->
> >> 2.4.43
> >>
> >> On 4/14/20 6:38 PM, Khem Raj wrote:
> >>> apache-websockets does not like it
> >>>
> >>> https://errors.yoctoproject.org/Errors/Details/403771/
> >> Thanks, will take a look at it and re-send.
> > It appears they have added cross compilation support to apxs, but
> > it clashes with the changes done in OE to make it support cross
> > compilation. I tried to solve it by basically removing the OE
> > changes, but it was not as simple as that. In the end we worked
> > around it with this quick fix:
> >
> > apache_sysroot_preprocess_append() {
> >          # Disable apxs' built in cross compilation support and rely on what the
> >          # recipe sets up.
> >          sed -i 's!$destdir = .*!$destdir = "";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
> > }
> >
> > However, I hope you can come up with a better solution that
> > actually makes use of what they did upstream and thus lessen
> > the changes that have to be applied by OE.
>
> Hi Peter,
>
> Ironically I'm seeing your email just as I submit a v2 reverting their
> cross-compilation changes. I wasn't able to find a better workaround
> than just reverting the destdir stuff that they added, but I did it via
> a patch file instead of within the recipe itself. I do like your
> approach better though, as it avoids adding a patch file that'll have to
> be maintained. Do you want to submit your fix in lieu of mine?
>

yeah I think revert is last resort. So lets see if we can fix it

> Cheers,
>
> Trevor
>
> >
> > //Peter
> >
> >>> On Tue, Apr 14, 2020 at 12:49 PM Trevor Gamblin
> >>> <trevor.gamblin@windriver.com> wrote:
> >>>> LICENSE file was updated due to a typo fix.
> >>>>
> >>>> Note that this upgrade fixes two CVES affecting versions
> >>>> 2.4.41 and earlier:
> >>>>
> >>>> CVE: CVE-2020-1927
> >>>> CVE: CVE-2020-1934
> >>>>
> >>>> See:
> >>>> https://nvd.nist.gov/vuln/detail/CVE-2020-1927
> >>>> https://nvd.nist.gov/vuln/detail/CVE-2020-1934
> >>>>
> >>>> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
> >>>> ---
> >>>>    .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb}        | 6 +++-
> >> --
> >>>>    1 file changed, 3 insertions(+), 3 deletions(-)
> >>>>    rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb =>
> >> apache2_2.4.43.bb} (97%)
> >>>> diff --git a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
> >> b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> >>>> similarity index 97%
> >>>> rename from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
> >>>> rename to meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> >>>> index a34734c20..2fff153fc 100644
> >>>> --- a/meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb
> >>>> +++ b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
> >>>> @@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \
> >>>>               file://volatiles.04_apache2 \
> >>>>               "
> >>>>
> >>>> -LIC_FILES_CHKSUM =
> >> "file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
> >>>> -SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e"
> >>>> -SRC_URI[sha256sum] =
> >> "133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"
> >>>> +LIC_FILES_CHKSUM =
> >> "file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
> >>>> +SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64"
> >>>> +SRC_URI[sha256sum] =
> >> "a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"
> >>>>    S = "${WORKDIR}/httpd-${PV}"
> >>>>
> >>>> --
> >>>> 2.17.1
> >>>>
> >>>>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
  2020-04-16 15:48         ` Khem Raj
@ 2020-04-17 10:46           ` Peter Kjellerstedt
  2020-04-17 13:46             ` Trevor Gamblin
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Kjellerstedt @ 2020-04-17 10:46 UTC (permalink / raw)
  To: Khem Raj, Trevor Gamblin; +Cc: openembeded-devel

> -----Original Message-----
> From: Khem Raj <raj.khem@gmail.com>
> Sent: den 16 april 2020 17:49
> To: Trevor Gamblin <trevor.gamblin@windriver.com>
> Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembeded-devel
> <openembedded-devel@lists.openembedded.org>
> Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 ->
> 2.4.43
> 
> On Thu, Apr 16, 2020 at 6:21 AM Trevor Gamblin
> <trevor.gamblin@windriver.com> wrote:
> >
> > On 4/15/20 7:02 PM, Peter Kjellerstedt wrote:
> > >> -----Original Message-----
> > >> From: openembedded-devel@lists.openembedded.org <openembedded-
> > >> devel@lists.openembedded.org> On Behalf Of Trevor Gamblin
> > >> Sent: den 15 april 2020 02:10
> > >> To: Khem Raj <raj.khem@gmail.com>
> > >> Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>
> > >> Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 ->
> > >> 2.4.43
> > >>
> > >> On 4/14/20 6:38 PM, Khem Raj wrote:
> > >>> apache-websockets does not like it
> > >>>
> > >>> https://errors.yoctoproject.org/Errors/Details/403771/
> > >>
> > >> Thanks, will take a look at it and re-send.
> > >
> > > It appears they have added cross compilation support to apxs, but
> > > it clashes with the changes done in OE to make it support cross
> > > compilation. I tried to solve it by basically removing the OE
> > > changes, but it was not as simple as that. In the end we worked
> > > around it with this quick fix:
> > >
> > > apache_sysroot_preprocess_append() {
> > >          # Disable apxs' built in cross compilation support and rely on what the
> > >          # recipe sets up.
> > >          sed -i 's!$destdir = .*!$destdir = "";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
> > > }
> > >
> > > However, I hope you can come up with a better solution that
> > > actually makes use of what they did upstream and thus lessen
> > > the changes that have to be applied by OE.
> >
> > Hi Peter,
> >
> > Ironically I'm seeing your email just as I submit a v2 reverting their
> > cross-compilation changes. I wasn't able to find a better workaround
> > than just reverting the destdir stuff that they added, but I did it via
> > a patch file instead of within the recipe itself. I do like your
> > approach better though, as it avoids adding a patch file that'll have
> > to be maintained. Do you want to submit your fix in lieu of mine?
> 
> yeah I think revert is last resort. So lets see if we can fix it

Well, my solution just disables the upstream change, so it doesn't 
really make use of it. I think a patch is better than the quick sed 
fix I did since it means there is context to the change. However, 
you don't need to revert all of the upstream change. Just commenting 
out these lines would do:

my $ddi = rindex($0, "@exp_bindir@");
if ($ddi >= 0) {
  $destdir = substr($0, 0, $ddi);
}

That should improve the chance of the patch continuing to apply for 
future versions of apache.

//Peter


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
  2020-04-17 10:46           ` Peter Kjellerstedt
@ 2020-04-17 13:46             ` Trevor Gamblin
  0 siblings, 0 replies; 8+ messages in thread
From: Trevor Gamblin @ 2020-04-17 13:46 UTC (permalink / raw)
  To: Peter Kjellerstedt, Khem Raj; +Cc: openembeded-devel

[-- Attachment #1: Type: text/plain, Size: 3144 bytes --]


On 4/17/20 6:46 AM, Peter Kjellerstedt wrote:
>> -----Original Message-----
>> From: Khem Raj <raj.khem@gmail.com>
>> Sent: den 16 april 2020 17:49
>> To: Trevor Gamblin <trevor.gamblin@windriver.com>
>> Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembeded-devel
>> <openembedded-devel@lists.openembedded.org>
>> Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 ->
>> 2.4.43
>>
>> On Thu, Apr 16, 2020 at 6:21 AM Trevor Gamblin
>> <trevor.gamblin@windriver.com> wrote:
>>> On 4/15/20 7:02 PM, Peter Kjellerstedt wrote:
>>>>> -----Original Message-----
>>>>> From: openembedded-devel@lists.openembedded.org <openembedded-
>>>>> devel@lists.openembedded.org> On Behalf Of Trevor Gamblin
>>>>> Sent: den 15 april 2020 02:10
>>>>> To: Khem Raj <raj.khem@gmail.com>
>>>>> Cc: openembeded-devel <openembedded-devel@lists.openembedded.org>
>>>>> Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 ->
>>>>> 2.4.43
>>>>>
>>>>> On 4/14/20 6:38 PM, Khem Raj wrote:
>>>>>> apache-websockets does not like it
>>>>>>
>>>>>> https://errors.yoctoproject.org/Errors/Details/403771/
>>>>> Thanks, will take a look at it and re-send.
>>>> It appears they have added cross compilation support to apxs, but
>>>> it clashes with the changes done in OE to make it support cross
>>>> compilation. I tried to solve it by basically removing the OE
>>>> changes, but it was not as simple as that. In the end we worked
>>>> around it with this quick fix:
>>>>
>>>> apache_sysroot_preprocess_append() {
>>>>           # Disable apxs' built in cross compilation support and rely on what the
>>>>           # recipe sets up.
>>>>           sed -i 's!$destdir = .*!$destdir = "";!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/apxs
>>>> }
>>>>
>>>> However, I hope you can come up with a better solution that
>>>> actually makes use of what they did upstream and thus lessen
>>>> the changes that have to be applied by OE.
>>> Hi Peter,
>>>
>>> Ironically I'm seeing your email just as I submit a v2 reverting their
>>> cross-compilation changes. I wasn't able to find a better workaround
>>> than just reverting the destdir stuff that they added, but I did it via
>>> a patch file instead of within the recipe itself. I do like your
>>> approach better though, as it avoids adding a patch file that'll have
>>> to be maintained. Do you want to submit your fix in lieu of mine?
>> yeah I think revert is last resort. So lets see if we can fix it
> Well, my solution just disables the upstream change, so it doesn't
> really make use of it. I think a patch is better than the quick sed
> fix I did since it means there is context to the change. However,
> you don't need to revert all of the upstream change. Just commenting
> out these lines would do:
>
> my $ddi = rindex($0, "@exp_bindir@");
> if ($ddi >= 0) {
>    $destdir = substr($0, 0, $ddi);
> }
>
> That should improve the chance of the patch continuing to apply for
> future versions of apache.

That does work too, and it's a little less nuclear :)

I'll submit the v3 shortly.

>
> //Peter
>
>
> 

[-- Attachment #2: Type: text/html, Size: 5219 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-17 13:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-14 19:49 [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43 Trevor Gamblin
2020-04-14 22:38 ` [oe] " Khem Raj
2020-04-15  0:09   ` Trevor Gamblin
2020-04-15 23:02     ` Peter Kjellerstedt
2020-04-16 13:20       ` Trevor Gamblin
2020-04-16 15:48         ` Khem Raj
2020-04-17 10:46           ` Peter Kjellerstedt
2020-04-17 13:46             ` Trevor Gamblin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.