diff mbox

[01/10] package/libinput: bump version

Message ID c999e0a0cf43f65190bf74289b299b959557b0d0.1411232859.git.yann.morin.1998@free.fr
State Accepted
Headers show

Commit Message

Yann E. MORIN Sept. 20, 2014, 5:09 p.m. UTC
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 ...put-01-rename-log_msg-to-libinput_log_msg.patch | 54 +++++++++++++---------
 package/libinput/libinput.mk                       |  2 +-
 2 files changed, 32 insertions(+), 24 deletions(-)

Comments

Romain Naour Sept. 20, 2014, 5:25 p.m. UTC | #1
Hello Yann,

Le 20/09/2014 19:09, Yann E. MORIN a écrit :
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
>  ...put-01-rename-log_msg-to-libinput_log_msg.patch | 54 +++++++++++++---------
>  package/libinput/libinput.mk                       |  2 +-
>  2 files changed, 32 insertions(+), 24 deletions(-)
> 
> diff --git a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
> index c10d8af..2ada150 100644
> --- a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
> +++ b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
> @@ -9,6 +9,8 @@ of the log_msg() symbol.
>  http://autobuild.buildroot.net/results/c13/c133b7c706ee31302125df8ca94f4d0f0152c6c6/build-end.log
>  
>  Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> +[yann.morin.1998@free.fr: rebase on-top of 0.6.0]
> +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>  ---

I think this patch can be dropped with this new release.
The issue is normally fixed by the commit "Use -no-install instead of -static
for local noinst linking"

See: https://bugs.freedesktop.org/show_bug.cgi?id=82292
(the bug was reported by Vicente)

Best regards,
Romain Naour
Yann E. MORIN Sept. 20, 2014, 5:55 p.m. UTC | #2
Romain, All,

On 2014-09-20 19:25 +0200, Romain Naour spake thusly:
> Hello Yann,
> 
> Le 20/09/2014 19:09, Yann E. MORIN a écrit :
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > ---
> >  ...put-01-rename-log_msg-to-libinput_log_msg.patch | 54 +++++++++++++---------
> >  package/libinput/libinput.mk                       |  2 +-
> >  2 files changed, 32 insertions(+), 24 deletions(-)
> > 
> > diff --git a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
> > index c10d8af..2ada150 100644
> > --- a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
> > +++ b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
> > @@ -9,6 +9,8 @@ of the log_msg() symbol.
> >  http://autobuild.buildroot.net/results/c13/c133b7c706ee31302125df8ca94f4d0f0152c6c6/build-end.log
> >  
> >  Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> > +[yann.morin.1998@free.fr: rebase on-top of 0.6.0]
> > +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> >  ---
> 
> I think this patch can be dropped with this new release.
> The issue is normally fixed by the commit "Use -no-install instead of -static
> for local noinst linking"
> 
> See: https://bugs.freedesktop.org/show_bug.cgi?id=82292
> (the bug was reported by Vicente)

Yep, I saw that bug. And I pondered removing the patch.

However, I was not able to test a static-only build, so I can't say
whether that patch is still valid or not.

Also, that patch merely renames a function.

When/if I have some time around the WE, I'll test whether it is still
needed.

So, I decided it would be better to just refresh it for now. If you or
Vicente have some time to test the new libinput without that patch, feel
free to report! ;-)

Regards,
Yann E. MORIN.
Romain Naour Sept. 20, 2014, 8:14 p.m. UTC | #3
Yann,

Le 20/09/2014 19:55, Yann E. MORIN a écrit :
> Romain, All,
> 
> On 2014-09-20 19:25 +0200, Romain Naour spake thusly:
>> Hello Yann,
>>
>> Le 20/09/2014 19:09, Yann E. MORIN a écrit :
>>> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>>> ---
>>>  ...put-01-rename-log_msg-to-libinput_log_msg.patch | 54 +++++++++++++---------
>>>  package/libinput/libinput.mk                       |  2 +-
>>>  2 files changed, 32 insertions(+), 24 deletions(-)
>>>
>>> diff --git a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
>>> index c10d8af..2ada150 100644
>>> --- a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
>>> +++ b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
>>> @@ -9,6 +9,8 @@ of the log_msg() symbol.
>>>  http://autobuild.buildroot.net/results/c13/c133b7c706ee31302125df8ca94f4d0f0152c6c6/build-end.log
>>>  
>>>  Signed-off-by: Romain Naour <romain.naour@openwide.fr>
>>> +[yann.morin.1998@free.fr: rebase on-top of 0.6.0]
>>> +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>>>  ---
>>
>> I think this patch can be dropped with this new release.
>> The issue is normally fixed by the commit "Use -no-install instead of -static
>> for local noinst linking"
>>
>> See: https://bugs.freedesktop.org/show_bug.cgi?id=82292
>> (the bug was reported by Vicente)
> 
> Yep, I saw that bug. And I pondered removing the patch.
> 
> However, I was not able to test a static-only build, so I can't say
> whether that patch is still valid or not.
> 
> Also, that patch merely renames a function.
> 
> When/if I have some time around the WE, I'll test whether it is still
> needed.
> 
> So, I decided it would be better to just refresh it for now. If you or
> Vicente have some time to test the new libinput without that patch, feel
> free to report! ;-)
> 
No problem, I'll try to check that tonight or tomorrow afternoon.

