[Buildroot] [PATCH 1/1] package/python-pycups: new package

Asaf Kahlon asafka7 at gmail.com
Tue Aug 25 10:55:36 UTC 2020


Hello,

On Tue, Aug 25, 2020 at 11:08 AM Thomas Petazzoni
<thomas.petazzoni at bootlin.com> wrote:
>
> Hello Asaf,
>
> Thanks for reviewing!
>
> On Tue, 25 Aug 2020 09:41:28 +0300
> Asaf Kahlon <asafka7 at gmail.com> wrote:
>
> > > +       bool "python-pycups"
> > > +       depends on BR2_PACKAGE_CUPS
> > Since this package wraps the CUPS API and uses the cups package, you
> > should select BR2_PACKAGE_CUPS instead of depending on it (and add the
> > additional "depends on" sections from cups).
>
> I perhaps wouldn't be so strict on this. When a dependency is
> "obvious", it is quite OK to have a "depends on". In this case, I
> believe the user who wants python-pycups will realize that CUPS is
> needed in the system, so I find a "depends on" dependency to be quite
> OK in this case. Using "depends on" has the advantage that we don't
> have to replicate the "depends on" from BR2_PACKAGE_CUPS.
I completely agree that the advantage of this is not duplicating the
"depends on" sections.
On the other hand:
* Differently from other packages that duplicate the "depends on",
here we show nothing in case BR2_PACKAGE_CUPS isn't selected, so we
should at least add a comment.
* In my opinion, even if the user knows that python-pycups needs cups,
he wouldn't want to select it on his own and expect it to be selected
when choosing python-pycups.
But I agree that in some cases it's not so critical.

>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Asaf.



More information about the buildroot mailing list