Skip to contentSkip to conversation

kexecboot: remove trailing slash in do_install

PATCH In review Andrea Adami 2 participants 3 messages Jul 31, 2014 – Aug 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexecboot: remove trailing slash in do_install

---
 meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb +1 -1
index d0176c5..1fb5f0d 100644
@@ -48,7 +48,7 @@ EXTRA_OECONF = "--enable-delay=2 --enable-evdev-rate=1000,250"
 
 do_install () {
     install -d ${D}${bindir}
-    install -m 0755 kexecboot ${D}${bindir}/
+    install -m 0755 kexecboot ${D}${bindir}
     install -d ${D}/proc
     install -d ${D}/mnt
     install -d ${D}/dev
Signature · 1 line
1.9.1
#1 lore raw
Quoted 11 lines · Andrea Adami
---
  meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb +0 -0
index d0176c5..1fb5f0d 100644

meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb EXTRA_OECONF = "--enable-delay=2 --enable-evdev-rate=1000,250" · line 54

Quoted 8 lines
meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb +1 -1
@@ -48,7 +48,7 @@ EXTRA_OECONF = "--enable-delay=2 --enable-evdev-rate=1000,250"
 
  do_install () {
      install -d ${D}${bindir}
-    install -m 0755 kexecboot ${D}${bindir}/
+    install -m 0755 kexecboot ${D}${bindir}
      install -d ${D}/proc
      install -d ${D}/mnt
      install -d ${D}/dev

What is the reason for this change. Using XXX/ is quite common in OE recipes.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#2 lore raw
Quoted 15 lines · Gary Thomas
Quoted 14 lines · Andrea Adami
---
  meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb +0 -1
index d0176c5..1fb5f0d 100644
@@ -48,7 +48,7 @@ EXTRA_OECONF = "--enable-delay=2
--enable-evdev-rate=1000,250"
 
Quoted 12 lines

meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb EXTRA_OECONF = "--enable-delay=2 --enable-evdev-rate=1000,250" · line 54

Quoted 8 lines
meta-initramfs/recipes-bsp/kexecboot/kexecboot_0.6.bb +1 -1
  do_install () {
      install -d ${D}${bindir}
-    install -m 0755 kexecboot ${D}${bindir}/
+    install -m 0755 kexecboot ${D}${bindir}
      install -d ${D}/proc
      install -d ${D}/mnt
      install -d ${D}/dev

What is the reason for this change. Using XXX/ is quite common in OE recipes.

Hi Gary,

thanks for reviewing, I recently spotted this slash and imho is just one extra unnecessary char.

About the 'best practice' here, the POSIX synopsis seems not describing an ending slash for <target>
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cp.html

Cheers

Andrea

Quoted 10 lines

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel