All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libpciaccess: add dependency on hwdata
@ 2018-01-28 23:52 Carlos Santos
  2018-03-29 14:05 ` Peter Korsgaard
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Santos @ 2018-01-28 23:52 UTC (permalink / raw)
  To: buildroot

libpciaccess requires /usr/share/hwdata/pci.ids (or pci.ids.gz, if
compiled with zlib support). That file is provided by the hwdata
package, so add it as a run-time dependency.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
 package/libpciaccess/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/libpciaccess/Config.in b/package/libpciaccess/Config.in
index 6cc983f577..381383e1f9 100644
--- a/package/libpciaccess/Config.in
+++ b/package/libpciaccess/Config.in
@@ -1,4 +1,6 @@
 config BR2_PACKAGE_LIBPCIACCESS
 	bool "libpciaccess"
+	select BR2_PACKAGE_HWDATA
+	select BR2_PACKAGE_HWDATA_PCI_IDS
 	help
 	  X.Org libpciaccess
-- 
2.14.3

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

* [Buildroot] [PATCH] libpciaccess: add dependency on hwdata
  2018-01-28 23:52 [Buildroot] [PATCH] libpciaccess: add dependency on hwdata Carlos Santos
@ 2018-03-29 14:05 ` Peter Korsgaard
  2018-03-29 16:41   ` Carlos Santos
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2018-03-29 14:05 UTC (permalink / raw)
  To: buildroot

>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:

 > libpciaccess requires /usr/share/hwdata/pci.ids (or pci.ids.gz, if
 > compiled with zlib support). That file is provided by the hwdata
 > package, so add it as a run-time dependency.

 > Signed-off-by: Carlos Santos <casantos@datacom.ind.br>

Is this really a hard dependency? Looking at src/common_device_name.c,
this seems to only be used in populate_vendor(), which just returns
without error if the file cannot be opened.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] libpciaccess: add dependency on hwdata
  2018-03-29 14:05 ` Peter Korsgaard
@ 2018-03-29 16:41   ` Carlos Santos
  2018-03-29 17:52     ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Santos @ 2018-03-29 16:41 UTC (permalink / raw)
  To: buildroot

> From: "Peter Korsgaard" <peter@korsgaard.com>
> To: "Carlos Santos" <casantos@datacom.ind.br>
> Cc: "buildroot" <buildroot@buildroot.org>, "Bernd Kuhls" <bernd.kuhls@t-online.de>
> Sent: Thursday, March 29, 2018 11:05:17 AM
> Subject: Re: [PATCH] libpciaccess: add dependency on hwdata

>>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:
> 
> > libpciaccess requires /usr/share/hwdata/pci.ids (or pci.ids.gz, if
> > compiled with zlib support). That file is provided by the hwdata
> > package, so add it as a run-time dependency.
> 
> > Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
> 
> Is this really a hard dependency? Looking at src/common_device_name.c,
> this seems to only be used in populate_vendor(), which just returns
> without error if the file cannot be opened.
> 
> --
> Bye, Peter Korsgaard

It is required by libvirt[1] to show device names when we use virtual
machine manager to add hardware via PCI passthrough, otherwise only
the PCI bus information (slot, port, function) is shown.

1. https://patchwork.ozlabs.org/patch/841613/

-- 
Carlos Santos (Casantos) - DATACOM, P&D
?The greatest triumph that modern PR can offer is the transcendent 
success of having your words and actions judged by your reputation, 
rather than the other way about.? ? Christopher Hitchens

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

* [Buildroot] [PATCH] libpciaccess: add dependency on hwdata
  2018-03-29 16:41   ` Carlos Santos
@ 2018-03-29 17:52     ` Yann E. MORIN
  2018-03-29 19:05       ` Peter Korsgaard
  0 siblings, 1 reply; 7+ messages in thread
From: Yann E. MORIN @ 2018-03-29 17:52 UTC (permalink / raw)
  To: buildroot

Carlos, All,

On 2018-03-29 13:41 -0300, Carlos Santos spake thusly:
> > From: "Peter Korsgaard" <peter@korsgaard.com>
> > To: "Carlos Santos" <casantos@datacom.ind.br>
> > Cc: "buildroot" <buildroot@buildroot.org>, "Bernd Kuhls" <bernd.kuhls@t-online.de>
> > Sent: Thursday, March 29, 2018 11:05:17 AM
> > Subject: Re: [PATCH] libpciaccess: add dependency on hwdata
> 
> >>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:
> > 
> > > libpciaccess requires /usr/share/hwdata/pci.ids (or pci.ids.gz, if
> > > compiled with zlib support). That file is provided by the hwdata
> > > package, so add it as a run-time dependency.
> > 
> > > Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
> > 
> > Is this really a hard dependency? Looking at src/common_device_name.c,
> > this seems to only be used in populate_vendor(), which just returns
> > without error if the file cannot be opened.
> > 
> > --
> > Bye, Peter Korsgaard
> 
> It is required by libvirt[1] to show device names when we use virtual
> machine manager to add hardware via PCI passthrough, otherwise only
> the PCI bus information (slot, port, function) is shown.

