All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package/cups-filters: select bash
@ 2019-09-24  1:15 unixmania at gmail.com
  2019-09-28 21:10 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: unixmania at gmail.com @ 2019-09-24  1:15 UTC (permalink / raw)
  To: buildroot

From: Carlos Santos <unixmania@gmail.com>

The following files installed by cups-filters are bash scripts:

    /usr/lib/cups/filter/brftoembosser
    /usr/lib/cups/filter/imageubrltoindexv3
    /usr/lib/cups/filter/imageubrltoindexv4
    /usr/lib/cups/filter/textbrftoindexv3
    /usr/lib/cups/filter/imagetobrf
    /usr/lib/cups/filter/vectortopdf
    /usr/lib/cups/filter/vectortobrf
    /usr/lib/cups/filter/texttobrf
    /usr/lib/cups/filter/brftopagedbrf
    /usr/lib/cups/filter/musicxmltobrf

Signed-off-by: Carlos Santos <unixmania@gmail.com>
---
Changes v1->v2:
- fix typo in commit message (cips->cups)
---
 package/cups-filters/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/cups-filters/Config.in b/package/cups-filters/Config.in
index 5badf0e1f1..bb54bc1d1b 100644
--- a/package/cups-filters/Config.in
+++ b/package/cups-filters/Config.in
@@ -8,6 +8,7 @@ config BR2_PACKAGE_CUPS_FILTERS
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
 	depends on BR2_PACKAGE_CUPS
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
+	select BR2_PACKAGE_BASH
 	select BR2_PACKAGE_JPEG
 	select BR2_PACKAGE_FONTCONFIG
 	select BR2_PACKAGE_FREETYPE
-- 
2.18.1

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

* [Buildroot] [PATCH v2] package/cups-filters: select bash
  2019-09-24  1:15 [Buildroot] [PATCH v2] package/cups-filters: select bash unixmania at gmail.com
@ 2019-09-28 21:10 ` Thomas Petazzoni
  2019-09-29  1:22   ` Carlos Santos
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2019-09-28 21:10 UTC (permalink / raw)
  To: buildroot

Hello Carlos,

On Mon, 23 Sep 2019 22:15:42 -0300
unixmania at gmail.com wrote:

> diff --git a/package/cups-filters/Config.in b/package/cups-filters/Config.in
> index 5badf0e1f1..bb54bc1d1b 100644
> --- a/package/cups-filters/Config.in
> +++ b/package/cups-filters/Config.in
> @@ -8,6 +8,7 @@ config BR2_PACKAGE_CUPS_FILTERS
>  	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
>  	depends on BR2_PACKAGE_CUPS
>  	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
> +	select BR2_PACKAGE_BASH

To select bash, you would have to replicate the:

        depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS

dependency of bash to cups-filters, which is a bit annoying, as it's
off by default.

Are the scripts that use #!/bin/bash really using bashims, or are they
using #!/bin/bash but are in fact POSIX compliant ?

Or could we install them only if bash is available ? Are they useful in
all situations, or only in some specific cases.

I'm just trying to figure out what is the right solution for this.
Perhaps ultimately the solution will be to select bash, with "depends
on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS", but I'd like to explore the other
possibilities.

Thanks!

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

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

* [Buildroot] [PATCH v2] package/cups-filters: select bash
  2019-09-28 21:10 ` Thomas Petazzoni
@ 2019-09-29  1:22   ` Carlos Santos
  0 siblings, 0 replies; 3+ messages in thread
From: Carlos Santos @ 2019-09-29  1:22 UTC (permalink / raw)
  To: buildroot

On Sat, Sep 28, 2019 at 6:10 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello Carlos,
>
> On Mon, 23 Sep 2019 22:15:42 -0300
> unixmania at gmail.com wrote:
>
> > diff --git a/package/cups-filters/Config.in b/package/cups-filters/Config.in
> > index 5badf0e1f1..bb54bc1d1b 100644
> > --- a/package/cups-filters/Config.in
> > +++ b/package/cups-filters/Config.in
> > @@ -8,6 +8,7 @@ config BR2_PACKAGE_CUPS_FILTERS
> >       depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
> >       depends on BR2_PACKAGE_CUPS
> >       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
> > +     select BR2_PACKAGE_BASH
>
> To select bash, you would have to replicate the:
>
>         depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
>
> dependency of bash to cups-filters, which is a bit annoying, as it's
> off by default.
>
> Are the scripts that use #!/bin/bash really using bashims, or are they
> using #!/bin/bash but are in fact POSIX compliant ?

Yes, they are full of bashisms.

> Or could we install them only if bash is available ? Are they useful in
> all situations, or only in some specific cases.

I investigated a bit more and found that the bash scripts belong to
the Braille support, which cannot be enabled anyway, since it requires
liblouis (http://liblouis.org/) which is not available on Buildroot.

> I'm just trying to figure out what is the right solution for this.
> Perhaps ultimately the solution will be to select bash, with "depends
> on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS", but I'd like to explore the other
> possibilities.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

I will send a new patch disabling the Braille support.

-- 
Carlos Santos <unixmania@gmail.com>

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

end of thread, other threads:[~2019-09-29  1:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-24  1:15 [Buildroot] [PATCH v2] package/cups-filters: select bash unixmania at gmail.com
2019-09-28 21:10 ` Thomas Petazzoni
2019-09-29  1:22   ` Carlos Santos

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.