* [Buildroot] [PATCH v2 1/2] dhcpdump: Fix patch file name
@ 2014-08-05 12:12 Benoît Thébaudeau
2014-08-05 12:12 ` [Buildroot] [PATCH v2 2/2] dhcpdump: Fix strsep() feature test Benoît Thébaudeau
2014-08-07 20:22 ` [Buildroot] [PATCH v2 1/2] dhcpdump: Fix patch file name Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Benoît Thébaudeau @ 2014-08-05 12:12 UTC (permalink / raw)
To: buildroot
Use the naming convention for patches, which is:
<packagename>-<number>-<description>.patch
Signed-off-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
---
Changes in v2: New patch
---
...on-bsd-structures.patch => dhcpdump-0001-use-non-bsd-structures.patch} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename package/dhcpdump/{dhcpdump-1.8-use-non-bsd-structures.patch => dhcpdump-0001-use-non-bsd-structures.patch} (100%)
diff --git a/package/dhcpdump/dhcpdump-1.8-use-non-bsd-structures.patch b/package/dhcpdump/dhcpdump-0001-use-non-bsd-structures.patch
similarity index 100%
rename from package/dhcpdump/dhcpdump-1.8-use-non-bsd-structures.patch
rename to package/dhcpdump/dhcpdump-0001-use-non-bsd-structures.patch
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2 2/2] dhcpdump: Fix strsep() feature test
2014-08-05 12:12 [Buildroot] [PATCH v2 1/2] dhcpdump: Fix patch file name Benoît Thébaudeau
@ 2014-08-05 12:12 ` Benoît Thébaudeau
2014-08-07 20:22 ` [Buildroot] [PATCH v2 1/2] dhcpdump: Fix patch file name Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Benoît Thébaudeau @ 2014-08-05 12:12 UTC (permalink / raw)
To: buildroot
Use the official _BSD_SOURCE feature test macro instead of the meaningless
HAVE_STRSEP macro in order to detect the availability of strsep().
This allows toolchains supporting strsep() to use it instead of the custom
implementation from dhcpdump, which also avoids the following error with some
toolchains:
In file included from dhcpdump.c:30:0:
dhcpdump.c: At top level:
strsep.c:65:23: error: register name not specified for ?delim?
register const char *delim;
^
Signed-off-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
---
Changes in v2:
- Fix patch file name according to patch naming convention.
- Add description and Sob line to patch.
---
.../dhcpdump-0002-fix-strsep-feature-test.patch | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 package/dhcpdump/dhcpdump-0002-fix-strsep-feature-test.patch
diff --git a/package/dhcpdump/dhcpdump-0002-fix-strsep-feature-test.patch b/package/dhcpdump/dhcpdump-0002-fix-strsep-feature-test.patch
new file mode 100644
index 0000000..06bab94
--- /dev/null
+++ b/package/dhcpdump/dhcpdump-0002-fix-strsep-feature-test.patch
@@ -0,0 +1,27 @@
+Use the official _BSD_SOURCE feature test macro instead of the meaningless
+HAVE_STRSEP macro in order to detect the availability of strsep().
+
+This allows toolchains supporting strsep() to use it instead of the custom
+implementation from dhcpdump, which also avoids the following error with some
+toolchains:
+
+ In file included from dhcpdump.c:30:0:
+ dhcpdump.c: At top level:
+ strsep.c:65:23: error: register name not specified for ?delim?
+ register const char *delim;
+ ^
+
+Signed-off-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
+
+diff -Nrdup dhcpdump-1.8.orig/dhcpdump.c dhcpdump-1.8/dhcpdump.c
+--- dhcpdump-1.8.orig/dhcpdump.c 2008-06-24 05:26:52.000000000 +0200
++++ dhcpdump-1.8/dhcpdump.c 2011-05-31 19:22:15.987388498 +0200
+@@ -26,7 +26,7 @@
+ #include <regex.h>
+ #include "dhcp_options.h"
+
+-#ifndef HAVE_STRSEP
++#ifndef _BSD_SOURCE
+ #include "strsep.c"
+ #endif
+
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2 1/2] dhcpdump: Fix patch file name
2014-08-05 12:12 [Buildroot] [PATCH v2 1/2] dhcpdump: Fix patch file name Benoît Thébaudeau
2014-08-05 12:12 ` [Buildroot] [PATCH v2 2/2] dhcpdump: Fix strsep() feature test Benoît Thébaudeau
@ 2014-08-07 20:22 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-08-07 20:22 UTC (permalink / raw)
To: buildroot
Dear Beno?t Th?baudeau,
On Tue, 5 Aug 2014 14:12:28 +0200, Beno?t Th?baudeau wrote:
> Use the naming convention for patches, which is:
>
> <packagename>-<number>-<description>.patch
>
> Signed-off-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
>
> ---
Both patches applied, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-07 20:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-05 12:12 [Buildroot] [PATCH v2 1/2] dhcpdump: Fix patch file name Benoît Thébaudeau
2014-08-05 12:12 ` [Buildroot] [PATCH v2 2/2] dhcpdump: Fix strsep() feature test Benoît Thébaudeau
2014-08-07 20:22 ` [Buildroot] [PATCH v2 1/2] dhcpdump: Fix patch file name Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox