apache2: upgrade 2.4.41 -> 2.4.43
PATCH 1/1 apache2: upgrade 2.4.41 -> 2.4.43
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
---
.../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%)meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +3 -3
@@ -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}"
Signature · 1 line
2.17.1
apache-websockets does not like it
https://errors.yoctoproject.org/Errors/Details/403771/
Quoted 43 lines · Trevor Gamblin
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-1934See:
https://nvd.nist.gov/vuln/detail/CVE-2020-1927
https://nvd.nist.gov/vuln/detail/CVE-2020-1934Signed-off-by Trevor Gamblin <[email protected]>--- .../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%)meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +3
-4@@ -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
Quoted 1 line · Khem Raj
apache-websockets does not like it
Thanks, will take a look at it and re-send.
Quoted 47 lines
https://errors.yoctoproject.org/Errors/Details/403771/
Quoted 42 lines · Trevor Gamblin
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-1934See:
https://nvd.nist.gov/vuln/detail/CVE-2020-1927
https://nvd.nist.gov/vuln/detail/CVE-2020-1934Signed-off-by Trevor Gamblin <[email protected]>--- .../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%)
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +3
-4@@ -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
Quoted 9 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Trevor Gamblin
Sent: den 15 april 2020 02:10
To: Khem Raj <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43
Quoted 6 lines
Quoted 3 lines · Khem Raj
apache-websockets does not like it
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
Quoted 51 lines
Quoted 10 lines
Quoted 8 lines · Trevor Gamblin
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-1934Quoted 7 lines
Quoted 7 lines
See:
https://nvd.nist.gov/vuln/detail/CVE-2020-1927
https://nvd.nist.gov/vuln/detail/CVE-2020-1934Signed-off-by Trevor Gamblin <[email protected]>--- .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb} | 6 +++---
Quoted 2 lines
Quoted 2 lines
1 file changed, 3 insertions(+), 3 deletions(-)rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb =>
apache2_2.4.43.bb} (97%)
Quoted 2 lines
Review
Quoted 2 lines
(quoted diff) +0
-0b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
Quoted 11 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 27
Quoted 11 lines
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 indexa34734c20..2fff153fc100644meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-1@@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \ file://volatiles.04_apache2 \ " -LIC_FILES_CHKSUM ="file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 29
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-2-SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e" -SRC_URI[sha256sum] ="
133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"Quoted 1 line
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 27
Quoted 1 line
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +1
-0+LIC_FILES_CHKSUM ="file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 29
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +2
-0+SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64" +SRC_URI[sha256sum] ="
a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"Quoted 7 lines
Quoted 7 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-1S = "${WORKDIR}/httpd-${PV}" --2.17.1
Quoted 26 lines · Peter Kjellerstedt
Quoted 9 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Trevor Gamblin
Sent: den 15 april 2020 02:10
To: Khem Raj <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43Quoted 5 lines
Quoted 3 lines · Khem Raj
apache-websockets does not like it
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
}
Quoted 3 lines
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
Quoted 52 lines
//Peter
Quoted 49 lines
Quoted 10 lines
Quoted 8 lines · Trevor Gamblin
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-1934Quoted 7 lines
Quoted 7 lines
See:
https://nvd.nist.gov/vuln/detail/CVE-2020-1927
https://nvd.nist.gov/vuln/detail/CVE-2020-1934Signed-off-by Trevor Gamblin <[email protected]>--- .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb} | 6 +++---
Quoted 2 lines
Quoted 2 lines
1 file changed, 3 insertions(+), 3 deletions(-)rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb =>
apache2_2.4.43.bb} (97%)
Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
Quoted 11 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 27
Quoted 11 lines
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 indexa34734c20..2fff153fc100644meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-1@@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \ file://volatiles.04_apache2 \ " -LIC_FILES_CHKSUM ="file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 29
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-2-SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e" -SRC_URI[sha256sum] ="
133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"Quoted 1 line
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 27
Quoted 1 line
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +1
-0+LIC_FILES_CHKSUM ="file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 29
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +2
-0+SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64" +SRC_URI[sha256sum] ="
a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"Quoted 6 lines
Quoted 6 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-1S = "${WORKDIR}/httpd-${PV}" --2.17.1
Quoted 33 lines · Trevor Gamblin
Quoted 26 lines · Peter Kjellerstedt
Quoted 9 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Trevor Gamblin
Sent: den 15 april 2020 02:10
To: Khem Raj <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43Quoted 5 lines
Quoted 3 lines · Khem Raj
apache-websockets does not like it
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
}Quoted 3 lines
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.
Quoted 9 lines
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
Quoted 56 lines
Cheers,
Trevor
Quoted 52 lines
//Peter
Quoted 49 lines
Quoted 10 lines
Quoted 8 lines · Trevor Gamblin
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-1934Quoted 7 lines
Quoted 7 lines
See:
https://nvd.nist.gov/vuln/detail/CVE-2020-1927
https://nvd.nist.gov/vuln/detail/CVE-2020-1934Signed-off-by Trevor Gamblin <[email protected]>--- .../apache2/{apache2_2.4.41.bb => apache2_2.4.43.bb} | 6 +++---
Quoted 2 lines
Quoted 2 lines
1 file changed, 3 insertions(+), 3 deletions(-)rename meta-webserver/recipes-httpd/apache2/{apache2_2.4.41.bb =>
apache2_2.4.43.bb} (97%)
Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0b/meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb
Quoted 11 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 27
Quoted 11 lines
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 indexa34734c20..2fff153fc100644meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-1@@ -24,9 +24,9 @@ SRC_URI_append_class-target = " \ file://volatiles.04_apache2 \ " -LIC_FILES_CHKSUM ="file://LICENSE;md5=d52d0fd0bc788f068e647116c01ddfcd"
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 29
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-2-SRC_URI[md5sum] = "dfc674f8f454e3bc2d4ccd73ad3b5f1e" -SRC_URI[sha256sum] ="
133d48298fe5315ae9366a0ec66282fa4040efa5d566174481077ade7d18ea40"Quoted 1 line
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 27
Quoted 1 line
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +1
-0+LIC_FILES_CHKSUM ="file://LICENSE;md5=bddeddfac80b2c9a882241d008bb41c3"
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb SRC_URI_append_class-target = " \ · line 29
Quoted 2 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +2
-0+SRC_URI[md5sum] = "791c986b1e70fe61eb44060aacc89a64" +SRC_URI[sha256sum] ="
a497652ab3fc81318cdc2a203090a999150d86461acff97c1065dc910fe10f43"Quoted 6 lines
Quoted 6 lines
meta-webserver/recipes-httpd/apache2/apache2_2.4.43.bb renamed from meta-webserver/recipes-httpd/apache2/apache2_2.4.41.bb +0
-1S = "${WORKDIR}/httpd-${PV}" --2.17.1
Quoted 47 lines
-----Original Message-----
From: Khem Raj <[email protected]>
Sent: den 16 april 2020 17:49
To: Trevor Gamblin <[email protected]>
Cc: Peter Kjellerstedt <[email protected]>; openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43Quoted 36 lines · Trevor Gamblin
Quoted 28 lines · Peter Kjellerstedt
Quoted 9 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Trevor Gamblin
Sent: den 15 april 2020 02:10
To: Khem Raj <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43Quoted 6 lines
Quoted 3 lines · Khem Raj
apache-websockets does not like it
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
}Quoted 3 lines
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,
Quoted 8 lines
Quoted 6 lines
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
Quoted 56 lines · Peter Kjellerstedt
Quoted 43 lines
-----Original Message-----
From: Khem Raj <[email protected]>
Sent: den 16 april 2020 17:49
To: Trevor Gamblin <[email protected]>
Cc: Peter Kjellerstedt <[email protected]>; openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43Quoted 32 lines · Trevor Gamblin
Quoted 26 lines · Peter Kjellerstedt
Quoted 9 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Trevor Gamblin
Sent: den 15 april 2020 02:10
To: Khem Raj <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-webserver][PATCH] apache2: upgrade 2.4.41 -> 2.4.43Quoted 5 lines
Quoted 3 lines · Khem Raj
apache-websockets does not like it
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
}Quoted 3 lines
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,
Quoted 7 lines
Quoted 6 lines
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:
Quoted 7 lines
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.
Quoted 5 lines
//Peter