Then I would say that it is not _required_. It may be _needed_, but it
is not mandatory; it just makes it a little bit more user-friendly.

Thus, I would say that we do not want to enforce this dependency,
because it still works without it.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH] libpciaccess: add dependency on hwdata
  2018-03-29 17:52     ` Yann E. MORIN
@ 2018-03-29 19:05       ` Peter Korsgaard
  2018-04-03  1:38         ` Carlos Santos
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2018-03-29 19:05 UTC (permalink / raw)
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

Hi,

 >> It is required by libvirt[1] to show device names when we use virtual
 >> machine manager to add hardware via PCI passthrough, otherwise only
 >> the PCI bus information (slot, port, function) is shown.

 > Then I would say that it is not _required_. It may be _needed_, but it
 > is not mandatory; it just makes it a little bit more user-friendly.

 > Thus, I would say that we do not want to enforce this dependency,
 > because it still works without it.

And if it IS required when using libvirt with pci passthrough, but not
necessarily for other users of libpciaccess, then we can make libvirt
select it.

In the general case for nice-to-have-but-not-absolutely-required
dependencies we don't have a solution in Buildroot today except for a
note in the help text. Upstream kconfig has recently added the imply
keyword which could be used to implement this, but we would need to sync
our kconfig with upstream for that.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] libpciaccess: add dependency on hwdata
  2018-03-29 19:05       ` Peter Korsgaard
@ 2018-04-03  1:38         ` Carlos Santos
  2018-04-28 21:39           ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Santos @ 2018-04-03  1:38 UTC (permalink / raw)
  To: buildroot

> From: "Peter Korsgaard" <peter@korsgaard.com>
> To: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: "Carlos Santos" <casantos@datacom.ind.br>, "Bernd Kuhls" <bernd.kuhls@t-online.de>, "buildroot"
> <buildroot@buildroot.org>
> Sent: Thursday, March 29, 2018 4:05:28 PM
> Subject: Re: [PATCH] libpciaccess: add dependency on hwdata

>>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> 
> Hi,
> 
> >> It is required by libvirt[1] to show device names when we use virtual
> >> machine manager to add hardware via PCI passthrough, otherwise only
> >> the PCI bus information (slot, port, function) is shown.
> 
> > Then I would say that it is not _required_. It may be _needed_, but it
> > is not mandatory; it just makes it a little bit more user-friendly.
> 
> > Thus, I would say that we do not want to enforce this dependency,
> > because it still works without it.
> 
> And if it IS required when using libvirt with pci passthrough, but not
> necessarily for other users of libpciaccess, then we can make libvirt
> select it.
> 
> In the general case for nice-to-have-but-not-absolutely-required
> dependencies we don't have a solution in Buildroot today except for a
> note in the help text. Upstream kconfig has recently added the imply
> keyword which could be used to implement this, but we would need to sync
> our kconfig with upstream for that.

OK, I will move the selection o hwdata to libvirt in the next version
of the path series.

-- 
Carlos Santos (Casantos) - DATACOM, P&D
?The greatest triumph that modern PR can offer is the transcendent 
success of having your words and actions judged by your reputation, 
rather than the other way about.? ? Christopher Hitchens

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

* [Buildroot] [PATCH] libpciaccess: add dependency on hwdata
  2018-04-03  1:38         ` Carlos Santos
@ 2018-04-28 21:39           ` Thomas Petazzoni
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2018-04-28 21:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 2 Apr 2018 22:38:39 -0300 (BRT), Carlos Santos wrote:

> > In the general case for nice-to-have-but-not-absolutely-required
> > dependencies we don't have a solution in Buildroot today except for a
> > note in the help text. Upstream kconfig has recently added the imply
> > keyword which could be used to implement this, but we would need to sync
> > our kconfig with upstream for that.  
> 
> OK, I will move the selection o hwdata to libvirt in the next version
> of the path series.

I don't know where we stand with the libvirt packaging, but following
this feedback, I marked this patch as Rejected in patchwork.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2018-04-28 21:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-28 23:52 [Buildroot] [PATCH] libpciaccess: add dependency on hwdata Carlos Santos
2018-03-29 14:05 ` Peter Korsgaard
2018-03-29 16:41   ` Carlos Santos
2018-03-29 17:52     ` Yann E. MORIN
2018-03-29 19:05       ` Peter Korsgaard
2018-04-03  1:38         ` Carlos Santos
2018-04-28 21:39           ` Thomas Petazzoni

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.