Best regards,
Romain
Romain Naour Sept. 21, 2014, 4:45 p.m. UTC | #4
Hi Yann, all

Le 20/09/2014 22:14, Romain Naour a écrit :
> Yann,
> 
> Le 20/09/2014 19:55, Yann E. MORIN a écrit :
>> Romain, All,
>>
>> On 2014-09-20 19:25 +0200, Romain Naour spake thusly:
>>> Hello Yann,
>>>
>>> Le 20/09/2014 19:09, Yann E. MORIN a écrit :
>>>> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>>>> ---
>>>>  ...put-01-rename-log_msg-to-libinput_log_msg.patch | 54 +++++++++++++---------
>>>>  package/libinput/libinput.mk                       |  2 +-
>>>>  2 files changed, 32 insertions(+), 24 deletions(-)
>>>>
>>>> diff --git a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
>>>> index c10d8af..2ada150 100644
>>>> --- a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
>>>> +++ b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
>>>> @@ -9,6 +9,8 @@ of the log_msg() symbol.
>>>>  http://autobuild.buildroot.net/results/c13/c133b7c706ee31302125df8ca94f4d0f0152c6c6/build-end.log
>>>>  
>>>>  Signed-off-by: Romain Naour <romain.naour@openwide.fr>
>>>> +[yann.morin.1998@free.fr: rebase on-top of 0.6.0]
>>>> +Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
>>>>  ---
>>>
>>> I think this patch can be dropped with this new release.
>>> The issue is normally fixed by the commit "Use -no-install instead of -static
>>> for local noinst linking"
>>>
>>> See: https://bugs.freedesktop.org/show_bug.cgi?id=82292
>>> (the bug was reported by Vicente)
>>
>> Yep, I saw that bug. And I pondered removing the patch.
>>
>> However, I was not able to test a static-only build, so I can't say
>> whether that patch is still valid or not.
>>
>> Also, that patch merely renames a function.
>>
>> When/if I have some time around the WE, I'll test whether it is still
>> needed.
>>
>> So, I decided it would be better to just refresh it for now. If you or
>> Vicente have some time to test the new libinput without that patch, feel
>> free to report! ;-)
>>
> No problem, I'll try to check that tonight or tomorrow afternoon.
> 

libinput can't be selected on static-only case since it depends on a udev
provider (eudev or systemd) which require dynamic libraries support.

Also, libinput 0.6.0 no longer build by default the static libraries libinput.a.

So, this issue is fixed when systemd is used as udev provider:
http://autobuild.buildroot.net/results/8b6/8b60fdf4fdec834dc79f8dfc4fd050f763c83457/

Best regards,
Romain Naour
diff mbox

Patch

diff --git a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
index c10d8af..2ada150 100644
--- a/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
+++ b/package/libinput/libinput-01-rename-log_msg-to-libinput_log_msg.patch
@@ -9,6 +9,8 @@  of the log_msg() symbol.
 http://autobuild.buildroot.net/results/c13/c133b7c706ee31302125df8ca94f4d0f0152c6c6/build-end.log
 
 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
+[yann.morin.1998@free.fr: rebase on-top of 0.6.0]
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
 ---
  src/libinput-private.h | 14 +++++++-------
  src/libinput.c         |  2 +-
@@ -18,42 +20,48 @@  diff --git a/src/libinput-private.h b/src/libinput-private.h
 index f9d2f87..ac1e1c4 100644
 --- a/src/libinput-private.h
 +++ b/src/libinput-private.h
-@@ -81,15 +81,15 @@ typedef void (*libinput_source_dispatch_t)(void *data);
+@@ -116,15 +116,15 @@ typedef void (*libinput_source_dispatch_t)(void *data);
+ typedef void (*libinput_source_dispatch_t)(void *data);
  
- struct libinput_source;
  
--#define log_debug(...) log_msg(LIBINPUT_LOG_PRIORITY_DEBUG, __VA_ARGS__)
--#define log_info(...) log_msg(LIBINPUT_LOG_PRIORITY_INFO, __VA_ARGS__)
--#define log_error(...) log_msg(LIBINPUT_LOG_PRIORITY_ERROR, __VA_ARGS__)
--#define log_bug_kernel(...) log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "kernel bug: " __VA_ARGS__)
--#define log_bug_libinput(...) log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "libinput bug: " __VA_ARGS__);
--#define log_bug_client(...) log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "client bug: " __VA_ARGS__);
-+#define log_debug(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_DEBUG, __VA_ARGS__)
-+#define log_info(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_INFO, __VA_ARGS__)
-+#define log_error(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_ERROR, __VA_ARGS__)
-+#define log_bug_kernel(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "kernel bug: " __VA_ARGS__)
-+#define log_bug_libinput(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "libinput bug: " __VA_ARGS__);
-+#define log_bug_client(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "client bug: " __VA_ARGS__);
+-#define log_debug(li_, ...) log_msg((li_), LIBINPUT_LOG_PRIORITY_DEBUG, __VA_ARGS__)
+-#define log_info(li_, ...) log_msg((li_), LIBINPUT_LOG_PRIORITY_INFO, __VA_ARGS__)
+-#define log_error(li_, ...) log_msg((li_), LIBINPUT_LOG_PRIORITY_ERROR, __VA_ARGS__)
+-#define log_bug_kernel(li_, ...) log_msg((li_), LIBINPUT_LOG_PRIORITY_ERROR, "kernel bug: " __VA_ARGS__)
+-#define log_bug_libinput(li_, ...) log_msg((li_), LIBINPUT_LOG_PRIORITY_ERROR, "libinput bug: " __VA_ARGS__);
+-#define log_bug_client(li_, ...) log_msg((li_), LIBINPUT_LOG_PRIORITY_ERROR, "client bug: " __VA_ARGS__);
++#define log_debug(li_, ...) libinput_log_msg((li_), LIBINPUT_LOG_PRIORITY_DEBUG, __VA_ARGS__)
++#define log_info(li_, ...) libinput_log_msg((li_), LIBINPUT_LOG_PRIORITY_INFO, __VA_ARGS__)
++#define log_error(li_, ...) libinput_log_msg((li_), LIBINPUT_LOG_PRIORITY_ERROR, __VA_ARGS__)
++#define log_bug_kernel(li_, ...) libinput_log_msg((li_), LIBINPUT_LOG_PRIORITY_ERROR, "kernel bug: " __VA_ARGS__)
++#define log_bug_libinput(li_, ...) libinput_log_msg((li_), LIBINPUT_LOG_PRIORITY_ERROR, "libinput bug: " __VA_ARGS__);
++#define log_bug_client(li_, ...) libinput_log_msg((li_), LIBINPUT_LOG_PRIORITY_ERROR, "client bug: " __VA_ARGS__);
  
  void
--log_msg(enum libinput_log_priority priority, const char *format, ...);
-+libinput_log_msg(enum libinput_log_priority priority, const char *format, ...);
+-log_msg(struct libinput *libinput,
++libinput_log_msg(struct libinput *libinput,
+ 	enum libinput_log_priority priority,
+ 	const char *format, ...);
+ 
+ void
+-log_msg(struct libinput *libinput,
++libinput_log_msg(struct libinput *libinput,
+ 	enum libinput_log_priority priority,
+ 	const char *format, ...);
  
- int
- libinput_init(struct libinput *libinput,
 diff --git a/src/libinput.c b/src/libinput.c
 index eec9efb..4e3f6fa 100644
 --- a/src/libinput.c
 +++ b/src/libinput.c
 @@ -110,7 +110,7 @@ static struct log_data log_data = {
- };
+ }
  
  void
--log_msg(enum libinput_log_priority priority, const char *format, ...)
-+libinput_log_msg(enum libinput_log_priority priority, const char *format, ...)
+-log_msg(struct libinput *libinput,
++libinput_log_msg(struct libinput *libinput,
+ 	enum libinput_log_priority priority,
+ 	const char *format, ...)
  {
- 	va_list args;
- 
 -- 
 1.9.3
 
diff --git a/package/libinput/libinput.mk b/package/libinput/libinput.mk
index b52101a..345b3c3 100644
--- a/package/libinput/libinput.mk
+++ b/package/libinput/libinput.mk
@@ -4,7 +4,7 @@ 
 #
 ################################################################################
 
-LIBINPUT_VERSION = 0.3.0
+LIBINPUT_VERSION = 0.6.0
 LIBINPUT_SOURCE = libinput-$(LIBINPUT_VERSION).tar.xz
 LIBINPUT_SITE = http://www.freedesktop.org/software/libinput
 LIBINPUT_LICENSE = MIT