eudev: build with older kernels.
PATCH 1/1 eudev: build with older kernels.
Add missing defines so eudev builds for older kernels such as 2.6
--- package/eudev/0002-missing-defines-for-old-kernels.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/eudev/0002-missing-defines-for-old-kernels.patch
package/eudev/0002-missing-defines-for-old-kernels.patch new file +16 -0
@@ -0,0 +1,16 @@ +--- a/src/udev/udev-builtin-input_id.c 2016-12-23 16:43:55.398985478 +0000 ++++ b/src/udev/udev-builtin-input_id.c 2016-12-23 16:48:40.907182701 +0000 +@@ -33,6 +33,13 @@ + #include "udev.h" + #include "util.h" + ++#ifndef BTN_TRIGGER_HAPPY ++#define BTN_TRIGGER_HAPPY 0x2c0 ++#endif ++#ifndef INPUT_PROP_MAX ++#define INPUT_PROP_MAX 0x1f ++#endif ++ + /* we must use this kernel-compatible implementation */ + #define BITS_PER_LONG (sizeof(unsigned long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
Signature · 1 line
2.11.0
PATCH 1/1 eudev: build with older kernels.
Hi Gustavo,
Le 29/12/2016 ? 15:46, Gustavo Sverzut Barbieri a ?crit :
Quoted 1 line
Add missing defines so eudev builds for older kernels such as 2.6
Can you summit this patch to eudev upstream ?
Quoted 13 lines
Signed-off-by Gustavo Sverzut Barbieri <[email protected]>--- package/eudev/0002-missing-defines-for-old-kernels.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/eudev/0002-missing-defines-for-old-kernels.patchpackage/eudev/0002-missing-defines-for-old-kernels.patch new file +0
-0
package/eudev/0002-missing-defines-for-old-kernels.patch line 2
Quoted 2 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +2
-0@@ -0,0 +1,16 @@ +--- a/src/udev/udev-builtin-input_id.c 2016-12-23 16:43:55.398985478 +0000 ++++ b/src/udev/udev-builtin-input_id.c 2016-12-23 16:48:40.907182701 +0000
missing patch description and SoB line.
I guess it should be the same as above.
package/eudev/0002-missing-defines-for-old-kernels.patch line 12
Quoted 10 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +10
-0+@@ -33,6 +33,13 @@ + #include "udev.h" + #include "util.h" + ++#ifndef BTN_TRIGGER_HAPPY ++#define BTN_TRIGGER_HAPPY 0x2c0 ++#endif ++#ifndef INPUT_PROP_MAX ++#define INPUT_PROP_MAX 0x1f ++#endif
Otherwise these values seems correct.
Best regards,
Romain
Quoted 5 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +4
-0++ + /* we must use this kernel-compatible implementation */ + #define BITS_PER_LONG (sizeof(unsigned long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
PATCH 1/1 eudev: build with older kernels.
Quoted 6 lines · Romain Naour
Hi Gustavo,
Le 29/12/2016 ? 15:46, Gustavo Sverzut Barbieri a ?crit :
Quoted 1 line
Add missing defines so eudev builds for older kernels such as 2.6
Can you summit this patch to eudev upstream ?
I will try, but not sure they bother with ancient 2.6 kernels like the one I need :-D
Quoted 6 lines
Quoted 6 lines
Signed-off-by Gustavo Sverzut Barbieri <[email protected]>--- package/eudev/0002-missing-defines-for-old-kernels.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/eudev/0002-missing-defines-for-old-kernels.patch
Quoted 11 lines
package/eudev/0002-missing-defines-for-old-kernels.patch line 2
Quoted 8 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +2
-0@@ -0,0 +1,16 @@ +--- a/src/udev/udev-builtin-input_id.c 2016-12-23 16:43:55.398985478 +0000 ++++ b/src/udev/udev-builtin-input_id.c 2016-12-23 16:48:40.907182701 +0000missing patch description and SoB line.
I guess it should be the same as above.
will submit a new one with these
Quoted 23 lines
package/eudev/0002-missing-defines-for-old-kernels.patch line 12
Quoted 10 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +10
-0+@@ -33,6 +33,13 @@ + #include "udev.h" + #include "util.h" + ++#ifndef BTN_TRIGGER_HAPPY ++#define BTN_TRIGGER_HAPPY 0x2c0 ++#endif ++#ifndef INPUT_PROP_MAX ++#define INPUT_PROP_MAX 0x1f ++#endifOtherwise these values seems correct.
Reviewed-by Romain Naour <[email protected]>Best regards,
RomainQuoted 5 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +4
-0++ + /* we must use this kernel-compatible implementation */ + #define BITS_PER_LONG (sizeof(unsigned long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
Signature · 6 lines
Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN, GTalk, FaceTime: barbieri at gmail.com Skype: gsbarbieri Mobile: +55 (16) 99354-9890
PATCH 1/1 eudev: build with older kernels.
Le 29/12/2016 ? 17:01, Gustavo Sverzut Barbieri a ?crit :
Quoted 10 lines · Romain Naour
Quoted 6 lines
Hi Gustavo,
Le 29/12/2016 ? 15:46, Gustavo Sverzut Barbieri a ?crit :
Quoted 1 line
Add missing defines so eudev builds for older kernels such as 2.6
Can you summit this patch to eudev upstream ?
I will try, but not sure they bother with ancient 2.6 kernels like the one I need :-D
Well, if it's just two defines...
Quoted 20 lines
Quoted 8 lines
Quoted 8 lines
Signed-off-by Gustavo Sverzut Barbieri <[email protected]>--- package/eudev/0002-missing-defines-for-old-kernels.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/eudev/0002-missing-defines-for-old-kernels.patchQuoted 11 lines
package/eudev/0002-missing-defines-for-old-kernels.patch line 2
Quoted 8 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +2
-0@@ -0,0 +1,16 @@ +--- a/src/udev/udev-builtin-input_id.c 2016-12-23 16:43:55.398985478 +0000 ++++ b/src/udev/udev-builtin-input_id.c 2016-12-23 16:48:40.907182701 +0000missing patch description and SoB line.
I guess it should be the same as above.
Quoted 1 line
will submit a new one with these
ok
Quoted 13 lines
Quoted 13 lines
Quoted 12 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +10
-0+@@ -33,6 +33,13 @@ + #include "udev.h" + #include "util.h" + ++#ifndef BTN_TRIGGER_HAPPY ++#define BTN_TRIGGER_HAPPY 0x2c0 ++#endif ++#ifndef INPUT_PROP_MAX ++#define INPUT_PROP_MAX 0x1f ++#endif
Quoted 2 lines
Quoted 2 lines
Otherwise these values seems correct.
Reviewed-by Romain Naour <[email protected]>
Don't forget my tag in v2 ;)
Romain
Quoted 13 lines
Quoted 10 lines
Best regards,
RomainQuoted 5 lines
package/eudev/0002-missing-defines-for-old-kernels.patch new file +4
-0++ + /* we must use this kernel-compatible implementation */ + #define BITS_PER_LONG (sizeof(unsigned long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
PATCH 1/4 eudev: build with older kernels.
In reply to Romain NaourAdd missing defines so eudev builds for older kernels such as 2.6
--- .../0002-missing-defines-for-old-kernels.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/eudev/0002-missing-defines-for-old-kernels.patch
package/eudev/0002-missing-defines-for-old-kernels.patch new file +22 -0
@@ -0,0 +1,22 @@ +build with older kernels. + +Add missing defines so eudev builds for older kernels such as 2.6 + +Signed-off-by: Gustavo Sverzut Barbieri <[email protected]> + +--- a/src/udev/udev-builtin-input_id.c 2016-12-23 16:43:55.398985478 +0000 ++++ b/src/udev/udev-builtin-input_id.c 2016-12-23 16:48:40.907182701 +0000 +@@ -33,6 +33,13 @@ + #include "udev.h" + #include "util.h" + ++#ifndef BTN_TRIGGER_HAPPY ++#define BTN_TRIGGER_HAPPY 0x2c0 ++#endif ++#ifndef INPUT_PROP_MAX ++#define INPUT_PROP_MAX 0x1f ++#endif ++ + /* we must use this kernel-compatible implementation */ + #define BITS_PER_LONG (sizeof(unsigned long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
Signature · 1 line
2.11.0
PATCH 1/1 eudev: build with older kernels.
In reply to Romain NaourQuoted 5 lines · Romain Naour
Le 29/12/2016 ? 17:01, Gustavo Sverzut Barbieri a ?crit :
Quoted 4 lines · Romain Naour
Quoted 3 lines
Hi Gustavo,
Le 29/12/2016 ? 15:46, Gustavo Sverzut Barbieri a ?crit :
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Add missing defines so eudev builds for older kernels such as 2.6
Can you summit this patch to eudev upstream ?
I will try, but not sure they bother with ancient 2.6 kernels like the one I need :-D
Well, if it's just two defines...
done https://github.com/gentoo/eudev/pull/139
if you want to track
Signature · 6 lines
Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN, GTalk, FaceTime: barbieri at gmail.com Skype: gsbarbieri Mobile: +55 (16) 99354-9890
PATCH 1/4 eudev: build with older kernels.
In reply to Gustavo Sverzut Barbieridamn, ignore the 1/4 of the subject... I have other 3 pending patches and forgot to disable numbers, those others will be submitted later.
Quoted 40 lines · Gustavo Sverzut Barbieri
Add missing defines so eudev builds for older kernels such as 2.6
Signed-off-by Gustavo Sverzut Barbieri <[email protected]>Reviewed-by Romain Naour <[email protected]>--- .../0002-missing-defines-for-old-kernels.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 package/eudev/0002-missing-defines-for-old-kernels.patchpackage/eudev/0002-missing-defines-for-old-kernels.patch new file +22
-1@@ -0,0 +1,22 @@ +build with older kernels. + +Add missing defines so eudev builds for older kernels such as 2.6 + +Signed-off-by: Gustavo Sverzut Barbieri <[email protected]> + +--- a/src/udev/udev-builtin-input_id.c 2016-12-23 16:43:55.398985478 +0000 ++++ b/src/udev/udev-builtin-input_id.c 2016-12-23 16:48:40.907182701 +0000 +@@ -33,6 +33,13 @@ + #include "udev.h" + #include "util.h" + ++#ifndef BTN_TRIGGER_HAPPY ++#define BTN_TRIGGER_HAPPY 0x2c0 ++#endif ++#ifndef INPUT_PROP_MAX ++#define INPUT_PROP_MAX 0x1f ++#endif ++ + /* we must use this kernel-compatible implementation */ + #define BITS_PER_LONG (sizeof(unsigned long) * 8) + #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1) --2.11.0
Signature · 6 lines
Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN, GTalk, FaceTime: barbieri at gmail.com Skype: gsbarbieri Mobile: +55 (16) 99354-9890
PATCH 1/1 eudev: build with older kernels.
In reply to Gustavo Sverzut Barbierithey suggested to add to src/shared/missing.h, that I did and indeed looks better.
I'll send a new patch with that as well.
Quoted 26 lines · Gustavo Sverzut Barbieri
Quoted 5 lines · Romain Naour
Le 29/12/2016 ? 17:01, Gustavo Sverzut Barbieri a ?crit :
Quoted 4 lines · Romain Naour
Quoted 3 lines
Hi Gustavo,
Le 29/12/2016 ? 15:46, Gustavo Sverzut Barbieri a ?crit :
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Add missing defines so eudev builds for older kernels such as 2.6
Can you summit this patch to eudev upstream ?
I will try, but not sure they bother with ancient 2.6 kernels like the one I need :-D
Well, if it's just two defines...
done https://github.com/gentoo/eudev/pull/139
if you want to track
--
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN, GTalk, FaceTime: barbieri at gmail.com
Skype: gsbarbieri
Mobile: +55 (16) 99354-9890
Signature · 6 lines
Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN, GTalk, FaceTime: barbieri at gmail.com Skype: gsbarbieri Mobile: +55 (16) 99354-9890
PATCH 1/1 eudev: build with older kernels.
Add missing defines so eudev builds for older kernels such as 2.6
--- .../0002-missing-defines-for-old-kernels.patch | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 package/eudev/0002-missing-defines-for-old-kernels.patch
package/eudev/0002-missing-defines-for-old-kernels.patch new file +44 -0
@@ -0,0 +1,44 @@ +From c0f63850ad29ec978d070a08b816dc2bfca337e3 Mon Sep 17 00:00:00 2001 +From: Gustavo Sverzut Barbieri <[email protected]> +Date: Fri, 30 Dec 2016 11:28:41 -0200 +Subject: [PATCH] udev-builtin-input_id.c: add missing kernel header defines. + +Add missing defines so eudev builds for older kernels such as 2.6 + +Signed-off-by: Gustavo Sverzut Barbieri <[email protected]> +--- + src/shared/missing.h | 8 ++++++++ + src/udev/udev-builtin-input_id.c | 1 + + 2 files changed, 9 insertions(+) + +diff --git a/src/shared/missing.h b/src/shared/missing.h +index 5ad599795..bebbb42be 100644 +--- a/src/shared/missing.h ++++ b/src/shared/missing.h +@@ -171,3 +171,11 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle + (char *)memcpy(__new, __old, __len); \ + }) + #endif ++ ++#ifndef BTN_TRIGGER_HAPPY ++#define BTN_TRIGGER_HAPPY 0x2c0 ++#endif ++ ++#ifndef INPUT_PROP_MAX ++#define INPUT_PROP_MAX 0x1f ++#endif +diff --git a/src/udev/udev-builtin-input_id.c b/src/udev/udev-builtin-input_id.c +index b14190e42..ca545be5d 100644 +--- a/src/udev/udev-builtin-input_id.c ++++ b/src/udev/udev-builtin-input_id.c +@@ -32,6 +32,7 @@ + + #include "udev.h" + #include "util.h" ++#include "missing.h" + + /* we must use this kernel-compatible implementation */ + #define BITS_PER_LONG (sizeof(unsigned long) * 8) +-- +2.11.0 +
Signature · 1 line
2.11.0
PATCH 1/1 eudev: build with older kernels.
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Sverzut Barbieri <[email protected]> writes:
Add missing defines so eudev builds for older kernels such as 2.6
Signed-off-by Gustavo Sverzut Barbieri <[email protected]>Reviewed-by Romain Naour <[email protected]>
Committed after extending the commit message with details about when these symbols were added and the link to the upstream patch submission, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 eudev: build with older kernels.
thanks!
whenever upstream https://github.com/gentoo/eudev/pull/139 is merged I'll let you know, but if the patch conflicts then it was already applied upstream and you can drop it.
Quoted 12 lines · Peter Korsgaard
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Sverzut Barbieri <[email protected]> writes:
Add missing defines so eudev builds for older kernels such as 2.6
Signed-off-by Gustavo Sverzut Barbieri <[email protected]>Reviewed-by Romain Naour <[email protected]>Committed after extending the commit message with details about when these symbols were added and the link to the upstream patch submission, thanks.
--
Bye, Peter Korsgaard
Signature · 6 lines
Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN, GTalk, FaceTime: barbieri at gmail.com Skype: gsbarbieri Mobile: +55 (16) 99354-9890
PATCH 1/1 eudev: build with older kernels.
it's merged upstream, should be in the next release
https://github.com/gentoo/eudev/pull/139
Quoted 29 lines · Gustavo Sverzut Barbieri
thanks!
whenever upstream https://github.com/gentoo/eudev/pull/139 is merged I'll let you know, but if the patch conflicts then it was already applied upstream and you can drop it.
Quoted 6 lines · Peter Korsgaard
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Sverzut Barbieri <[email protected]> writes:
Add missing defines so eudev builds for older kernels such as 2.6
Signed-off-by Gustavo Sverzut Barbieri <[email protected]>Reviewed-by Romain Naour <[email protected]>Quoted 6 lines
Committed after extending the commit message with details about when these symbols were added and the link to the upstream patch submission, thanks.
--
Bye, Peter Korsgaard--
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN, GTalk, FaceTime: barbieri at gmail.com
Skype: gsbarbieri
Mobile: +55 (16) 99354-9890
Signature · 6 lines
Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN, GTalk, FaceTime: barbieri at gmail.com Skype: gsbarbieri Mobile: +55 (16) 99354-9890
PATCH 1/1 eudev: build with older kernels.
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Sverzut Barbieri <[email protected]> writes:
it's merged upstream, should be in the next release
https://github.com/gentoo/eudev/pull/139
Great, thanks!
Signature · 1 line
Bye, Peter Korsgaard