* [PATCH] wpa-supplicant: fix breakage during rebuild
@ 2012-03-02 19:58 Steve Sakoman
2012-03-02 22:36 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Steve Sakoman @ 2012-03-02 19:58 UTC (permalink / raw)
To: openembedded-core; +Cc: Steve Sakoman
Install phase currently edits files in $S with sed. This causes breakage
if install is run a second time (due to sstate hash rebuild for example)
The result is hidden build breakage, in particular
/usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service now contains:
Exec=/usr/usr/sbin/wpa_supplicant -u
rather than:
Exec=/usr/sbin/wpa_supplicant -u
This patch does the sed edit after the files are copied to $D, which should be safe.
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../wpa-supplicant/wpa-supplicant-0.7.inc | 2 +-
.../wpa-supplicant/wpa-supplicant_0.7.3.bb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
index 99317e4..539ab8c 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
@@ -58,8 +58,8 @@ do_install () {
install -d ${D}/${sysconfdir}/dbus-1/system.d
install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
install -d ${D}/${datadir}/dbus-1/system-services
- sed -i -e s:${base_sbindir}:${sbindir}:g ${S}/dbus/*.service
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_0.7.3.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bb
index 49f5482..c607fad 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_0.7.3.bb
@@ -1,6 +1,6 @@
require wpa-supplicant-0.7.inc
-PR = "r6"
+PR = "r7"
SRC_URI[md5sum] = "f516f191384a9a546e3f5145c08addda"
SRC_URI[sha256sum] = "d0cd50caa85346ccc376dcda5ed3c258eef19a93b3cade39d25760118ad59443"
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] wpa-supplicant: fix breakage during rebuild
2012-03-02 19:58 [PATCH] wpa-supplicant: fix breakage during rebuild Steve Sakoman
@ 2012-03-02 22:36 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-03-02 22:36 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Steve Sakoman
On Fri, 2012-03-02 at 11:58 -0800, Steve Sakoman wrote:
> Install phase currently edits files in $S with sed. This causes breakage
> if install is run a second time (due to sstate hash rebuild for example)
>
> The result is hidden build breakage, in particular
> /usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service now contains:
>
> Exec=/usr/usr/sbin/wpa_supplicant -u
>
> rather than:
>
> Exec=/usr/sbin/wpa_supplicant -u
>
> This patch does the sed edit after the files are copied to $D, which should be safe.
>
> Signed-off-by: Steve Sakoman <steve@sakoman.com>
> ---
> .../wpa-supplicant/wpa-supplicant-0.7.inc | 2 +-
> .../wpa-supplicant/wpa-supplicant_0.7.3.bb | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-02 22:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 19:58 [PATCH] wpa-supplicant: fix breakage during rebuild Steve Sakoman
2012-03-02 22:36 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox