net-snmp: Backport fix for NETSNMP_NO_SYSTEMD typos
PATCH 1/1 net-snmp: Backport fix for NETSNMP_NO_SYSTEMD typos
Hi,
This patch fixes a net-snmp build failure for non-systemd builds [1]:
| .libs/snmpd.o: In function `main': | [...]/net-snmp/5.7.2-r0/net-snmp-5.7.2/agent/snmpd.c:459: undefined reference to `netsnmp_sd_listen_fds' | collect2: error: ld returned 1 exit status
It backports a typo fix from upstream:
commit 3692875172352f72cf3afd0d35f355e83d7e421b
Author: Bart Van Assche <[email protected]> Date: Mon Aug 8 18:22:08 2011 +0200
Fix typos introduced in commit 19499c3c90bf9d7b2b9e5d08baa26cc6bba28a11. Unbreaks the build.
Thomas
1. Previously reported here:
http://permalink.gmane.org/gmane.comp.handhelds.openembedded/57756
--- .../net-snmp/net-snmp/systemd-support.patch | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch +3 -2
@@ -7,6 +7,7 @@ fef6cddfdb94da1a6b1fb768af62918b80f11fd3 0641e43c694c485cbbffef0556efc4641bd3ff50 76530a89f1c8bbd0b63acce63e10d5d4812a1a16 (conflict resolved) bf108d7f1354f6276fc43c129963f2c49b9fc242 +3692875172352f72cf3afd0d35f355e83d7e421b 74412748067c685e1d8ab6ed3bcc3ca9c2774844 86132e3f1e6ef7b4e0b96d8fa24e37c81b71b0e0 63557cf8986a33dba1d4429b583a901361052c4f
@@ -89,10 +90,10 @@ index b177d5b..08bdfc7 100644 #endif #ifndef WIN32 -+#ifndef NETSNMP_NO_SYSYSTEMD ++#ifndef NETSNMP_NO_SYSTEMD + /* check if systemd has sockets for us and don't close them */ + prepared_sockets = netsnmp_sd_listen_fds(0); -+#endif /* NETSNMP_NO_SYSYSTEMD */ ++#endif /* NETSNMP_NO_SYSTEMD */ + /* * close all non-standard file descriptors we may have
Signature · 1 line
1.6.0.6
Hi Thomas,
Quoted 44 lines · On Friday 31 May 2013 23:24:23 Thomas Fitzsimmons wrote:
This patch fixes a net-snmp build failure for non-systemd builds [1]:
| .libs/snmpd.o: In function `main': | [...]/net-snmp/5.7.2-r0/net-snmp-5.7.2/agent/snmpd.c:459: undefined | reference to `netsnmp_sd_listen_fds' collect2: error: ld returned 1 exit | statusIt backports a typo fix from upstream:
commit
3692875172352f72cf3afd0d35f355e83d7e421bAuthor: Bart Van Assche <[email protected]> Date: Mon Aug 8 18:22:08 2011 +0200Fix typos introduced in commit 19499c3c90bf9d7b2b9e5d08baa26cc6bba28a11.Unbreaks the build.
Thomas
1. Previously reported here:
http://permalink.gmane.org/gmane.comp.handhelds.openembedded/57756Signed-off-by Thomas Fitzsimmons <[email protected]>--- .../net-snmp/net-snmp/systemd-support.patch | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)diff --git
a/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchb/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchindex 18955f2..b88531f 100644
---a/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch
+++b/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchmeta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch +1
-0@@ -7,6 +7,7 @@ fef6cddfdb94da1a6b1fb768af62918b80f11fd3 0641e43c694c485cbbffef0556efc4641bd3ff50 76530a89f1c8bbd0b63acce63e10d5d4812a1a16 (conflict resolved) bf108d7f1354f6276fc43c129963f2c49b9fc242 +3692875172352f72cf3afd0d35f355e83d7e421b 74412748067c685e1d8ab6ed3bcc3ca9c2774844 86132e3f1e6ef7b4e0b96d8fa24e37c81b71b0e0 63557cf8986a33dba1d4429b583a901361052c4f@@ -89,10 +90,10 @@ index b177d5b..08bdfc7 100644 #endif
meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch index b177d5b..08bdfc7 100644 · line 99
Quoted 10 lines
meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch +2
-2#ifndef WIN32 -+#ifndef NETSNMP_NO_SYSYSTEMD ++#ifndef NETSNMP_NO_SYSTEMD + /* check if systemd has sockets for us and don't close them */ + prepared_sockets = netsnmp_sd_listen_fds(0); -+#endif /* NETSNMP_NO_SYSYSTEMD */ ++#endif /* NETSNMP_NO_SYSTEMD */ + /* * close all non-standard file descriptors we may have
Could you please include a header with the description, Signed-off-by and "Upstream-Status: Backport" at the top of the inner patch itself? This makes things easier when upgrading the recipe in future.
Thanks,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Hi Paul,
Quoted 47 lines · Paul Eggleton
Hi Thomas,
Quoted 44 lines · On Friday 31 May 2013 23:24:23 Thomas Fitzsimmons wrote:
This patch fixes a net-snmp build failure for non-systemd builds [1]:
| .libs/snmpd.o: In function `main': | [...]/net-snmp/5.7.2-r0/net-snmp-5.7.2/agent/snmpd.c:459: undefined | reference to `netsnmp_sd_listen_fds' collect2: error: ld returned 1 exit | statusIt backports a typo fix from upstream:
commit
3692875172352f72cf3afd0d35f355e83d7e421bAuthor: Bart Van Assche <[email protected]> Date: Mon Aug 8 18:22:08 2011 +0200Fix typos introduced in commit 19499c3c90bf9d7b2b9e5d08baa26cc6bba28a11.Unbreaks the build.
Thomas
1. Previously reported here:
http://permalink.gmane.org/gmane.comp.handhelds.openembedded/57756Signed-off-by Thomas Fitzsimmons <[email protected]>--- .../net-snmp/net-snmp/systemd-support.patch | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)diff --git
a/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchb/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchindex 18955f2..b88531f 100644
---a/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch
+++b/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchmeta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch +1
-0@@ -7,6 +7,7 @@ fef6cddfdb94da1a6b1fb768af62918b80f11fd3 0641e43c694c485cbbffef0556efc4641bd3ff50 76530a89f1c8bbd0b63acce63e10d5d4812a1a16 (conflict resolved) bf108d7f1354f6276fc43c129963f2c49b9fc242 +3692875172352f72cf3afd0d35f355e83d7e421b 74412748067c685e1d8ab6ed3bcc3ca9c2774844 86132e3f1e6ef7b4e0b96d8fa24e37c81b71b0e0 63557cf8986a33dba1d4429b583a901361052c4f@@ -89,10 +90,10 @@ index b177d5b..08bdfc7 100644 #endif
Quoted 14 lines
meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch index b177d5b..08bdfc7 100644 · line 99
Quoted 10 lines
meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch +2
-2#ifndef WIN32 -+#ifndef NETSNMP_NO_SYSYSTEMD ++#ifndef NETSNMP_NO_SYSTEMD + /* check if systemd has sockets for us and don't close them */ + prepared_sockets = netsnmp_sd_listen_fds(0); -+#endif /* NETSNMP_NO_SYSYSTEMD */ ++#endif /* NETSNMP_NO_SYSTEMD */ + /* * close all non-standard file descriptors we may haveCould you please include a header with the description, Signed-off-by and "Upstream-Status: Backport" at the top of the inner patch itself? This makes things easier when upgrading the recipe in future.
This is actually a patch to an existing backport patch that has a header (but no signed-off-by):
Systemd support backported from the master branch as of 23/04/2012 (post 5.7.1, pre 5.8).
The following commits have been cherry-picked:
19499c3c90bf9d7b2b9e5d08baa26cc6bba28a11 fef6cddfdb94da1a6b1fb768af62918b80f11fd3 0641e43c694c485cbbffef0556efc4641bd3ff50 76530a89f1c8bbd0b63acce63e10d5d4812a1a16 (conflict resolved) bf108d7f1354f6276fc43c129963f2c49b9fc242 3692875172352f72cf3afd0d35f355e83d7e421b 74412748067c685e1d8ab6ed3bcc3ca9c2774844 86132e3f1e6ef7b4e0b96d8fa24e37c81b71b0e0 63557cf8986a33dba1d4429b583a901361052c4f
Upstream-Status: Backport
I updated the header with the extra commit I cherry-picked. How should I handle Signed-off-by in this situation?
Thomas
Quoted 83 lines · [Re: [oe] [meta-networking][PATCH] net-snmp: Backport fix for…
Hi Paul,
Quoted 47 lines · Paul Eggleton
Hi Thomas,
Quoted 44 lines · On Friday 31 May 2013 23:24:23 Thomas Fitzsimmons wrote:
This patch fixes a net-snmp build failure for non-systemd builds [1]:
| .libs/snmpd.o: In function `main': | [...]/net-snmp/5.7.2-r0/net-snmp-5.7.2/agent/snmpd.c:459: undefined | reference to `netsnmp_sd_listen_fds' collect2: error: ld returned 1 exit | statusIt backports a typo fix from upstream:
commit
3692875172352f72cf3afd0d35f355e83d7e421bAuthor: Bart Van Assche <[email protected]> Date: Mon Aug 8 18:22:08 2011 +0200Fix typos introduced in commit 19499c3c90bf9d7b2b9e5d08baa26cc6bba28a11.Unbreaks the build.
Thomas
1. Previously reported here:
http://permalink.gmane.org/gmane.comp.handhelds.openembedded/57756Signed-off-by Thomas Fitzsimmons <[email protected]>--- .../net-snmp/net-snmp/systemd-support.patch | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)diff --git
a/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchb/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchindex 18955f2..b88531f 100644
---a/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch
+++b/meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patchmeta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch +1
-0@@ -7,6 +7,7 @@ fef6cddfdb94da1a6b1fb768af62918b80f11fd3 0641e43c694c485cbbffef0556efc4641bd3ff50 76530a89f1c8bbd0b63acce63e10d5d4812a1a16 (conflict resolved) bf108d7f1354f6276fc43c129963f2c49b9fc242 +3692875172352f72cf3afd0d35f355e83d7e421b 74412748067c685e1d8ab6ed3bcc3ca9c2774844 86132e3f1e6ef7b4e0b96d8fa24e37c81b71b0e0 63557cf8986a33dba1d4429b583a901361052c4f@@ -89,10 +90,10 @@ index b177d5b..08bdfc7 100644 #endifQuoted 14 lines
meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch index b177d5b..08bdfc7 100644 · line 99
Quoted 10 lines
meta-networking/recipes-protocols/net-snmp/net-snmp/systemd-support.patch +2
-2#ifndef WIN32 -+#ifndef NETSNMP_NO_SYSYSTEMD ++#ifndef NETSNMP_NO_SYSTEMD + /* check if systemd has sockets for us and don't close them */ + prepared_sockets = netsnmp_sd_listen_fds(0); -+#endif /* NETSNMP_NO_SYSYSTEMD */ ++#endif /* NETSNMP_NO_SYSTEMD */ + /* * close all non-standard file descriptors we may haveCould you please include a header with the description, Signed-off-by and "Upstream-Status: Backport" at the top of the inner patch itself? This makes things easier when upgrading the recipe in future.
This is actually a patch to an existing backport patch that has a header (but no signed-off-by):
Systemd support backported from the master branch as of 23/04/2012 (post 5.7.1, pre 5.8).
The following commits have been cherry-picked:
19499c3c90bf9d7b2b9e5d08baa26cc6bba28a11fef6cddfdb94da1a6b1fb768af62918b80f11fd30641e43c694c485cbbffef0556efc4641bd3ff5076530a89f1c8bbd0b63acce63e10d5d4812a1a16(conflict resolved)bf108d7f1354f6276fc43c129963f2c49b9fc2423692875172352f72cf3afd0d35f355e83d7e421b74412748067c685e1d8ab6ed3bcc3ca9c277484486132e3f1e6ef7b4e0b96d8fa24e37c81b71b0e063557cf8986a33dba1d4429b583a901361052c4f
Quoted 4 lines
Upstream-Status: Backport
I updated the header with the extra commit I cherry-picked. How should I handle Signed-off-by in this situation?
It's possible (read: likely) that others have different ideas about it, but personally I like to see a sign-off from the person providing the patch, even if it's a simple back-port or a refresh caused by a cherry-pick. I don't read anything into "signed-off-by" except that it's a statement like "I know where this code came from and I am confident you can have it".
Signature · 2 lines
-Joe MacDonald. :wq