Skip to contentSkip to conversation

traceroute: Remove bashisms

PATCH In review Morgan Little 3 participants 9 messages Dec 21, 2012 – Jan 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 traceroute: Remove bashisms

---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
index 719d9fb..d855c67 100644
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8
 
 }
 
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 10 lines · Morgan Little
---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +0 -0
index 719d9fb..d855c67 100644

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 36

Quoted 9 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8

Thanks for quick reply and fix, but I think this should be:

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 38

Quoted 2 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -0
+    ln -s ${PN}.8 ${D}${mandir}/${PN}6.8
+    ln -s ${PN}.8 ${D}${mandir}/tcptraceroute.8

${D} path won't be valid on target and missing slash after mandir

And is there something referencing those man pages with different name? Or why are those symlinks provided?

Cheers,

#2 lore raw
Quoted 23 lines · Martin Jansa
Quoted 10 lines · Morgan Little
---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +0 -0
index 719d9fb..d855c67 100644

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 36

Quoted 9 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8

Thanks for quick reply and fix, but I think this should be:

Quoted 4 lines

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 38

Quoted 2 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -0
+    ln -s ${PN}.8 ${D}${mandir}/${PN}6.8
+    ln -s ${PN}.8 ${D}${mandir}/tcptraceroute.8

${D} path won't be valid on target and missing slash after mandir

It looks like it should be. Thank you for noticing that.

Quoted 3 lines

And is there something referencing those man pages with different name? Or why are those symlinks provided?

I provided them because I was basing the do_install step off of the .spec file the Fedora uses in their RPM file. It does a similar symlink step. I believe that is can be removed.

//Morgan

Quoted 7 lines

Cheers,

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 27 lines · Morgan
Quoted 26 lines · Martin Jansa
Quoted 10 lines · Morgan Little
---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +0 -0
index 719d9fb..d855c67 100644

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 36

Quoted 9 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8

Thanks for quick reply and fix, but I think this should be:

Quoted 2 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -0
+    ln -s ${PN}.8 ${D}${mandir}/${PN}6.8
+    ln -s ${PN}.8 ${D}${mandir}/tcptraceroute.8
Quoted 6 lines
Quoted 1 line

${D} path won't be valid on target and missing slash after mandir

It looks like it should be. Thank you for noticing that.

Quoted 3 lines

And is there something referencing those man pages with different name? Or why are those symlinks provided?

I provided them because I was basing the do_install step off of the .spec file the Fedora uses in their RPM file. It does a similar symlink step. I believe that is can be removed.

ping :)

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw
Quoted 28 lines · [Re: [oe] [meta-networking][PATCH] traceroute: Remove bashisms] On 13.01.09…
Quoted 27 lines · Morgan
Quoted 26 lines · Martin Jansa
Quoted 10 lines · Morgan Little
---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +0 -0
index 719d9fb..d855c67 100644

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 36

Quoted 9 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8

Thanks for quick reply and fix, but I think this should be:

Quoted 2 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -0
+    ln -s ${PN}.8 ${D}${mandir}/${PN}6.8
+    ln -s ${PN}.8 ${D}${mandir}/tcptraceroute.8
Quoted 8 lines
Quoted 6 lines
Quoted 1 line

${D} path won't be valid on target and missing slash after mandir

It looks like it should be. Thank you for noticing that.

Quoted 3 lines

And is there something referencing those man pages with different name? Or why are those symlinks provided?

I provided them because I was basing the do_install step off of the .spec file the Fedora uses in their RPM file. It does a similar symlink step. I believe that is can be removed.

ping :)

I think this belongs to me to finish up now. I plan to remove them. I've kept the thread in my inbox so hopefully I can cover all the comments on it.

Signature · 2 lines
-Joe MacDonald.
:wq
#5 lore raw
Quoted 35 lines · Joe MacDonald
Quoted 33 lines · [Re: [oe] [meta-networking][PATCH] traceroute: Remove bashisms] On 13.01.09…
Quoted 32 lines · Morgan
Quoted 23 lines · Martin Jansa
Quoted 10 lines · Morgan Little
---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +0 -0
index 719d9fb..d855c67 100644

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 36

Quoted 9 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8

Thanks for quick reply and fix, but I think this should be:

Quoted 4 lines

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 38

Quoted 2 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -0
+    ln -s ${PN}.8 ${D}${mandir}/${PN}6.8
+    ln -s ${PN}.8 ${D}${mandir}/tcptraceroute.8

${D} path won't be valid on target and missing slash after mandir

It looks like it should be. Thank you for noticing that.

Quoted 3 lines

And is there something referencing those man pages with different name? Or why are those symlinks provided?

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

I provided them because I was basing the do_install step off of the .spec file the Fedora uses in their RPM file. It does a similar symlink step. I believe that is can be removed.

ping :)

I think this belongs to me to finish up now. I plan to remove them. I've kept the thread in my inbox so hopefully I can cover all the comments on it.

ping2 :)

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#6 lore raw
In reply to Little, Morgan
Quoted 24 lines · Morgan
Quoted 23 lines · Martin Jansa
Quoted 10 lines · Morgan Little
---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +0 -0
index 719d9fb..d855c67 100644

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 36

