* [PATCH] wpa-supplicant: don't break the DBus service file
@ 2012-10-03 12:12 Ross Burton
2012-10-03 14:49 ` Darren Hart
0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2012-10-03 12:12 UTC (permalink / raw)
To: openembedded-core
The recipe exports $BINDIR as ${sbindir} and the build system uses this when
writing the DBus service file, so sedding it and replacing $base_sbindir with
$sbindir (/sbin and /usr/sbin) isn't useful when it ends up as
/usr/usr/sbin/wpa_supplicant.
[YOCTO: #3202]
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc | 1 -
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bb | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
index 873e923..485a2dd 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
@@ -61,7 +61,6 @@ do_install () {
install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
install -d ${D}/${datadir}/dbus-1/system-services
install -m 644 ${S}/dbus/*.service ${D}/${datadir}/dbus-1/system-services
- sed -i -e s:${base_sbindir}:${sbindir}:g ${D}/${datadir}/dbus-1/system-services/*.service
install -d ${D}/etc/default/volatiles
install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bb
index a60cd86..36ee25c 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bb
@@ -1,6 +1,6 @@
require wpa-supplicant-1.0.inc
-PR = "r1"
+PR = "r2"
SRC_URI[md5sum] = "8650f6aa23646ef634402552d0669640"
SRC_URI[sha256sum] = "91d41d473a5aafa2e25dd6577ebda975c4d4a3188850a53e31feaf7c04482b9c"
--
1.7.10
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] wpa-supplicant: don't break the DBus service file
2012-10-03 12:12 [PATCH] wpa-supplicant: don't break the DBus service file Ross Burton
@ 2012-10-03 14:49 ` Darren Hart
2012-10-03 14:57 ` Burton, Ross
2012-10-03 15:03 ` Darren Hart
0 siblings, 2 replies; 4+ messages in thread
From: Darren Hart @ 2012-10-03 14:49 UTC (permalink / raw)
To: Ross Burton; +Cc: openembedded-core
On 10/03/2012 05:12 AM, Ross Burton wrote:
> The recipe exports $BINDIR as ${sbindir} and the build system uses this when
> writing the DBus service file, so sedding it and replacing $base_sbindir with
> $sbindir (/sbin and /usr/sbin) isn't useful when it ends up as
> /usr/usr/sbin/wpa_supplicant.
>
> [YOCTO: #3202]
>
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
> meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc | 1 -
> meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bb | 2 +-
> 2 files changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
> index 873e923..485a2dd 100644
> --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
> +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
> @@ -61,7 +61,6 @@ do_install () {
> install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
> install -d ${D}/${datadir}/dbus-1/system-services
> install -m 644 ${S}/dbus/*.service ${D}/${datadir}/dbus-1/system-services
> - sed -i -e s:${base_sbindir}:${sbindir}:g ${D}/${datadir}/dbus-1/system-services/*.service
Huh... I didn't detect this as a difference from 0.7 to 1.0, so I wonder
why 0.7 worked.
But I don't wonder too much - thanks for the fix!
Building and testing now.
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] wpa-supplicant: don't break the DBus service file
2012-10-03 14:49 ` Darren Hart
@ 2012-10-03 14:57 ` Burton, Ross
2012-10-03 15:03 ` Darren Hart
1 sibling, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2012-10-03 14:57 UTC (permalink / raw)
To: Darren Hart; +Cc: openembedded-core
On 3 October 2012 15:49, Darren Hart <dvhart@linux.intel.com> wrote:
> Huh... I didn't detect this as a difference from 0.7 to 1.0, so I wonder
> why 0.7 worked.
>
> But I don't wonder too much - thanks for the fix!
It wasn't a difference, I suspect that the 0.7 source had some quirks.
If there's some weird case with non-standard directory layouts I'm
not understanding it. Either way that sed with the 1.0 source and
standard layout *will* corrupt the paths, so it's best gone.
Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] wpa-supplicant: don't break the DBus service file
2012-10-03 14:49 ` Darren Hart
2012-10-03 14:57 ` Burton, Ross
@ 2012-10-03 15:03 ` Darren Hart
1 sibling, 0 replies; 4+ messages in thread
From: Darren Hart @ 2012-10-03 15:03 UTC (permalink / raw)
To: Ross Burton; +Cc: openembedded-core
On 10/03/2012 07:49 AM, Darren Hart wrote:
> On 10/03/2012 05:12 AM, Ross Burton wrote:
>> The recipe exports $BINDIR as ${sbindir} and the build system uses this when
>> writing the DBus service file, so sedding it and replacing $base_sbindir with
>> $sbindir (/sbin and /usr/sbin) isn't useful when it ends up as
>> /usr/usr/sbin/wpa_supplicant.
>>
>> [YOCTO: #3202]
>>
>> Signed-off-by: Ross Burton <ross.burton@intel.com>
Applied to master, built for FRI2, mkefidisk'd it, booted, associated
with home network, ifdown eth0, pingtest to google. Perfect.
Tested-by: Darren Hart <dvhart@linux.intel.com>
>> ---
>> meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc | 1 -
>> meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_1.0.bb | 2 +-
>> 2 files changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
>> index 873e923..485a2dd 100644
>> --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
>> +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-1.0.inc
>> @@ -61,7 +61,6 @@ do_install () {
>> install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
>> install -d ${D}/${datadir}/dbus-1/system-services
>> install -m 644 ${S}/dbus/*.service ${D}/${datadir}/dbus-1/system-services
>> - sed -i -e s:${base_sbindir}:${sbindir}:g ${D}/${datadir}/dbus-1/system-services/*.service
>
> Huh... I didn't detect this as a difference from 0.7 to 1.0, so I wonder
> why 0.7 worked.
>
> But I don't wonder too much - thanks for the fix!
>
> Building and testing now.
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-03 15:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03 12:12 [PATCH] wpa-supplicant: don't break the DBus service file Ross Burton
2012-10-03 14:49 ` Darren Hart
2012-10-03 14:57 ` Burton, Ross
2012-10-03 15:03 ` Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox