All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013
@ 2013-01-15 17:13 Stefan Hajnoczi
  2013-01-15 17:13 ` [Qemu-devel] [PATCH 1/3] Add libcacard/trace/generated-tracers.c to .gitignore Stefan Hajnoczi
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2013-01-15 17:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi

Trivial patches for QEMU 1.4.

The following changes since commit cf7c3f0cb5a7129f57fa9e69d410d6a05031988c:

  virtio-9p: fix compilation error. (2013-01-14 18:52:39 -0600)

are available in the git repository at:

  git://github.com/stefanha/qemu.git trivial-patches

for you to fetch changes up to ecbe251fa0eb4905c4a82c887e37057243b9fbad:

  configure: try pkg-config for curses (2013-01-15 18:09:01 +0100)

----------------------------------------------------------------
Alex Rozenman (1):
      Add libcacard/trace/generated-tracers.c to .gitignore

Andreas Färber (1):
      qom: Make object_resolve_path_component() path argument const

Vadim Evard (1):
      configure: try pkg-config for curses

 .gitignore           | 1 +
 configure            | 5 ++++-
 include/qom/object.h | 2 +-
 qom/object.c         | 2 +-
 4 files changed, 7 insertions(+), 3 deletions(-)

-- 
1.8.0.2

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH 1/3] Add libcacard/trace/generated-tracers.c to .gitignore
  2013-01-15 17:13 [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013 Stefan Hajnoczi
@ 2013-01-15 17:13 ` Stefan Hajnoczi
  2013-01-15 17:13 ` [Qemu-devel] [PATCH 2/3] qom: Make object_resolve_path_component() path argument const Stefan Hajnoczi
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2013-01-15 17:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi, Alex Rozenman

From: Alex Rozenman <Alex_Rozenman@mentor.com>

Signed-off-by: Alex Rozenman <Alex_Rozenman@mentor.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index 5fea65d..53fe9c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@ trace/generated-tracers.h
 trace/generated-tracers.c
 trace/generated-tracers-dtrace.h
 trace/generated-tracers-dtrace.dtrace
+libcacard/trace/generated-tracers.c
 *-timestamp
 *-softmmu
 *-darwin-user
-- 
1.8.0.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH 2/3] qom: Make object_resolve_path_component() path argument const
  2013-01-15 17:13 [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013 Stefan Hajnoczi
  2013-01-15 17:13 ` [Qemu-devel] [PATCH 1/3] Add libcacard/trace/generated-tracers.c to .gitignore Stefan Hajnoczi
@ 2013-01-15 17:13 ` Stefan Hajnoczi
  2013-01-15 17:13 ` [Qemu-devel] [PATCH 3/3] configure: try pkg-config for curses Stefan Hajnoczi
  2013-01-16  1:18 ` [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013 Anthony Liguori
  3 siblings, 0 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2013-01-15 17:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Andreas Färber, Stefan Hajnoczi

From: Andreas Färber <afaerber@suse.de>

A usage with a hardcoded partial path such as

  object_resolve_path_component(obj, "foo")

is totally valid but currently leads to a compilation error. Fix this.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 include/qom/object.h | 2 +-
 qom/object.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/qom/object.h b/include/qom/object.h
index d43b289..1ef2f0e 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -900,7 +900,7 @@ Object *object_resolve_path_type(const char *path, const char *typename,
  *
  * Returns: The resolved object or NULL on path lookup failure.
  */
-Object *object_resolve_path_component(Object *parent, gchar *part);
+Object *object_resolve_path_component(Object *parent, const gchar *part);
 
 /**
  * object_property_add_child:
diff --git a/qom/object.c b/qom/object.c
index 351b88c..03e6f24 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1017,7 +1017,7 @@ gchar *object_get_canonical_path(Object *obj)
     return newpath;
 }
 
-Object *object_resolve_path_component(Object *parent, gchar *part)
+Object *object_resolve_path_component(Object *parent, const gchar *part)
 {
     ObjectProperty *prop = object_property_find(parent, part, NULL);
     if (prop == NULL) {
-- 
1.8.0.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PATCH 3/3] configure: try pkg-config for curses
  2013-01-15 17:13 [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013 Stefan Hajnoczi
  2013-01-15 17:13 ` [Qemu-devel] [PATCH 1/3] Add libcacard/trace/generated-tracers.c to .gitignore Stefan Hajnoczi
  2013-01-15 17:13 ` [Qemu-devel] [PATCH 2/3] qom: Make object_resolve_path_component() path argument const Stefan Hajnoczi
@ 2013-01-15 17:13 ` Stefan Hajnoczi
  2013-01-15 22:57   ` Anthony Liguori
  2013-01-16  1:18 ` [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013 Anthony Liguori
  3 siblings, 1 reply; 8+ messages in thread
From: Stefan Hajnoczi @ 2013-01-15 17:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Vadim Evard, Stefan Hajnoczi

From: Vadim Evard <v.e.evard@gmail.com>

Static linkikng against ncurses may require explicit -ltinfo.
In case -lcurses and -lncurses both didn't work give pkg-config a
chance.

Fixes #1094786 for me.

Signed-off-by: Vadim Evard <v.e.evard@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 configure | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index c908f66..40473a9 100755
--- a/configure
+++ b/configure
@@ -2039,7 +2039,7 @@ fi
 if test "$mingw32" = "yes" ; then
     curses_list="-lpdcurses"
 else
-    curses_list="-lncurses -lcurses"
+    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses)"
 fi
 
 if test "$curses" != "no" ; then