Quoted 9 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8

Thanks for quick reply and fix, but I think this should be:

Quoted 5 lines
Quoted 4 lines

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 38

Quoted 2 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -0
+    ln -s ${PN}.8 ${D}${mandir}/${PN}6.8
+    ln -s ${PN}.8 ${D}${mandir}/tcptraceroute.8

${D} path won't be valid on target and missing slash after mandir

It looks like it should be. Thank you for noticing that.

Fixed. That one's easy.

Quoted 4 lines
Quoted 3 lines

And is there something referencing those man pages with different name? Or why are those symlinks provided?

I provided them because I was basing the do_install step off of the .spec file the Fedora uses in their RPM file. It does a similar symlink step. I believe that is can be removed.

So, as far as I can tell, the links are provided to support /etc/alternatives/ versions of the manpages in case you've got an alternative implementation of traceroute/traceroute6/etc. on your system. Unless you think the links are adding unnecessary clutter, I'm inclined to leave them even though I honestly have never installed an alternative traceroute and never looked into why I might want to.

-J.

Quoted 14 lines

//Morgan

Quoted 7 lines

Cheers,

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 2 lines
-Joe MacDonald.
:wq
#7 lore raw
Quoted 26 lines · Joe MacDonald
Quoted 24 lines · Morgan
Quoted 23 lines · Martin Jansa
Quoted 10 lines · Morgan Little
---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +0 -0
index 719d9fb..d855c67 100644

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 36

Quoted 9 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8

Thanks for quick reply and fix, but I think this should be:

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 38

Quoted 2 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -0
+    ln -s ${PN}.8 ${D}${mandir}/${PN}6.8
+    ln -s ${PN}.8 ${D}${mandir}/tcptraceroute.8

${D} path won't be valid on target and missing slash after mandir

It looks like it should be. Thank you for noticing that.

Fixed. That one's easy.

Great, thanks I'll reenable it in world build when it's pushed.

Quoted 11 lines
Quoted 4 lines
Quoted 3 lines

And is there something referencing those man pages with different name? Or why are those symlinks provided?

I provided them because I was basing the do_install step off of the .spec file the Fedora uses in their RPM file. It does a similar symlink step. I believe that is can be removed.

So, as far as I can tell, the links are provided to support /etc/alternatives/ versions of the manpages in case you've got an alternative implementation of traceroute/traceroute6/etc. on your system. Unless you think the links are adding unnecessary clutter, I'm inclined to leave them even though I honestly have never installed an alternative traceroute and never looked into why I might want to.

I don't mind if they stay. (I'm not using traceroute on my targets).

Quoted 27 lines

-J.

Quoted 14 lines

//Morgan

Quoted 7 lines

Cheers,

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 9 lines
-Joe MacDonald.
:wq



_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#8 lore raw
Quoted 30 lines · [Re: [oe] [meta-networking][PATCH] traceroute: Remove bashisms] On 13.01.18…
Quoted 29 lines · Joe MacDonald
Quoted 27 lines · Morgan
Quoted 26 lines · Martin Jansa
Quoted 10 lines · Morgan Little
---
 meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +0 -0
index 719d9fb..d855c67 100644

meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb do_install() { · line 36

Quoted 9 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -4
@@ -32,10 +32,8 @@ do_install() {
 
     install -d ${D}${mandir}
     install -p -m644 ${PN}/${PN}.8 ${D}${mandir}
-    pushd ${D}${mandir}
-    ln -s ${PN}.8 ${PN}6.8
-    ln -s ${PN}.8 tcptraceroute.8
-    popd
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}${PN}6.8
+    ln -s ${D}${mandir}${PN}.8 ${D}${mandir}tcptraceroute.8

Thanks for quick reply and fix, but I think this should be:

Quoted 2 lines
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +2 -0
+    ln -s ${PN}.8 ${D}${mandir}/${PN}6.8
+    ln -s ${PN}.8 ${D}${mandir}/tcptraceroute.8
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line

${D} path won't be valid on target and missing slash after mandir

It looks like it should be. Thank you for noticing that.

Fixed. That one's easy.

Great, thanks I'll reenable it in world build when it's pushed.

Just pushed. Thanks for the reminder, Martin.

-J.

Quoted 44 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

And is there something referencing those man pages with different name? Or why are those symlinks provided?

Quoted 8 lines
Quoted 1 line

I provided them because I was basing the do_install step off of the .spec file the Fedora uses in their RPM file. It does a similar symlink step. I believe that is can be removed.

So, as far as I can tell, the links are provided to support /etc/alternatives/ versions of the manpages in case you've got an alternative implementation of traceroute/traceroute6/etc. on your system. Unless you think the links are adding unnecessary clutter, I'm inclined to leave them even though I honestly have never installed an alternative traceroute and never looked into why I might want to.

I don't mind if they stay. (I'm not using traceroute on my targets).

Quoted 27 lines

-J.

Quoted 14 lines

//Morgan

Quoted 7 lines

Cheers,

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 9 lines
-Joe MacDonald.
:wq



_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 2 lines
-Joe MacDonald.
:wq