@@ -2052,13 +2052,16 @@ int main(void) {
   return s != 0;
 }
 EOF
+  IFS=:
   for curses_lib in $curses_list; do
+    unset IFS
     if compile_prog "" "$curses_lib" ; then
       curses_found=yes
       libs_softmmu="$curses_lib $libs_softmmu"
       break
     fi
   done
+  unset IFS
   if test "$curses_found" = "yes" ; then
     curses=yes
   else
-- 
1.8.0.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH 3/3] configure: try pkg-config for curses
  2013-01-15 17:13 ` [Qemu-devel] [PATCH 3/3] configure: try pkg-config for curses Stefan Hajnoczi
@ 2013-01-15 22:57   ` Anthony Liguori
  2013-01-15 23:34     ` [Qemu-devel] [PATCH 3/3 v2] " Vadim Evard
  0 siblings, 1 reply; 8+ messages in thread
From: Anthony Liguori @ 2013-01-15 22:57 UTC (permalink / raw)
  To: Stefan Hajnoczi, qemu-devel; +Cc: Vadim Evard

Stefan Hajnoczi <stefanha@redhat.com> writes:

> From: Vadim Evard <v.e.evard@gmail.com>
>
> Static linkikng against ncurses may require explicit -ltinfo.
> In case -lcurses and -lncurses both didn't work give pkg-config a
> chance.
>
> Fixes #1094786 for me.
>
> Signed-off-by: Vadim Evard <v.e.evard@gmail.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
>  configure | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index c908f66..40473a9 100755
> --- a/configure
> +++ b/configure
> @@ -2039,7 +2039,7 @@ fi
>  if test "$mingw32" = "yes" ; then
>      curses_list="-lpdcurses"
>  else
> -    curses_list="-lncurses -lcurses"
> +    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses)"

Please fix this as a follow up but this is sloppy.

pkg-config spews stuff to stderr when a package isn't found so this ends
up outputting junk in the configure if ncurses isn't found.

Regards,

Anthony Liguori

>  fi
>  
>  if test "$curses" != "no" ; then
> @@ -2052,13 +2052,16 @@ int main(void) {
>    return s != 0;
>  }
>  EOF
> +  IFS=:
>    for curses_lib in $curses_list; do
> +    unset IFS
>      if compile_prog "" "$curses_lib" ; then
>        curses_found=yes
>        libs_softmmu="$curses_lib $libs_softmmu"
>        break
>      fi
>    done
> +  unset IFS
>    if test "$curses_found" = "yes" ; then
>      curses=yes
>    else
> -- 
> 1.8.0.2

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH 3/3 v2] configure: try pkg-config for curses
  2013-01-15 22:57   ` Anthony Liguori
@ 2013-01-15 23:34     ` Vadim Evard
  2013-01-15 23:39       ` Anthony Liguori
  0 siblings, 1 reply; 8+ messages in thread
From: Vadim Evard @ 2013-01-15 23:34 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi

Static linkikng against ncurses may require explicit -ltinfo.
In case -lcurses and -lncurses both didn't work give pkg-config a
chance.

Fixes #1094786 for me.

Signed-off-by: Vadim Evard <v.e.evard@gmail.com>
Signed-off-by: Stefan Hajnoczi<stefanha@redhat.com>
---
 configure |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index c908f66..477c4e0 100755
--- a/configure
+++ b/configure
@@ -2039,7 +2039,7 @@ fi
 if test "$mingw32" = "yes" ; then
     curses_list="-lpdcurses"
 else
-    curses_list="-lncurses -lcurses"
+    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)"
 fi

 if test "$curses" != "no" ; then
@@ -2052,13 +2052,16 @@ int main(void) {
   return s != 0;
 }
 EOF
+  IFS=:
   for curses_lib in $curses_list; do
+    unset IFS
     if compile_prog "" "$curses_lib" ; then
       curses_found=yes
       libs_softmmu="$curses_lib $libs_softmmu"
       break
     fi
   done
+  unset IFS
   if test "$curses_found" = "yes" ; then
     curses=yes
   else
-- 
1.7.10.4



On 16.01.2013 02:57, Anthony Liguori wrote:
> Stefan Hajnoczi<stefanha@redhat.com>  writes:
>
>> From: Vadim Evard<v.e.evard@gmail.com>
>>
>> Static linkikng against ncurses may require explicit -ltinfo.
>> In case -lcurses and -lncurses both didn't work give pkg-config a
>> chance.
>>
>> Fixes #1094786 for me.
>>
>> Signed-off-by: Vadim Evard<v.e.evard@gmail.com>
>> Signed-off-by: Stefan Hajnoczi<stefanha@redhat.com>
>> ---
>>   configure | 5 ++++-
>>   1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/configure b/configure
>> index c908f66..40473a9 100755
>> --- a/configure
>> +++ b/configure
>> @@ -2039,7 +2039,7 @@ fi
>>   if test "$mingw32" = "yes" ; then
>>       curses_list="-lpdcurses"
>>   else
>> -    curses_list="-lncurses -lcurses"
>> +    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses)"
>
> Please fix this as a follow up but this is sloppy.
>
> pkg-config spews stuff to stderr when a package isn't found so this ends
> up outputting junk in the configure if ncurses isn't found.
>
> Regards,
>
> Anthony Liguori
>
>>   fi
>>
>>   if test "$curses" != "no" ; then
>> @@ -2052,13 +2052,16 @@ int main(void) {
>>     return s != 0;
>>   }
>>   EOF
>> +  IFS=:
>>     for curses_lib in $curses_list; do
>> +    unset IFS
>>       if compile_prog "" "$curses_lib" ; then
>>         curses_found=yes
>>         libs_softmmu="$curses_lib $libs_softmmu"
>>         break
>>       fi
>>     done
>> +  unset IFS
>>     if test "$curses_found" = "yes" ; then
>>       curses=yes
>>     else
>> --
>> 1.8.0.2
>

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PATCH 3/3 v2] configure: try pkg-config for curses
  2013-01-15 23:34     ` [Qemu-devel] [PATCH 3/3 v2] " Vadim Evard
@ 2013-01-15 23:39       ` Anthony Liguori
  0 siblings, 0 replies; 8+ messages in thread
From: Anthony Liguori @ 2013-01-15 23:39 UTC (permalink / raw)
  To: Vadim Evard; +Cc: qemu-devel, Stefan Hajnoczi

Vadim Evard <v.e.evard@gmail.com> writes:

> Static linkikng against ncurses may require explicit -ltinfo.
> In case -lcurses and -lncurses both didn't work give pkg-config a
> chance.
>
> Fixes #1094786 for me.
>
> Signed-off-by: Vadim Evard <v.e.evard@gmail.com>
> Signed-off-by: Stefan Hajnoczi<stefanha@redhat.com>

The original patch is already in master so you'll need to send an
incremental one.

Regards,

Anthony Liguori

> ---
>  configure |    5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index c908f66..477c4e0 100755
> --- a/configure
> +++ b/configure
> @@ -2039,7 +2039,7 @@ fi
>  if test "$mingw32" = "yes" ; then
>      curses_list="-lpdcurses"
>  else
> -    curses_list="-lncurses -lcurses"
> +    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)"
>  fi
>
>  if test "$curses" != "no" ; then
> @@ -2052,13 +2052,16 @@ int main(void) {
>    return s != 0;
>  }
>  EOF
> +  IFS=:
>    for curses_lib in $curses_list; do
> +    unset IFS
>      if compile_prog "" "$curses_lib" ; then
>        curses_found=yes
>        libs_softmmu="$curses_lib $libs_softmmu"
>        break
>      fi
>    done
> +  unset IFS
>    if test "$curses_found" = "yes" ; then
>      curses=yes
>    else
> -- 
> 1.7.10.4
>
>
>
> On 16.01.2013 02:57, Anthony Liguori wrote:
>> Stefan Hajnoczi<stefanha@redhat.com>  writes:
>>
>>> From: Vadim Evard<v.e.evard@gmail.com>
>>>
>>> Static linkikng against ncurses may require explicit -ltinfo.
>>> In case -lcurses and -lncurses both didn't work give pkg-config a
>>> chance.
>>>
>>> Fixes #1094786 for me.
>>>
>>> Signed-off-by: Vadim Evard<v.e.evard@gmail.com>
>>> Signed-off-by: Stefan Hajnoczi<stefanha@redhat.com>
>>> ---
>>>   configure | 5 ++++-
>>>   1 file changed, 4 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/configure b/configure
>>> index c908f66..40473a9 100755
>>> --- a/configure
>>> +++ b/configure
>>> @@ -2039,7 +2039,7 @@ fi
>>>   if test "$mingw32" = "yes" ; then
>>>       curses_list="-lpdcurses"
>>>   else
>>> -    curses_list="-lncurses -lcurses"
>>> +    curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses)"
>>
>> Please fix this as a follow up but this is sloppy.
>>
>> pkg-config spews stuff to stderr when a package isn't found so this ends
>> up outputting junk in the configure if ncurses isn't found.
>>
>> Regards,
>>
>> Anthony Liguori
>>
>>>   fi
>>>
>>>   if test "$curses" != "no" ; then
>>> @@ -2052,13 +2052,16 @@ int main(void) {
>>>     return s != 0;
>>>   }
>>>   EOF
>>> +  IFS=:
>>>     for curses_lib in $curses_list; do
>>> +    unset IFS
>>>       if compile_prog "" "$curses_lib" ; then
>>>         curses_found=yes
>>>         libs_softmmu="$curses_lib $libs_softmmu"
>>>         break
>>>       fi
>>>     done
>>> +  unset IFS
>>>     if test "$curses_found" = "yes" ; then
>>>       curses=yes
>>>     else
>>> --
>>> 1.8.0.2
>>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013
  2013-01-15 17:13 [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013 Stefan Hajnoczi
                   ` (2 preceding siblings ...)
  2013-01-15 17:13 ` [Qemu-devel] [PATCH 3/3] configure: try pkg-config for curses Stefan Hajnoczi
@ 2013-01-16  1:18 ` Anthony Liguori
  3 siblings, 0 replies; 8+ messages in thread
From: Anthony Liguori @ 2013-01-16  1:18 UTC (permalink / raw)
  To: Stefan Hajnoczi, qemu-devel; +Cc: Anthony Liguori

Pulled, thanks.

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-01-16  1:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-15 17:13 [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013 Stefan Hajnoczi
2013-01-15 17:13 ` [Qemu-devel] [PATCH 1/3] Add libcacard/trace/generated-tracers.c to .gitignore Stefan Hajnoczi
2013-01-15 17:13 ` [Qemu-devel] [PATCH 2/3] qom: Make object_resolve_path_component() path argument const Stefan Hajnoczi
2013-01-15 17:13 ` [Qemu-devel] [PATCH 3/3] configure: try pkg-config for curses Stefan Hajnoczi
2013-01-15 22:57   ` Anthony Liguori
2013-01-15 23:34     ` [Qemu-devel] [PATCH 3/3 v2] " Vadim Evard
2013-01-15 23:39       ` Anthony Liguori
2013-01-16  1:18 ` [Qemu-devel] [PULL 0/3] Trivial patches for 12 to 15 January 2013 Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.